From d06caad1fe37235cc7e3a11e1f1b6a53d0f6d5db Mon Sep 17 00:00:00 2001 From: datadave <605409+datadavev@users.noreply.github.com> Date: Wed, 12 Jun 2024 17:56:50 -0400 Subject: [PATCH] regenerated ui --- .../ui/_file/observable.1af93621.png | Bin 0 -> 394 bytes .../ui/_file/styles.9124d518.css | 6 + .../ui/_import/isclib.e38a39a7.js | 66 +++++ .../ui/_import/sample.da41fe32.js | 94 ++++++ .../_npm/@duckdb/duckdb-wasm@1.28.0/_esm.js | 7 + .../@radiantearth/stac-migrate@1.6.0/_esm.js | 7 + .../ui/_npm/@streamparser/json@0.0.21/_esm.js | 7 + .../ui/_npm/apache-arrow@16.1.0/_esm.js | 7 + .../ui/_npm/compare-versions@3.6.0/_esm.js | 7 + .../ui/_npm/entities@4.5.0/_esm.js | 7 + .../ui/_npm/flatbuffers@24.3.25/_esm.js | 7 + .../ui/_npm/htl@0.3.1/_esm.js | 7 + .../ui/_npm/isoformat@0.2.1/_esm.js | 7 + .../ui/_npm/leaflet-spin@1.1.2/_esm.js | 7 + .../ui/_npm/leaflet.glify@3.2.0/_esm.js | 15 + .../ui/_npm/leaflet@1.7.1/_esm.js | 7 + .../ui/_npm/leaflet@1.9.4/_esm.js | 7 + .../ui/_npm/linkify-it@5.0.0/_esm.js | 7 + .../ui/_npm/markdown-it@14.1.0/_esm.js | 7 + .../ui/_npm/mdurl@2.0.0/_esm.js | 7 + .../ui/_npm/punycode.js@2.3.1/_esm.js | 7 + .../ui/_npm/spin.js@2.3.2/_esm.js | 7 + .../ui/_npm/stac-js@0.0.9/_esm.js | 7 + .../ui/_npm/tslib@2.6.3/_esm.js | 7 + .../ui/_npm/uc.micro@2.1.0/_esm.js | 7 + .../ui/_npm/urijs@1.19.11/_esm.js | 33 +++ .../ui/_observablehq/client.js | 1 + .../ui/_observablehq/runtime.js | 7 + .../ui/_observablehq/stdlib.js | 1 + .../ui/_observablehq/stdlib/duckdb.js | 1 + .../ui/_observablehq/stdlib/inputs.css | 1 + .../ui/_observablehq/stdlib/inputs.js | 100 +++++++ .../_observablehq/theme-air,near-midnight.css | 1 + isamples_export_client/ui/data_source.html | 67 +++++ isamples_export_client/ui/ds_view.html | 268 ++++++++++++++++++ isamples_export_client/ui/index.html | 154 ++++++++++ isamples_export_client/ui/search_isb.html | 163 +++++++++++ 37 files changed, 1118 insertions(+) create mode 100644 isamples_export_client/ui/_file/observable.1af93621.png create mode 100644 isamples_export_client/ui/_file/styles.9124d518.css create mode 100644 isamples_export_client/ui/_import/isclib.e38a39a7.js create mode 100644 isamples_export_client/ui/_import/sample.da41fe32.js create mode 100644 isamples_export_client/ui/_npm/@duckdb/duckdb-wasm@1.28.0/_esm.js create mode 100644 isamples_export_client/ui/_npm/@radiantearth/stac-migrate@1.6.0/_esm.js create mode 100644 isamples_export_client/ui/_npm/@streamparser/json@0.0.21/_esm.js create mode 100644 isamples_export_client/ui/_npm/apache-arrow@16.1.0/_esm.js create mode 100644 isamples_export_client/ui/_npm/compare-versions@3.6.0/_esm.js create mode 100644 isamples_export_client/ui/_npm/entities@4.5.0/_esm.js create mode 100644 isamples_export_client/ui/_npm/flatbuffers@24.3.25/_esm.js create mode 100644 isamples_export_client/ui/_npm/htl@0.3.1/_esm.js create mode 100644 isamples_export_client/ui/_npm/isoformat@0.2.1/_esm.js create mode 100644 isamples_export_client/ui/_npm/leaflet-spin@1.1.2/_esm.js create mode 100644 isamples_export_client/ui/_npm/leaflet.glify@3.2.0/_esm.js create mode 100644 isamples_export_client/ui/_npm/leaflet@1.7.1/_esm.js create mode 100644 isamples_export_client/ui/_npm/leaflet@1.9.4/_esm.js create mode 100644 isamples_export_client/ui/_npm/linkify-it@5.0.0/_esm.js create mode 100644 isamples_export_client/ui/_npm/markdown-it@14.1.0/_esm.js create mode 100644 isamples_export_client/ui/_npm/mdurl@2.0.0/_esm.js create mode 100644 isamples_export_client/ui/_npm/punycode.js@2.3.1/_esm.js create mode 100644 isamples_export_client/ui/_npm/spin.js@2.3.2/_esm.js create mode 100644 isamples_export_client/ui/_npm/stac-js@0.0.9/_esm.js create mode 100644 isamples_export_client/ui/_npm/tslib@2.6.3/_esm.js create mode 100644 isamples_export_client/ui/_npm/uc.micro@2.1.0/_esm.js create mode 100644 isamples_export_client/ui/_npm/urijs@1.19.11/_esm.js create mode 100644 isamples_export_client/ui/_observablehq/client.js create mode 100644 isamples_export_client/ui/_observablehq/runtime.js create mode 100644 isamples_export_client/ui/_observablehq/stdlib.js create mode 100644 isamples_export_client/ui/_observablehq/stdlib/duckdb.js create mode 100644 isamples_export_client/ui/_observablehq/stdlib/inputs.css create mode 100644 isamples_export_client/ui/_observablehq/stdlib/inputs.js create mode 100644 isamples_export_client/ui/_observablehq/theme-air,near-midnight.css create mode 100644 isamples_export_client/ui/data_source.html create mode 100644 isamples_export_client/ui/ds_view.html create mode 100644 isamples_export_client/ui/index.html create mode 100644 isamples_export_client/ui/search_isb.html diff --git a/isamples_export_client/ui/_file/observable.1af93621.png b/isamples_export_client/ui/_file/observable.1af93621.png new file mode 100644 index 0000000000000000000000000000000000000000..cff4f44bc64d764f7051454316b752781f74f3ad GIT binary patch literal 394 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfv-2k5uSN8&+j*gD@_Vx)ACICqY z8<~U%0!4sep-hDwP$OSSkY6yv9V-^eewEM1p0CMUo*5u05(Sj`=jq}Yq7j@rN#EN! zQKVh|ou2l#*4Eb3yB~ZKxX!~Yc*bwT$!%F?5qXFWfE;O$V zk7n>(w%yrd{T7Y`JFS=`R(wCObzM8dOCNj1nXma7YBEG6R=izn5a{l6W&7HKMcX1* zo-e53Vt*y>t;>9Jk+8=V-kH-H*KPAC(mk?p{tS0~f literal 0 HcmV?d00001 diff --git a/isamples_export_client/ui/_file/styles.9124d518.css b/isamples_export_client/ui/_file/styles.9124d518.css new file mode 100644 index 0000000..410edcd --- /dev/null +++ b/isamples_export_client/ui/_file/styles.9124d518.css @@ -0,0 +1,6 @@ +/* A crosshair cursor for leaflet +e.g.: L.DomUtil.addClass(map._container,'crosshair-cursor-enabled'); +*/ +.leaflet-container.crosshair-cursor-enabled { + cursor:crosshair; +} diff --git a/isamples_export_client/ui/_import/isclib.e38a39a7.js b/isamples_export_client/ui/_import/isclib.e38a39a7.js new file mode 100644 index 0000000..39877d6 --- /dev/null +++ b/isamples_export_client/ui/_import/isclib.e38a39a7.js @@ -0,0 +1,66 @@ +/* +Implements support for getting content from iSC + */ + +import { JSONParser } from "../_npm/@streamparser/json@0.0.21/_esm.js"; + + +export class iSC { + constructor(options = {}) { + const { + service = "https://central.isample.xyz/isamples_central/", + default_query = "*:*" + } = options; + this.service = new URL(service); + this.default_query = default_query; + } + + async countRecords(q) { + const url = new URL("thing/select", this.service); + console.log(`Query string = ${q}`); + url.search = new URLSearchParams({ + q: q, + rows:0, + wt:"json" + }); + return fetch(url) + .then((response) => response.json()) + .then((data) => { + const nrecs = data.response.numFound; + console.log(`n records = ${nrecs}`); + return nrecs; + }) + .catch((e) => { + console.log(e); + }) + } + + async pointStreamGenerator(q, handler){ + const url = new URL("thing/stream", this.service); + console.log(`Query string = ${q}`); + url.search = new URLSearchParams({ + q: q, + rows:10, + fl:"source,id,x:producedBy_samplingSite_location_longitude,y:producedBy_samplingSite_location_latitude" + }); + fetch(url) + .then(async (response) => { + const jsonparser = new JSONParser({ + stringBufferSise: undefined, + paths: ['$.result-set.docs.*'] + }); + jsonparser.onValue = handler; + const reader = response.body.getReader(); + while (true) { + const { done, value} = await reader.read(); + if (done) { + break; + } + jsonparser.write(value); + } + }) + .catch((e) => { + console.log(e); + }) + } +} \ No newline at end of file diff --git a/isamples_export_client/ui/_import/sample.da41fe32.js b/isamples_export_client/ui/_import/sample.da41fe32.js new file mode 100644 index 0000000..ddb3bb8 --- /dev/null +++ b/isamples_export_client/ui/_import/sample.da41fe32.js @@ -0,0 +1,94 @@ +/** + * Implements a module for displaying sample locations on a leaflet map using the GL extension. + * + * The WebGL approach is preferred when a large number of features are to be rendered. + */ + +export class Samples { + + constructor(db) { + this._db = db; + } + + async init(data_source_url){ + await this._db.query("DROP TABLE IF EXISTS samples;") + let q = `CREATE TABLE samples AS SELECT * FROM '${data_source_url}'`; + if (data_source_url.endsWith(".jsonl")) { + q = `CREATE TABLE samples AS SELECT * FROM read_json_auto('${data_source_url}', format='newline_delimited')`; + } + if (data_source_url.includes(".parquet")) { + q = `CREATE TABLE samples AS SELECT * FROM read_parquet('${data_source_url}')`; + } + try { + return this._db.query(q); + } catch (e) { + console.log(e); + } + } + + get totalRecords() { + const q = 'SELECT COUNT(*) as n FROM samples;'; + return this._db.queryRow(q).then((res) => { + return res.n + }).catch((e) => { + console.log(e); + return 0; + }); + } + + async allRows(){ + const q = 'SELECT sample_identifier as pid, label, source_collection FROM samples;'; + return this._db.query(q); + } + + async vocabularyTermCounts() { + const facet_field = "has_material_category" + const q = `WITH mcrows AS ( + SELECT DISTINCT unnest(${facet_field}) AS mc + FROM samples +) SELECT count(*) AS n, source_collection, mcrows.mc +FROM samples +JOIN mcrows ON list_contains(${facet_field}, mcrows.mc) +GROUP BY source_collection, mcrows.mc +ORDER BY mcrows.mc ASC`; + return this._db.query(q); + } + + async getRecordsByBB(bb) { + /* + Returns x,y,pid of samples within bounding box of + [min_x, min_y, max_x, max_y] + */ + const q = `select + produced_by.sampling_site.sample_location.longitude as x, + produced_by.sampling_site.sample_location.latitude as y, + source_collection as source, + sample_identifier as pid from samples + where x>=${bb[0]} and x<=${bb[2]} and y>=${bb[1]} and y<=${bb[2]};`; + return this._db.query(q); + } + + async getRecord(pid) { + const q = "SELECT * FROM samples WHERE sample_identifier=?"; + return this._db.query(q, pid); + } + + async getRecordsById(pid) { + /* + Returns records that have the same location as the record with the specified identifier. + */ + // TODO: fuzziness should be a function of zoom level. + const dx = 0.001; + const dy = 0.001; + const q = `select sample_identifier, source_collection, label from samples s + inner join (select produced_by.sampling_site.sample_location.longitude as x, + produced_by.sampling_site.sample_location.latitude as y from samples + where sample_identifier='${pid}') sm + on s.produced_by.sampling_site.sample_location.longitude>=sm.x-${dx} + and s.produced_by.sampling_site.sample_location.longitude<=sm.x+${dx} + and produced_by.sampling_site.sample_location.latitude>=sm.y-${dy} + and produced_by.sampling_site.sample_location.latitude<=sm.y+${dy};`; + return this._db.query(q); + } +} + diff --git a/isamples_export_client/ui/_npm/@duckdb/duckdb-wasm@1.28.0/_esm.js b/isamples_export_client/ui/_npm/@duckdb/duckdb-wasm@1.28.0/_esm.js new file mode 100644 index 0000000..003fe02 --- /dev/null +++ b/isamples_export_client/ui/_npm/@duckdb/duckdb-wasm@1.28.0/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/@duckdb/duckdb-wasm@1.28.0/dist/duckdb-browser.mjs + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +import*as e from"../../apache-arrow@16.1.0/_esm.js";var s=Object.create;var t=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var r=Object.getOwnPropertyNames;var n=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty;var o=(e,s)=>()=>(s||e((s={exports:{}}).exports,s),s.exports);var d=(e,s,n,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let d of r(s))!i.call(e,d)&&d!==n&&t(e,d,{get:()=>s[d],enumerable:!(o=a(s,d))||o.enumerable});return e};var c=(e,a,r)=>(r=e!=null?s(n(e)):{},d(a||!e||!e.__esModule?t(r,"default",{value:e,enumerable:!0}):r,e));var E=o(((e,s)=>{s.exports=Worker}));var l=(e=>(e[e.UNDEFINED=0]="UNDEFINED",e[e.AUTOMATIC=1]="AUTOMATIC",e[e.READ_ONLY=2]="READ_ONLY",e[e.READ_WRITE=3]="READ_WRITE",e))(l||{});var _=(e=>(e[e.IDENTIFIER=0]="IDENTIFIER",e[e.NUMERIC_CONSTANT=1]="NUMERIC_CONSTANT",e[e.STRING_CONSTANT=2]="STRING_CONSTANT",e[e.OPERATOR=3]="OPERATOR",e[e.KEYWORD=4]="KEYWORD",e[e.COMMENT=5]="COMMENT",e))(_||{});var u=(e=>(e[e.NONE=0]="NONE",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARNING=3]="WARNING",e[e.ERROR=4]="ERROR",e))(u||{}),T=(e=>(e[e.NONE=0]="NONE",e[e.CONNECT=1]="CONNECT",e[e.DISCONNECT=2]="DISCONNECT",e[e.OPEN=3]="OPEN",e[e.QUERY=4]="QUERY",e[e.INSTANTIATE=5]="INSTANTIATE",e))(T||{}),R=(e=>(e[e.NONE=0]="NONE",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR",e[e.START=3]="START",e[e.RUN=4]="RUN",e[e.CAPTURE=5]="CAPTURE",e))(R||{}),p=(e=>(e[e.NONE=0]="NONE",e[e.WEB_WORKER=1]="WEB_WORKER",e[e.NODE_WORKER=2]="NODE_WORKER",e[e.BINDINGS=3]="BINDINGS",e[e.ASYNC_DUCKDB=4]="ASYNC_DUCKDB",e))(p||{}),h=class{log(e){}},I=class{constructor(e=2){this.level=e}log(e){e.level>=this.level&&console.log(e)}};function m(e){switch(e){case 0:return"NONE";case 1:return"DEBUG";case 2:return"INFO";case 3:return"WARNING";case 4:return"ERROR";default:return"?"}}function b(e){switch(e){case 0:return"NONE";case 1:return"OK";case 2:return"ERROR";case 3:return"START";case 4:return"RUN";case 5:return"CAPTURE";default:return"?"}}function S(e){switch(e){case 1:return"CONNECT";case 2:return"DISCONNECT";case 5:return"INSTANTIATE";case 3:return"OPEN";case 4:return"QUERY";default:return"?"}}function g(e){switch(e){case 0:return"NONE";case 1:return"WEB WORKER";case 2:return"NODE WORKER";case 3:return"DUCKDB BINDINGS";case 4:return"DUCKDB";default:return"?"}}var y=(e=>(e[e.SUCCESS=0]="SUCCESS",e))(y||{});var N=class{constructor(e,s){this._bindings=e,this._conn=s}get bindings(){return this._bindings}async close(){return this._bindings.disconnect(this._conn)}useUnsafe(e){return e(this._bindings,this._conn)}async query(s){this._bindings.logger.log({timestamp:new Date,level:2,origin:4,topic:4,event:4,value:s});let t=await this._bindings.runQuery(this._conn,s),a=e.RecordBatchReader.from(t);return console.assert(a.isSync(),"Reader is not sync"),console.assert(a.isFile(),"Reader is not file"),new e.Table(a)}async send(s){this._bindings.logger.log({timestamp:new Date,level:2,origin:4,topic:4,event:4,value:s});let t=await this._bindings.startPendingQuery(this._conn,s);for(;t==null;)t=await this._bindings.pollPendingQuery(this._conn);let a=new k(this._bindings,this._conn,t),r=await e.RecordBatchReader.from(a);return console.assert(r.isAsync()),console.assert(r.isStream()),r}async cancelSent(){return await this._bindings.cancelPendingQuery(this._conn)}async getTableNames(e){return await this._bindings.getTableNames(this._conn,e)}async prepare(e){let s=await this._bindings.createPrepared(this._conn,e);return new O(this._bindings,this._conn,s)}async insertArrowTable(s,t){let a=e.tableToIPC(s,"stream");await this.insertArrowFromIPCStream(a,t)}async insertArrowFromIPCStream(e,s){await this._bindings.insertArrowFromIPCStream(this._conn,e,s)}async insertCSVFromPath(e,s){await this._bindings.insertCSVFromPath(this._conn,e,s)}async insertJSONFromPath(e,s){await this._bindings.insertJSONFromPath(this._conn,e,s)}},k=class{constructor(e,s,t){this.db=e;this.conn=s;this.header=t;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}},O=class{constructor(e,s,t){this.bindings=e,this.connectionId=s,this.statementId=t}async close(){await this.bindings.closePrepared(this.connectionId,this.statementId)}async query(...s){let t=await this.bindings.runPrepared(this.connectionId,this.statementId,s),a=e.RecordBatchReader.from(t);return console.assert(a.isSync()),console.assert(a.isFile()),new e.Table(a)}async send(...s){let t=await this.bindings.sendPrepared(this.connectionId,this.statementId,s),a=new k(this.bindings,this.connectionId,t),r=await e.RecordBatchReader.from(a);return console.assert(r.isAsync()),console.assert(r.isStream()),r}};var w=(e=>(e.CANCEL_PENDING_QUERY="CANCEL_PENDING_QUERY",e.CLOSE_PREPARED="CLOSE_PREPARED",e.COLLECT_FILE_STATISTICS="COLLECT_FILE_STATISTICS",e.CONNECT="CONNECT",e.COPY_FILE_TO_BUFFER="COPY_FILE_TO_BUFFER",e.COPY_FILE_TO_PATH="COPY_FILE_TO_PATH",e.CREATE_PREPARED="CREATE_PREPARED",e.DISCONNECT="DISCONNECT",e.DROP_FILE="DROP_FILE",e.DROP_FILES="DROP_FILES",e.EXPORT_FILE_STATISTICS="EXPORT_FILE_STATISTICS",e.FETCH_QUERY_RESULTS="FETCH_QUERY_RESULTS",e.FLUSH_FILES="FLUSH_FILES",e.GET_FEATURE_FLAGS="GET_FEATURE_FLAGS",e.GET_TABLE_NAMES="GET_TABLE_NAMES",e.GET_VERSION="GET_VERSION",e.GLOB_FILE_INFOS="GLOB_FILE_INFOS",e.INSERT_ARROW_FROM_IPC_STREAM="INSERT_ARROW_FROM_IPC_STREAM",e.INSERT_CSV_FROM_PATH="IMPORT_CSV_FROM_PATH",e.INSERT_JSON_FROM_PATH="IMPORT_JSON_FROM_PATH",e.INSTANTIATE="INSTANTIATE",e.OPEN="OPEN",e.PING="PING",e.POLL_PENDING_QUERY="POLL_PENDING_QUERY",e.REGISTER_FILE_BUFFER="REGISTER_FILE_BUFFER",e.REGISTER_FILE_HANDLE="REGISTER_FILE_HANDLE",e.REGISTER_FILE_URL="REGISTER_FILE_URL",e.RESET="RESET",e.RUN_PREPARED="RUN_PREPARED",e.RUN_QUERY="RUN_QUERY",e.SEND_PREPARED="SEND_PREPARED",e.START_PENDING_QUERY="START_PENDING_QUERY",e.TOKENIZE="TOKENIZE",e))(w||{}),F=(e=>(e.CONNECTION_INFO="CONNECTION_INFO",e.ERROR="ERROR",e.FEATURE_FLAGS="FEATURE_FLAGS",e.FILE_BUFFER="FILE_BUFFER",e.FILE_INFOS="FILE_INFOS",e.FILE_SIZE="FILE_SIZE",e.FILE_STATISTICS="FILE_STATISTICS",e.INSTANTIATE_PROGRESS="INSTANTIATE_PROGRESS",e.LOG="LOG",e.OK="OK",e.PREPARED_STATEMENT_ID="PREPARED_STATEMENT_ID",e.QUERY_PLAN="QUERY_PLAN",e.QUERY_RESULT="QUERY_RESULT",e.QUERY_RESULT_CHUNK="QUERY_RESULT_CHUNK",e.QUERY_RESULT_HEADER="QUERY_RESULT_HEADER",e.QUERY_RESULT_HEADER_OR_NULL="QUERY_RESULT_HEADER_OR_NULL",e.REGISTERED_FILE="REGISTERED_FILE",e.SCRIPT_TOKENS="SCRIPT_TOKENS",e.SUCCESS="SUCCESS",e.TABLE_NAMES="TABLE_NAMES",e.VERSION_STRING="VERSION_STRING",e))(F||{}),A=class{constructor(e,s){this.promiseResolver=()=>{};this.promiseRejecter=()=>{};this.type=e,this.data=s,this.promise=new Promise(((e,s)=>{this.promiseResolver=e,this.promiseRejecter=s}))}};function P(s){switch(s.typeId){case e.Type.Binary:return{sqlType:"binary"};case e.Type.Bool:return{sqlType:"bool"};case e.Type.Date:return{sqlType:"date"};case e.Type.DateDay:return{sqlType:"date32[d]"};case e.Type.DateMillisecond:return{sqlType:"date64[ms]"};case e.Type.Decimal:{let e=s;return{sqlType:"decimal",precision:e.precision,scale:e.scale}}case e.Type.Float:return{sqlType:"float"};case e.Type.Float16:return{sqlType:"float16"};case e.Type.Float32:return{sqlType:"float32"};case e.Type.Float64:return{sqlType:"float64"};case e.Type.Int:return{sqlType:"int32"};case e.Type.Int16:return{sqlType:"int16"};case e.Type.Int32:return{sqlType:"int32"};case e.Type.Int64:return{sqlType:"int64"};case e.Type.Uint16:return{sqlType:"uint16"};case e.Type.Uint32:return{sqlType:"uint32"};case e.Type.Uint64:return{sqlType:"uint64"};case e.Type.Uint8:return{sqlType:"uint8"};case e.Type.IntervalDayTime:return{sqlType:"interval[dt]"};case e.Type.IntervalYearMonth:return{sqlType:"interval[m]"};case e.Type.List:return{sqlType:"list",valueType:P(s.valueType)};case e.Type.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:s.byteWidth};case e.Type.Null:return{sqlType:"null"};case e.Type.Utf8:return{sqlType:"utf8"};case e.Type.Struct:return{sqlType:"struct",fields:s.children.map((e=>L(e.name,e.type)))};case e.Type.Map:{let e=s;return{sqlType:"map",keyType:P(e.keyType),valueType:P(e.valueType)}}case e.Type.Time:return{sqlType:"time[s]"};case e.Type.TimeMicrosecond:return{sqlType:"time[us]"};case e.Type.TimeMillisecond:return{sqlType:"time[ms]"};case e.Type.TimeNanosecond:return{sqlType:"time[ns]"};case e.Type.TimeSecond:return{sqlType:"time[s]"};case e.Type.Timestamp:return{sqlType:"timestamp",timezone:s.timezone||void 0};case e.Type.TimestampSecond:return{sqlType:"timestamp[s]",timezone:s.timezone||void 0};case e.Type.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:s.timezone||void 0};case e.Type.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:s.timezone||void 0};case e.Type.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:s.timezone||void 0}}throw new Error("unsupported arrow type: ".concat(s.toString()))}function L(e,s){let t=P(s);return t.name=e,t}var C=new TextEncoder,U=class{constructor(e,s=null){this._onInstantiationProgress=[];this._worker=null;this._workerShutdownPromise=null;this._workerShutdownResolver=()=>{};this._nextMessageId=0;this._pendingRequests=new Map;this._logger=e,this._onMessageHandler=this.onMessage.bind(this),this._onErrorHandler=this.onError.bind(this),this._onCloseHandler=this.onClose.bind(this),s!=null&&this.attach(s)}get logger(){return this._logger}attach(e){this._worker=e,this._worker.addEventListener("message",this._onMessageHandler),this._worker.addEventListener("error",this._onErrorHandler),this._worker.addEventListener("close",this._onCloseHandler),this._workerShutdownPromise=new Promise(((e,s)=>{this._workerShutdownResolver=e}))}detach(){this._worker&&(this._worker.removeEventListener("message",this._onMessageHandler),this._worker.removeEventListener("error",this._onErrorHandler),this._worker.removeEventListener("close",this._onCloseHandler),this._worker=null,this._workerShutdownResolver(null),this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{})}async terminate(){this._worker&&(this._worker.terminate(),this._worker=null,this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{})}async postTask(e,s=[]){if(!this._worker){console.error("cannot send a message since the worker is not set!");return}let t=this._nextMessageId++;return this._pendingRequests.set(t,e),this._worker.postMessage({messageId:t,type:e.type,data:e.data},s),await e.promise}onMessage(e){var s;let t=e.data;switch(t.type){case"LOG":{this._logger.log(t.data);return}case"INSTANTIATE_PROGRESS":{for(let e of this._onInstantiationProgress)e(t.data);return}}let a=this._pendingRequests.get(t.requestId);if(!a){console.warn("unassociated response: [".concat(t.requestId,", ").concat(t.type.toString(),"]"));return}if(this._pendingRequests.delete(t.requestId),t.type=="ERROR"){let e=new Error(t.data.message);e.name=t.data.name,(s=Object.getOwnPropertyDescriptor(e,"stack"))!=null&&s.writable&&(e.stack=t.data.stack),a.promiseRejecter(e);return}switch(a.type){case"CLOSE_PREPARED":case"COLLECT_FILE_STATISTICS":case"COPY_FILE_TO_PATH":case"DISCONNECT":case"DROP_FILE":case"DROP_FILES":case"FLUSH_FILES":case"INSERT_ARROW_FROM_IPC_STREAM":case"IMPORT_CSV_FROM_PATH":case"IMPORT_JSON_FROM_PATH":case"OPEN":case"PING":case"REGISTER_FILE_BUFFER":case"REGISTER_FILE_HANDLE":case"REGISTER_FILE_URL":case"RESET":if(t.type=="OK"){a.promiseResolver(t.data);return}break;case"INSTANTIATE":if(this._onInstantiationProgress=[],t.type=="OK"){a.promiseResolver(t.data);return}break;case"GLOB_FILE_INFOS":if(t.type=="FILE_INFOS"){a.promiseResolver(t.data);return}break;case"GET_VERSION":if(t.type=="VERSION_STRING"){a.promiseResolver(t.data);return}break;case"GET_FEATURE_FLAGS":if(t.type=="FEATURE_FLAGS"){a.promiseResolver(t.data);return}break;case"GET_TABLE_NAMES":if(t.type=="TABLE_NAMES"){a.promiseResolver(t.data);return}break;case"TOKENIZE":if(t.type=="SCRIPT_TOKENS"){a.promiseResolver(t.data);return}break;case"COPY_FILE_TO_BUFFER":if(t.type=="FILE_BUFFER"){a.promiseResolver(t.data);return}break;case"EXPORT_FILE_STATISTICS":if(t.type=="FILE_STATISTICS"){a.promiseResolver(t.data);return}break;case"CONNECT":if(t.type=="CONNECTION_INFO"){a.promiseResolver(t.data);return}break;case"RUN_PREPARED":case"RUN_QUERY":if(t.type=="QUERY_RESULT"){a.promiseResolver(t.data);return}break;case"SEND_PREPARED":if(t.type=="QUERY_RESULT_HEADER"){a.promiseResolver(t.data);return}break;case"START_PENDING_QUERY":if(t.type=="QUERY_RESULT_HEADER_OR_NULL"){a.promiseResolver(t.data);return}break;case"POLL_PENDING_QUERY":if(t.type=="QUERY_RESULT_HEADER_OR_NULL"){a.promiseResolver(t.data);return}break;case"CANCEL_PENDING_QUERY":if(this._onInstantiationProgress=[],t.type=="SUCCESS"){a.promiseResolver(t.data);return}break;case"FETCH_QUERY_RESULTS":if(t.type=="QUERY_RESULT_CHUNK"){a.promiseResolver(t.data);return}break;case"CREATE_PREPARED":if(t.type=="PREPARED_STATEMENT_ID"){a.promiseResolver(t.data);return}break}a.promiseRejecter(new Error("unexpected response type: ".concat(t.type.toString())))}onError(e){console.error(e),console.error("error in duckdb worker: ".concat(e.message)),this._pendingRequests.clear()}onClose(){if(this._workerShutdownResolver(null),this._pendingRequests.size!=0){console.warn("worker terminated with ".concat(this._pendingRequests.size," pending requests"));return}this._pendingRequests.clear()}async reset(){let e=new A("RESET",null);return await this.postTask(e)}async ping(){let e=new A("PING",null);await this.postTask(e)}async dropFile(e){let s=new A("DROP_FILE",e);return await this.postTask(s)}async dropFiles(){let e=new A("DROP_FILES",null);return await this.postTask(e)}async flushFiles(){let e=new A("FLUSH_FILES",null);return await this.postTask(e)}async instantiate(e,s=null,t=(e=>{})){this._onInstantiationProgress.push(t);let a=new A("INSTANTIATE",[e,s]);return await this.postTask(a)}async getVersion(){let e=new A("GET_VERSION",null);return await this.postTask(e)}async getFeatureFlags(){let e=new A("GET_FEATURE_FLAGS",null);return await this.postTask(e)}async open(e){let s=new A("OPEN",e);await this.postTask(s)}async tokenize(e){let s=new A("TOKENIZE",e);return await this.postTask(s)}async connectInternal(){let e=new A("CONNECT",null);return await this.postTask(e)}async connect(){let e=await this.connectInternal();return new N(this,e)}async disconnect(e){let s=new A("DISCONNECT",e);await this.postTask(s)}async runQuery(e,s){let t=new A("RUN_QUERY",[e,s]);return await this.postTask(t)}async startPendingQuery(e,s){let t=new A("START_PENDING_QUERY",[e,s]);return await this.postTask(t)}async pollPendingQuery(e){let s=new A("POLL_PENDING_QUERY",e);return await this.postTask(s)}async cancelPendingQuery(e){let s=new A("CANCEL_PENDING_QUERY",e);return await this.postTask(s)}async fetchQueryResults(e){let s=new A("FETCH_QUERY_RESULTS",e);return await this.postTask(s)}async getTableNames(e,s){let t=new A("GET_TABLE_NAMES",[e,s]);return await this.postTask(t)}async createPrepared(e,s){let t=new A("CREATE_PREPARED",[e,s]);return await this.postTask(t)}async closePrepared(e,s){let t=new A("CLOSE_PREPARED",[e,s]);await this.postTask(t)}async runPrepared(e,s,t){let a=new A("RUN_PREPARED",[e,s,t]);return await this.postTask(a)}async sendPrepared(e,s,t){let a=new A("SEND_PREPARED",[e,s,t]);return await this.postTask(a)}async globFiles(e){let s=new A("GLOB_FILE_INFOS",e);return await this.postTask(s)}async registerFileText(e,s){let t=C.encode(s);await this.registerFileBuffer(e,t)}async registerFileURL(e,s,t,a){s===void 0&&(s=e);let r=new A("REGISTER_FILE_URL",[e,s,t,a]);await this.postTask(r)}async registerEmptyFileBuffer(e){let s=new A("REGISTER_FILE_BUFFER",[e,new Uint8Array]);await this.postTask(s)}async registerFileBuffer(e,s){let t=new A("REGISTER_FILE_BUFFER",[e,s]);await this.postTask(t,[s.buffer])}async registerFileHandle(e,s,t,a){let r=new A("REGISTER_FILE_HANDLE",[e,s,t,a]);await this.postTask(r,[])}async collectFileStatistics(e,s){let t=new A("COLLECT_FILE_STATISTICS",[e,s]);await this.postTask(t,[])}async exportFileStatistics(e){let s=new A("EXPORT_FILE_STATISTICS",e);return await this.postTask(s,[])}async copyFileToBuffer(e){let s=new A("COPY_FILE_TO_BUFFER",e);return await this.postTask(s)}async copyFileToPath(e,s){let t=new A("COPY_FILE_TO_PATH",[e,s]);await this.postTask(t)}async insertArrowFromIPCStream(e,s,t){if(s.length==0)return;let a=new A("INSERT_ARROW_FROM_IPC_STREAM",[e,s,t]);await this.postTask(a,[s.buffer])}async insertCSVFromPath(e,s,t){if(t.columns!==void 0){let e=[];for(let s in t.columns){let a=t.columns[s];e.push(L(s,a))}t.columnsFlat=e,delete t.columns}let a=new A("IMPORT_CSV_FROM_PATH",[e,s,t]);await this.postTask(a)}async insertJSONFromPath(e,s,t){if(t.columns!==void 0){let e=[];for(let s in t.columns){let a=t.columns[s];e.push(L(s,a))}t.columnsFlat=e,delete t.columns}let a=new A("IMPORT_JSON_FROM_PATH",[e,s,t]);await this.postTask(a)}};var f=class{constructor(){this._bindings=null;this._nextMessageId=0}log(e){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:"LOG",data:e},[])}sendOK(e){this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"OK",data:null},[])}failWith(e,s){let t={name:s.name,message:s.message,stack:s.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"ERROR",data:t},[])}async onMessage(e){switch(e.type){case"PING":this.sendOK(e);return;case"INSTANTIATE":this._bindings!=null&&this.failWith(e,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(e.data[0],e.data[1],(s=>{this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"INSTANTIATE_PROGRESS",data:s},[])})),this.sendOK(e)}catch(s){console.log(s),this._bindings=null,this.failWith(e,s)}return}if(!this._bindings)return this.failWith(e,new Error("duckdb is not initialized"));try{switch(e.type){case"GET_VERSION":this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"VERSION_STRING",data:this._bindings.getVersion()},[]);break;case"GET_FEATURE_FLAGS":this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FEATURE_FLAGS",data:this._bindings.getFeatureFlags()},[]);break;case"RESET":this._bindings.reset(),this.sendOK(e);break;case"OPEN":this._bindings.open(e.data),this.sendOK(e);break;case"DROP_FILE":this._bindings.dropFile(e.data),this.sendOK(e);break;case"DROP_FILES":this._bindings.dropFiles(),this.sendOK(e);break;case"FLUSH_FILES":this._bindings.flushFiles(),this.sendOK(e);break;case"CONNECT":{let s=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"CONNECTION_INFO",data:s.useUnsafe(((e,s)=>s))},[]);break}case"DISCONNECT":this._bindings.disconnect(e.data),this.sendOK(e);break;case"CREATE_PREPARED":{let s=this._bindings.createPrepared(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"PREPARED_STATEMENT_ID",data:s},[]);break}case"CLOSE_PREPARED":{this._bindings.closePrepared(e.data[0],e.data[1]),this.sendOK(e);break}case"RUN_PREPARED":{let s=this._bindings.runPrepared(e.data[0],e.data[1],e.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT",data:s},[s.buffer]);break}case"RUN_QUERY":{let s=this._bindings.runQuery(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT",data:s},[s.buffer]);break}case"SEND_PREPARED":{let s=this._bindings.sendPrepared(e.data[0],e.data[1],e.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_HEADER",data:s},[s.buffer]);break}case"START_PENDING_QUERY":{let s=this._bindings.startPendingQuery(e.data[0],e.data[1]),t=[];s&&t.push(s.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:s},t);break}case"POLL_PENDING_QUERY":{let s=this._bindings.pollPendingQuery(e.data),t=[];s&&t.push(s.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:s},t);break}case"CANCEL_PENDING_QUERY":{let s=this._bindings.cancelPendingQuery(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"SUCCESS",data:s},[]);break}case"FETCH_QUERY_RESULTS":{let s=this._bindings.fetchQueryResults(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_CHUNK",data:s},[s.buffer]);break}case"GET_TABLE_NAMES":{let s=this._bindings.getTableNames(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"TABLE_NAMES",data:s},[]);break}case"GLOB_FILE_INFOS":{let s=this._bindings.globFiles(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_INFOS",data:s},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(e.data[0],e.data[1],e.data[2],e.data[3]),this.sendOK(e);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(e.data[0],e.data[1]),this.sendOK(e);break;case"REGISTER_FILE_HANDLE":this._bindings.registerFileHandle(e.data[0],e.data[1],e.data[2],e.data[3]),this.sendOK(e);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(e.data[0],e.data[1]),this.sendOK(e);break;case"COPY_FILE_TO_BUFFER":{let s=this._bindings.copyFileToBuffer(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_BUFFER",data:s},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(e.data[0],e.data[1]),this.sendOK(e);break;case"EXPORT_FILE_STATISTICS":{this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(e.data)},[]);break}case"INSERT_ARROW_FROM_IPC_STREAM":{this._bindings.insertArrowFromIPCStream(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case"IMPORT_CSV_FROM_PATH":{this._bindings.insertCSVFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case"IMPORT_JSON_FROM_PATH":{this._bindings.insertJSONFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break}case"TOKENIZE":{let s=this._bindings.tokenize(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"SCRIPT_TOKENS",data:s},[]);break}}}catch(s){return console.log(s),this.failWith(e,s)}}};var D=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])),v=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11]));var M=async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]));var G=()=>(async e=>{try{return typeof MessageChannel<"u"&&(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(e)}catch(e){return!1}})(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]));var j={name:"@duckdb/duckdb-wasm",version:"1.28.0",description:"DuckDB powered by WebAssembly",license:"MIT",repository:{type:"git",url:"https://github.com/duckdb/duckdb-wasm.git"},keywords:["sql","duckdb","relational","database","data","query","wasm","analytics","olap","arrow","parquet","json","csv"],dependencies:{"apache-arrow":"^13.0.0"},devDependencies:{"@types/emscripten":"^1.39.8","@types/jasmine":"^4.3.1","@typescript-eslint/eslint-plugin":"^6.5.0","@typescript-eslint/parser":"^6.7.3",esbuild:"^0.19.5",eslint:"^8.50.0","eslint-plugin-jasmine":"^4.1.3","eslint-plugin-react":"^7.33.2","fast-glob":"^3.3.1",jasmine:"^5.1.0","jasmine-core":"^5.1.1","jasmine-spec-reporter":"^7.0.0","js-sha256":"^0.9.0",karma:"^6.4.2","karma-chrome-launcher":"^3.2.0","karma-coverage":"^2.2.1","karma-firefox-launcher":"^2.1.2","karma-jasmine":"^5.1.0","karma-jasmine-html-reporter":"^2.1.0","karma-sourcemap-loader":"^0.4.0","karma-spec-reporter":"^0.0.36","make-dir":"^4.0.0",nyc:"^15.1.0",prettier:"^3.0.2",puppeteer:"^21.1.1",rimraf:"^5.0.5",s3rver:"^3.7.1",typedoc:"^0.25.2",typescript:"^5.2.2","wasm-feature-detect":"^1.5.1","web-worker":"^1.2.0"},scripts:{"build:debug":"node bundle.mjs debug && tsc --emitDeclarationOnly","build:release":"node bundle.mjs release && tsc --emitDeclarationOnly",docs:"typedoc",report:"node ./coverage.mjs","test:node":"node --enable-source-maps ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:debug":"node --inspect-brk --enable-source-maps ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:coverage":"nyc -r json --report-dir ./coverage/node node ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:firefox":"karma start ./karma/tests-firefox.cjs","test:chrome":"karma start ./karma/tests-chrome.cjs","test:chrome:eh":"karma start ./karma/tests-chrome-eh.cjs","test:chrome:coverage":"karma start ./karma/tests-chrome-coverage.cjs","test:browser":"karma start ./karma/tests-all.cjs","test:browser:debug":"karma start ./karma/tests-debug.cjs",test:"npm run test:chrome && npm run test:node","test:coverage":"npm run test:chrome:coverage && npm run test:node:coverage && npm run report",lint:"eslint src test"},files:["dist","!dist/types/test"],main:"dist/duckdb-browser.cjs",module:"dist/duckdb-browser.mjs",types:"dist/duckdb-browser.d.ts",jsdelivr:"dist/duckdb-browser.cjs",unpkg:"dist/duckdb-browser.mjs",sideEffects:!1,browser:{fs:!1,path:!1,perf_hooks:!1,os:!1,worker_threads:!1},exports:{"./dist/duckdb-mvp.wasm":"./dist/duckdb-mvp.wasm","./dist/duckdb-eh.wasm":"./dist/duckdb-eh.wasm","./dist/duckdb-coi.wasm":"./dist/duckdb-coi.wasm","./dist/duckdb-browser":"./dist/duckdb-browser.mjs","./dist/duckdb-browser.cjs":"./dist/duckdb-browser.cjs","./dist/duckdb-browser.mjs":"./dist/duckdb-browser.mjs","./dist/duckdb-browser-blocking":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.mjs":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.cjs":"./dist/duckdb-browser-blocking.cjs","./dist/duckdb-browser-coi.pthread.worker.js":"./dist/duckdb-browser-coi.pthread.worker.js","./dist/duckdb-browser-coi.worker.js":"./dist/duckdb-browser-coi.worker.js","./dist/duckdb-browser-eh.worker.js":"./dist/duckdb-browser-eh.worker.js","./dist/duckdb-browser-mvp.worker.js":"./dist/duckdb-browser-mvp.worker.js","./dist/duckdb-node":"./dist/duckdb-node.cjs","./dist/duckdb-node.cjs":"./dist/duckdb-node.cjs","./dist/duckdb-node-blocking":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-blocking.cjs":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-eh.worker.cjs":"./dist/duckdb-node-eh.worker.cjs","./dist/duckdb-node-mvp.worker.cjs":"./dist/duckdb-node-mvp.worker.cjs","./blocking":{browser:{types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},node:{types:"./dist/duckdb-node-blocking.d.ts",require:"./dist/duckdb-node-blocking.cjs",import:"./dist/duckdb-node-blocking.cjs"},types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},".":{browser:{types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"},node:{types:"./dist/duckdb-node.d.ts",import:"./dist/duckdb-node.cjs",require:"./dist/duckdb-node.cjs"},types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"}}};var q=j.name,B=j.version,Y=j.version.split("."),Q=Y[0],H=Y[1],K=Y[2];var W=()=>typeof navigator>"u",x=()=>W()?"node":navigator.userAgent,V=()=>x().includes("Firefox"),z=()=>/^((?!chrome|android).)*safari/i.test(x());function J(){let e="https://cdn.jsdelivr.net/npm/".concat(q,"@").concat(B,"/dist/");return{mvp:{mainModule:"".concat(e,"duckdb-mvp.wasm"),mainWorker:"".concat(e,"duckdb-browser-mvp.worker.js")},eh:{mainModule:"".concat(e,"duckdb-eh.wasm"),mainWorker:"".concat(e,"duckdb-browser-eh.worker.js")}}}var Z=null,X=null,$=null,ee=null,se=null;async function te(){return Z==null&&(Z=typeof BigInt64Array<"u"),X==null&&(X=await v()),$==null&&($=await G()),ee==null&&(ee=await M()),se==null&&(se=await D()),{bigInt64Array:Z,crossOriginIsolated:W()||globalThis.crossOriginIsolated||!1,wasmExceptions:X,wasmSIMD:ee,wasmThreads:$,wasmBulkMemory:se}}async function ae(e){let s=await te();if(s.wasmExceptions){if(s.wasmSIMD&&s.wasmThreads&&s.crossOriginIsolated&&e.coi)return{mainModule:e.coi.mainModule,mainWorker:e.coi.mainWorker,pthreadWorker:e.coi.pthreadWorker};if(e.eh)return{mainModule:e.eh.mainModule,mainWorker:e.eh.mainWorker,pthreadWorker:null}}return{mainModule:e.mvp.mainModule,mainWorker:e.mvp.mainWorker,pthreadWorker:null}}var re=c(E());async function ne(e){let s=new Request(e),t=await fetch(s),a=URL.createObjectURL(await t.blob());return new re.default(a)}function ie(){let e=new TextDecoder;return s=>(typeof SharedArrayBuffer<"u"&&s.buffer instanceof SharedArrayBuffer&&(s=new Uint8Array(s)),e.decode(s))}ie();var oe=(e=>(e[e.BUFFER=0]="BUFFER",e[e.NODE_FS=1]="NODE_FS",e[e.BROWSER_FILEREADER=2]="BROWSER_FILEREADER",e[e.BROWSER_FSACCESS=3]="BROWSER_FSACCESS",e[e.HTTP=4]="HTTP",e[e.S3=5]="S3",e))(oe||{});export{U as AsyncDuckDB,N as AsyncDuckDBConnection,f as AsyncDuckDBDispatcher,O as AsyncPreparedStatement,k as AsyncResultStreamIterator,I as ConsoleLogger,l as DuckDBAccessMode,oe as DuckDBDataProtocol,R as LogEvent,u as LogLevel,p as LogOrigin,T as LogTopic,q as PACKAGE_NAME,B as PACKAGE_VERSION,Q as PACKAGE_VERSION_MAJOR,H as PACKAGE_VERSION_MINOR,K as PACKAGE_VERSION_PATCH,y as StatusCode,_ as TokenType,h as VoidLogger,w as WorkerRequestType,F as WorkerResponseType,A as WorkerTask,ne as createWorker,J as getJsDelivrBundles,b as getLogEventLabel,m as getLogLevelLabel,g as getLogOriginLabel,S as getLogTopicLabel,te as getPlatformFeatures,V as isFirefox,W as isNode,z as isSafari,ae as selectBundle};export default null; diff --git a/isamples_export_client/ui/_npm/@radiantearth/stac-migrate@1.6.0/_esm.js b/isamples_export_client/ui/_npm/@radiantearth/stac-migrate@1.6.0/_esm.js new file mode 100644 index 0000000..fd9c458 --- /dev/null +++ b/isamples_export_client/ui/_npm/@radiantearth/stac-migrate@1.6.0/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/@radiantearth/stac-migrate@1.6.0/migrate.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +import e from"../../compare-versions@3.6.0/_esm.js";var t=e;const s="1.0.0",i={classification:"https://stac-extensions.github.io/classification/v1.1.0/schema.json",datacube:"https://stac-extensions.github.io/datacube/v2.1.0/schema.json",eo:"https://stac-extensions.github.io/eo/v1.0.0/schema.json",file:"https://stac-extensions.github.io/file/v1.0.0/schema.json","item-assets":"https://stac-extensions.github.io/item-assets/v1.0.0/schema.json",label:"https://stac-extensions.github.io/label/v1.0.1/schema.json",pointcloud:"https://stac-extensions.github.io/pointcloud/v1.0.0/schema.json",processing:"https://stac-extensions.github.io/processing/v1.1.0/schema.json",projection:"https://stac-extensions.github.io/projection/v1.0.0/schema.json",raster:"https://stac-extensions.github.io/raster/v1.1.0/schema.json",sar:"https://stac-extensions.github.io/sar/v1.0.0/schema.json",sat:"https://stac-extensions.github.io/sat/v1.0.0/schema.json",scientific:"https://stac-extensions.github.io/scientific/v1.0.0/schema.json",table:"https://stac-extensions.github.io/table/v1.2.0/schema.json",timestamps:"https://stac-extensions.github.io/timestamps/v1.0.0/schema.json",version:"https://stac-extensions.github.io/version/v1.0.0/schema.json",view:"https://stac-extensions.github.io/view/v1.0.0/schema.json"},r={itemAndCollection:{"cube:":i.datacube,"eo:":i.eo,"file:":i.file,"label:":i.label,"pc:":i.pointcloud,"processing:":i.processing,"proj:":i.projection,"raster:":i.raster,"sar:":i.sar,"sat:":i.sat,"sci:":i.scientific,"view:":i.view,version:i.version,deprecated:i.version,published:i.timestamps,expires:i.timestamps,unpublished:i.timestamps},catalog:{},collection:{item_assets:i["item-assets"]},item:{}};r.collection=Object.assign(r.collection,r.itemAndCollection),r.item=Object.assign(r.item,r.itemAndCollection);var a={parseUrl(e){let t=e.match(/^https?:\/\/stac-extensions.github.io\/([^\/]+)\/v([^\/]+)\/[^.]+.json$/i);if(t)return{id:t[1],version:t[2]}}},n={version:s,extensions:{},set(e){if("string"!=typeof e.stac_version?n.version="0.6.0":n.version=e.stac_version,Array.isArray(e.stac_extensions))for(let t of e.stac_extensions){let e=a.parseUrl(t);e&&(n.extensions[e.id]=e.version)}},before(e,s=null){let i=s?n.extensions[s]:n.version;return void 0!==i&&t.compare(i,e,"<")}},o={type(e){let t=typeof e;if("object"===t){if(null===e)return"null";if(Array.isArray(e))return"array"}return t},is:(e,t)=>o.type(e)===t,isDefined:e=>void 0!==e,isObject:e=>"object"==typeof e&&e===Object(e)&&!Array.isArray(e),rename:(e,t,s)=>void 0!==e[t]&&void 0===e[s]&&(e[s]=e[t],delete e[t],!0),forAll(e,t,s){if(e[t]&&"object"==typeof e[t])for(let i in e[t])s(e[t][i])},toArray:(e,t)=>void 0!==e[t]&&!Array.isArray(e[t])&&(e[t]=[e[t]],!0),flattenArray(e,t,s,i=!1){if(Array.isArray(e[t])){for(let r in e[t])if("string"==typeof s[r]){let a=e[t][r];e[s[r]]=i?[a]:a}return delete e[t],!0}return!1},flattenOneElementArray:(e,t,s=!1)=>!(!s&&Array.isArray(e[t]))||1===e[t].length&&(e[t]=e[t][0],!0),removeFromArray(e,t,s){if(Array.isArray(e[t])){let i=e[t].indexOf(s);return i>-1&&e[t].splice(i,1),!0}return!1},ensure:(e,t,s)=>(o.type(s)!==o.type(e[t])&&(e[t]=s),!0),upgradeExtension(e,s){let{id:i,version:r}=a.parseUrl(s),n=e.stac_extensions.findIndex((e=>{let s=a.parseUrl(e);return s&&s.id===i&&t.compare(s.version,r,"<")}));return-1!==n&&(e.stac_extensions[n]=s,!0)},addExtension(e,s){let{id:i,version:r}=a.parseUrl(s),n=e.stac_extensions.findIndex((e=>{if(e===s)return!0;let n=a.parseUrl(e);return!(!n||n.id!==i||!t.compare(n.version,r,"<"))}));return-1===n?e.stac_extensions.push(s):e.stac_extensions[n]=s,e.stac_extensions.sort(),!0},removeExtension:(e,t)=>o.removeFromArray(e,"stac_extensions",t),migrateExtensionShortnames(e){let t=Object.keys(i),s=Object.values(i);return o.mapValues(e,"stac_extensions",t,s)},populateExtensions(e,t){let s=[];"catalog"!=t&&"collection"!=t||s.push(e),"item"!=t&&"collection"!=t||!o.isObject(e.assets)||(s=s.concat(Object.values(e.assets))),"collection"==t&&o.isObject(e.item_assets)&&(s=s.concat(Object.values(e.item_assets))),"collection"==t&&o.isObject(e.summaries)&&s.push(e.summaries),"item"==t&&o.isObject(e.properties)&&s.push(e.properties);for(let i of s)Object.keys(i).forEach((s=>{let i=s.match(/^(\w+:|[^:]+$)/i);if(Array.isArray(i)){let s=r[t][i[0]];o.is(s,"string")&&o.addExtension(e,s)}}))},mapValues(e,t,s,i){let r=e=>{let t=s.indexOf(e);return t>=0?i[t]:e};return Array.isArray(e[t])?e[t]=e[t].map(r):void 0!==e[t]&&(e[t]=r(e[t])),!0},mapObject(e,t){for(let s in e)e[s]=t(e[s],s)},moveTo(e,t,s,i=!1,r=!1){let a;return a=i?r?e=>Array.isArray(e):e=>Array.isArray(e)&&1===e.length:o.isDefined,!!a(e[t])&&(s[t]=i&&!r?e[t][0]:e[t],delete e[t],!0)},runAll(e,t,s,i){for(let r in e)r.startsWith("migrate")||e[r](t,s,i)},toUTC(e,t){if("string"==typeof e[t])try{return e[t]=this.toISOString(e[t]),!0}catch(e){}return delete e[t],!1},toISOString:e=>(e instanceof Date||(e=new Date(e)),e.toISOString().replace(".000",""))},l={multihash:null,hexToUint8(e){if(0===e.length||e.length%2!=0)throw new Error(`The string "${e}" is not valid hex.`);return new Uint8Array(e.match(/.{1,2}/g).map((e=>parseInt(e,16))))},uint8ToHex:e=>e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),""),toMultihash(e,t,s){if(!l.multihash||!o.is(e[t],"string"))return!1;try{const i=l.multihash.encode(l.hexToUint8(e[t]),s);return e[t]=l.uint8ToHex(i),!0}catch(e){return console.warn(e),!1}}},c={migrate:(e,t=!0)=>(n.set(e),t&&(e.stac_version=s),e.type="Catalog",o.ensure(e,"stac_extensions",[]),n.before("1.0.0-rc.1")&&o.migrateExtensionShortnames(e),o.ensure(e,"id",""),o.ensure(e,"description",""),o.ensure(e,"links",[]),o.runAll(c,e,e),n.before("0.8.0")&&o.populateExtensions(e,"catalog"),e)},m={migrate:(e,t=!0)=>(c.migrate(e,t),e.type="Collection",n.before("1.0.0-rc.1")&&o.migrateExtensionShortnames(e),o.ensure(e,"license","proprietary"),o.ensure(e,"extent",{spatial:{bbox:[]},temporal:{interval:[]}}),o.runAll(m,e,e),o.isObject(e.properties)&&(o.removeFromArray(e,"stac_extensions","commons"),delete e.properties),n.before("0.8.0")&&o.populateExtensions(e,"collection"),n.before("1.0.0-beta.1")&&o.mapValues(e,"stac_extensions",["assets"],["item-assets"]),e),extent(e){if(o.ensure(e,"extent",{}),n.before("0.8.0")&&(Array.isArray(e.extent.spatial)&&(e.extent.spatial={bbox:[e.extent.spatial]}),Array.isArray(e.extent.temporal)&&(e.extent.temporal={interval:[e.extent.temporal]})),o.ensure(e.extent,"spatial",{}),o.ensure(e.extent.spatial,"bbox",[]),o.ensure(e.extent,"temporal",{}),o.ensure(e.extent.temporal,"interval",[]),n.before("1.0.0-rc.3")){if(e.extent.temporal.interval.length>1){let t,s;for(let i of e.extent.temporal.interval){if(null===i[0])t=null;else if("string"==typeof i[0]&&null!==t)try{let e=new Date(i[0]);(void 0===t||es)&&(s=e)}catch(e){}}e.extent.temporal.interval.unshift([t?o.toISOString(t):null,s?o.toISOString(s):null])}if(e.extent.spatial.bbox.length>1){let t=e.extent.spatial.bbox.reduce(((e,t)=>Array.isArray(t)?Math.max(t.length,e):e),4);if(t>=4){let s=new Array(t).fill(null),i=t/2;for(let t of e.extent.spatial.bbox){if(!Array.isArray(t)||t.length<4)break;for(let e in t){let r=t[e];null===s[e]?s[e]=r:s[e]=enull===e))&&e.extent.spatial.bbox.unshift(s)}}}},collectionAssets(e){n.before("1.0.0-rc.1")&&o.removeExtension(e,"collection-assets"),d.migrateAll(e)},itemAsset(e){n.before("1.0.0-beta.2")&&o.rename(e,"item_assets","assets"),d.migrateAll(e,"item_assets")},summaries(e){if(o.ensure(e,"summaries",{}),n.before("0.8.0")&&o.isObject(e.other_properties)){for(let t in e.other_properties){let s=e.other_properties[t];Array.isArray(s.extent)&&2===s.extent.length?e.summaries[t]={minimum:s.extent[0],maximum:s.extent[1]}:Array.isArray(s.values)&&(s.values.filter((e=>Array.isArray(e))).length===s.values.length?e.summaries[t]=s.values.reduce(((e,t)=>e.concat(t)),[]):e.summaries[t]=s.values)}delete e.other_properties}if(n.before("1.0.0-beta.1")&&o.isObject(e.properties)&&!e.links.find((e=>["child","item"].includes(e.rel))))for(let t in e.properties){let s=e.properties[t];Array.isArray(s)||(s=[s]),e.summaries[t]=s}n.before("1.0.0-rc.1")&&o.mapObject(e.summaries,(e=>(o.rename(e,"min","minimum"),o.rename(e,"max","maximum"),e))),f.migrate(e.summaries,e,!0),o.moveTo(e.summaries,"sci:doi",e,!0)&&o.addExtension(e,i.scientific),o.moveTo(e.summaries,"sci:publications",e,!0,!0)&&o.addExtension(e,i.scientific),o.moveTo(e.summaries,"sci:citation",e,!0)&&o.addExtension(e,i.scientific),o.moveTo(e.summaries,"cube:dimensions",e,!0)&&o.addExtension(e,i.datacube),0===Object.keys(e.summaries).length&&delete e.summaries}},u={migrate(e,t=null,i=!0){n.set(e),i&&(e.stac_version=s),o.ensure(e,"stac_extensions",[]),n.before("1.0.0-rc.1")&&o.migrateExtensionShortnames(e),o.ensure(e,"id",""),o.ensure(e,"type","Feature"),o.isObject(e.geometry)||(e.geometry=null),null!==e.geometry&&o.ensure(e,"bbox",[]),o.ensure(e,"properties",{}),o.ensure(e,"links",[]),o.ensure(e,"assets",{});let r=!1;return o.isObject(t)&&o.isObject(t.properties)&&(o.removeFromArray(e,"stac_extensions","commons"),e.properties=Object.assign({},t.properties,e.properties),r=!0),o.runAll(u,e,e),f.migrate(e.properties,e),d.migrateAll(e),(n.before("0.8.0")||r)&&o.populateExtensions(e,"item"),e}},p={migrate:(e,t=!0)=>(o.ensure(e,"collections",[]),o.ensure(e,"links",[]),o.runAll(p,e,e),e.collections=e.collections.map((e=>m.migrate(e,t))),e)},h={migrate:(e,t=!0)=>(o.ensure(e,"type","FeatureCollection"),o.ensure(e,"features",[]),o.ensure(e,"links",[]),o.runAll(h,e,e),e.features=e.features.map((e=>u.migrate(e,null,t))),e)},d={migrateAll(e,t="assets"){for(let s in e[t])d.migrate(e[t][s],e)},migrate:(e,t)=>(o.runAll(d,e,t),f.migrate(e,t),e),mediaTypes(e){o.is(e.type,"string")&&o.mapValues(e,"type",["image/vnd.stac.geotiff","image/vnd.stac.geotiff; cloud-optimized=true"],["image/tiff; application=geotiff","image/tiff; application=geotiff; profile=cloud-optimized"])},eo(e,t){let s=o.isObject(t.properties)&&Array.isArray(t.properties["eo:bands"])?t.properties["eo:bands"]:[];if(Array.isArray(e["eo:bands"]))for(let t in e["eo:bands"]){let i=e["eo:bands"][t];o.is(i,"number")&&o.isObject(s[i])?i=s[i]:o.isObject(i)||(i={}),e["eo:bands"][t]=i}}},f={migrate:(e,t,s=!1)=>(o.runAll(f,e,t,s),e),_commonMetadata(e){n.before("1.0.0-rc.3")&&(o.toUTC(e,"created"),o.toUTC(e,"updated"))},_timestamps(e,t){o.toUTC(e,"published"),o.toUTC(e,"expires"),o.toUTC(e,"unpublished"),o.upgradeExtension(t,i.timestamps)},_versioningIndicator(e,t){o.upgradeExtension(t,i.version)},checksum(e,t){n.before("0.9.0")&&l.multihash&&(o.rename(e,"checksum:md5","checksum:multihash")&&l.toMultihash(e,"checksum:multihash","md5"),o.rename(e,"checksum:sha1","checksum:multihash")&&l.toMultihash(e,"checksum:multihash","sha1"),o.rename(e,"checksum:sha2","checksum:multihash")&&l.toMultihash(e,"checksum:multihash","sha2-256"),o.rename(e,"checksum:sha3","checksum:multihash")&&l.toMultihash(e,"checksum:multihash","sha3-256")),n.before("1.0.0-rc.1")&&o.rename(e,"checksum:multihash","file:checksum")&&o.addExtension(t,i.file),o.removeExtension(t,"checksum")},classification(e,t){n.before("1.1.0","classification")&&o.forAll(e,"classification:classes",(e=>o.rename(e,"color-hint","color_hint"))),o.upgradeExtension(t,i.classification)},cube(e,t){o.upgradeExtension(t,i.datacube)},dtr(e,t){n.before("0.9.0")&&(o.rename(e,"dtr:start_datetime","start_datetime"),o.rename(e,"dtr:end_datetime","end_datetime"),o.removeExtension(t,"datetime-range"))},eo(e,t){n.before("0.9.0")&&(o.rename(e,"eo:epsg","proj:epsg")&&o.addExtension(t,i.projection),o.rename(e,"eo:platform","platform"),o.rename(e,"eo:instrument","instruments")&&o.toArray(e,"instruments"),o.rename(e,"eo:constellation","constellation"),o.rename(e,"eo:off_nadir","view:off_nadir")&&o.addExtension(t,i.view),o.rename(e,"eo:azimuth","view:azimuth")&&o.addExtension(t,i.view),o.rename(e,"eo:incidence_angle","view:incidence_angle")&&o.addExtension(t,i.view),o.rename(e,"eo:sun_azimuth","view:sun_azimuth")&&o.addExtension(t,i.view),o.rename(e,"eo:sun_elevation","view:sun_elevation")&&o.addExtension(t,i.view)),n.before("1.0.0-beta.1")&&o.rename(e,"eo:gsd","gsd"),o.upgradeExtension(t,i.eo)},file(e,t){o.upgradeExtension(t,i.file)},label(e,t){n.before("0.8.0")&&(o.rename(e,"label:property","label:properties"),o.rename(e,"label:task","label:tasks"),o.rename(e,"label:overview","label:overviews")&&o.toArray(e,"label:overviews"),o.rename(e,"label:method","label:methods"),o.toArray(e,"label:classes")),o.upgradeExtension(t,i.label)},pc(e,t){n.before("0.8.0")&&o.rename(e,"pc:schema","pc:schemas"),o.upgradeExtension(t,i.pointcloud)},processing(e,t){o.upgradeExtension(t,i.processing)},proj(e,t){o.upgradeExtension(t,i.projection)},raster(e,t){o.upgradeExtension(t,i.raster)},sar(e,t,s){o.rename(e,"sar:incidence_angle","view:incidence_angle")&&o.addExtension(t,i.view),o.rename(e,"sar:pass_direction","sat:orbit_state")&&o.mapValues(e,"sat:orbit_state",[null],["geostationary"])&&o.addExtension(t,i.sat),n.before("0.7.0")&&(o.flattenArray(e,"sar:resolution",["sar:resolution_range","sar:resolution_azimuth"],s),o.flattenArray(e,"sar:pixel_spacing",["sar:pixel_spacing_range","sar:pixel_spacing_azimuth"],s),o.flattenArray(e,"sar:looks",["sar:looks_range","sar:looks_azimuth","sar:looks_equivalent_number"],s),o.rename(e,"sar:off_nadir","view:off_nadir")&&o.addExtension(t,i.view)),n.before("0.9.0")&&(o.rename(e,"sar:platform","platform"),o.rename(e,"sar:instrument","instruments")&&o.toArray(e,"instruments"),o.rename(e,"sar:constellation","constellation"),o.rename(e,"sar:type","sar:product_type"),o.rename(e,"sar:polarization","sar:polarizations"),o.flattenOneElementArray(e,"sar:absolute_orbit",s)&&o.rename(e,"sar:absolute_orbit","sat:absolute_orbit")&&o.addExtension(t,i.sat),o.flattenOneElementArray(e,"sar:relative_orbit",s)&&o.rename(e,"sar:relative_orbit","sat:relative_orbit")&&o.addExtension(t,i.sat)),o.upgradeExtension(t,i.sar)},sat(e,t){n.before("0.9.0")&&(o.rename(e,"sat:off_nadir_angle","sat:off_nadir"),o.rename(e,"sat:azimuth_angle","sat:azimuth"),o.rename(e,"sat:sun_azimuth_angle","sat:sun_azimuth"),o.rename(e,"sat:sun_elevation_angle","sat:sun_elevation")),o.upgradeExtension(t,i.sat)},sci(e,t){o.upgradeExtension(t,i.scientific)},item(e){n.before("0.8.0")&&(o.rename(e,"item:license","license"),o.rename(e,"item:providers","providers"))},table(e,t){o.upgradeExtension(t,i.table)},view(e,t){o.upgradeExtension(t,i.view)}},b={item:(e,t=null,s=!0)=>u.migrate(e,t,s),catalog:(e,t=!0)=>c.migrate(e,t),collection:(e,t=!0)=>m.migrate(e,t),collectionCollection:(e,t=!0)=>p.migrate(e,t),itemCollection:(e,t=!0)=>h.migrate(e,t),stac:(e,t=!0)=>"Feature"===e.type?b.item(e,null,t):"FeatureCollection"===e.type?b.itemCollection(e,t):"Collection"===e.type||!e.type&&o.isDefined(e.extent)&&o.isDefined(e.license)?b.collection(e,t):!e.type&&Array.isArray(e.collections)?b.collectionCollection(e,t):b.catalog(e,t),enableMultihash(e){l.multihash=e}},g=b,x=g.catalog,v=g.collection,y=g.collectionCollection,A=g.enableMultihash,_=g.item,j=g.itemCollection,E=g.stac;export{x as catalog,v as collection,y as collectionCollection,g as default,A as enableMultihash,_ as item,j as itemCollection,E as stac}; diff --git a/isamples_export_client/ui/_npm/@streamparser/json@0.0.21/_esm.js b/isamples_export_client/ui/_npm/@streamparser/json@0.0.21/_esm.js new file mode 100644 index 0000000..00d440d --- /dev/null +++ b/isamples_export_client/ui/_npm/@streamparser/json@0.0.21/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/@streamparser/json@0.0.21/dist/mjs/index.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +var t;!function(t){t[t.BACKSPACE=8]="BACKSPACE",t[t.FORM_FEED=12]="FORM_FEED",t[t.NEWLINE=10]="NEWLINE",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.TAB=9]="TAB",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.NUMBER_SIGN=35]="NUMBER_SIGN",t[t.DOLLAR_SIGN=36]="DOLLAR_SIGN",t[t.PERCENT_SIGN=37]="PERCENT_SIGN",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",t[t.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",t[t.ASTERISK=42]="ASTERISK",t[t.PLUS_SIGN=43]="PLUS_SIGN",t[t.COMMA=44]="COMMA",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.FULL_STOP=46]="FULL_STOP",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_ZERO=48]="DIGIT_ZERO",t[t.DIGIT_ONE=49]="DIGIT_ONE",t[t.DIGIT_TWO=50]="DIGIT_TWO",t[t.DIGIT_THREE=51]="DIGIT_THREE",t[t.DIGIT_FOUR=52]="DIGIT_FOUR",t[t.DIGIT_FIVE=53]="DIGIT_FIVE",t[t.DIGIT_SIX=54]="DIGIT_SIX",t[t.DIGIT_SEVEN=55]="DIGIT_SEVEN",t[t.DIGIT_EIGHT=56]="DIGIT_EIGHT",t[t.DIGIT_NINE=57]="DIGIT_NINE",t[t.COLON=58]="COLON",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.COMMERCIAL_AT=64]="COMMERCIAL_AT",t[t.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",t[t.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",t[t.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",t[t.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",t[t.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",t[t.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",t[t.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",t[t.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",t[t.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",t[t.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",t[t.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",t[t.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",t[t.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",t[t.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",t[t.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",t[t.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",t[t.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",t[t.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",t[t.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",t[t.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",t[t.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",t[t.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",t[t.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",t[t.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",t[t.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",t[t.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",t[t.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",t[t.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",t[t.LOW_LINE=95]="LOW_LINE",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",t[t.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",t[t.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",t[t.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",t[t.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",t[t.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",t[t.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",t[t.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",t[t.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",t[t.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",t[t.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",t[t.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",t[t.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",t[t.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",t[t.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",t[t.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",t[t.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",t[t.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",t[t.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",t[t.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",t[t.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",t[t.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",t[t.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",t[t.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",t[t.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",t[t.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",t[t.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",t[t.VERTICAL_LINE=124]="VERTICAL_LINE",t[t.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",t[t.TILDE=126]="TILDE"}(t||(t={}));const e={[t.QUOTATION_MARK]:t.QUOTATION_MARK,[t.REVERSE_SOLIDUS]:t.REVERSE_SOLIDUS,[t.SOLIDUS]:t.SOLIDUS,[t.LATIN_SMALL_LETTER_B]:t.BACKSPACE,[t.LATIN_SMALL_LETTER_F]:t.FORM_FEED,[t.LATIN_SMALL_LETTER_N]:t.NEWLINE,[t.LATIN_SMALL_LETTER_R]:t.CARRIAGE_RETURN,[t.LATIN_SMALL_LETTER_T]:t.TAB};var T,s=Object.freeze({__proto__:null,get charset(){return t},escapedSequences:e});class _{constructor(){this.decoder=new TextDecoder("utf-8"),this.strings=[],this.byteLength=0}appendChar(t){this.strings.push(String.fromCharCode(t)),this.byteLength+=1}appendBuf(t,e=0,T=t.length){this.strings.push(this.decoder.decode(t.subarray(e,T))),this.byteLength+=T-e}reset(){this.strings=[],this.byteLength=0}toString(){return this.strings.join("")}}class E{constructor(t){this.decoder=new TextDecoder("utf-8"),this.bufferOffset=0,this.string="",this.byteLength=0,this.buffer=new Uint8Array(t)}appendChar(t){this.bufferOffset>=this.buffer.length&&this.flushStringBuffer(),this.buffer[this.bufferOffset++]=t,this.byteLength+=1}appendBuf(t,e=0,T=t.length){const s=T-e;this.bufferOffset+s>this.buffer.length&&this.flushStringBuffer(),this.buffer.set(t.subarray(e,T),this.bufferOffset),this.bufferOffset+=s,this.byteLength+=s}flushStringBuffer(){this.string+=this.decoder.decode(this.buffer.subarray(0,this.bufferOffset)),this.bufferOffset=0}reset(){this.string="",this.bufferOffset=0,this.byteLength=0}toString(){return this.flushStringBuffer(),this.string}}!function(t){t[t.LEFT_BRACE=0]="LEFT_BRACE",t[t.RIGHT_BRACE=1]="RIGHT_BRACE",t[t.LEFT_BRACKET=2]="LEFT_BRACKET",t[t.RIGHT_BRACKET=3]="RIGHT_BRACKET",t[t.COLON=4]="COLON",t[t.COMMA=5]="COMMA",t[t.TRUE=6]="TRUE",t[t.FALSE=7]="FALSE",t[t.NULL=8]="NULL",t[t.STRING=9]="STRING",t[t.NUMBER=10]="NUMBER",t[t.SEPARATOR=11]="SEPARATOR"}(T||(T={}));var i,L=T;function A(t){return["START","ENDED","ERROR","TRUE1","TRUE2","TRUE3","FALSE1","FALSE2","FALSE3","FALSE4","NULL1","NULL2","NULL3","STRING_DEFAULT","STRING_AFTER_BACKSLASH","STRING_UNICODE_DIGIT_1","STRING_UNICODE_DIGIT_2","STRING_UNICODE_DIGIT_3","STRING_UNICODE_DIGIT_4","STRING_INCOMPLETE_CHAR","NUMBER_AFTER_INITIAL_MINUS","NUMBER_AFTER_INITIAL_ZERO","NUMBER_AFTER_INITIAL_NON_ZERO","NUMBER_AFTER_FULL_STOP","NUMBER_AFTER_DECIMAL","NUMBER_AFTER_E","NUMBER_AFTER_E_AND_SIGN","NUMBER_AFTER_E_AND_DIGIT","SEPARATOR","BOM_OR_START","BOM"][t]}!function(t){t[t.START=0]="START",t[t.ENDED=1]="ENDED",t[t.ERROR=2]="ERROR",t[t.TRUE1=3]="TRUE1",t[t.TRUE2=4]="TRUE2",t[t.TRUE3=5]="TRUE3",t[t.FALSE1=6]="FALSE1",t[t.FALSE2=7]="FALSE2",t[t.FALSE3=8]="FALSE3",t[t.FALSE4=9]="FALSE4",t[t.NULL1=10]="NULL1",t[t.NULL2=11]="NULL2",t[t.NULL3=12]="NULL3",t[t.STRING_DEFAULT=13]="STRING_DEFAULT",t[t.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",t[t.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",t[t.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",t[t.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",t[t.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",t[t.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",t[t.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",t[t.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",t[t.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",t[t.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",t[t.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",t[t.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",t[t.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",t[t.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",t[t.SEPARATOR=28]="SEPARATOR",t[t.BOM_OR_START=29]="BOM_OR_START",t[t.BOM=30]="BOM"}(i||(i={}));const R={stringBufferSize:0,numberBufferSize:0,separator:void 0,emitPartialTokens:!1};class r extends Error{constructor(t){super(t),Object.setPrototypeOf(this,r.prototype)}}class I{constructor(t){this.state=i.BOM_OR_START,this.bomIndex=0,this.separatorIndex=0,this.bytes_remaining=0,this.bytes_in_sequence=0,this.char_split_buffer=new Uint8Array(4),this.encoder=new TextEncoder,this.offset=-1,t=Object.assign(Object.assign({},R),t),this.emitPartialTokens=!0===t.emitPartialTokens,this.bufferedString=t.stringBufferSize&&t.stringBufferSize>4?new E(t.stringBufferSize):new _,this.bufferedNumber=t.numberBufferSize&&t.numberBufferSize>0?new E(t.numberBufferSize):new _,this.separator=t.separator,this.separatorBytes=t.separator?this.encoder.encode(t.separator):void 0}get isEnded(){return this.state===i.ENDED}write(T){try{let s;if(T instanceof Uint8Array)s=T;else if("string"==typeof T)s=this.encoder.encode(T);else if(Array.isArray(T))s=Uint8Array.from(T);else{if(!ArrayBuffer.isView(T))throw new TypeError("Unexpected type. The `write` function only accepts Arrays, TypedArrays and Strings.");s=new Uint8Array(T.buffer,T.byteOffset,T.byteLength)}for(let _=0;_=t.DIGIT_ONE&&E<=t.DIGIT_NINE){this.bufferedNumber.reset(),this.bufferedNumber.appendChar(E),this.state=i.NUMBER_AFTER_INITIAL_NON_ZERO;continue}if(E===t.DIGIT_ZERO){this.bufferedNumber.reset(),this.bufferedNumber.appendChar(E),this.state=i.NUMBER_AFTER_INITIAL_ZERO;continue}if(E===t.HYPHEN_MINUS){this.bufferedNumber.reset(),this.bufferedNumber.appendChar(E),this.state=i.NUMBER_AFTER_INITIAL_MINUS;continue}break;case i.STRING_DEFAULT:if(E===t.QUOTATION_MARK){const t=this.bufferedString.toString();this.state=i.START,this.onToken({token:L.STRING,value:t,offset:this.offset}),this.offset+=this.bufferedString.byteLength+1;continue}if(E===t.REVERSE_SOLIDUS){this.state=i.STRING_AFTER_BACKSLASH;continue}if(E>=128){if(this.bytes_in_sequence=E>=194&&E<=223?2:E<=239?3:4,this.bytes_in_sequence<=s.length-_){this.bufferedString.appendBuf(s,_,_+this.bytes_in_sequence),_+=this.bytes_in_sequence-1;continue}this.bytes_remaining=_+this.bytes_in_sequence-s.length,this.char_split_buffer.set(s.subarray(_)),_=s.length-1,this.state=i.STRING_INCOMPLETE_CHAR;continue}if(E>=t.SPACE){this.bufferedString.appendChar(E);continue}break;case i.STRING_INCOMPLETE_CHAR:this.char_split_buffer.set(s.subarray(_,_+this.bytes_remaining),this.bytes_in_sequence-this.bytes_remaining),this.bufferedString.appendBuf(this.char_split_buffer,0,this.bytes_in_sequence),_=this.bytes_remaining-1,this.state=i.STRING_DEFAULT;continue;case i.STRING_AFTER_BACKSLASH:const A=e[E];if(A){this.bufferedString.appendChar(A),this.state=i.STRING_DEFAULT;continue}if(E===t.LATIN_SMALL_LETTER_U){this.unicode="",this.state=i.STRING_UNICODE_DIGIT_1;continue}break;case i.STRING_UNICODE_DIGIT_1:case i.STRING_UNICODE_DIGIT_2:case i.STRING_UNICODE_DIGIT_3:if(E>=t.DIGIT_ZERO&&E<=t.DIGIT_NINE||E>=t.LATIN_CAPITAL_LETTER_A&&E<=t.LATIN_CAPITAL_LETTER_F||E>=t.LATIN_SMALL_LETTER_A&&E<=t.LATIN_SMALL_LETTER_F){this.unicode+=String.fromCharCode(E),this.state+=1;continue}break;case i.STRING_UNICODE_DIGIT_4:if(E>=t.DIGIT_ZERO&&E<=t.DIGIT_NINE||E>=t.LATIN_CAPITAL_LETTER_A&&E<=t.LATIN_CAPITAL_LETTER_F||E>=t.LATIN_SMALL_LETTER_A&&E<=t.LATIN_SMALL_LETTER_F){const t=parseInt(this.unicode+String.fromCharCode(E),16);void 0===this.highSurrogate?t>=55296&&t<=56319?this.highSurrogate=t:this.bufferedString.appendBuf(this.encoder.encode(String.fromCharCode(t))):(t>=56320&&t<=57343?this.bufferedString.appendBuf(this.encoder.encode(String.fromCharCode(this.highSurrogate,t))):this.bufferedString.appendBuf(this.encoder.encode(String.fromCharCode(this.highSurrogate))),this.highSurrogate=void 0),this.state=i.STRING_DEFAULT;continue}break;case i.NUMBER_AFTER_INITIAL_MINUS:if(E===t.DIGIT_ZERO){this.bufferedNumber.appendChar(E),this.state=i.NUMBER_AFTER_INITIAL_ZERO;continue}if(E>=t.DIGIT_ONE&&E<=t.DIGIT_NINE){this.bufferedNumber.appendChar(E),this.state=i.NUMBER_AFTER_INITIAL_NON_ZERO;continue}break;case i.NUMBER_AFTER_INITIAL_ZERO:if(E===t.FULL_STOP){this.bufferedNumber.appendChar(E),this.state=i.NUMBER_AFTER_FULL_STOP;continue}if(E===t.LATIN_SMALL_LETTER_E||E===t.LATIN_CAPITAL_LETTER_E){this.bufferedNumber.appendChar(E),this.state=i.NUMBER_AFTER_E;continue}_-=1,this.state=i.START,this.emitNumber();continue;case i.NUMBER_AFTER_INITIAL_NON_ZERO:if(E>=t.DIGIT_ZERO&&E<=t.DIGIT_NINE){this.bufferedNumber.appendChar(E);continue}if(E===t.FULL_STOP){this.bufferedNumber.appendChar(E),this.state=i.NUMBER_AFTER_FULL_STOP;continue}if(E===t.LATIN_SMALL_LETTER_E||E===t.LATIN_CAPITAL_LETTER_E){this.bufferedNumber.appendChar(E),this.state=i.NUMBER_AFTER_E;continue}_-=1,this.state=i.START,this.emitNumber();continue;case i.NUMBER_AFTER_FULL_STOP:if(E>=t.DIGIT_ZERO&&E<=t.DIGIT_NINE){this.bufferedNumber.appendChar(E),this.state=i.NUMBER_AFTER_DECIMAL;continue}break;case i.NUMBER_AFTER_DECIMAL:if(E>=t.DIGIT_ZERO&&E<=t.DIGIT_NINE){this.bufferedNumber.appendChar(E);continue}if(E===t.LATIN_SMALL_LETTER_E||E===t.LATIN_CAPITAL_LETTER_E){this.bufferedNumber.appendChar(E),this.state=i.NUMBER_AFTER_E;continue}_-=1,this.state=i.START,this.emitNumber();continue;case i.NUMBER_AFTER_E:if(E===t.PLUS_SIGN||E===t.HYPHEN_MINUS){this.bufferedNumber.appendChar(E),this.state=i.NUMBER_AFTER_E_AND_SIGN;continue}case i.NUMBER_AFTER_E_AND_SIGN:if(E>=t.DIGIT_ZERO&&E<=t.DIGIT_NINE){this.bufferedNumber.appendChar(E),this.state=i.NUMBER_AFTER_E_AND_DIGIT;continue}break;case i.NUMBER_AFTER_E_AND_DIGIT:if(E>=t.DIGIT_ZERO&&E<=t.DIGIT_NINE){this.bufferedNumber.appendChar(E);continue}_-=1,this.state=i.START,this.emitNumber();continue;case i.TRUE1:if(E===t.LATIN_SMALL_LETTER_R){this.state=i.TRUE2;continue}break;case i.TRUE2:if(E===t.LATIN_SMALL_LETTER_U){this.state=i.TRUE3;continue}break;case i.TRUE3:if(E===t.LATIN_SMALL_LETTER_E){this.state=i.START,this.onToken({token:L.TRUE,value:!0,offset:this.offset}),this.offset+=3;continue}break;case i.FALSE1:if(E===t.LATIN_SMALL_LETTER_A){this.state=i.FALSE2;continue}break;case i.FALSE2:if(E===t.LATIN_SMALL_LETTER_L){this.state=i.FALSE3;continue}break;case i.FALSE3:if(E===t.LATIN_SMALL_LETTER_S){this.state=i.FALSE4;continue}break;case i.FALSE4:if(E===t.LATIN_SMALL_LETTER_E){this.state=i.START,this.onToken({token:L.FALSE,value:!1,offset:this.offset}),this.offset+=4;continue}break;case i.NULL1:if(E===t.LATIN_SMALL_LETTER_U){this.state=i.NULL2;continue}break;case i.NULL2:if(E===t.LATIN_SMALL_LETTER_L){this.state=i.NULL3;continue}break;case i.NULL3:if(E===t.LATIN_SMALL_LETTER_L){this.state=i.START,this.onToken({token:L.NULL,value:null,offset:this.offset}),this.offset+=3;continue}break;case i.SEPARATOR:if(this.separatorIndex+=1,!this.separatorBytes||E!==this.separatorBytes[this.separatorIndex])break;this.separatorIndex===this.separatorBytes.length-1&&(this.state=i.START,this.onToken({token:L.SEPARATOR,value:this.separator,offset:this.offset+this.separatorIndex}),this.separatorIndex=0);continue;case i.BOM:if(E===this.bom[this.bomIndex]){if(this.bomIndex===this.bom.length-1){this.state=i.START,this.bom=void 0,this.bomIndex=0;continue}this.bomIndex+=1;continue}break;case i.ENDED:if(E===t.SPACE||E===t.NEWLINE||E===t.CARRIAGE_RETURN||E===t.TAB)continue}throw new r(`Unexpected "${String.fromCharCode(E)}" at position "${_}" in state ${A(this.state)}`)}if(this.emitPartialTokens)switch(this.state){case i.TRUE1:case i.TRUE2:case i.TRUE3:this.onToken({token:L.TRUE,value:!0,offset:this.offset,partial:!0});break;case i.FALSE1:case i.FALSE2:case i.FALSE3:case i.FALSE4:this.onToken({token:L.FALSE,value:!1,offset:this.offset,partial:!0});break;case i.NULL1:case i.NULL2:case i.NULL3:this.onToken({token:L.NULL,value:null,offset:this.offset,partial:!0});break;case i.STRING_DEFAULT:{const t=this.bufferedString.toString();this.onToken({token:L.STRING,value:t,offset:this.offset,partial:!0});break}case i.NUMBER_AFTER_INITIAL_ZERO:case i.NUMBER_AFTER_INITIAL_NON_ZERO:case i.NUMBER_AFTER_DECIMAL:case i.NUMBER_AFTER_E_AND_DIGIT:try{this.onToken({token:L.NUMBER,value:this.parseNumber(this.bufferedNumber.toString()),offset:this.offset,partial:!0})}catch(t){}}}catch(t){this.error(t)}}emitNumber(){this.onToken({token:L.NUMBER,value:this.parseNumber(this.bufferedNumber.toString()),offset:this.offset}),this.offset+=this.bufferedNumber.byteLength-1}parseNumber(t){return Number(t)}error(t){this.state!==i.ENDED&&(this.state=i.ERROR),this.onError(t)}end(){switch(this.state){case i.NUMBER_AFTER_INITIAL_ZERO:case i.NUMBER_AFTER_INITIAL_NON_ZERO:case i.NUMBER_AFTER_DECIMAL:case i.NUMBER_AFTER_E_AND_DIGIT:this.state=i.ENDED,this.emitNumber(),this.onEnd();break;case i.BOM_OR_START:case i.START:case i.ERROR:case i.SEPARATOR:this.state=i.ENDED,this.onEnd();break;default:this.error(new r(`Tokenizer ended in the middle of a token (state: ${A(this.state)}). Either not all the data was received or the data was invalid.`))}}onToken(t){throw new r('Can\'t emit tokens before the "onToken" callback has been set up.')}onError(t){throw t}onEnd(){}}var n,h;function a(t){return["VALUE","KEY","COLON","COMMA","ENDED","ERROR","SEPARATOR"][t]}!function(t){t[t.OBJECT=0]="OBJECT",t[t.ARRAY=1]="ARRAY"}(n||(n={})),function(t){t[t.VALUE=0]="VALUE",t[t.KEY=1]="KEY",t[t.COLON=2]="COLON",t[t.COMMA=3]="COMMA",t[t.ENDED=4]="ENDED",t[t.ERROR=5]="ERROR",t[t.SEPARATOR=6]="SEPARATOR"}(h||(h={}));const N={paths:void 0,keepStack:!0,separator:void 0,emitPartialValues:!1};class o extends Error{constructor(t){super(t),Object.setPrototypeOf(this,o.prototype)}}class f{constructor(t){this.state=h.VALUE,this.mode=void 0,this.key=void 0,this.value=void 0,this.stack=[],(t=Object.assign(Object.assign({},N),t)).paths&&(this.paths=t.paths.map((t=>{if(void 0===t||"$*"===t)return;if(!t.startsWith("$"))throw new o(`Invalid selector "${t}". Should start with "$".`);const e=t.split(".").slice(1);if(e.includes(""))throw new o(`Invalid selector "${t}". ".." syntax not supported.`);return e}))),this.keepStack=t.keepStack||!1,this.separator=t.separator,t.emitPartialValues||(this.emitPartial=()=>{})}shouldEmit(){return!this.paths||this.paths.some((t=>{var e;if(void 0===t)return!0;if(t.length!==this.stack.length)return!1;for(let e=0;e!t.emit))&&delete this.value[this.key],e&&this.onValue({value:t,key:this.key,parent:this.value,stack:this.stack}),0===this.stack.length&&(this.separator?this.state=h.SEPARATOR:void 0===this.separator&&this.end())}emitPartial(t){this.shouldEmit()&&(this.state!==h.KEY?this.onValue({value:t,key:this.key,parent:this.value,stack:this.stack,partial:!0}):this.onValue({value:void 0,key:t,parent:this.value,stack:this.stack,partial:!0}))}get isEnded(){return this.state===h.ENDED}write({token:e,value:T,partial:s}){try{if(s)return void this.emitPartial(T);if(this.state===h.VALUE){if(e===L.STRING||e===L.NUMBER||e===L.TRUE||e===L.FALSE||e===L.NULL)return this.mode===n.OBJECT?(this.value[this.key]=T,this.state=h.COMMA):this.mode===n.ARRAY&&(this.value.push(T),this.state=h.COMMA),void this.emit(T,this.shouldEmit());if(e===L.LEFT_BRACE){if(this.push(),this.mode===n.OBJECT)this.value=this.value[this.key]={};else if(this.mode===n.ARRAY){const t={};this.value.push(t),this.value=t}else this.value={};return this.mode=n.OBJECT,this.state=h.KEY,this.key=void 0,void this.emitPartial()}if(e===L.LEFT_BRACKET){if(this.push(),this.mode===n.OBJECT)this.value=this.value[this.key]=[];else if(this.mode===n.ARRAY){const t=[];this.value.push(t),this.value=t}else this.value=[];return this.mode=n.ARRAY,this.state=h.VALUE,this.key=0,void this.emitPartial()}if(this.mode===n.ARRAY&&e===L.RIGHT_BRACKET&&0===this.value.length)return void this.pop()}if(this.state===h.KEY){if(e===L.STRING)return this.key=T,this.state=h.COLON,void this.emitPartial();if(e===L.RIGHT_BRACE&&0===Object.keys(this.value).length)return void this.pop()}if(this.state===h.COLON&&e===L.COLON)return void(this.state=h.VALUE);if(this.state===h.COMMA){if(e===L.COMMA){if(this.mode===n.ARRAY)return this.state=h.VALUE,void(this.key+=1);if(this.mode===n.OBJECT)return void(this.state=h.KEY)}if(e===L.RIGHT_BRACE&&this.mode===n.OBJECT||e===L.RIGHT_BRACKET&&this.mode===n.ARRAY)return void this.pop()}if(this.state===h.SEPARATOR&&e===L.SEPARATOR&&T===this.separator)return void(this.state=h.VALUE);if(e===L.SEPARATOR&&this.state!==h.SEPARATOR&&Array.from(T).map((t=>t.charCodeAt(0))).every((e=>e===t.SPACE||e===t.NEWLINE||e===t.CARRIAGE_RETURN||e===t.TAB)))return;throw new o(`Unexpected ${L[e]} (${JSON.stringify(T)}) in state ${a(this.state)}`)}catch(t){this.error(t)}}error(t){this.state!==h.ENDED&&(this.state=h.ERROR),this.onError(t)}end(){this.state!==h.VALUE&&this.state!==h.SEPARATOR||this.stack.length>0?this.error(new Error(`Parser ended in mid-parsing (state: ${a(this.state)}). Either not all the data was received or the data was invalid.`)):(this.state=h.ENDED,this.onEnd())}onValue(t){throw new o('Can\'t emit data before the "onValue" callback has been set up.')}onError(t){throw t}onEnd(){}}class S{constructor(t={}){this.tokenizer=new I(t),this.tokenParser=new f(t),this.tokenizer.onToken=this.tokenParser.write.bind(this.tokenParser),this.tokenizer.onEnd=()=>{this.tokenParser.isEnded||this.tokenParser.end()},this.tokenParser.onError=this.tokenizer.error.bind(this.tokenizer),this.tokenParser.onEnd=()=>{this.tokenizer.isEnded||this.tokenizer.end()}}get isEnded(){return this.tokenizer.isEnded&&this.tokenParser.isEnded}write(t){this.tokenizer.write(t)}end(){this.tokenizer.end()}set onToken(t){this.tokenizer.onToken=e=>{t(e),this.tokenParser.write(e)}}set onValue(t){this.tokenParser.onValue=t}set onError(t){this.tokenizer.onError=t}set onEnd(t){this.tokenParser.onEnd=()=>{this.tokenizer.isEnded||this.tokenizer.end(),t.call(this.tokenParser)}}}var u=Object.freeze({__proto__:null}),c=Object.freeze({__proto__:null}),C=Object.freeze({__proto__:null});export{S as JSONParser,u as JsonTypes,C as ParsedElementInfo,c as ParsedTokenInfo,f as TokenParser,o as TokenParserError,n as TokenParserMode,L as TokenType,I as Tokenizer,r as TokenizerError,s as utf8};export default null; diff --git a/isamples_export_client/ui/_npm/apache-arrow@16.1.0/_esm.js b/isamples_export_client/ui/_npm/apache-arrow@16.1.0/_esm.js new file mode 100644 index 0000000..000d842 --- /dev/null +++ b/isamples_export_client/ui/_npm/apache-arrow@16.1.0/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/apache-arrow@16.1.0/Arrow.dom.mjs + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +import{__asyncGenerator as t,__await as e,__asyncDelegator as i,__asyncValues as n,__awaiter as r,__rest as s}from"../tslib@2.6.3/_esm.js";import*as o from"../flatbuffers@24.3.25/_esm.js";import{ByteBuffer as a}from"../flatbuffers@24.3.25/_esm.js";const l=new TextDecoder("utf-8"),u=t=>l.decode(t),c=new TextEncoder,h=t=>c.encode(t),d=t=>"boolean"==typeof t,p=t=>"function"==typeof t,y=t=>null!=t&&Object(t)===t,f=t=>y(t)&&p(t.then),b=t=>y(t)&&p(t[Symbol.iterator]),g=t=>y(t)&&p(t[Symbol.asyncIterator]),v=t=>y(t)&&y(t.schema),_=t=>y(t)&&"done"in t&&"value"in t,m=t=>y(t)&&p(t.stat)&&(t=>"number"==typeof t)(t.fd),w=t=>y(t)&&S(t.body),I=t=>"_getDOMStream"in t&&"_getNodeStream"in t,S=t=>y(t)&&p(t.cancel)&&p(t.getReader)&&!I(t),A=t=>y(t)&&p(t.read)&&p(t.pipe)&&d(t.readable)&&!I(t),B=t=>y(t)&&p(t.clear)&&p(t.bytes)&&p(t.position)&&p(t.setPosition)&&p(t.capacity)&&p(t.getBufferIdentifier)&&p(t.createLong),D="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;function T(t,e,i=0,n=e.byteLength){const r=t.byteLength,s=new Uint8Array(t.buffer,t.byteOffset,r),o=new Uint8Array(e.buffer,e.byteOffset,Math.min(n,r));return s.set(o,i),t}function O(t,e){const i=function(t){const e=t[0]?[t[0]]:[];let i,n,r,s;for(let o,a,l=0,u=0,c=t.length;++lt+e.byteLength),0);let r,s,o,a=0,l=-1;const u=Math.min(e||Number.POSITIVE_INFINITY,n);for(const t=i.length;++lL(Int32Array,t),M=t=>L(BigInt64Array,t),F=t=>L(Uint8Array,t),N=t=>(t.next(),t);function*U(t,e){const i=function*(t){yield t},n="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof D?i(e):b(e)?e:i(e);return yield*N(function*(e){let i=null;do{i=e.next(yield L(t,i))}while(!i.done)}(n[Symbol.iterator]())),new t}const C=t=>U(Uint8Array,t);function E(r,s){return t(this,arguments,(function*(){if(f(s))return yield e(yield e(yield*i(n(E(r,yield e(s))))));const o=function(i){return t(this,arguments,(function*(){yield yield e(yield e(i))}))},a="string"==typeof s||ArrayBuffer.isView(s)||s instanceof ArrayBuffer||s instanceof D?o(s):b(s)?function(r){return t(this,arguments,(function*(){yield e(yield*i(n(N(function*(t){let e=null;do{e=t.next(yield null==e?void 0:e.value)}while(!e.done)}(r[Symbol.iterator]())))))}))}(s):g(s)?s:o(s);return yield e(yield*i(n(N(function(i){return t(this,arguments,(function*(){let t=null;do{t=yield e(i.next(yield yield e(L(r,t))))}while(!t.done)}))}(a[Symbol.asyncIterator]()))))),yield e(new r)}))}const V=t=>E(Uint8Array,t);function R(t,e,i){if(0!==t)for(let n=-1,r=(i=i.slice(0,e)).length;++n0)do{if(t[i]!==e[i])return!1}while(++iL(Int8Array,t),toInt16Array:t=>L(Int16Array,t),toInt32Array:x,toBigInt64Array:M,toUint8Array:F,toUint16Array:t=>L(Uint16Array,t),toUint32Array:t=>L(Uint32Array,t),toBigUint64Array:t=>L(BigUint64Array,t),toFloat32Array:t=>L(Float32Array,t),toFloat64Array:t=>L(Float64Array,t),toUint8ClampedArray:t=>L(Uint8ClampedArray,t),toArrayBufferViewIterator:U,toInt8ArrayIterator:t=>U(Int8Array,t),toInt16ArrayIterator:t=>U(Int16Array,t),toInt32ArrayIterator:t=>U(Int32Array,t),toUint8ArrayIterator:C,toUint16ArrayIterator:t=>U(Uint16Array,t),toUint32ArrayIterator:t=>U(Uint32Array,t),toFloat32ArrayIterator:t=>U(Float32Array,t),toFloat64ArrayIterator:t=>U(Float64Array,t),toUint8ClampedArrayIterator:t=>U(Uint8ClampedArray,t),toArrayBufferViewAsyncIterator:E,toInt8ArrayAsyncIterator:t=>E(Int8Array,t),toInt16ArrayAsyncIterator:t=>E(Int16Array,t),toInt32ArrayAsyncIterator:t=>E(Int32Array,t),toUint8ArrayAsyncIterator:V,toUint16ArrayAsyncIterator:t=>E(Uint16Array,t),toUint32ArrayAsyncIterator:t=>E(Uint32Array,t),toFloat32ArrayAsyncIterator:t=>E(Float32Array,t),toFloat64ArrayAsyncIterator:t=>E(Float64Array,t),toUint8ClampedArrayAsyncIterator:t=>E(Uint8ClampedArray,t),rebaseValueOffsets:R,compareArrayLike:z}),j={fromIterable:t=>k(function*(t){let e,i,n,r,s=!1,o=[],a=0;function l(){return"peek"===n?O(o,r)[0]:([i,o,a]=O(o,r),i)}({cmd:n,size:r}=(yield null)||{cmd:"read",size:0});const u=C(t)[Symbol.iterator]();try{do{if(({done:e,value:i}=Number.isNaN(r-a)?u.next():u.next(r-a)),!e&&i.byteLength>0&&(o.push(i),a+=i.byteLength),e||r<=a)do{({cmd:n,size:r}=yield l())}while(rk(function(i){return t(this,arguments,(function*(){let t,n,r,s,o=!1,a=[],l=0;function u(){return"peek"===r?O(a,s)[0]:([n,a,l]=O(a,s),n)}({cmd:r,size:s}=(yield yield e(null))||{cmd:"read",size:0});const c=V(i)[Symbol.asyncIterator]();try{do{if(({done:t,value:n}=Number.isNaN(s-l)?yield e(c.next()):yield e(c.next(s-l))),!t&&n.byteLength>0&&(a.push(n),l+=n.byteLength),t||s<=l)do{({cmd:r,size:s}=yield yield e(u()))}while(sk(function(i){return t(this,arguments,(function*(){let t,n,r,s=!1,o=!1,a=[],l=0;function u(){return"peek"===n?O(a,r)[0]:([t,a,l]=O(a,r),t)}({cmd:n,size:r}=(yield yield e(null))||{cmd:"read",size:0});const c=new $(i);try{do{if(({done:s,value:t}=Number.isNaN(r-l)?yield e(c.read()):yield e(c.read(r-l))),!s&&t.byteLength>0&&(a.push(F(t)),l+=t.byteLength),s||r<=l)do{({cmd:n,size:r}=yield yield e(u()))}while(rk(function(i){return t(this,arguments,(function*(){const t=[];let n,r,s,o="error",a=!1,l=null,u=0,c=[];function h(){return"peek"===n?O(c,r)[0]:([s,c,u]=O(c,r),s)}if(({cmd:n,size:r}=(yield yield e(null))||{cmd:"read",size:0}),i.isTTY)return yield yield e(new Uint8Array(0)),yield e(null);try{t[0]=W(i,"end"),t[1]=W(i,"error");do{if(t[2]=W(i,"readable"),[o,l]=yield e(Promise.race(t.map((t=>t[2])))),"error"===o)break;if((a="end"===o)||(Number.isFinite(r-u)?(s=F(i.read(r-u)),s.byteLength0&&(c.push(s),u+=s.byteLength)),a||r<=u)do{({cmd:n,size:r}=yield yield e(h()))}while(r{for(const[e,n]of t)i.off(e,n);try{const t=i.destroy;t&&t.call(i,e),e=void 0}catch(t){e=t||e}finally{null!=e?r(e):n()}}))}}))}(i)),toDOMStream(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw new Error('"toNodeStream" not available in this environment')}};const k=t=>(t.next(),t);class ${constructor(t){this.source=t,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch((()=>{}))}get closed(){return this.reader?this.reader.closed.catch((()=>{})):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(t){return r(this,void 0,void 0,(function*(){const{reader:e,source:i}=this;e&&(yield e.cancel(t).catch((()=>{}))),i&&i.locked&&this.releaseLock()}))}read(t){return r(this,void 0,void 0,(function*(){if(0===t)return{done:null==this.reader,value:new Uint8Array(0)};const e=yield this.reader.read();return!e.done&&(e.value=F(e)),e}))}}const W=(t,e)=>{const i=t=>n([e,t]);let n;return[e,i,new Promise((r=>(n=r)&&t.once(e,i)))]};var Y,H,G,Z,X,K,J,q,Q,tt,et,it,nt,rt,st,ot;!function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"}(Y||(Y={})),function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(H||(H={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(G||(G={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(Z||(Z={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(X||(X={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(K||(K={})),function(t){t[t.BUFFER=0]="BUFFER"}(J||(J={})),function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"}(q||(q={}));class at{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBodyCompression(t,e){return(e||new at).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new at).__init(t.readInt32(t.position())+t.position(),t)}codec(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt8(this.bb_pos+t):q.LZ4_FRAME}method(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt8(this.bb_pos+t):J.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,e){t.addFieldInt8(0,e,q.LZ4_FRAME)}static addMethod(t,e){t.addFieldInt8(1,e,J.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(t,e,i){return at.startBodyCompression(t),at.addCodec(t,e),at.addMethod(t,i),at.endBodyCompression(t)}}class lt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(t,e,i){return t.prep(8,16),t.writeInt64(BigInt(null!=i?i:0)),t.writeInt64(BigInt(null!=e?e:0)),t.offset()}}class ut{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(t,e,i){return t.prep(8,16),t.writeInt64(BigInt(null!=i?i:0)),t.writeInt64(BigInt(null!=e?e:0)),t.offset()}}class ct{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsRecordBatch(t,e){return(e||new ct).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRecordBatch(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new ct).__init(t.readInt32(t.position())+t.position(),t)}length(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}nodes(t,e){const i=this.bb.__offset(this.bb_pos,6);return i?(e||new ut).__init(this.bb.__vector(this.bb_pos+i)+16*t,this.bb):null}nodesLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}buffers(t,e){const i=this.bb.__offset(this.bb_pos,8);return i?(e||new lt).__init(this.bb.__vector(this.bb_pos+i)+16*t,this.bb):null}buffersLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}compression(t){const e=this.bb.__offset(this.bb_pos,10);return e?(t||new at).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startRecordBatch(t){t.startObject(4)}static addLength(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addNodes(t,e){t.addFieldOffset(1,e,0)}static startNodesVector(t,e){t.startVector(16,e,8)}static addBuffers(t,e){t.addFieldOffset(2,e,0)}static startBuffersVector(t,e){t.startVector(16,e,8)}static addCompression(t,e){t.addFieldOffset(3,e,0)}static endRecordBatch(t){return t.endObject()}}class ht{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryBatch(t,e){return(e||new ht).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryBatch(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new ht).__init(t.readInt32(t.position())+t.position(),t)}id(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}data(t){const e=this.bb.__offset(this.bb_pos,6);return e?(t||new ct).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isDelta(){const t=this.bb.__offset(this.bb_pos,8);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startDictionaryBatch(t){t.startObject(3)}static addId(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addData(t,e){t.addFieldOffset(1,e,0)}static addIsDelta(t,e){t.addFieldInt8(2,+e,0)}static endDictionaryBatch(t){return t.endObject()}}!function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"}(Q||(Q={})),function(t){t[t.DenseArray=0]="DenseArray"}(tt||(tt={}));class dt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInt(t,e){return(e||new dt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInt(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new dt).__init(t.readInt32(t.position())+t.position(),t)}bitWidth(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}isSigned(){const t=this.bb.__offset(this.bb_pos,6);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startInt(t){t.startObject(2)}static addBitWidth(t,e){t.addFieldInt32(0,e,0)}static addIsSigned(t,e){t.addFieldInt8(1,+e,0)}static endInt(t){return t.endObject()}static createInt(t,e,i){return dt.startInt(t),dt.addBitWidth(t,e),dt.addIsSigned(t,i),dt.endInt(t)}}class pt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryEncoding(t,e){return(e||new pt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryEncoding(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new pt).__init(t.readInt32(t.position())+t.position(),t)}id(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}indexType(t){const e=this.bb.__offset(this.bb_pos,6);return e?(t||new dt).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isOrdered(){const t=this.bb.__offset(this.bb_pos,8);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}dictionaryKind(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt16(this.bb_pos+t):tt.DenseArray}static startDictionaryEncoding(t){t.startObject(4)}static addId(t,e){t.addFieldInt64(0,e,BigInt("0"))}static addIndexType(t,e){t.addFieldOffset(1,e,0)}static addIsOrdered(t,e){t.addFieldInt8(2,+e,0)}static addDictionaryKind(t,e){t.addFieldInt16(3,e,tt.DenseArray)}static endDictionaryEncoding(t){return t.endObject()}}class yt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsKeyValue(t,e){return(e||new yt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsKeyValue(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new yt).__init(t.readInt32(t.position())+t.position(),t)}key(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}value(t){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startKeyValue(t){t.startObject(2)}static addKey(t,e){t.addFieldOffset(0,e,0)}static addValue(t,e){t.addFieldOffset(1,e,0)}static endKeyValue(t){return t.endObject()}static createKeyValue(t,e,i){return yt.startKeyValue(t),yt.addKey(t,e),yt.addValue(t,i),yt.endKeyValue(t)}}class ft{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBinary(t,e){return(e||new ft).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBinary(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new ft).__init(t.readInt32(t.position())+t.position(),t)}static startBinary(t){t.startObject(0)}static endBinary(t){return t.endObject()}static createBinary(t){return ft.startBinary(t),ft.endBinary(t)}}class bt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBool(t,e){return(e||new bt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBool(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new bt).__init(t.readInt32(t.position())+t.position(),t)}static startBool(t){t.startObject(0)}static endBool(t){return t.endObject()}static createBool(t){return bt.startBool(t),bt.endBool(t)}}class gt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDate(t,e){return(e||new gt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDate(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new gt).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Z.MILLISECOND}static startDate(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,Z.MILLISECOND)}static endDate(t){return t.endObject()}static createDate(t,e){return gt.startDate(t),gt.addUnit(t,e),gt.endDate(t)}}class vt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDecimal(t,e){return(e||new vt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDecimal(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new vt).__init(t.readInt32(t.position())+t.position(),t)}precision(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}scale(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):0}bitWidth(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readInt32(this.bb_pos+t):128}static startDecimal(t){t.startObject(3)}static addPrecision(t,e){t.addFieldInt32(0,e,0)}static addScale(t,e){t.addFieldInt32(1,e,0)}static addBitWidth(t,e){t.addFieldInt32(2,e,128)}static endDecimal(t){return t.endObject()}static createDecimal(t,e,i,n){return vt.startDecimal(t),vt.addPrecision(t,e),vt.addScale(t,i),vt.addBitWidth(t,n),vt.endDecimal(t)}}class _t{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDuration(t,e){return(e||new _t).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDuration(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new _t).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):X.MILLISECOND}static startDuration(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,X.MILLISECOND)}static endDuration(t){return t.endObject()}static createDuration(t,e){return _t.startDuration(t),_t.addUnit(t,e),_t.endDuration(t)}}class mt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeBinary(t,e){return(e||new mt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeBinary(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new mt).__init(t.readInt32(t.position())+t.position(),t)}byteWidth(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeBinary(t){t.startObject(1)}static addByteWidth(t,e){t.addFieldInt32(0,e,0)}static endFixedSizeBinary(t){return t.endObject()}static createFixedSizeBinary(t,e){return mt.startFixedSizeBinary(t),mt.addByteWidth(t,e),mt.endFixedSizeBinary(t)}}class wt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFixedSizeList(t,e){return(e||new wt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFixedSizeList(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new wt).__init(t.readInt32(t.position())+t.position(),t)}listSize(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt32(this.bb_pos+t):0}static startFixedSizeList(t){t.startObject(1)}static addListSize(t,e){t.addFieldInt32(0,e,0)}static endFixedSizeList(t){return t.endObject()}static createFixedSizeList(t,e){return wt.startFixedSizeList(t),wt.addListSize(t,e),wt.endFixedSizeList(t)}}class It{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFloatingPoint(t,e){return(e||new It).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFloatingPoint(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new It).__init(t.readInt32(t.position())+t.position(),t)}precision(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):G.HALF}static startFloatingPoint(t){t.startObject(1)}static addPrecision(t,e){t.addFieldInt16(0,e,G.HALF)}static endFloatingPoint(t){return t.endObject()}static createFloatingPoint(t,e){return It.startFloatingPoint(t),It.addPrecision(t,e),It.endFloatingPoint(t)}}class St{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsInterval(t,e){return(e||new St).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsInterval(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new St).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):K.YEAR_MONTH}static startInterval(t){t.startObject(1)}static addUnit(t,e){t.addFieldInt16(0,e,K.YEAR_MONTH)}static endInterval(t){return t.endObject()}static createInterval(t,e){return St.startInterval(t),St.addUnit(t,e),St.endInterval(t)}}class At{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeBinary(t,e){return(e||new At).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsLargeBinary(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new At).__init(t.readInt32(t.position())+t.position(),t)}static startLargeBinary(t){t.startObject(0)}static endLargeBinary(t){return t.endObject()}static createLargeBinary(t){return At.startLargeBinary(t),At.endLargeBinary(t)}}class Bt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsLargeUtf8(t,e){return(e||new Bt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsLargeUtf8(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new Bt).__init(t.readInt32(t.position())+t.position(),t)}static startLargeUtf8(t){t.startObject(0)}static endLargeUtf8(t){return t.endObject()}static createLargeUtf8(t){return Bt.startLargeUtf8(t),Bt.endLargeUtf8(t)}}class Dt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsList(t,e){return(e||new Dt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsList(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new Dt).__init(t.readInt32(t.position())+t.position(),t)}static startList(t){t.startObject(0)}static endList(t){return t.endObject()}static createList(t){return Dt.startList(t),Dt.endList(t)}}class Tt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMap(t,e){return(e||new Tt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMap(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new Tt).__init(t.readInt32(t.position())+t.position(),t)}keysSorted(){const t=this.bb.__offset(this.bb_pos,4);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startMap(t){t.startObject(1)}static addKeysSorted(t,e){t.addFieldInt8(0,+e,0)}static endMap(t){return t.endObject()}static createMap(t,e){return Tt.startMap(t),Tt.addKeysSorted(t,e),Tt.endMap(t)}}class Ot{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsNull(t,e){return(e||new Ot).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsNull(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new Ot).__init(t.readInt32(t.position())+t.position(),t)}static startNull(t){t.startObject(0)}static endNull(t){return t.endObject()}static createNull(t){return Ot.startNull(t),Ot.endNull(t)}}class Lt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsStruct_(t,e){return(e||new Lt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsStruct_(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new Lt).__init(t.readInt32(t.position())+t.position(),t)}static startStruct_(t){t.startObject(0)}static endStruct_(t){return t.endObject()}static createStruct_(t){return Lt.startStruct_(t),Lt.endStruct_(t)}}class xt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTime(t,e){return(e||new xt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTime(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new xt).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):X.MILLISECOND}bitWidth(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb_pos+t):32}static startTime(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,X.MILLISECOND)}static addBitWidth(t,e){t.addFieldInt32(1,e,32)}static endTime(t){return t.endObject()}static createTime(t,e,i){return xt.startTime(t),xt.addUnit(t,e),xt.addBitWidth(t,i),xt.endTime(t)}}class Mt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsTimestamp(t,e){return(e||new Mt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsTimestamp(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new Mt).__init(t.readInt32(t.position())+t.position(),t)}unit(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):X.SECOND}timezone(t){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__string(this.bb_pos+e,t):null}static startTimestamp(t){t.startObject(2)}static addUnit(t,e){t.addFieldInt16(0,e,X.SECOND)}static addTimezone(t,e){t.addFieldOffset(1,e,0)}static endTimestamp(t){return t.endObject()}static createTimestamp(t,e,i){return Mt.startTimestamp(t),Mt.addUnit(t,e),Mt.addTimezone(t,i),Mt.endTimestamp(t)}}class Ft{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUnion(t,e){return(e||new Ft).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUnion(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new Ft).__init(t.readInt32(t.position())+t.position(),t)}mode(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):H.Sparse}typeIds(t){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb.__vector(this.bb_pos+e)+4*t):0}typeIdsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}typeIdsArray(){const t=this.bb.__offset(this.bb_pos,6);return t?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+t),this.bb.__vector_len(this.bb_pos+t)):null}static startUnion(t){t.startObject(2)}static addMode(t,e){t.addFieldInt16(0,e,H.Sparse)}static addTypeIds(t,e){t.addFieldOffset(1,e,0)}static createTypeIdsVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i>=0;i--)t.addInt32(e[i]);return t.endVector()}static startTypeIdsVector(t,e){t.startVector(4,e,4)}static endUnion(t){return t.endObject()}static createUnion(t,e,i){return Ft.startUnion(t),Ft.addMode(t,e),Ft.addTypeIds(t,i),Ft.endUnion(t)}}class Nt{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUtf8(t,e){return(e||new Nt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new Nt).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(t){t.startObject(0)}static endUtf8(t){return t.endObject()}static createUtf8(t){return Nt.startUtf8(t),Nt.endUtf8(t)}}!function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList",t[t.RunEndEncoded=22]="RunEndEncoded"}(et||(et={}));class Ut{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsField(t,e){return(e||new Ut).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new Ut).__init(t.readInt32(t.position())+t.position(),t)}name(t){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}nullable(){const t=this.bb.__offset(this.bb_pos,6);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}typeType(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb_pos+t):et.NONE}type(t){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(t,this.bb_pos+e):null}dictionary(t){const e=this.bb.__offset(this.bb_pos,12);return e?(t||new pt).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}children(t,e){const i=this.bb.__offset(this.bb_pos,14);return i?(e||new Ut).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*t),this.bb):null}childrenLength(){const t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){const i=this.bb.__offset(this.bb_pos,16);return i?(e||new yt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*t),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}static startField(t){t.startObject(7)}static addName(t,e){t.addFieldOffset(0,e,0)}static addNullable(t,e){t.addFieldInt8(1,+e,0)}static addTypeType(t,e){t.addFieldInt8(2,e,et.NONE)}static addType(t,e){t.addFieldOffset(3,e,0)}static addDictionary(t,e){t.addFieldOffset(4,e,0)}static addChildren(t,e){t.addFieldOffset(5,e,0)}static createChildrenVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i>=0;i--)t.addOffset(e[i]);return t.endVector()}static startChildrenVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(6,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i>=0;i--)t.addOffset(e[i]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endField(t){return t.endObject()}}class Ct{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsSchema(t,e){return(e||new Ct).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new Ct).__init(t.readInt32(t.position())+t.position(),t)}endianness(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Q.Little}fields(t,e){const i=this.bb.__offset(this.bb_pos,6);return i?(e||new Ut).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*t),this.bb):null}fieldsLength(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){const i=this.bb.__offset(this.bb_pos,8);return i?(e||new yt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*t),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}features(t){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+8*t):BigInt(0)}featuresLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startSchema(t){t.startObject(4)}static addEndianness(t,e){t.addFieldInt16(0,e,Q.Little)}static addFields(t,e){t.addFieldOffset(1,e,0)}static createFieldsVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i>=0;i--)t.addOffset(e[i]);return t.endVector()}static startFieldsVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(2,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i>=0;i--)t.addOffset(e[i]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static addFeatures(t,e){t.addFieldOffset(3,e,0)}static createFeaturesVector(t,e){t.startVector(8,e.length,8);for(let i=e.length-1;i>=0;i--)t.addInt64(e[i]);return t.endVector()}static startFeaturesVector(t,e){t.startVector(8,e,8)}static endSchema(t){return t.endObject()}static finishSchemaBuffer(t,e){t.finish(e)}static finishSizePrefixedSchemaBuffer(t,e){t.finish(e,void 0,!0)}static createSchema(t,e,i,n,r){return Ct.startSchema(t),Ct.addEndianness(t,e),Ct.addFields(t,i),Ct.addCustomMetadata(t,n),Ct.addFeatures(t,r),Ct.endSchema(t)}}!function(t){t[t.Row=0]="Row",t[t.Column=1]="Column"}(it||(it={})),function(t){t[t.NONE=0]="NONE",t[t.SparseTensorIndexCOO=1]="SparseTensorIndexCOO",t[t.SparseMatrixIndexCSX=2]="SparseMatrixIndexCSX",t[t.SparseTensorIndexCSF=3]="SparseTensorIndexCSF"}(nt||(nt={})),function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"}(rt||(rt={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth",t[t.DurationSecond=-27]="DurationSecond",t[t.DurationMillisecond=-28]="DurationMillisecond",t[t.DurationMicrosecond=-29]="DurationMicrosecond",t[t.DurationNanosecond=-30]="DurationNanosecond"}(st||(st={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(ot||(ot={}));const Et=void 0;function Vt(t){if(null===t)return"null";if(t===Et)return"undefined";switch(typeof t){case"number":case"bigint":return`${t}`;case"string":return`"${t}"`}return"function"==typeof t[Symbol.toPrimitive]?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof BigInt64Array||t instanceof BigUint64Array?`[${[...t].map((t=>Vt(t)))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,((t,e)=>"bigint"==typeof e?`${e}`:e))}var Rt=Object.freeze({__proto__:null,valueToString:Vt});function zt(t){if("bigint"==typeof t&&(tNumber.MAX_SAFE_INTEGER))throw new TypeError(`${t} is not safe to convert to a number.`);return Number(t)}function Pt(t,e){return zt(t/e)+zt(t%e)/zt(e)}const jt=Symbol.for("isArrowBigNum");function kt(t,...e){return 0===e.length?Object.setPrototypeOf(L(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}function $t(...t){return kt.apply(this,t)}function Wt(...t){return kt.apply(this,t)}function Yt(...t){return kt.apply(this,t)}kt.prototype[jt]=!0,kt.prototype.toJSON=function(){return`"${Zt(this)}"`},kt.prototype.valueOf=function(t){return Gt(this,t)},kt.prototype.toString=function(){return Zt(this)},kt.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return Gt(this);case"string":return Zt(this);case"default":return Xt(this)}return Zt(this)},Object.setPrototypeOf($t.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(Wt.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(Yt.prototype,Object.create(Uint32Array.prototype)),Object.assign($t.prototype,kt.prototype,{constructor:$t,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(Wt.prototype,kt.prototype,{constructor:Wt,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(Yt.prototype,kt.prototype,{constructor:Yt,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const Ht=BigInt(4294967296)*BigInt(4294967296)-BigInt(1);function Gt(t,e){const{buffer:i,byteOffset:n,byteLength:r,signed:s}=t,o=new BigUint64Array(i,n,r/8),a=s&&o.at(-1)&BigInt(1)<=0)return Kt(t);e=e.slice();let i=1;for(let t=0;t(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(Ae.prototype);class Be extends Ae{constructor(){super(!0,8)}get ArrayType(){return Int8Array}}class De extends Ae{constructor(){super(!0,16)}get ArrayType(){return Int16Array}}class Te extends Ae{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}class Oe extends Ae{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}}class Le extends Ae{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}}class xe extends Ae{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}}class Me extends Ae{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}}class Fe extends Ae{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}}Object.defineProperty(Be.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(De.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(Te.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(Oe.prototype,"ArrayType",{value:BigInt64Array}),Object.defineProperty(Le.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(xe.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Me.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(Fe.prototype,"ArrayType",{value:BigUint64Array});class Ne extends Ie{constructor(t){super(st.Float),this.precision=t}get ArrayType(){switch(this.precision){case G.HALF:return Uint16Array;case G.SINGLE:return Float32Array;case G.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}ee=Symbol.toStringTag,Ne[ee]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(Ne.prototype);class Ue extends Ne{constructor(){super(G.HALF)}}class Ce extends Ne{constructor(){super(G.SINGLE)}}class Ee extends Ne{constructor(){super(G.DOUBLE)}}Object.defineProperty(Ue.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Ce.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(Ee.prototype,"ArrayType",{value:Float64Array});class Ve extends Ie{constructor(){super(st.Binary)}toString(){return"Binary"}}ie=Symbol.toStringTag,Ve[ie]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(Ve.prototype);class Re extends Ie{constructor(){super(st.LargeBinary)}toString(){return"LargeBinary"}}ne=Symbol.toStringTag,Re[ne]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeBinary"))(Re.prototype);class ze extends Ie{constructor(){super(st.Utf8)}toString(){return"Utf8"}}re=Symbol.toStringTag,ze[re]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(ze.prototype);class Pe extends Ie{constructor(){super(st.LargeUtf8)}toString(){return"LargeUtf8"}}se=Symbol.toStringTag,Pe[se]=(t=>(t.ArrayType=Uint8Array,t.OffsetArrayType=BigInt64Array,t[Symbol.toStringTag]="LargeUtf8"))(Pe.prototype);class je extends Ie{constructor(){super(st.Bool)}toString(){return"Bool"}}oe=Symbol.toStringTag,je[oe]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(je.prototype);class ke extends Ie{constructor(t,e,i=128){super(st.Decimal),this.scale=t,this.precision=e,this.bitWidth=i}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}ae=Symbol.toStringTag,ke[ae]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(ke.prototype);class $e extends Ie{constructor(t){super(st.Date),this.unit=t}toString(){return`Date${32*(this.unit+1)}<${Z[this.unit]}>`}get ArrayType(){return this.unit===Z.DAY?Int32Array:BigInt64Array}}le=Symbol.toStringTag,$e[le]=(t=>(t.unit=null,t[Symbol.toStringTag]="Date"))($e.prototype);class We extends $e{constructor(){super(Z.DAY)}}class Ye extends $e{constructor(){super(Z.MILLISECOND)}}class He extends Ie{constructor(t,e){super(st.Time),this.unit=t,this.bitWidth=e}toString(){return`Time${this.bitWidth}<${X[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}ue=Symbol.toStringTag,He[ue]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(He.prototype);class Ge extends He{constructor(){super(X.SECOND,32)}}class Ze extends He{constructor(){super(X.MILLISECOND,32)}}class Xe extends He{constructor(){super(X.MICROSECOND,64)}}class Ke extends He{constructor(){super(X.NANOSECOND,64)}}class Je extends Ie{constructor(t,e){super(st.Timestamp),this.unit=t,this.timezone=e}toString(){return`Timestamp<${X[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}ce=Symbol.toStringTag,Je[ce]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Timestamp"))(Je.prototype);class qe extends Je{constructor(t){super(X.SECOND,t)}}class Qe extends Je{constructor(t){super(X.MILLISECOND,t)}}class ti extends Je{constructor(t){super(X.MICROSECOND,t)}}class ei extends Je{constructor(t){super(X.NANOSECOND,t)}}class ii extends Ie{constructor(t){super(st.Interval),this.unit=t}toString(){return`Interval<${K[this.unit]}>`}}he=Symbol.toStringTag,ii[he]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(ii.prototype);class ni extends ii{constructor(){super(K.DAY_TIME)}}class ri extends ii{constructor(){super(K.YEAR_MONTH)}}class si extends Ie{constructor(t){super(st.Duration),this.unit=t}toString(){return`Duration<${X[this.unit]}>`}}de=Symbol.toStringTag,si[de]=(t=>(t.unit=null,t.ArrayType=BigInt64Array,t[Symbol.toStringTag]="Duration"))(si.prototype);class oi extends si{constructor(){super(X.SECOND)}}class ai extends si{constructor(){super(X.MILLISECOND)}}class li extends si{constructor(){super(X.MICROSECOND)}}class ui extends si{constructor(){super(X.NANOSECOND)}}class ci extends Ie{constructor(t){super(st.List),this.children=[t]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}pe=Symbol.toStringTag,ci[pe]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(ci.prototype);class hi extends Ie{constructor(t){super(st.Struct),this.children=t}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}ye=Symbol.toStringTag,hi[ye]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(hi.prototype);class di extends Ie{constructor(t,e,i){super(st.Union),this.mode=t,this.children=i,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,i)=>(t[e]=i)&&t||t),Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}}fe=Symbol.toStringTag,di[fe]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(di.prototype);class pi extends di{constructor(t,e){super(H.Dense,t,e)}}class yi extends di{constructor(t,e){super(H.Sparse,t,e)}}class fi extends Ie{constructor(t){super(st.FixedSizeBinary),this.byteWidth=t}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}be=Symbol.toStringTag,fi[be]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(fi.prototype);class bi extends Ie{constructor(t,e){super(st.FixedSizeList),this.listSize=t,this.children=[e]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}}ge=Symbol.toStringTag,bi[ge]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(bi.prototype);class gi extends Ie{constructor(t,e=!1){var i,n,r;if(super(st.Map),this.children=[t],this.keysSorted=e,t&&(t.name="entries",null===(i=null==t?void 0:t.type)||void 0===i?void 0:i.children)){const e=null===(n=null==t?void 0:t.type)||void 0===n?void 0:n.children[0];e&&(e.name="key");const i=null===(r=null==t?void 0:t.type)||void 0===r?void 0:r.children[1];i&&(i.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}}ve=Symbol.toStringTag,gi[ve]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(gi.prototype);const vi=(_i=-1,()=>++_i);var _i;class mi extends Ie{constructor(t,e,i,n){super(st.Dictionary),this.indices=e,this.dictionary=t,this.isOrdered=n||!1,this.id=null==i?vi():zt(i)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}function wi(t){const e=t;switch(t.typeId){case st.Decimal:return t.bitWidth/32;case st.Interval:return 1+e.unit;case st.FixedSizeList:return e.listSize;case st.FixedSizeBinary:return e.byteWidth;default:return 1}}_e=Symbol.toStringTag,mi[_e]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(mi.prototype);class Ii{visitMany(t,...e){return t.map(((t,i)=>this.visit(t,...e.map((t=>t[i])))))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,e=!0){return function(t,e,i=!0){if("number"==typeof e)return Si(t,e,i);if("string"==typeof e&&e in st)return Si(t,st[e],i);if(e&&e instanceof Ie)return Si(t,Ai(e),i);if((null==e?void 0:e.type)&&e.type instanceof Ie)return Si(t,Ai(e.type),i);return Si(t,st.NONE,i)}(this,t,e)}getVisitFnByTypeId(t,e=!0){return Si(this,t,e)}visitNull(t,...e){return null}visitBool(t,...e){return null}visitInt(t,...e){return null}visitFloat(t,...e){return null}visitUtf8(t,...e){return null}visitLargeUtf8(t,...e){return null}visitBinary(t,...e){return null}visitLargeBinary(t,...e){return null}visitFixedSizeBinary(t,...e){return null}visitDate(t,...e){return null}visitTimestamp(t,...e){return null}visitTime(t,...e){return null}visitDecimal(t,...e){return null}visitList(t,...e){return null}visitStruct(t,...e){return null}visitUnion(t,...e){return null}visitDictionary(t,...e){return null}visitInterval(t,...e){return null}visitDuration(t,...e){return null}visitFixedSizeList(t,...e){return null}visitMap(t,...e){return null}}function Si(t,e,i=!0){let n=null;switch(e){case st.Null:n=t.visitNull;break;case st.Bool:n=t.visitBool;break;case st.Int:n=t.visitInt;break;case st.Int8:n=t.visitInt8||t.visitInt;break;case st.Int16:n=t.visitInt16||t.visitInt;break;case st.Int32:n=t.visitInt32||t.visitInt;break;case st.Int64:n=t.visitInt64||t.visitInt;break;case st.Uint8:n=t.visitUint8||t.visitInt;break;case st.Uint16:n=t.visitUint16||t.visitInt;break;case st.Uint32:n=t.visitUint32||t.visitInt;break;case st.Uint64:n=t.visitUint64||t.visitInt;break;case st.Float:n=t.visitFloat;break;case st.Float16:n=t.visitFloat16||t.visitFloat;break;case st.Float32:n=t.visitFloat32||t.visitFloat;break;case st.Float64:n=t.visitFloat64||t.visitFloat;break;case st.Utf8:n=t.visitUtf8;break;case st.LargeUtf8:n=t.visitLargeUtf8;break;case st.Binary:n=t.visitBinary;break;case st.LargeBinary:n=t.visitLargeBinary;break;case st.FixedSizeBinary:n=t.visitFixedSizeBinary;break;case st.Date:n=t.visitDate;break;case st.DateDay:n=t.visitDateDay||t.visitDate;break;case st.DateMillisecond:n=t.visitDateMillisecond||t.visitDate;break;case st.Timestamp:n=t.visitTimestamp;break;case st.TimestampSecond:n=t.visitTimestampSecond||t.visitTimestamp;break;case st.TimestampMillisecond:n=t.visitTimestampMillisecond||t.visitTimestamp;break;case st.TimestampMicrosecond:n=t.visitTimestampMicrosecond||t.visitTimestamp;break;case st.TimestampNanosecond:n=t.visitTimestampNanosecond||t.visitTimestamp;break;case st.Time:n=t.visitTime;break;case st.TimeSecond:n=t.visitTimeSecond||t.visitTime;break;case st.TimeMillisecond:n=t.visitTimeMillisecond||t.visitTime;break;case st.TimeMicrosecond:n=t.visitTimeMicrosecond||t.visitTime;break;case st.TimeNanosecond:n=t.visitTimeNanosecond||t.visitTime;break;case st.Decimal:n=t.visitDecimal;break;case st.List:n=t.visitList;break;case st.Struct:n=t.visitStruct;break;case st.Union:n=t.visitUnion;break;case st.DenseUnion:n=t.visitDenseUnion||t.visitUnion;break;case st.SparseUnion:n=t.visitSparseUnion||t.visitUnion;break;case st.Dictionary:n=t.visitDictionary;break;case st.Interval:n=t.visitInterval;break;case st.IntervalDayTime:n=t.visitIntervalDayTime||t.visitInterval;break;case st.IntervalYearMonth:n=t.visitIntervalYearMonth||t.visitInterval;break;case st.Duration:n=t.visitDuration;break;case st.DurationSecond:n=t.visitDurationSecond||t.visitDuration;break;case st.DurationMillisecond:n=t.visitDurationMillisecond||t.visitDuration;break;case st.DurationMicrosecond:n=t.visitDurationMicrosecond||t.visitDuration;break;case st.DurationNanosecond:n=t.visitDurationNanosecond||t.visitDuration;break;case st.FixedSizeList:n=t.visitFixedSizeList;break;case st.Map:n=t.visitMap}if("function"==typeof n)return n;if(!i)return()=>null;throw new Error(`Unrecognized type '${st[e]}'`)}function Ai(t){switch(t.typeId){case st.Null:return st.Null;case st.Int:{const{bitWidth:e,isSigned:i}=t;switch(e){case 8:return i?st.Int8:st.Uint8;case 16:return i?st.Int16:st.Uint16;case 32:return i?st.Int32:st.Uint32;case 64:return i?st.Int64:st.Uint64}return st.Int}case st.Float:switch(t.precision){case G.HALF:return st.Float16;case G.SINGLE:return st.Float32;case G.DOUBLE:return st.Float64}return st.Float;case st.Binary:return st.Binary;case st.LargeBinary:return st.LargeBinary;case st.Utf8:return st.Utf8;case st.LargeUtf8:return st.LargeUtf8;case st.Bool:return st.Bool;case st.Decimal:return st.Decimal;case st.Time:switch(t.unit){case X.SECOND:return st.TimeSecond;case X.MILLISECOND:return st.TimeMillisecond;case X.MICROSECOND:return st.TimeMicrosecond;case X.NANOSECOND:return st.TimeNanosecond}return st.Time;case st.Timestamp:switch(t.unit){case X.SECOND:return st.TimestampSecond;case X.MILLISECOND:return st.TimestampMillisecond;case X.MICROSECOND:return st.TimestampMicrosecond;case X.NANOSECOND:return st.TimestampNanosecond}return st.Timestamp;case st.Date:switch(t.unit){case Z.DAY:return st.DateDay;case Z.MILLISECOND:return st.DateMillisecond}return st.Date;case st.Interval:switch(t.unit){case K.DAY_TIME:return st.IntervalDayTime;case K.YEAR_MONTH:return st.IntervalYearMonth}return st.Interval;case st.Duration:switch(t.unit){case X.SECOND:return st.DurationSecond;case X.MILLISECOND:return st.DurationMillisecond;case X.MICROSECOND:return st.DurationMicrosecond;case X.NANOSECOND:return st.DurationNanosecond}return st.Duration;case st.Map:return st.Map;case st.List:return st.List;case st.Struct:return st.Struct;case st.Union:switch(t.mode){case H.Dense:return st.DenseUnion;case H.Sparse:return st.SparseUnion}return st.Union;case st.FixedSizeBinary:return st.FixedSizeBinary;case st.FixedSizeList:return st.FixedSizeList;case st.Dictionary:return st.Dictionary}throw new Error(`Unrecognized type '${st[t.typeId]}'`)}Ii.prototype.visitInt8=null,Ii.prototype.visitInt16=null,Ii.prototype.visitInt32=null,Ii.prototype.visitInt64=null,Ii.prototype.visitUint8=null,Ii.prototype.visitUint16=null,Ii.prototype.visitUint32=null,Ii.prototype.visitUint64=null,Ii.prototype.visitFloat16=null,Ii.prototype.visitFloat32=null,Ii.prototype.visitFloat64=null,Ii.prototype.visitDateDay=null,Ii.prototype.visitDateMillisecond=null,Ii.prototype.visitTimestampSecond=null,Ii.prototype.visitTimestampMillisecond=null,Ii.prototype.visitTimestampMicrosecond=null,Ii.prototype.visitTimestampNanosecond=null,Ii.prototype.visitTimeSecond=null,Ii.prototype.visitTimeMillisecond=null,Ii.prototype.visitTimeMicrosecond=null,Ii.prototype.visitTimeNanosecond=null,Ii.prototype.visitDenseUnion=null,Ii.prototype.visitSparseUnion=null,Ii.prototype.visitIntervalDayTime=null,Ii.prototype.visitIntervalYearMonth=null,Ii.prototype.visitDuration=null,Ii.prototype.visitDurationSecond=null,Ii.prototype.visitDurationMillisecond=null,Ii.prototype.visitDurationMicrosecond=null,Ii.prototype.visitDurationNanosecond=null;const Bi=new Float64Array(1),Di=new Uint32Array(Bi.buffer);function Ti(t){const e=(31744&t)>>10,i=(1023&t)/1024,n=Math.pow(-1,(32768&t)>>15);switch(e){case 31:return n*(i?Number.NaN:1/0);case 0:return n*(i?6103515625e-14*i:0)}return n*Math.pow(2,e-15)*(1+i)}function Oi(t){if(t!=t)return 32256;Bi[0]=t;const e=(2147483648&Di[1])>>16&65535;let i=2146435072&Di[1],n=0;return i>=1089470464?Di[0]>0?i=31744:(i=(2080374784&i)>>16,n=(1048575&Di[1])>>10):i<=1056964608?(n=1048576+(1048575&Di[1]),n=1048576+(n<<(i>>20)-998)>>21,i=0):(i=i-1056964608>>10,n=512+(1048575&Di[1])>>10),e|i|65535&n}var Li=Object.freeze({__proto__:null,uint16ToFloat64:Ti,float64ToUint16:Oi});class xi extends Ii{}function Mi(t){return(e,i,n)=>{if(e.setValid(i,null!=n))return t(e,i,n)}}const Fi=(t,e,i,n)=>{if(i+1{t[e]=i},Ui=({values:t},e,i)=>{t[e]=i},Ci=({values:t},e,i)=>{t[e]=Oi(i)},Ei=({values:t},e,i)=>{((t,e,i)=>{t[e]=Math.floor(i/864e5)})(t,e,i.valueOf())},Vi=({values:t},e,i)=>{t[e]=BigInt(i)},Ri=({stride:t,values:e},i,n)=>{e.set(n.subarray(0,t),t*i)},zi=({values:t,valueOffsets:e},i,n)=>Fi(t,e,i,n),Pi=({values:t,valueOffsets:e},i,n)=>Fi(t,e,i,h(n)),ji=(t,e,i)=>{t.type.unit===Z.DAY?Ei(t,e,i):Vi(t,e,i)},ki=({values:t},e,i)=>{t[e]=BigInt(i/1e3)},$i=({values:t},e,i)=>{t[e]=BigInt(i)},Wi=({values:t},e,i)=>{t[e]=BigInt(1e3*i)},Yi=({values:t},e,i)=>{t[e]=BigInt(1e6*i)},Hi=(t,e,i)=>{switch(t.type.unit){case X.SECOND:return ki(t,e,i);case X.MILLISECOND:return $i(t,e,i);case X.MICROSECOND:return Wi(t,e,i);case X.NANOSECOND:return Yi(t,e,i)}},Gi=({values:t},e,i)=>{t[e]=i},Zi=({values:t},e,i)=>{t[e]=i},Xi=({values:t},e,i)=>{t[e]=i},Ki=({values:t},e,i)=>{t[e]=i},Ji=(t,e,i)=>{switch(t.type.unit){case X.SECOND:return Gi(t,e,i);case X.MILLISECOND:return Zi(t,e,i);case X.MICROSECOND:return Xi(t,e,i);case X.NANOSECOND:return Ki(t,e,i)}},qi=({values:t,stride:e},i,n)=>{t.set(n.subarray(0,e),e*i)},Qi=(t,e,i)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[n];cn.visit(r,t.valueOffsets[e],i)},tn=(t,e,i)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[n];cn.visit(r,e,i)},en=(t,e,i)=>{t.type.unit===K.DAY_TIME?nn(t,e,i):rn(t,e,i)},nn=({values:t},e,i)=>{t.set(i.subarray(0,2),2*e)},rn=({values:t},e,i)=>{t[e]=12*i[0]+i[1]%12},sn=({values:t},e,i)=>{t[e]=i},on=({values:t},e,i)=>{t[e]=i},an=({values:t},e,i)=>{t[e]=i},ln=({values:t},e,i)=>{t[e]=i},un=(t,e,i)=>{switch(t.type.unit){case X.SECOND:return sn(t,e,i);case X.MILLISECOND:return on(t,e,i);case X.MICROSECOND:return an(t,e,i);case X.NANOSECOND:return ln(t,e,i)}};xi.prototype.visitBool=Mi((({offset:t,values:e},i,n)=>{const r=t+i;n?e[r>>3]|=1<>3]&=~(1<{switch(t.type.precision){case G.HALF:return Ci(t,e,i);case G.SINGLE:case G.DOUBLE:return Ui(t,e,i)}})),xi.prototype.visitFloat16=Mi(Ci),xi.prototype.visitFloat32=Mi(Ui),xi.prototype.visitFloat64=Mi(Ui),xi.prototype.visitUtf8=Mi(Pi),xi.prototype.visitLargeUtf8=Mi(Pi),xi.prototype.visitBinary=Mi(zi),xi.prototype.visitLargeBinary=Mi(zi),xi.prototype.visitFixedSizeBinary=Mi(Ri),xi.prototype.visitDate=Mi(ji),xi.prototype.visitDateDay=Mi(Ei),xi.prototype.visitDateMillisecond=Mi(Vi),xi.prototype.visitTimestamp=Mi(Hi),xi.prototype.visitTimestampSecond=Mi(ki),xi.prototype.visitTimestampMillisecond=Mi($i),xi.prototype.visitTimestampMicrosecond=Mi(Wi),xi.prototype.visitTimestampNanosecond=Mi(Yi),xi.prototype.visitTime=Mi(Ji),xi.prototype.visitTimeSecond=Mi(Gi),xi.prototype.visitTimeMillisecond=Mi(Zi),xi.prototype.visitTimeMicrosecond=Mi(Xi),xi.prototype.visitTimeNanosecond=Mi(Ki),xi.prototype.visitDecimal=Mi(qi),xi.prototype.visitList=Mi(((t,e,i)=>{const n=t.children[0],r=t.valueOffsets,s=cn.getVisitFn(n);if(Array.isArray(i))for(let t=-1,o=r[e],a=r[e+1];o{const n=t.type.children.map((t=>cn.getVisitFn(t.type))),r=i instanceof Map?(s=e,o=i,(t,e,i,n)=>e&&t(e,s,o.get(i.name))):i instanceof Er?((t,e)=>(i,n,r,s)=>n&&i(n,t,e.get(s)))(e,i):Array.isArray(i)?((t,e)=>(i,n,r,s)=>n&&i(n,t,e[s]))(e,i):((t,e)=>(i,n,r,s)=>n&&i(n,t,e[r.name]))(e,i);var s,o;t.type.children.forEach(((e,i)=>r(n[i],t.children[i],e,i)))})),xi.prototype.visitUnion=Mi(((t,e,i)=>{t.type.mode===H.Dense?Qi(t,e,i):tn(t,e,i)})),xi.prototype.visitDenseUnion=Mi(Qi),xi.prototype.visitSparseUnion=Mi(tn),xi.prototype.visitDictionary=Mi(((t,e,i)=>{var n;null===(n=t.dictionary)||void 0===n||n.set(t.values[e],i)})),xi.prototype.visitInterval=Mi(en),xi.prototype.visitIntervalDayTime=Mi(nn),xi.prototype.visitIntervalYearMonth=Mi(rn),xi.prototype.visitDuration=Mi(un),xi.prototype.visitDurationSecond=Mi(sn),xi.prototype.visitDurationMillisecond=Mi(on),xi.prototype.visitDurationMicrosecond=Mi(an),xi.prototype.visitDurationNanosecond=Mi(ln),xi.prototype.visitFixedSizeList=Mi(((t,e,i)=>{const{stride:n}=t,r=t.children[0],s=cn.getVisitFn(r);if(Array.isArray(i))for(let t=-1,o=e*n;++t{const n=t.children[0],{valueOffsets:r}=t,s=cn.getVisitFn(n);let{[e]:o,[e+1]:a}=r;const l=i instanceof Map?i.entries():Object.entries(i);for(const t of l)if(s(n,o,t),++o>=a)break}));const cn=new xi,hn=Symbol.for("parent"),dn=Symbol.for("rowIndex");class pn{constructor(t,e){return this[hn]=t,this[dn]=e,new Proxy(this,new fn)}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[dn],e=this[hn],i=e.type.children,n={};for(let r=-1,s=i.length;++r`${Vt(t)}: ${Vt(e)}`)).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new yn(this[hn],this[dn])}}class yn{constructor(t,e){this.childIndex=0,this.children=t.children,this.rowIndex=e,this.childFields=t.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const t=this.childIndex;return tt.name))}has(t,e){return-1!==t[hn].type.children.findIndex((t=>t.name===e))}getOwnPropertyDescriptor(t,e){if(-1!==t[hn].type.children.findIndex((t=>t.name===e)))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];const i=t[hn].type.children.findIndex((t=>t.name===e));if(-1!==i){const n=jn.visit(t[hn].children[i],t[dn]);return Reflect.set(t,e,n),n}}set(t,e,i){const n=t[hn].type.children.findIndex((t=>t.name===e));return-1!==n?(cn.visit(t[hn].children[n],t[dn],i),Reflect.set(t,e,i)):!(!Reflect.has(t,e)&&"symbol"!=typeof e)&&Reflect.set(t,e,i)}}class bn extends Ii{}function gn(t){return(e,i)=>e.getValid(i)?t(e,i):null}const vn=(t,e,i)=>{if(i+1>=e.length)return null;const n=zt(e[i]),r=zt(e[i+1]);return t.subarray(n,r)},_n=({values:t},e)=>((t,e)=>864e5*t[e])(t,e),mn=({values:t},e)=>zt(t[e]),wn=({stride:t,values:e},i)=>e[t*i],In=({values:t},e)=>t[e],Sn=({values:t,valueOffsets:e},i)=>vn(t,e,i),An=({values:t,valueOffsets:e},i)=>{const n=vn(t,e,i);return null!==n?u(n):null},Bn=({values:t},e)=>1e3*zt(t[e]),Dn=({values:t},e)=>zt(t[e]),Tn=({values:t},e)=>Pt(t[e],BigInt(1e3)),On=({values:t},e)=>Pt(t[e],BigInt(1e6)),Ln=({values:t},e)=>t[e],xn=({values:t},e)=>t[e],Mn=({values:t},e)=>t[e],Fn=({values:t},e)=>t[e],Nn=(t,e)=>{const i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];return jn.visit(n,t.valueOffsets[e])},Un=(t,e)=>{const i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];return jn.visit(n,e)},Cn=({values:t},e)=>t.subarray(2*e,2*(e+1)),En=({values:t},e)=>{const i=t[e],n=new Int32Array(2);return n[0]=Math.trunc(i/12),n[1]=Math.trunc(i%12),n},Vn=({values:t},e)=>t[e],Rn=({values:t},e)=>t[e],zn=({values:t},e)=>t[e],Pn=({values:t},e)=>t[e];bn.prototype.visitNull=gn(((t,e)=>null)),bn.prototype.visitBool=gn((({offset:t,values:e},i)=>{const n=t+i;return 0!=(e[n>>3]&1<t[e])),bn.prototype.visitInt8=gn(wn),bn.prototype.visitInt16=gn(wn),bn.prototype.visitInt32=gn(wn),bn.prototype.visitInt64=gn(In),bn.prototype.visitUint8=gn(wn),bn.prototype.visitUint16=gn(wn),bn.prototype.visitUint32=gn(wn),bn.prototype.visitUint64=gn(In),bn.prototype.visitFloat=gn((({type:t,values:e},i)=>t.precision!==G.HALF?e[i]:Ti(e[i]))),bn.prototype.visitFloat16=gn((({stride:t,values:e},i)=>Ti(e[t*i]))),bn.prototype.visitFloat32=gn(wn),bn.prototype.visitFloat64=gn(wn),bn.prototype.visitUtf8=gn(An),bn.prototype.visitLargeUtf8=gn(An),bn.prototype.visitBinary=gn(Sn),bn.prototype.visitLargeBinary=gn(Sn),bn.prototype.visitFixedSizeBinary=gn((({stride:t,values:e},i)=>e.subarray(t*i,t*(i+1)))),bn.prototype.visitDate=gn(((t,e)=>t.type.unit===Z.DAY?_n(t,e):mn(t,e))),bn.prototype.visitDateDay=gn(_n),bn.prototype.visitDateMillisecond=gn(mn),bn.prototype.visitTimestamp=gn(((t,e)=>{switch(t.type.unit){case X.SECOND:return Bn(t,e);case X.MILLISECOND:return Dn(t,e);case X.MICROSECOND:return Tn(t,e);case X.NANOSECOND:return On(t,e)}})),bn.prototype.visitTimestampSecond=gn(Bn),bn.prototype.visitTimestampMillisecond=gn(Dn),bn.prototype.visitTimestampMicrosecond=gn(Tn),bn.prototype.visitTimestampNanosecond=gn(On),bn.prototype.visitTime=gn(((t,e)=>{switch(t.type.unit){case X.SECOND:return Ln(t,e);case X.MILLISECOND:return xn(t,e);case X.MICROSECOND:return Mn(t,e);case X.NANOSECOND:return Fn(t,e)}})),bn.prototype.visitTimeSecond=gn(Ln),bn.prototype.visitTimeMillisecond=gn(xn),bn.prototype.visitTimeMicrosecond=gn(Mn),bn.prototype.visitTimeNanosecond=gn(Fn),bn.prototype.visitDecimal=gn((({values:t,stride:e},i)=>Jt.decimal(t.subarray(e*i,e*(i+1))))),bn.prototype.visitList=gn(((t,e)=>{const{valueOffsets:i,stride:n,children:r}=t,{[e*n]:s,[e*n+1]:o}=i,a=r[0].slice(s,o-s);return new Er([a])})),bn.prototype.visitStruct=gn(((t,e)=>new pn(t,e))),bn.prototype.visitUnion=gn(((t,e)=>t.type.mode===H.Dense?Nn(t,e):Un(t,e))),bn.prototype.visitDenseUnion=gn(Nn),bn.prototype.visitSparseUnion=gn(Un),bn.prototype.visitDictionary=gn(((t,e)=>{var i;return null===(i=t.dictionary)||void 0===i?void 0:i.get(t.values[e])})),bn.prototype.visitInterval=gn(((t,e)=>t.type.unit===K.DAY_TIME?Cn(t,e):En(t,e))),bn.prototype.visitIntervalDayTime=gn(Cn),bn.prototype.visitIntervalYearMonth=gn(En),bn.prototype.visitDuration=gn(((t,e)=>{switch(t.type.unit){case X.SECOND:return Vn(t,e);case X.MILLISECOND:return Rn(t,e);case X.MICROSECOND:return zn(t,e);case X.NANOSECOND:return Pn(t,e)}})),bn.prototype.visitDurationSecond=gn(Vn),bn.prototype.visitDurationMillisecond=gn(Rn),bn.prototype.visitDurationMicrosecond=gn(zn),bn.prototype.visitDurationNanosecond=gn(Pn),bn.prototype.visitFixedSizeList=gn(((t,e)=>{const{stride:i,children:n}=t,r=n[0].slice(e*i,i);return new Er([r])})),bn.prototype.visitMap=gn(((t,e)=>{const{valueOffsets:i,children:n}=t,{[e]:r,[e+1]:s}=i,o=n[0];return new Hn(o.slice(r,s-r))}));const jn=new bn,kn=Symbol.for("keys"),$n=Symbol.for("vals"),Wn=Symbol.for("kKeysAsStrings"),Yn=Symbol.for("_kKeysAsStrings");class Hn{constructor(t){return this[kn]=new Er([t.children[0]]).memoize(),this[$n]=t.children[1],new Proxy(this,new Zn)}get[Wn](){return this[Yn]||(this[Yn]=Array.from(this[kn].toArray(),String))}[Symbol.iterator](){return new Gn(this[kn],this[$n])}get size(){return this[kn].length}toArray(){return Object.values(this.toJSON())}toJSON(){const t=this[kn],e=this[$n],i={};for(let n=-1,r=t.length;++n`${Vt(t)}: ${Vt(e)}`)).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class Gn{constructor(t,e){this.keys=t,this.vals=e,this.keyIndex=0,this.numKeys=t.length}[Symbol.iterator](){return this}next(){const t=this.keyIndex;return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),jn.visit(this.vals,t)]})}}class Zn{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[Wn]}has(t,e){return t[Wn].includes(e)}getOwnPropertyDescriptor(t,e){if(-1!==t[Wn].indexOf(e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];const i=t[Wn].indexOf(e);if(-1!==i){const n=jn.visit(Reflect.get(t,$n),i);return Reflect.set(t,e,n),n}}set(t,e,i){const n=t[Wn].indexOf(e);return-1!==n?(cn.visit(Reflect.get(t,$n),n,i),Reflect.set(t,e,i)):!!Reflect.has(t,e)&&Reflect.set(t,e,i)}}let Xn;function Kn(t,e,i,n){const{length:r=0}=t;let s="number"!=typeof e?0:e,o="number"!=typeof i?r:i;return s<0&&(s=(s%r+r)%r),o<0&&(o=(o%r+r)%r),or&&(o=r),n?n(t,s,o):[s,o]}Object.defineProperties(Hn.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[kn]:{writable:!0,enumerable:!1,configurable:!1,value:null},[$n]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Yn]:{writable:!0,enumerable:!1,configurable:!1,value:null}});const Jn=(t,e)=>t<0?e+t:t,qn=t=>t!=t;function Qn(t){if("object"!==typeof t||null===t)return qn(t)?qn:e=>e===t;if(t instanceof Date){const e=t.valueOf();return t=>t instanceof Date&&t.valueOf()===e}return ArrayBuffer.isView(t)?e=>!!e&&z(t,e):t instanceof Map?function(t){let e=-1;const i=[];for(const n of t.values())i[++e]=Qn(n);return tr(i)}(t):Array.isArray(t)?function(t){const e=[];for(let i=-1,n=t.length;++i!1;const n=[];for(let e=-1,r=i.length;++e{if(!i||"object"!=typeof i)return!1;switch(i.constructor){case Array:return function(t,e){const i=t.length;if(e.length!==i)return!1;for(let n=-1;++n>n}function sr(t,e,i){const n=i.byteLength+7&-8;if(t>0||i.byteLength>3):or(new ar(i,t,e,null,nr)).subarray(0,n)),r}return i}function or(t){const e=[];let i=0,n=0,r=0;for(const s of t)s&&(r|=1<0)&&(e[i++]=r);const s=new Uint8Array(e.length+7&-8);return s.set(e),s}class ar{constructor(t,e,i,n,r){this.bytes=t,this.length=i,this.context=n,this.get=r,this.bit=e%8,this.byteIndex=e>>3,this.byte=t[this.byteIndex++],this.index=0}next(){return this.index>3<<3,r=e+(e%8==0?0:8-e%8);return lr(t,e,r)+lr(t,n,i)+ur(t,r>>3,n-r>>3)}function ur(t,e,i){let n=0,r=Math.trunc(e);const s=new DataView(t.buffer,t.byteOffset,t.byteLength),o=void 0===i?t.byteLength:r+i;for(;o-r>=4;)n+=cr(s.getUint32(r)),r+=4;for(;o-r>=2;)n+=cr(s.getUint16(r)),r+=2;for(;o-r>=1;)n+=cr(s.getUint8(r)),r+=1;return n}function cr(t){let e=Math.trunc(t);return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),16843009*(e+(e>>>4)&252645135)>>>24}var hr=Object.freeze({__proto__:null,getBool:nr,getBit:rr,setBool:function(t,e,i){return i?!!(t[e>>3]|=1<>3]&=~(1<t.nullable)):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let t=0;const{valueOffsets:e,values:i,nullBitmap:n,typeIds:r}=this;return e&&(t+=e.byteLength),i&&(t+=i.byteLength),n&&(t+=n.byteLength),r&&(t+=r.byteLength),this.children.reduce(((t,e)=>t+e.byteLength),t)}get nullCount(){if(Ie.isUnion(this.type))return this.children.reduce(((t,e)=>t+e.nullCount),0);let t,e=this._nullCount;return e<=-1&&(t=this.nullBitmap)&&(this._nullCount=e=0===t.length?0:this.length-lr(t,this.offset,this.offset+this.length)),e}constructor(t,e,i,n,r,s=[],o){let a;this.type=t,this.children=s,this.dictionary=o,this.offset=Math.floor(Math.max(e||0,0)),this.length=Math.floor(Math.max(i||0,0)),this._nullCount=Math.floor(Math.max(n||0,-1)),r instanceof dr?(this.stride=r.stride,this.values=r.values,this.typeIds=r.typeIds,this.nullBitmap=r.nullBitmap,this.valueOffsets=r.valueOffsets):(this.stride=wi(t),r&&((a=r[0])&&(this.valueOffsets=a),(a=r[1])&&(this.values=a),(a=r[2])&&(this.nullBitmap=a),(a=r[3])&&(this.typeIds=a)))}getValid(t){const{type:e}=this;if(Ie.isUnion(e)){const i=e,n=this.children[i.typeIdToChildIndex[this.typeIds[t]]],r=i.mode===H.Dense?this.valueOffsets[t]:t;return n.getValid(r)}if(this.nullable&&this.nullCount>0){const e=this.offset+t;return 0!=(this.nullBitmap[e>>3]&1<>3;(!n||n.byteLength<=l)&&(n=new Uint8Array((r+s+63&-64)>>3).fill(255),this.nullCount>0?(n.set(sr(r,s,this.nullBitmap),0),Object.assign(this,{nullBitmap:n})):Object.assign(this,{nullBitmap:n,_nullCount:0}));const u=n[l];i=0!=(u&a),n[l]=e?u|a:u&~a}return i!==!!e&&(this._nullCount=this.nullCount+(e?-1:1)),e}clone(t=this.type,e=this.offset,i=this.length,n=this._nullCount,r=this,s=this.children){return new dr(t,e,i,n,r,s,this.dictionary)}slice(t,e){const{stride:i,typeId:n,children:r}=this,s=+(0===this._nullCount)-1,o=16===n?i:1,a=this._sliceBuffers(t,e,i,n);return this.clone(this.type,this.offset+t,e,s,a,0===r.length||this.valueOffsets?r:this._sliceChildren(r,o*t,o*e))}_changeLengthAndBackfillNullBitmap(t){if(this.typeId===st.Null)return this.clone(this.type,0,t,0);const{length:e,nullCount:i}=this,n=new Uint8Array((t+63&-64)>>3).fill(255,0,e>>3);n[e>>3]=(1<0&&n.set(sr(this.offset,e,this.nullBitmap),0);const r=this.buffers;return r[ot.VALIDITY]=n,this.clone(this.type,0,t,i+(t-e),r)}_sliceBuffers(t,e,i,n){let r;const{buffers:s}=this;return(r=s[ot.TYPE])&&(s[ot.TYPE]=r.subarray(t,t+e)),(r=s[ot.OFFSET])&&(s[ot.OFFSET]=r.subarray(t,t+e+1))||(r=s[ot.DATA])&&(s[ot.DATA]=6===n?r:r.subarray(i*t,i*(t+e))),s}_sliceChildren(t,e,i){return t.map((t=>t.slice(e,i)))}}dr.prototype.children=Object.freeze([]);class pr extends Ii{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){const{type:e,offset:i=0,length:n=0}=t;return new dr(e,i,n,n)}visitBool(t){const{type:e,offset:i=0}=t,n=F(t.nullBitmap),r=L(e.ArrayType,t.data),{length:s=r.length>>3,nullCount:o=(t.nullBitmap?-1:0)}=t;return new dr(e,i,s,o,[void 0,r,n])}visitInt(t){const{type:e,offset:i=0}=t,n=F(t.nullBitmap),r=L(e.ArrayType,t.data),{length:s=r.length,nullCount:o=(t.nullBitmap?-1:0)}=t;return new dr(e,i,s,o,[void 0,r,n])}visitFloat(t){const{type:e,offset:i=0}=t,n=F(t.nullBitmap),r=L(e.ArrayType,t.data),{length:s=r.length,nullCount:o=(t.nullBitmap?-1:0)}=t;return new dr(e,i,s,o,[void 0,r,n])}visitUtf8(t){const{type:e,offset:i=0}=t,n=F(t.data),r=F(t.nullBitmap),s=x(t.valueOffsets),{length:o=s.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t;return new dr(e,i,o,a,[s,n,r])}visitLargeUtf8(t){const{type:e,offset:i=0}=t,n=F(t.data),r=F(t.nullBitmap),s=M(t.valueOffsets),{length:o=s.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t;return new dr(e,i,o,a,[s,n,r])}visitBinary(t){const{type:e,offset:i=0}=t,n=F(t.data),r=F(t.nullBitmap),s=x(t.valueOffsets),{length:o=s.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t;return new dr(e,i,o,a,[s,n,r])}visitLargeBinary(t){const{type:e,offset:i=0}=t,n=F(t.data),r=F(t.nullBitmap),s=M(t.valueOffsets),{length:o=s.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t;return new dr(e,i,o,a,[s,n,r])}visitFixedSizeBinary(t){const{type:e,offset:i=0}=t,n=F(t.nullBitmap),r=L(e.ArrayType,t.data),{length:s=r.length/wi(e),nullCount:o=(t.nullBitmap?-1:0)}=t;return new dr(e,i,s,o,[void 0,r,n])}visitDate(t){const{type:e,offset:i=0}=t,n=F(t.nullBitmap),r=L(e.ArrayType,t.data),{length:s=r.length/wi(e),nullCount:o=(t.nullBitmap?-1:0)}=t;return new dr(e,i,s,o,[void 0,r,n])}visitTimestamp(t){const{type:e,offset:i=0}=t,n=F(t.nullBitmap),r=L(e.ArrayType,t.data),{length:s=r.length/wi(e),nullCount:o=(t.nullBitmap?-1:0)}=t;return new dr(e,i,s,o,[void 0,r,n])}visitTime(t){const{type:e,offset:i=0}=t,n=F(t.nullBitmap),r=L(e.ArrayType,t.data),{length:s=r.length/wi(e),nullCount:o=(t.nullBitmap?-1:0)}=t;return new dr(e,i,s,o,[void 0,r,n])}visitDecimal(t){const{type:e,offset:i=0}=t,n=F(t.nullBitmap),r=L(e.ArrayType,t.data),{length:s=r.length/wi(e),nullCount:o=(t.nullBitmap?-1:0)}=t;return new dr(e,i,s,o,[void 0,r,n])}visitList(t){const{type:e,offset:i=0,child:n}=t,r=F(t.nullBitmap),s=x(t.valueOffsets),{length:o=s.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t;return new dr(e,i,o,a,[s,void 0,r],[n])}visitStruct(t){const{type:e,offset:i=0,children:n=[]}=t,r=F(t.nullBitmap),{length:s=n.reduce(((t,{length:e})=>Math.max(t,e)),0),nullCount:o=(t.nullBitmap?-1:0)}=t;return new dr(e,i,s,o,[void 0,void 0,r],n)}visitUnion(t){const{type:e,offset:i=0,children:n=[]}=t,r=L(e.ArrayType,t.typeIds),{length:s=r.length,nullCount:o=-1}=t;if(Ie.isSparseUnion(e))return new dr(e,i,s,o,[void 0,void 0,void 0,r],n);const a=x(t.valueOffsets);return new dr(e,i,s,o,[a,void 0,void 0,r],n)}visitDictionary(t){const{type:e,offset:i=0}=t,n=F(t.nullBitmap),r=L(e.indices.ArrayType,t.data),{dictionary:s=new Er([(new pr).visit({type:e.dictionary})])}=t,{length:o=r.length,nullCount:a=(t.nullBitmap?-1:0)}=t;return new dr(e,i,o,a,[void 0,r,n],[],s)}visitInterval(t){const{type:e,offset:i=0}=t,n=F(t.nullBitmap),r=L(e.ArrayType,t.data),{length:s=r.length/wi(e),nullCount:o=(t.nullBitmap?-1:0)}=t;return new dr(e,i,s,o,[void 0,r,n])}visitDuration(t){const{type:e,offset:i=0}=t,n=F(t.nullBitmap),r=L(e.ArrayType,t.data),{length:s=r.length,nullCount:o=(t.nullBitmap?-1:0)}=t;return new dr(e,i,s,o,[void 0,r,n])}visitFixedSizeList(t){const{type:e,offset:i=0,child:n=(new pr).visit({type:e.valueType})}=t,r=F(t.nullBitmap),{length:s=n.length/wi(e),nullCount:o=(t.nullBitmap?-1:0)}=t;return new dr(e,i,s,o,[void 0,void 0,r],[n])}visitMap(t){const{type:e,offset:i=0,child:n=(new pr).visit({type:e.childType})}=t,r=F(t.nullBitmap),s=x(t.valueOffsets),{length:o=s.length-1,nullCount:a=(t.nullBitmap?-1:0)}=t;return new dr(e,i,o,a,[s,void 0,r],[n])}}const yr=new pr;function fr(t){return yr.visit(t)}class br{constructor(t=0,e){this.numChunks=t,this.getChunkIterator=e,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndext+e.nullCount),0)}function vr(t){return t.reduce(((t,e,i)=>(t[i+1]=t[i]+e.length,t)),new Uint32Array(t.length+1))}function _r(t,e,i,n){const r=[];for(let s=-1,o=t.length;++s=n)break;if(i>=a+l)continue;if(a>=i&&a+l<=n){r.push(o);continue}const u=Math.max(0,i-a),c=Math.min(n-a,l);r.push(o.slice(u,c-u))}return 0===r.length&&r.push(t[0].slice(0,0)),r}function mr(t,e,i,n){let r=0,s=0,o=e.length-1;do{if(r>=o-1)return i0?0:-1},Br.prototype.visitBool=Dr,Br.prototype.visitInt=Dr,Br.prototype.visitInt8=Dr,Br.prototype.visitInt16=Dr,Br.prototype.visitInt32=Dr,Br.prototype.visitInt64=Dr,Br.prototype.visitUint8=Dr,Br.prototype.visitUint16=Dr,Br.prototype.visitUint32=Dr,Br.prototype.visitUint64=Dr,Br.prototype.visitFloat=Dr,Br.prototype.visitFloat16=Dr,Br.prototype.visitFloat32=Dr,Br.prototype.visitFloat64=Dr,Br.prototype.visitUtf8=Dr,Br.prototype.visitLargeUtf8=Dr,Br.prototype.visitBinary=Dr,Br.prototype.visitLargeBinary=Dr,Br.prototype.visitFixedSizeBinary=Dr,Br.prototype.visitDate=Dr,Br.prototype.visitDateDay=Dr,Br.prototype.visitDateMillisecond=Dr,Br.prototype.visitTimestamp=Dr,Br.prototype.visitTimestampSecond=Dr,Br.prototype.visitTimestampMillisecond=Dr,Br.prototype.visitTimestampMicrosecond=Dr,Br.prototype.visitTimestampNanosecond=Dr,Br.prototype.visitTime=Dr,Br.prototype.visitTimeSecond=Dr,Br.prototype.visitTimeMillisecond=Dr,Br.prototype.visitTimeMicrosecond=Dr,Br.prototype.visitTimeNanosecond=Dr,Br.prototype.visitDecimal=Dr,Br.prototype.visitList=Dr,Br.prototype.visitStruct=Dr,Br.prototype.visitUnion=Dr,Br.prototype.visitDenseUnion=Tr,Br.prototype.visitSparseUnion=Tr,Br.prototype.visitDictionary=Dr,Br.prototype.visitInterval=Dr,Br.prototype.visitIntervalDayTime=Dr,Br.prototype.visitIntervalYearMonth=Dr,Br.prototype.visitDuration=Dr,Br.prototype.visitDurationSecond=Dr,Br.prototype.visitDurationMillisecond=Dr,Br.prototype.visitDurationMicrosecond=Dr,Br.prototype.visitDurationNanosecond=Dr,Br.prototype.visitFixedSizeList=Dr,Br.prototype.visitMap=Dr;const Or=new Br;class Lr extends Ii{}function xr(t){const{type:e}=t;if(0===t.nullCount&&1===t.stride&&(Ie.isInt(e)&&64!==e.bitWidth||Ie.isTime(e)&&64!==e.bitWidth||Ie.isFloat(e)&&e.precision!==G.HALF))return new br(t.data.length,(e=>{const i=t.data[e];return i.values.subarray(0,i.length)[Symbol.iterator]()}));let i=0;return new br(t.data.length,(e=>{const n=t.data[e].length,r=t.slice(i,i+n);return i+=n,new Mr(r)}))}class Mr{constructor(t){this.vector=t,this.index=0}next(){return this.indext.data)):t;if(0===r.length||r.some((t=>!(t instanceof dr))))throw new TypeError("Vector constructor expects an Array of Data instances.");const s=null===(e=r[0])||void 0===e?void 0:e.type;switch(r.length){case 0:this._offsets=[0];break;case 1:{const{get:t,set:e,indexOf:i}=Ur[s.typeId],n=r[0];this.isValid=t=>wr(n,t),this.get=e=>t(n,e),this.set=(t,i)=>e(n,t,i),this.indexOf=t=>i(n,t),this._offsets=[0,n.length];break}default:Object.setPrototypeOf(this,Cr[s.typeId]),this._offsets=vr(r)}this.data=r,this.type=s,this.stride=wi(s),this.numChildren=null!==(n=null===(i=s.children)||void 0===i?void 0:i.length)&&void 0!==n?n:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce(((t,e)=>t+e.byteLength),0)}get nullable(){return this.data.some((t=>t.nullable))}get nullCount(){return gr(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${st[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}at(t){return this.get(Jn(t,this.length))}set(t,e){}indexOf(t,e){return-1}includes(t,e){return this.indexOf(t,e)>-1}[Symbol.iterator](){return Fr.visit(this)}concat(...t){return new Er(this.data.concat(t.flatMap((t=>t.data)).flat(Number.POSITIVE_INFINITY)))}slice(t,e){return new Er(Kn(this,t,e,(({data:t,_offsets:e},i,n)=>_r(t,e,i,n))))}toJSON(){return[...this]}toArray(){const{type:t,data:e,length:i,stride:n,ArrayType:r}=this;switch(t.typeId){case st.Int:case st.Float:case st.Decimal:case st.Time:case st.Timestamp:switch(e.length){case 0:return new r;case 1:return e[0].values.subarray(0,i*n);default:return e.reduce(((t,{values:e,length:i})=>(t.array.set(e.subarray(0,i*n),t.offset),t.offset+=i*n,t)),{array:new r(i*n),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(t){var e;return this.getChildAt(null===(e=this.type.children)||void 0===e?void 0:e.findIndex((e=>e.name===t)))}getChildAt(t){return t>-1&&te[t]))):null}get isMemoized(){return!!Ie.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(Ie.isDictionary(this.type)){const t=new Vr(this.data[0].dictionary),e=this.data.map((e=>{const i=e.clone();return i.dictionary=t,i}));return new Er(e)}return new Vr(this)}unmemoize(){if(Ie.isDictionary(this.type)&&this.isMemoized){const t=this.data[0].dictionary.unmemoize(),e=this.data.map((e=>{const i=e.clone();return i.dictionary=t,i}));return new Er(e)}return this}}Nr=Symbol.toStringTag,Er[Nr]=(t=>{t.type=Ie.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0;const e=Object.keys(st).map((t=>st[t])).filter((t=>"number"==typeof t&&t!==st.NONE));for(const i of e){const e=jn.getVisitFnByTypeId(i),n=cn.getVisitFnByTypeId(i),r=Or.getVisitFnByTypeId(i);Ur[i]={get:e,set:n,indexOf:r},Cr[i]=Object.create(t,{isValid:{value:Ir(wr)},get:{value:Ir(jn.getVisitFnByTypeId(i))},set:{value:Sr(cn.getVisitFnByTypeId(i))},indexOf:{value:Ar(Or.getVisitFnByTypeId(i))}})}return"Vector"})(Er.prototype);class Vr extends Er{constructor(t){super(t.data);const e=this.get,i=this.set,n=this.slice,r=new Array(this.length);Object.defineProperty(this,"get",{value(t){const i=r[t];if(void 0!==i)return i;const n=e.call(this,t);return r[t]=n,n}}),Object.defineProperty(this,"set",{value(t,e){i.call(this,t,e),r[t]=e}}),Object.defineProperty(this,"slice",{value:(t,e)=>new Vr(n.call(this,t,e))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new Er(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}function Rr(t){if(t){if(t instanceof dr)return new Er([t]);if(t instanceof Er)return new Er(t.data);if(t.type instanceof Ie)return new Er([fr(t)]);if(Array.isArray(t))return new Er(t.flatMap((t=>{return(e=t)instanceof dr?[e]:e instanceof Er?e.data:Rr(e).data;var e})));if(ArrayBuffer.isView(t)){t instanceof DataView&&(t=new Uint8Array(t.buffer));const e={offset:0,length:t.length,nullCount:-1,data:t};if(t instanceof Int8Array)return new Er([fr(Object.assign(Object.assign({},e),{type:new Be}))]);if(t instanceof Int16Array)return new Er([fr(Object.assign(Object.assign({},e),{type:new De}))]);if(t instanceof Int32Array)return new Er([fr(Object.assign(Object.assign({},e),{type:new Te}))]);if(t instanceof BigInt64Array)return new Er([fr(Object.assign(Object.assign({},e),{type:new Oe}))]);if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)return new Er([fr(Object.assign(Object.assign({},e),{type:new Le}))]);if(t instanceof Uint16Array)return new Er([fr(Object.assign(Object.assign({},e),{type:new xe}))]);if(t instanceof Uint32Array)return new Er([fr(Object.assign(Object.assign({},e),{type:new Me}))]);if(t instanceof BigUint64Array)return new Er([fr(Object.assign(Object.assign({},e),{type:new Fe}))]);if(t instanceof Float32Array)return new Er([fr(Object.assign(Object.assign({},e),{type:new Ce}))]);if(t instanceof Float64Array)return new Er([fr(Object.assign(Object.assign({},e),{type:new Ee}))]);throw new Error("Unrecognized input")}}throw new Error("Unrecognized input")}function zr(t){if(!t||t.length<=0)return function(t){return!0};let e="";const i=t.filter((t=>t==t));return i.length>0&&(e=`\n switch (x) {${i.map((t=>`\n case ${function(t){if("bigint"!=typeof t)return Vt(t);return`${Vt(t)}n`}(t)}:`)).join("")}\n return false;\n }`),t.length!==i.length&&(e=`if (x !== x) return false;\n${e}`),new Function("x",`${e}\nreturn true;`)}function Pr(t,e){const i=Math.ceil(t)*e-1;return(i-i%64+64||64)/e}function jr(t,e=0){return t.length>=e?t.subarray(0,e):T(new t.constructor(e),t,0)}class kr{constructor(t,e=0,i=1){this.length=Math.ceil(e/i),this.buffer=new t(this.length),this.stride=i,this.BYTES_PER_ELEMENT=t.BYTES_PER_ELEMENT,this.ArrayType=t}get byteLength(){return Math.ceil(this.length*this.stride)*this.BYTES_PER_ELEMENT}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(t,e){return this}append(t){return this.set(this.length,t)}reserve(t){if(t>0){this.length+=t;const e=this.stride,i=this.length*e,n=this.buffer.length;i>=n&&this._resize(Pr(0===n?1*i:2*i,this.BYTES_PER_ELEMENT))}return this}flush(t=this.length){t=Pr(t*this.stride,this.BYTES_PER_ELEMENT);const e=jr(this.buffer,t);return this.clear(),e}clear(){return this.length=0,this.buffer=new this.ArrayType,this}_resize(t){return this.buffer=jr(this.buffer,t)}}class $r extends kr{last(){return this.get(this.length-1)}get(t){return this.buffer[t]}set(t,e){return this.reserve(t-this.length+1),this.buffer[t*this.stride]=e,this}}class Wr extends $r{constructor(){super(Uint8Array,0,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(t){return this.buffer[t>>3]>>t%8&1}set(t,e){const{buffer:i}=this.reserve(t-this.length+1),n=t>>3,r=t%8,s=i[n]>>r&1;return e?0===s&&(i[n]|=1<=0&&n.fill(n[i],i,t),n[t]=n[t-1]+e,this}flush(t=this.length-1){return t>this.length&&this.set(t-1,this.BYTES_PER_ELEMENT>4?BigInt(0):0),super.flush(t+1)}}class Hr{static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t){throw new Error('"throughDOM" not available in this environment')}constructor({type:t,nullValues:e}){this.length=0,this.finished=!1,this.type=t,this.children=[],this.nullValues=e,this.stride=wi(t),this._nulls=new Wr,e&&e.length>0&&(this._isValid=zr(e))}toVector(){return new Er([this.flush()])}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let t=0;const{_offsets:e,_values:i,_nulls:n,_typeIds:r,children:s}=this;return e&&(t+=e.byteLength),i&&(t+=i.byteLength),n&&(t+=n.byteLength),r&&(t+=r.byteLength),s.reduce(((t,e)=>t+e.byteLength),t)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let t=0;return this._offsets&&(t+=this._offsets.reservedByteLength),this._values&&(t+=this._values.reservedByteLength),this._nulls&&(t+=this._nulls.reservedByteLength),this._typeIds&&(t+=this._typeIds.reservedByteLength),this.children.reduce(((t,e)=>t+e.reservedByteLength),t)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(t){return this.set(this.length,t)}isValid(t){return this._isValid(t)}set(t,e){return this.setValid(t,this.isValid(e))&&this.setValue(t,e),this}setValue(t,e){this._setValue(this,t,e)}setValid(t,e){return this.length=this._nulls.set(t,+e).length,e}addChild(t,e=`${this.numChildren}`){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(t){return this.children[t]||null}flush(){let t,e,i,n;const{type:r,length:s,nullCount:o,_typeIds:a,_offsets:l,_values:u,_nulls:c}=this;(e=null==a?void 0:a.flush(s))?n=null==l?void 0:l.flush(s):t=(n=null==l?void 0:l.flush(s))?null==u?void 0:u.flush(l.last()):null==u?void 0:u.flush(s),o>0&&(i=null==c?void 0:c.flush(s));const h=this.children.map((t=>t.flush()));return this.clear(),fr({type:r,length:s,nullCount:o,children:h,child:h[0],data:t,typeIds:e,nullBitmap:i,valueOffsets:n})}finish(){this.finished=!0;for(const t of this.children)t.finish();return this}clear(){var t,e,i,n;this.length=0,null===(t=this._nulls)||void 0===t||t.clear(),null===(e=this._values)||void 0===e||e.clear(),null===(i=this._offsets)||void 0===i||i.clear(),null===(n=this._typeIds)||void 0===n||n.clear();for(const t of this.children)t.clear();return this}}Hr.prototype.length=1,Hr.prototype.stride=1,Hr.prototype.children=null,Hr.prototype.finished=!1,Hr.prototype.nullValues=null,Hr.prototype._isValid=()=>!0;class Gr extends Hr{constructor(t){super(t),this._values=new $r(this.ArrayType,0,this.stride)}setValue(t,e){const i=this._values;return i.reserve(t-i.length+1),super.setValue(t,e)}}class Zr extends Hr{constructor(t){super(t),this._pendingLength=0,this._offsets=new Yr(t.type)}setValue(t,e){const i=this._pending||(this._pending=new Map),n=i.get(t);n&&(this._pendingLength-=n.length),this._pendingLength+=e instanceof Hn?e[kn].length:e.length,i.set(t,e)}setValid(t,e){return!!super.setValid(t,e)||((this._pending||(this._pending=new Map)).set(t,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){const t=this._pending,e=this._pendingLength;return this._pendingLength=0,this._pending=void 0,t&&t.size>0&&this._flushPending(t,e),this}}class Xr{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(t,e,i,n){return t.prep(8,24),t.writeInt64(BigInt(null!=n?n:0)),t.pad(4),t.writeInt32(i),t.writeInt64(BigInt(null!=e?e:0)),t.offset()}}class Kr{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFooter(t,e){return(e||new Kr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new Kr).__init(t.readInt32(t.position())+t.position(),t)}version(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Y.V1}schema(t){const e=this.bb.__offset(this.bb_pos,6);return e?(t||new Ct).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(t,e){const i=this.bb.__offset(this.bb_pos,8);return i?(e||new Xr).__init(this.bb.__vector(this.bb_pos+i)+24*t,this.bb):null}dictionariesLength(){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}recordBatches(t,e){const i=this.bb.__offset(this.bb_pos,10);return i?(e||new Xr).__init(this.bb.__vector(this.bb_pos+i)+24*t,this.bb):null}recordBatchesLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){const i=this.bb.__offset(this.bb_pos,12);return i?(e||new yt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*t),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startFooter(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,Y.V1)}static addSchema(t,e){t.addFieldOffset(1,e,0)}static addDictionaries(t,e){t.addFieldOffset(2,e,0)}static startDictionariesVector(t,e){t.startVector(24,e,8)}static addRecordBatches(t,e){t.addFieldOffset(3,e,0)}static startRecordBatchesVector(t,e){t.startVector(24,e,8)}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i>=0;i--)t.addOffset(e[i]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endFooter(t){return t.endObject()}static finishFooterBuffer(t,e){t.finish(e)}static finishSizePrefixedFooterBuffer(t,e){t.finish(e,void 0,!0)}}class Jr{constructor(t=[],e,i,n=Y.V5){this.fields=t||[],this.metadata=e||new Map,i||(i=ts(t)),this.dictionaries=i,this.metadataVersion=n}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map((t=>t.name))}toString(){return`Schema<{ ${this.fields.map(((t,e)=>`${e}: ${t}`)).join(", ")} }>`}select(t){const e=new Set(t),i=this.fields.filter((t=>e.has(t.name)));return new Jr(i,this.metadata)}selectAt(t){const e=t.map((t=>this.fields[t])).filter(Boolean);return new Jr(e,this.metadata)}assign(...t){const e=t[0]instanceof Jr?t[0]:Array.isArray(t[0])?new Jr(t[0]):new Jr(t),i=[...this.fields],n=Qr(Qr(new Map,this.metadata),e.metadata),r=e.fields.filter((t=>{const e=i.findIndex((e=>e.name===t.name));return!~e||(i[e]=t.clone({metadata:Qr(Qr(new Map,i[e].metadata),t.metadata)}))&&!1})),s=ts(r,new Map);return new Jr([...i,...r],n,new Map([...this.dictionaries,...s]))}}Jr.prototype.fields=null,Jr.prototype.metadata=null,Jr.prototype.dictionaries=null;class qr{static new(...t){let[e,i,n,r]=t;return t[0]&&"object"==typeof t[0]&&(({name:e}=t[0]),void 0===i&&(i=t[0].type),void 0===n&&(n=t[0].nullable),void 0===r&&(r=t[0].metadata)),new qr(`${e}`,i,n,r)}constructor(t,e,i=!1,n){this.name=t,this.type=e,this.nullable=i,this.metadata=n||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...t){let[e,i,n,r]=t;return t[0]&&"object"==typeof t[0]?({name:e=this.name,type:i=this.type,nullable:n=this.nullable,metadata:r=this.metadata}=t[0]):[e=this.name,i=this.type,n=this.nullable,r=this.metadata]=t,qr.new(e,i,n,r)}}function Qr(t,e){return new Map([...t||new Map,...e||new Map])}function ts(t,e=new Map){for(let i=-1,n=t.length;++i0&&ts(n.children,e)}return e}qr.prototype.type=null,qr.prototype.name=null,qr.prototype.nullable=null,qr.prototype.metadata=null;var es=o.Builder,is=o.ByteBuffer;class ns{static decode(t){t=new is(F(t));const e=Kr.getRootAsFooter(t),i=Jr.decode(e.schema(),new Map,e.version());return new rs(i,e)}static encode(t){const e=new es,i=Jr.encode(e,t.schema);Kr.startRecordBatchesVector(e,t.numRecordBatches);for(const i of[...t.recordBatches()].slice().reverse())ss.encode(e,i);const n=e.endVector();Kr.startDictionariesVector(e,t.numDictionaries);for(const i of[...t.dictionaryBatches()].slice().reverse())ss.encode(e,i);const r=e.endVector();return Kr.startFooter(e),Kr.addSchema(e,i),Kr.addVersion(e,Y.V5),Kr.addRecordBatches(e,n),Kr.addDictionaries(e,r),Kr.finishFooterBuffer(e,Kr.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(t,e=Y.V5,i,n){this.schema=t,this.version=e,i&&(this._recordBatches=i),n&&(this._dictionaryBatches=n)}*recordBatches(){for(let t,e=-1,i=this.numRecordBatches;++e=0&&t=0&&t=0&&t=0&&tthis._closedPromiseResolve=t))}get closed(){return this._closedPromise}cancel(t){return r(this,void 0,void 0,(function*(){yield this.return(t)}))}write(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}abort(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}close(){if(this._closedPromiseResolve){const{resolvers:t}=this;for(;t.length>0;)t.shift().resolve(os);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return j.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return j.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return r(this,void 0,void 0,(function*(){return yield this.abort(t),os}))}return(t){return r(this,void 0,void 0,(function*(){return yield this.close(),os}))}read(t){return r(this,void 0,void 0,(function*(){return(yield this.next(t,"read")).value}))}peek(t){return r(this,void 0,void 0,(function*(){return(yield this.next(t,"peek")).value}))}next(...t){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise(((t,e)=>{this.resolvers.push({resolve:t,reject:e})})):Promise.resolve(os)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class cs extends us{write(t){if((t=F(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?u(this.toUint8Array(!0)):this.toUint8Array(!1).then(u)}toUint8Array(t=!1){return t?O(this._values)[0]:(()=>r(this,void 0,void 0,(function*(){var t,e,i,r;const s=[];let o=0;try{for(var a,l=!0,u=n(this);!(t=(a=yield u.next()).done);l=!0){r=a.value,l=!1;const t=r;s.push(t),o+=t.byteLength}}catch(t){e={error:t}}finally{try{l||t||!(i=u.return)||(yield i.call(u))}finally{if(e)throw e.error}}return O(s,o)[0]})))()}}class hs{constructor(t){t&&(this.source=new ps(j.fromIterable(t)))}[Symbol.iterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class ds{constructor(t){t instanceof ds?this.source=t.source:t instanceof cs?this.source=new ys(j.fromAsyncIterable(t)):A(t)?this.source=new ys(j.fromNodeStream(t)):S(t)?this.source=new ys(j.fromDOMStream(t)):w(t)?this.source=new ys(j.fromDOMStream(t.body)):b(t)?this.source=new ys(j.fromIterable(t)):(f(t)||g(t))&&(this.source=new ys(j.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}get closed(){return this.source.closed}cancel(t){return this.source.cancel(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}}class ps{constructor(t){this.source=t}cancel(t){this.return(t)}peek(t){return this.next(t,"peek").value}read(t){return this.next(t,"read").value}next(t,e="read"){return this.source.next({cmd:e,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||os)}return(t){return Object.create(this.source.return&&this.source.return(t)||os)}}class ys{constructor(t){this.source=t,this._closedPromise=new Promise((t=>this._closedPromiseResolve=t))}cancel(t){return r(this,void 0,void 0,(function*(){yield this.return(t)}))}get closed(){return this._closedPromise}read(t){return r(this,void 0,void 0,(function*(){return(yield this.next(t,"read")).value}))}peek(t){return r(this,void 0,void 0,(function*(){return(yield this.next(t,"peek")).value}))}next(t){return r(this,arguments,void 0,(function*(t,e="read"){return yield this.source.next({cmd:e,size:t})}))}throw(t){return r(this,void 0,void 0,(function*(){const e=this.source.throw&&(yield this.source.throw(t))||os;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}))}return(t){return r(this,void 0,void 0,(function*(){const e=this.source.return&&(yield this.source.return(t))||os;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}))}}class fs extends hs{constructor(t,e){super(),this.position=0,this.buffer=F(t),this.size=void 0===e?this.buffer.byteLength:e}readInt32(t){const{buffer:e,byteOffset:i}=this.readAt(t,4);return new DataView(e,i).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),tr(this,void 0,void 0,(function*(){this.size=(yield t.stat()).size,delete this._pending})))()}readInt32(t){return r(this,void 0,void 0,(function*(){const{buffer:e,byteOffset:i}=yield this.readAt(t,4);return new DataView(e,i).getInt32(0,!0)}))}seek(t){return r(this,void 0,void 0,(function*(){return this._pending&&(yield this._pending),this.position=Math.min(t,this.size),t>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),i=new Uint32Array([t.buffer[1]>>>16,65535&t.buffer[1],t.buffer[0]>>>16,65535&t.buffer[0]]);let n=e[3]*i[3];this.buffer[0]=65535&n;let r=n>>>16;return n=e[2]*i[3],r+=n,n=e[3]*i[2]>>>0,r+=n,this.buffer[0]+=r<<16,this.buffer[1]=r>>>0>>16,this.buffer[1]+=e[1]*i[3]+e[2]*i[2]+e[3]*i[1],this.buffer[1]+=e[0]*i[3]+e[1]*i[2]+e[2]*i[1]+e[3]*i[0]<<16,this}_plus(t){const e=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],e>>0&&++this.buffer[1],this.buffer[0]=e}lessThan(t){return this.buffer[1]>>0,e[2]=this.buffer[2]+t.buffer[2]>>>0,e[1]=this.buffer[1]+t.buffer[1]>>>0,e[0]=this.buffer[0]+t.buffer[0]>>>0,e[0]>>0&&++e[1],e[1]>>0&&++e[2],e[2]>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}hex(){return`${gs(this.buffer[3])} ${gs(this.buffer[2])} ${gs(this.buffer[1])} ${gs(this.buffer[0])}`}static multiply(t,e){return new Is(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new Is(new Uint32Array(t.buffer)).plus(e)}static from(t,e=new Uint32Array(4)){return Is.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(4)){return Is.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(4)){const i=t.startsWith("-"),n=t.length,r=new Is(e);for(let e=i?1:0;e0&&this.readData(t,i)||new Uint8Array(0)}readOffsets(t,e){return this.readData(t,e)}readTypeIds(t,e){return this.readData(t,e)}readData(t,{length:e,offset:i}=this.nextBufferRange()){return this.bytes.subarray(i,i+e)}readDictionary(t){return this.dictionaries.get(t.id)}}class Bs extends As{constructor(t,e,i,n,r){super(new Uint8Array(0),e,i,n,r),this.sources=t}readNullBitmap(t,e,{offset:i}=this.nextBufferRange()){return e<=0?new Uint8Array(0):or(this.sources[i])}readOffsets(t,{offset:e}=this.nextBufferRange()){return L(Uint8Array,L(t.OffsetArrayType,this.sources[e]))}readTypeIds(t,{offset:e}=this.nextBufferRange()){return L(Uint8Array,L(t.ArrayType,this.sources[e]))}readData(t,{offset:e}=this.nextBufferRange()){const{sources:i}=this;return Ie.isTimestamp(t)||(Ie.isInt(t)||Ie.isTime(t))&&64===t.bitWidth||Ie.isDuration(t)||Ie.isDate(t)&&t.unit===Z.MILLISECOND?L(Uint8Array,ws.convertArray(i[e])):Ie.isDecimal(t)?L(Uint8Array,Is.convertArray(i[e])):Ie.isBinary(t)||Ie.isLargeBinary(t)||Ie.isFixedSizeBinary(t)?function(t){const e=t.join(""),i=new Uint8Array(e.length/2);for(let t=0;t>1]=Number.parseInt(e.slice(t,t+2),16);return i}(i[e]):Ie.isBool(t)?or(i[e]):Ie.isUtf8(t)||Ie.isLargeUtf8(t)?h(i[e].join("")):L(Uint8Array,L(t.ArrayType,i[e].map((t=>+t))))}}class Ds extends Zr{constructor(t){super(t),this._values=new kr(Uint8Array)}get byteLength(){let t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,F(e))}_flushPending(t,e){const i=this._offsets,n=this._values.reserve(e).buffer;let r=0;for(const[e,s]of t)if(void 0===s)i.set(e,0);else{const t=s.length;n.set(s,r),i.set(e,t),r+=t}}}class Ts extends Zr{constructor(t){super(t),this._values=new kr(Uint8Array)}get byteLength(){let t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,F(e))}_flushPending(t,e){const i=this._offsets,n=this._values.reserve(e).buffer;let r=0;for(const[e,s]of t)if(void 0===s)i.set(e,BigInt(0));else{const t=s.length;n.set(s,r),i.set(e,BigInt(t)),r+=t}}}class Os extends Hr{constructor(t){super(t),this._values=new Wr}setValue(t,e){this._values.set(t,+e)}}class Ls extends Gr{}Ls.prototype._setValue=ji;class xs extends Ls{}xs.prototype._setValue=Ei;class Ms extends Ls{}Ms.prototype._setValue=Vi;class Fs extends Gr{}Fs.prototype._setValue=qi;class Ns extends Hr{constructor({type:t,nullValues:e,dictionaryHashFunction:i}){super({type:new mi(t.dictionary,t.indices,t.id,t.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=Ro({type:this.type.indices,nullValues:e}),this.dictionary=Ro({type:this.type.dictionary,nullValues:null}),"function"==typeof i&&(this.valueToKey=i)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(t){return this.indices.isValid(t)}setValid(t,e){const i=this.indices;return e=i.setValid(t,e),this.length=i.length,e}setValue(t,e){const i=this._keysToIndices,n=this.valueToKey(e);let r=i[n];return void 0===r&&(i[n]=r=this._dictionaryOffset+this.dictionary.append(e).length-1),this.indices.setValue(t,r)}flush(){const t=this.type,e=this._dictionary,i=this.dictionary.toVector(),n=this.indices.flush().clone(t);return n.dictionary=e?e.concat(i):i,this.finished||(this._dictionaryOffset+=i.length),this._dictionary=n.dictionary,this.clear(),n}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(t){return"string"==typeof t?t:`${t}`}}class Us extends Gr{}Us.prototype._setValue=Ri;class Cs extends Hr{setValue(t,e){const[i]=this.children,n=t*this.stride;for(let t=-1,r=e.length;++t0)throw new Error("FixedSizeListBuilder can only have one child.");const i=this.children.push(t);return this.type=new bi(this.type.listSize,new qr(e,t.type,!0)),i}}class Es extends Gr{setValue(t,e){this._values.set(t,e)}}class Vs extends Es{setValue(t,e){super.setValue(t,Oi(e))}}class Rs extends Es{}class zs extends Es{}class Ps extends Gr{}Ps.prototype._setValue=en;class js extends Ps{}js.prototype._setValue=nn;class ks extends Ps{}ks.prototype._setValue=rn;class $s extends Gr{}$s.prototype._setValue=un;class Ws extends $s{}Ws.prototype._setValue=sn;class Ys extends $s{}Ys.prototype._setValue=on;class Hs extends $s{}Hs.prototype._setValue=an;class Gs extends $s{}Gs.prototype._setValue=ln;class Zs extends Gr{setValue(t,e){this._values.set(t,e)}}class Xs extends Zs{}class Ks extends Zs{}class Js extends Zs{}class qs extends Zs{}class Qs extends Zs{}class to extends Zs{}class eo extends Zs{}class io extends Zs{}class no extends Zr{constructor(t){super(t),this._offsets=new Yr(t.type)}addChild(t,e="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new ci(new qr(e,t.type,!0)),this.numChildren-1}_flushPending(t){const e=this._offsets,[i]=this.children;for(const[n,r]of t)if(void 0===r)e.set(n,0);else{const t=r,s=t.length,o=e.set(n,s).buffer[n];for(let e=-1;++e0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new gi(new qr(e,t.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(t){const e=this._offsets,[i]=this.children;for(const[n,r]of t)if(void 0===r)e.set(n,0);else{let{[n]:t,[n+1]:s}=e.set(n,r.size).buffer;for(const e of r.entries())if(i.set(t,e),++t>=s)break}}}class so extends Hr{setValue(t,e){}setValid(t,e){return this.length=Math.max(t+1,this.length),e}}class oo extends Hr{setValue(t,e){const{children:i,type:n}=this;switch(Array.isArray(e)||e.constructor){case!0:return n.children.forEach(((n,r)=>i[r].set(t,e[r])));case Map:return n.children.forEach(((n,r)=>i[r].set(t,e.get(n.name))));default:return n.children.forEach(((n,r)=>i[r].set(t,e[n.name])))}}setValid(t,e){return super.setValid(t,e)||this.children.forEach((i=>i.setValid(t,e))),e}addChild(t,e=`${this.numChildren}`){const i=this.children.push(t);return this.type=new hi([...this.type.children,new qr(e,t.type,!0)]),i}}class ao extends Gr{}ao.prototype._setValue=Hi;class lo extends ao{}lo.prototype._setValue=ki;class uo extends ao{}uo.prototype._setValue=$i;class co extends ao{}co.prototype._setValue=Wi;class ho extends ao{}ho.prototype._setValue=Yi;class po extends Gr{}po.prototype._setValue=Ji;class yo extends po{}yo.prototype._setValue=Gi;class fo extends po{}fo.prototype._setValue=Zi;class bo extends po{}bo.prototype._setValue=Xi;class go extends po{}go.prototype._setValue=Ki;class vo extends Hr{constructor(t){super(t),this._typeIds=new $r(Int8Array,0,1),"function"==typeof t.valueToChildTypeId&&(this._valueToChildTypeId=t.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(t,e){return this.set(this.length,t,e)}set(t,e,i){return void 0===i&&(i=this._valueToChildTypeId(this,e,t)),this.setValue(t,e,i),this}setValue(t,e,i){this._typeIds.set(t,i);const n=this.type.typeIdToChildIndex[i],r=this.children[n];null==r||r.set(t,e)}addChild(t,e=`${this.children.length}`){const i=this.children.push(t),{type:{children:n,mode:r,typeIds:s}}=this,o=[...n,new qr(e,t.type)];return this.type=new di(r,[...s,i],o),i}_valueToChildTypeId(t,e,i){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}}class _o extends vo{}class mo extends vo{constructor(t){super(t),this._offsets=new $r(Int32Array)}setValue(t,e,i){const n=this._typeIds.set(t,i).buffer[t],r=this.getChildAt(this.type.typeIdToChildIndex[n]),s=this._offsets.set(t,r.length).buffer[t];null==r||r.set(s,e)}}class wo extends Zr{constructor(t){super(t),this._values=new kr(Uint8Array)}get byteLength(){let t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,h(e))}_flushPending(t,e){}}wo.prototype._flushPending=Ds.prototype._flushPending;class Io extends Zr{constructor(t){super(t),this._values=new kr(Uint8Array)}get byteLength(){let t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,h(e))}_flushPending(t,e){}}Io.prototype._flushPending=Ts.prototype._flushPending;const So=new class extends Ii{visitNull(){return so}visitBool(){return Os}visitInt(){return Zs}visitInt8(){return Xs}visitInt16(){return Ks}visitInt32(){return Js}visitInt64(){return qs}visitUint8(){return Qs}visitUint16(){return to}visitUint32(){return eo}visitUint64(){return io}visitFloat(){return Es}visitFloat16(){return Vs}visitFloat32(){return Rs}visitFloat64(){return zs}visitUtf8(){return wo}visitLargeUtf8(){return Io}visitBinary(){return Ds}visitLargeBinary(){return Ts}visitFixedSizeBinary(){return Us}visitDate(){return Ls}visitDateDay(){return xs}visitDateMillisecond(){return Ms}visitTimestamp(){return ao}visitTimestampSecond(){return lo}visitTimestampMillisecond(){return uo}visitTimestampMicrosecond(){return co}visitTimestampNanosecond(){return ho}visitTime(){return po}visitTimeSecond(){return yo}visitTimeMillisecond(){return fo}visitTimeMicrosecond(){return bo}visitTimeNanosecond(){return go}visitDecimal(){return Fs}visitList(){return no}visitStruct(){return oo}visitUnion(){return vo}visitDenseUnion(){return mo}visitSparseUnion(){return _o}visitDictionary(){return Ns}visitInterval(){return Ps}visitIntervalDayTime(){return js}visitIntervalYearMonth(){return ks}visitDuration(){return $s}visitDurationSecond(){return Ws}visitDurationMillisecond(){return Ys}visitDurationMicrosecond(){return Hs}visitDurationNanosecond(){return Gs}visitFixedSizeList(){return Cs}visitMap(){return ro}};class Ao extends Ii{compareSchemas(t,e){return t===e||e instanceof t.constructor&&this.compareManyFields(t.fields,e.fields)}compareManyFields(t,e){return t===e||Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every(((t,i)=>this.compareFields(t,e[i])))}compareFields(t,e){return t===e||e instanceof t.constructor&&t.name===e.name&&t.nullable===e.nullable&&this.visit(t.type,e.type)}}function Bo(t,e){return e instanceof t.constructor}function Do(t,e){return t===e||Bo(t,e)}function To(t,e){return t===e||Bo(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function Oo(t,e){return t===e||Bo(t,e)&&t.precision===e.precision}function Lo(t,e){return t===e||Bo(t,e)&&t.unit===e.unit}function xo(t,e){return t===e||Bo(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function Mo(t,e){return t===e||Bo(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function Fo(t,e){return t===e||Bo(t,e)&&t.mode===e.mode&&t.typeIds.every(((t,i)=>t===e.typeIds[i]))&&Co.compareManyFields(t.children,e.children)}function No(t,e){return t===e||Bo(t,e)&&t.unit===e.unit}function Uo(t,e){return t===e||Bo(t,e)&&t.unit===e.unit}Ao.prototype.visitNull=Do,Ao.prototype.visitBool=Do,Ao.prototype.visitInt=To,Ao.prototype.visitInt8=To,Ao.prototype.visitInt16=To,Ao.prototype.visitInt32=To,Ao.prototype.visitInt64=To,Ao.prototype.visitUint8=To,Ao.prototype.visitUint16=To,Ao.prototype.visitUint32=To,Ao.prototype.visitUint64=To,Ao.prototype.visitFloat=Oo,Ao.prototype.visitFloat16=Oo,Ao.prototype.visitFloat32=Oo,Ao.prototype.visitFloat64=Oo,Ao.prototype.visitUtf8=Do,Ao.prototype.visitLargeUtf8=Do,Ao.prototype.visitBinary=Do,Ao.prototype.visitLargeBinary=Do,Ao.prototype.visitFixedSizeBinary=function(t,e){return t===e||Bo(t,e)&&t.byteWidth===e.byteWidth},Ao.prototype.visitDate=Lo,Ao.prototype.visitDateDay=Lo,Ao.prototype.visitDateMillisecond=Lo,Ao.prototype.visitTimestamp=xo,Ao.prototype.visitTimestampSecond=xo,Ao.prototype.visitTimestampMillisecond=xo,Ao.prototype.visitTimestampMicrosecond=xo,Ao.prototype.visitTimestampNanosecond=xo,Ao.prototype.visitTime=Mo,Ao.prototype.visitTimeSecond=Mo,Ao.prototype.visitTimeMillisecond=Mo,Ao.prototype.visitTimeMicrosecond=Mo,Ao.prototype.visitTimeNanosecond=Mo,Ao.prototype.visitDecimal=Do,Ao.prototype.visitList=function(t,e){return t===e||Bo(t,e)&&t.children.length===e.children.length&&Co.compareManyFields(t.children,e.children)},Ao.prototype.visitStruct=function(t,e){return t===e||Bo(t,e)&&t.children.length===e.children.length&&Co.compareManyFields(t.children,e.children)},Ao.prototype.visitUnion=Fo,Ao.prototype.visitDenseUnion=Fo,Ao.prototype.visitSparseUnion=Fo,Ao.prototype.visitDictionary=function(t,e){return t===e||Bo(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&Co.visit(t.indices,e.indices)&&Co.visit(t.dictionary,e.dictionary)},Ao.prototype.visitInterval=No,Ao.prototype.visitIntervalDayTime=No,Ao.prototype.visitIntervalYearMonth=No,Ao.prototype.visitDuration=Uo,Ao.prototype.visitDurationSecond=Uo,Ao.prototype.visitDurationMillisecond=Uo,Ao.prototype.visitDurationMicrosecond=Uo,Ao.prototype.visitDurationNanosecond=Uo,Ao.prototype.visitFixedSizeList=function(t,e){return t===e||Bo(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&Co.compareManyFields(t.children,e.children)},Ao.prototype.visitMap=function(t,e){return t===e||Bo(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&Co.compareManyFields(t.children,e.children)};const Co=new Ao;function Eo(t,e){return Co.compareSchemas(t,e)}function Vo(t,e){return Co.visit(t,e)}function Ro(t){const e=t.type,i=new(So.getVisitFn(e)())(t);if(e.children&&e.children.length>0){const n=t.children||[],r={nullValues:t.nullValues},s=Array.isArray(n)?(t,e)=>n[e]||r:({name:t})=>n[t]||r;for(const[t,n]of e.children.entries()){const{type:e}=n,r=s(n,t);i.children.push(Ro(Object.assign(Object.assign({},r),{type:e})))}}return i}function zo(t,e){if(t instanceof dr||t instanceof Er||t.type instanceof Ie||ArrayBuffer.isView(t))return Rr(t);const i=[...ko({type:null!=e?e:jo(t),nullValues:[null]})(t)],n=1===i.length?i[0]:i.reduce(((t,e)=>t.concat(e)));return Ie.isDictionary(n.type)?n.memoize():n}function Po(t){const e=zo(t),i=new Jo(new Jr(e.type.children),e.data[0]);return new Zo(i)}function jo(t){if(0===t.length)return new Se;let e=0,i=0,n=0,r=0,s=0,o=0,a=0,l=0;for(const u of t){if(null!=u){switch(typeof u){case"bigint":++o;continue;case"boolean":++a;continue;case"number":++r;continue;case"string":++s;continue;case"object":Array.isArray(u)?++i:"[object Date]"===Object.prototype.toString.call(u)?++l:++n;continue}throw new TypeError("Unable to infer Vector type from input values, explicit type declaration expected.")}++e}if(r+e===t.length)return new Ee;if(s+e===t.length)return new mi(new ze,new Te);if(o+e===t.length)return new Oe;if(a+e===t.length)return new je;if(l+e===t.length)return new Qe;if(i+e===t.length){const e=t,i=jo(e[e.findIndex((t=>null!=t))]);if(e.every((t=>null==t||Vo(i,jo(t)))))return new ci(new qr("",i,!0))}else if(n+e===t.length){const e=new Map;for(const i of t)for(const t of Object.keys(i))e.has(t)||null==i[t]||e.set(t,new qr(t,jo([i[t]]),!0));return new hi([...e.values()])}throw new TypeError("Unable to infer Vector type from input values, explicit type declaration expected.")}function ko(t){const{queueingStrategy:e="count"}=t,{highWaterMark:i=("bytes"!==e?Number.POSITIVE_INFINITY:Math.pow(2,14))}=t,n="bytes"!==e?"length":"byteLength";return function*(e){let r=0;const s=Ro(t);for(const t of e)s.append(t)[n]>=i&&++r&&(yield s.toVector());(s.finish().length>0||0===r)&&(yield s.toVector())}}function $o(i){const{queueingStrategy:r="count"}=i,{highWaterMark:s=("bytes"!==r?Number.POSITIVE_INFINITY:Math.pow(2,14))}=i,o="bytes"!==r?"length":"byteLength";return function(r){return t(this,arguments,(function*(){var t,a,l,u;let c=0;const h=Ro(i);try{for(var d,p=!0,y=n(r);!(t=(d=yield e(y.next())).done);p=!0){u=d.value,p=!1;const t=u;h.append(t)[o]>=s&&++c&&(yield yield e(h.toVector()))}}catch(t){a={error:t}}finally{try{p||t||!(l=y.return)||(yield e(l.call(y)))}finally{if(a)throw a.error}}(h.finish().length>0||0===c)&&(yield yield e(h.toVector()))}))}}function Wo(t,e){return function(t,e){const i=[...t.fields],n=[],r={numBatches:e.reduce(((t,e)=>Math.max(t,e.length)),0)};let s=0,o=0,a=-1;const l=e.length;let u,c=[];for(;r.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,a=-1;++a0&&(n[s++]=fr({type:new hi(i),length:o,nullCount:0,children:c.slice()})))}return[t=t.assign(i),n.map((e=>new Jo(t,e)))]}(t,e.map((t=>t.data.concat())))}function Yo(t,e,i,n,r){var s;const o=(e+63&-64)>>3;for(let a=-1,l=n.length;++a=e)u===e?i[a]=l:(i[a]=l.slice(0,e),r.numBatches=Math.max(r.numBatches,n[a].unshift(l.slice(e,u-e))));else{const n=t[a];t[a]=n.clone({nullable:!0}),i[a]=null!==(s=null==l?void 0:l._changeLengthAndBackfillNullBitmap(e))&&void 0!==s?s:fr({type:n.type,length:e,nullCount:e,nullBitmap:new Uint8Array(o)})}}return i}var Ho,Go;class Zo{constructor(...t){var e,i;if(0===t.length)return this.batches=[],this.schema=new Jr([]),this._offsets=[0],this;let n,r;t[0]instanceof Jr&&(n=t.shift()),t.at(-1)instanceof Uint32Array&&(r=t.pop());const s=t=>{if(t){if(t instanceof Jo)return[t];if(t instanceof Zo)return t.batches;if(t instanceof dr){if(t.type instanceof hi)return[new Jo(new Jr(t.type.children),t)]}else{if(Array.isArray(t))return t.flatMap((t=>s(t)));if("function"==typeof t[Symbol.iterator])return[...t].flatMap((t=>s(t)));if("object"==typeof t){const e=Object.keys(t),i=e.map((e=>new Er([t[e]]))),r=null!=n?n:new Jr(e.map(((t,e)=>new qr(String(t),i[e].type,i[e].nullable)))),[,s]=Wo(r,i);return 0===s.length?[new Jo(t)]:s}}}return[]},o=t.flatMap((t=>s(t)));if(n=null!==(i=null!=n?n:null===(e=o[0])||void 0===e?void 0:e.schema)&&void 0!==i?i:new Jr([]),!(n instanceof Jr))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const t of o){if(!(t instanceof Jo))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!Eo(n,t.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=n,this.batches=o,this._offsets=null!=r?r:vr(this.data)}get data(){return this.batches.map((({data:t})=>t))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce(((t,e)=>t+e.length),0)}get nullCount(){return-1===this._nullCount&&(this._nullCount=gr(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}at(t){return this.get(Jn(t,this.numRows))}set(t,e){}indexOf(t,e){return-1}[Symbol.iterator](){return this.batches.length>0?Fr.visit(new Er(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[\n ${this.toArray().join(",\n ")}\n]`}concat(...t){const e=this.schema,i=this.data.concat(t.flatMap((({data:t})=>t)));return new Zo(e,i.map((t=>new Jo(e,t))))}slice(t,e){const i=this.schema;[t,e]=Kn({length:this.numRows},t,e);const n=_r(this.data,this._offsets,t,e);return new Zo(i,n.map((t=>new Jo(i,t))))}getChild(t){return this.getChildAt(this.schema.fields.findIndex((e=>e.name===t)))}getChildAt(t){if(t>-1&&te.children[t]));if(0===e.length){const{type:i}=this.schema.fields[t],n=fr({type:i,length:0,nullCount:0});e.push(n._changeLengthAndBackfillNullBitmap(this.numRows))}return new Er(e)}return null}setChild(t,e){var i;return this.setChildAt(null===(i=this.schema.fields)||void 0===i?void 0:i.findIndex((e=>e.name===t)),e)}setChildAt(t,e){let i=this.schema,n=[...this.batches];if(t>-1&&tthis.getChildAt(e)));[r[t],o[t]]=[s,e],[i,n]=Wo(i,o)}return new Zo(i,n)}select(t){const e=this.schema.fields.reduce(((t,e,i)=>t.set(e.name,i)),new Map);return this.selectAt(t.map((t=>e.get(t))).filter((t=>t>-1)))}selectAt(t){const e=this.schema.selectAt(t),i=this.batches.map((e=>e.selectAt(t)));return new Zo(e,i)}assign(t){const e=this.schema.fields,[i,n]=t.schema.fields.reduce(((t,i,n)=>{const[r,s]=t,o=e.findIndex((t=>t.name===i.name));return~o?s[o]=n:r.push(n),t}),[[],[]]),r=this.schema.assign(t.schema),s=[...e.map(((t,e)=>[e,n[e]])).map((([e,i])=>void 0===i?this.getChildAt(e):t.getChildAt(i))),...i.map((e=>t.getChildAt(e)))].filter(Boolean);return new Zo(...Wo(r,s))}}function Xo(t){const e={},i=Object.entries(t);for(const[t,n]of i)e[t]=Rr(n);return new Zo(e)}function Ko(t){const e={},i=Object.entries(t);for(const[t,n]of i)e[t]=zo(n);return new Zo(e)}Ho=Symbol.toStringTag,Zo[Ho]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=Ir(wr),t.get=Ir(jn.getVisitFn(st.Struct)),t.set=Sr(cn.getVisitFn(st.Struct)),t.indexOf=Ar(Or.getVisitFn(st.Struct)),"Table"))(Zo.prototype);class Jo{constructor(...t){switch(t.length){case 2:if([this.schema]=t,!(this.schema instanceof Jr))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=fr({nullCount:0,type:new hi(this.schema.fields),children:this.schema.fields.map((t=>fr({type:t.type,nullCount:0})))})]=t,!(this.data instanceof dr))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=qo(this.schema,this.data.children);break;case 1:{const[e]=t,{fields:i,children:n,length:r}=Object.keys(e).reduce(((t,i,n)=>(t.children[n]=e[i],t.length=Math.max(t.length,e[i].length),t.fields[n]=qr.new({name:i,type:e[i].type,nullable:!0}),t)),{length:0,fields:new Array,children:new Array}),s=new Jr(i),o=fr({type:new hi(i),length:r,children:n,nullCount:0});[this.schema,this.data]=qo(s,o.children,r);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=Qo(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(t){return this.data.getValid(t)}get(t){return jn.visit(this.data,t)}at(t){return this.get(Jn(t,this.numRows))}set(t,e){return cn.visit(this.data,t,e)}indexOf(t,e){return Or.visit(this.data,t,e)}[Symbol.iterator](){return Fr.visit(new Er([this.data]))}toArray(){return[...this]}concat(...t){return new Zo(this.schema,[this,...t])}slice(t,e){const[i]=new Er([this.data]).slice(t,e).data;return new Jo(this.schema,i)}getChild(t){var e;return this.getChildAt(null===(e=this.schema.fields)||void 0===e?void 0:e.findIndex((e=>e.name===t)))}getChildAt(t){return t>-1&&te.name===t)),e)}setChildAt(t,e){let i=this.schema,n=this.data;if(t>-1&&tt.name===e));~t&&(n[t]=this.data.children[t])}return new Jo(e,fr({type:i,length:this.numRows,children:n}))}selectAt(t){const e=this.schema.selectAt(t),i=t.map((t=>this.data.children[t])).filter(Boolean),n=fr({type:new hi(e.fields),length:this.numRows,children:i});return new Jo(e,n)}}function qo(t,e,i=e.reduce(((t,e)=>Math.max(t,e.length)),0)){var n;const r=[...t.fields],s=[...e],o=(i+63&-64)>>3;for(const[a,l]of t.fields.entries()){const t=e[a];t&&t.length===i||(r[a]=l.clone({nullable:!0}),s[a]=null!==(n=null==t?void 0:t._changeLengthAndBackfillNullBitmap(i))&&void 0!==n?n:fr({type:l.type,length:i,nullCount:i,nullBitmap:new Uint8Array(o)}))}return[t.assign(r),fr({type:new hi(r),length:i,children:s})]}function Qo(t,e,i=new Map){var n,r;if((null!==(n=null==t?void 0:t.length)&&void 0!==n?n:0)>0&&(null==t?void 0:t.length)===(null==e?void 0:e.length))for(let n=-1,s=t.length;++n(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(Jo.prototype);class ta extends Jo{constructor(t){const e=t.fields.map((t=>fr({type:t.type})));super(t,fr({type:new hi(t.fields),nullCount:0,children:e}))}}class ea{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMessage(t,e){return(e||new ea).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,e){return t.setPosition(t.position()+o.SIZE_PREFIX_LENGTH),(e||new ea).__init(t.readInt32(t.position())+t.position(),t)}version(){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Y.V1}headerType(){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb_pos+t):rt.NONE}header(t){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(t,this.bb_pos+e):null}bodyLength(){const t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb_pos+t):BigInt("0")}customMetadata(t,e){const i=this.bb.__offset(this.bb_pos,12);return i?(e||new yt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*t),this.bb):null}customMetadataLength(){const t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startMessage(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,Y.V1)}static addHeaderType(t,e){t.addFieldInt8(1,e,rt.NONE)}static addHeader(t,e){t.addFieldOffset(2,e,0)}static addBodyLength(t,e){t.addFieldInt64(3,e,BigInt("0"))}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i>=0;i--)t.addOffset(e[i]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endMessage(t){return t.endObject()}static finishMessageBuffer(t,e){t.finish(e)}static finishSizePrefixedMessageBuffer(t,e){t.finish(e,void 0,!0)}static createMessage(t,e,i,n,r,s){return ea.startMessage(t),ea.addVersion(t,e),ea.addHeaderType(t,i),ea.addHeader(t,n),ea.addBodyLength(t,r),ea.addCustomMetadata(t,s),ea.endMessage(t)}}const ia=new class extends Ii{visit(t,e){return null==t||null==e?void 0:super.visit(t,e)}visitNull(t,e){return Ot.startNull(e),Ot.endNull(e)}visitInt(t,e){return dt.startInt(e),dt.addBitWidth(e,t.bitWidth),dt.addIsSigned(e,t.isSigned),dt.endInt(e)}visitFloat(t,e){return It.startFloatingPoint(e),It.addPrecision(e,t.precision),It.endFloatingPoint(e)}visitBinary(t,e){return ft.startBinary(e),ft.endBinary(e)}visitLargeBinary(t,e){return At.startLargeBinary(e),At.endLargeBinary(e)}visitBool(t,e){return bt.startBool(e),bt.endBool(e)}visitUtf8(t,e){return Nt.startUtf8(e),Nt.endUtf8(e)}visitLargeUtf8(t,e){return Bt.startLargeUtf8(e),Bt.endLargeUtf8(e)}visitDecimal(t,e){return vt.startDecimal(e),vt.addScale(e,t.scale),vt.addPrecision(e,t.precision),vt.addBitWidth(e,t.bitWidth),vt.endDecimal(e)}visitDate(t,e){return gt.startDate(e),gt.addUnit(e,t.unit),gt.endDate(e)}visitTime(t,e){return xt.startTime(e),xt.addUnit(e,t.unit),xt.addBitWidth(e,t.bitWidth),xt.endTime(e)}visitTimestamp(t,e){const i=t.timezone&&e.createString(t.timezone)||void 0;return Mt.startTimestamp(e),Mt.addUnit(e,t.unit),void 0!==i&&Mt.addTimezone(e,i),Mt.endTimestamp(e)}visitInterval(t,e){return St.startInterval(e),St.addUnit(e,t.unit),St.endInterval(e)}visitDuration(t,e){return _t.startDuration(e),_t.addUnit(e,t.unit),_t.endDuration(e)}visitList(t,e){return Dt.startList(e),Dt.endList(e)}visitStruct(t,e){return Lt.startStruct_(e),Lt.endStruct_(e)}visitUnion(t,e){Ft.startTypeIdsVector(e,t.typeIds.length);const i=Ft.createTypeIdsVector(e,t.typeIds);return Ft.startUnion(e),Ft.addMode(e,t.mode),Ft.addTypeIds(e,i),Ft.endUnion(e)}visitDictionary(t,e){const i=this.visit(t.indices,e);return pt.startDictionaryEncoding(e),pt.addId(e,BigInt(t.id)),pt.addIsOrdered(e,t.isOrdered),void 0!==i&&pt.addIndexType(e,i),pt.endDictionaryEncoding(e)}visitFixedSizeBinary(t,e){return mt.startFixedSizeBinary(e),mt.addByteWidth(e,t.byteWidth),mt.endFixedSizeBinary(e)}visitFixedSizeList(t,e){return wt.startFixedSizeList(e),wt.addListSize(e,t.listSize),wt.endFixedSizeList(e)}visitMap(t,e){return Tt.startMap(e),Tt.addKeysSorted(e,t.keysSorted),Tt.endMap(e)}};function na(t){return new pa(t.count,sa(t.columns),oa(t.columns))}function ra(t,e){return(t.children||[]).filter(Boolean).map((t=>qr.fromJSON(t,e)))}function sa(t){return(t||[]).reduce(((t,e)=>{return[...t,new ba(e.count,(i=e.VALIDITY,(i||[]).reduce(((t,e)=>t+ +(0===e)),0))),...sa(e.children)];var i}),[])}function oa(t,e=[]){for(let i=-1,n=(t||[]).length;++i[t,e])))}function la(t){return new Ae(t.isSigned,t.bitWidth)}function ua(t,e){const i=t.type.name;switch(i){case"NONE":case"null":return new Se;case"binary":return new Ve;case"largebinary":return new Re;case"utf8":return new ze;case"largeutf8":return new Pe;case"bool":return new je;case"list":return new ci((e||[])[0]);case"struct":case"struct_":return new hi(e||[])}switch(i){case"int":{const e=t.type;return new Ae(e.isSigned,e.bitWidth)}case"floatingpoint":{const e=t.type;return new Ne(G[e.precision])}case"decimal":{const e=t.type;return new ke(e.scale,e.precision,e.bitWidth)}case"date":{const e=t.type;return new $e(Z[e.unit])}case"time":{const e=t.type;return new He(X[e.unit],e.bitWidth)}case"timestamp":{const e=t.type;return new Je(X[e.unit],e.timezone)}case"interval":{const e=t.type;return new ii(K[e.unit])}case"duration":{const e=t.type;return new si(X[e.unit])}case"union":{const i=t.type,[n,...r]=(i.mode+"").toLowerCase(),s=n.toUpperCase()+r.join("");return new di(H[s],i.typeIds||[],e||[])}case"fixedsizebinary":{const e=t.type;return new fi(e.byteWidth)}case"fixedsizelist":{const i=t.type;return new bi(i.listSize,(e||[])[0])}case"map":{const i=t.type;return new gi((e||[])[0],i.keysSorted)}}throw new Error(`Unrecognized type: "${i}"`)}var ca=o.Builder,ha=o.ByteBuffer;class da{static fromJSON(t,e){const i=new da(0,Y.V5,e);return i._createHeader=function(t,e){return()=>{switch(e){case rt.Schema:return Jr.fromJSON(t);case rt.RecordBatch:return pa.fromJSON(t);case rt.DictionaryBatch:return ya.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${rt[e]}, type: ${e} }`)}}(t,e),i}static decode(t){t=new ha(F(t));const e=ea.getRootAsMessage(t),i=e.bodyLength(),n=e.version(),r=e.headerType(),s=new da(i,n,r);return s._createHeader=function(t,e){return()=>{switch(e){case rt.Schema:return Jr.decode(t.header(new Ct),new Map,t.version());case rt.RecordBatch:return pa.decode(t.header(new ct),t.version());case rt.DictionaryBatch:return ya.decode(t.header(new ht),t.version())}throw new Error(`Unrecognized Message type: { name: ${rt[e]}, type: ${e} }`)}}(e,r),s}static encode(t){const e=new ca;let i=-1;return t.isSchema()?i=Jr.encode(e,t.header()):t.isRecordBatch()?i=pa.encode(e,t.header()):t.isDictionaryBatch()&&(i=ya.encode(e,t.header())),ea.startMessage(e),ea.addVersion(e,Y.V5),ea.addHeader(e,i),ea.addHeaderType(e,t.headerType),ea.addBodyLength(e,BigInt(t.bodyLength)),ea.finishMessageBuffer(e,ea.endMessage(e)),e.asUint8Array()}static from(t,e=0){if(t instanceof Jr)return new da(0,Y.V5,rt.Schema,t);if(t instanceof pa)return new da(e,Y.V5,rt.RecordBatch,t);if(t instanceof ya)return new da(e,Y.V5,rt.DictionaryBatch,t);throw new Error(`Unrecognized Message header: ${t}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===rt.Schema}isRecordBatch(){return this.headerType===rt.RecordBatch}isDictionaryBatch(){return this.headerType===rt.DictionaryBatch}constructor(t,e,i,n){this._version=e,this._headerType=i,this.body=new Uint8Array(0),n&&(this._createHeader=()=>n),this._bodyLength=zt(t)}}class pa{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(t,e,i){this._nodes=e,this._buffers=i,this._length=zt(t)}}class ya{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(t,e,i=!1){this._data=t,this._isDelta=i,this._id=zt(e)}}class fa{constructor(t,e){this.offset=zt(t),this.length=zt(e)}}class ba{constructor(t,e){this.length=zt(t),this.nullCount=zt(e)}}function ga(t,e){const i=[];for(let n,r=-1,s=-1,o=t.childrenLength();++rqr.encode(t,e))),l=Ut.createChildrenVector(t,a),u=e.metadata&&e.metadata.size>0?Ut.createCustomMetadataVector(t,[...e.metadata].map((([e,i])=>{const n=t.createString(`${e}`),r=t.createString(`${i}`);return yt.startKeyValue(t),yt.addKey(t,n),yt.addValue(t,r),yt.endKeyValue(t)}))):-1;e.name&&(i=t.createString(e.name));Ut.startField(t),Ut.addType(t,n),Ut.addTypeType(t,o),Ut.addChildren(t,l),Ut.addNullable(t,!!e.nullable),-1!==i&&Ut.addName(t,i);-1!==r&&Ut.addDictionary(t,r);-1!==u&&Ut.addCustomMetadata(t,u);return Ut.endField(t)},qr.decode=function(t,e){let i,n,r,s,o,a;e&&(a=t.dictionary())?e.has(i=zt(a.id()))?(s=(s=a.indexType())?_a(s):new Te,o=new mi(e.get(i),s,i,a.isOrdered()),n=new qr(t.name(),o,t.nullable(),va(t))):(s=(s=a.indexType())?_a(s):new Te,e.set(i,r=ma(t,ga(t,e))),o=new mi(r,s,i,a.isOrdered()),n=new qr(t.name(),o,t.nullable(),va(t))):(r=ma(t,ga(t,e)),n=new qr(t.name(),r,t.nullable(),va(t)));return n||null},qr.fromJSON=function(t,e){let i,n,r,s,o,a;return e&&(s=t.dictionary)?e.has(i=s.id)?(n=(n=s.indexType)?la(n):new Te,a=new mi(e.get(i),n,i,s.isOrdered),r=new qr(t.name,a,t.nullable,aa(t.metadata))):(n=(n=s.indexType)?la(n):new Te,e.set(i,o=ua(t,ra(t,e))),a=new mi(o,n,i,s.isOrdered),r=new qr(t.name,a,t.nullable,aa(t.metadata))):(o=ua(t,ra(t,e)),r=new qr(t.name,o,t.nullable,aa(t.metadata))),r||null},Jr.encode=function(t,e){const i=e.fields.map((e=>qr.encode(t,e)));Ct.startFieldsVector(t,i.length);const n=Ct.createFieldsVector(t,i),r=e.metadata&&e.metadata.size>0?Ct.createCustomMetadataVector(t,[...e.metadata].map((([e,i])=>{const n=t.createString(`${e}`),r=t.createString(`${i}`);return yt.startKeyValue(t),yt.addKey(t,n),yt.addValue(t,r),yt.endKeyValue(t)}))):-1;Ct.startSchema(t),Ct.addFields(t,n),Ct.addEndianness(t,wa?Q.Little:Q.Big),-1!==r&&Ct.addCustomMetadata(t,r);return Ct.endSchema(t)},Jr.decode=function(t,e=new Map,i=Y.V5){const n=function(t,e){const i=[];for(let n,r=-1,s=-1,o=t.fieldsLength();++rqr.fromJSON(t,e)))}(t,e),aa(t.metadata),e)},pa.encode=function(t,e){const i=e.nodes||[],n=e.buffers||[];ct.startNodesVector(t,i.length);for(const e of i.slice().reverse())ba.encode(t,e);const r=t.endVector();ct.startBuffersVector(t,n.length);for(const e of n.slice().reverse())fa.encode(t,e);const s=t.endVector();return ct.startRecordBatch(t),ct.addLength(t,BigInt(e.length)),ct.addNodes(t,r),ct.addBuffers(t,s),ct.endRecordBatch(t)},pa.decode=function(t,e=Y.V5){if(null!==t.compression())throw new Error("Record batch compression not implemented");return new pa(t.length(),function(t){const e=[];for(let i,n=-1,r=-1,s=t.nodesLength();++n{const t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]})(),Ia=t=>`Expected ${rt[t]} Message in stream, but was null or length 0.`,Sa=t=>`Header pointer of flatbuffer-encoded ${rt[t]} Message is null or length 0.`,Aa=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,Ba=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`;class Da{constructor(t){this.source=t instanceof hs?t:new hs(t)}[Symbol.iterator](){return this}next(){let t;return(t=this.readMetadataLength()).done||-1===t.value&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?os:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(Ia(t));return e.value}readMessageBody(t){if(t<=0)return new Uint8Array(0);const e=F(this.source.read(t));if(e.byteLength[...e,...i.VALIDITY&&[i.VALIDITY]||[],...i.TYPE_ID&&[i.TYPE_ID]||[],...i.OFFSET&&[i.OFFSET]||[],...i.DATA&&[i.DATA]||[],...t(i.children)]),[])}(this._body)}readMessage(t){let e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(Ia(t));return e.value}readSchema(){const t=rt.Schema,e=this.readMessage(t),i=null==e?void 0:e.header();if(!e||!i)throw new Error(Sa(t));return i}}const La=4,xa="ARROW1",Ma=new Uint8Array(6);for(let t=0;t<6;t+=1)Ma[t]=xa.codePointAt(t);function Fa(t,e=0){for(let i=-1,n=Ma.length;++ithis)):this}readRecordBatch(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return j.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return j.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof Ea?e:v(e)?function(t){return new Va(new Ha(t))}(e):m(e)?function(t){return r(this,void 0,void 0,(function*(){const{size:e}=yield t.stat(),i=new bs(t,e);return e>=Ca&&Fa(yield i.readAt(0,Na+7&-8))?new Pa(new Ya(i)):new Ra(new $a(i))}))}(e):f(e)?(()=>r(this,void 0,void 0,(function*(){return yield Ea.from(yield e)})))():w(e)||S(e)||A(e)||g(e)?function(e){return r(this,void 0,void 0,(function*(){const i=yield e.peek(Na+7&-8);return i&&i.byteLength>=4?Fa(i)?new za(new Wa(yield e.read())):new Ra(new $a(e)):new Ra(new $a(function(){return t(this,arguments,(function*(){}))}()))}))}(new ds(e)):function(t){const e=t.peek(Na+7&-8);return e&&e.byteLength>=4?Fa(e)?new za(new Wa(t.read())):new Va(new ka(t)):new Va(new ka(function*(){}()))}(new hs(e))}static readAll(t){return t instanceof Ea?t.isSync()?Za(t):Xa(t):v(t)||ArrayBuffer.isView(t)||b(t)||_(t)?Za(t):Xa(t)}}class Va extends Ea{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return t(this,arguments,(function*(){yield e(yield*i(n(this[Symbol.iterator]())))}))}}class Ra extends Ea{constructor(t){super(t),this._impl=t}readAll(){return r(this,void 0,void 0,(function*(){var t,e,i,r;const s=new Array;try{for(var o,a=!0,l=n(this);!(t=(o=yield l.next()).done);a=!0){r=o.value,a=!1;const t=r;s.push(t)}}catch(t){e={error:t}}finally{try{a||t||!(i=l.return)||(yield i.call(l))}finally{if(e)throw e.error}}return s}))}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class za extends Va{constructor(t){super(t),this._impl=t}}class Pa extends Ra{constructor(t){super(t),this._impl=t}}class ja{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(t=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}_loadRecordBatch(t,e){const i=this._loadVectors(t,e,this.schema.fields),n=fr({type:new hi(this.schema.fields),length:t.length,children:i});return new Jo(this.schema,n)}_loadDictionaryBatch(t,e){const{id:i,isDelta:n}=t,{dictionaries:r,schema:s}=this,o=r.get(i);if(n||!o){const r=s.dictionaries.get(i),a=this._loadVectors(t.data,e,[r]);return(o&&n?o.concat(new Er(a)):new Er(a)).memoize()}return o.memoize()}_loadVectors(t,e,i){return new As(e,t.nodes,t.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(i)}}class ka extends ja{constructor(t,e){super(e),this._reader=v(t)?new Oa(this._handle=t):new Da(this._handle=t)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(t){return this.closed||(this.autoDestroy=Ga(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):os}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):os}next(){if(this.closed)return os;let t;const{_reader:e}=this;for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else{if(t.isRecordBatch()){this._recordBatchIndex++;const i=t.header(),n=e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(i,n)}}if(t.isDictionaryBatch()){this._dictionaryIndex++;const i=t.header(),n=e.readMessageBody(t.bodyLength),r=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,r)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new ta(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}}class $a extends ja{constructor(t,e){super(e),this._reader=new Ta(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return r(this,void 0,void 0,(function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}))}open(t){return r(this,void 0,void 0,(function*(){return this.closed||(this.autoDestroy=Ga(this,t),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this}))}throw(t){return r(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(t):os}))}return(t){return r(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):os}))}next(){return r(this,void 0,void 0,(function*(){if(this.closed)return os;let t;const{_reader:e}=this;for(;t=yield this._readNextMessageAndValidate();)if(t.isSchema())yield this.reset(t.header());else{if(t.isRecordBatch()){this._recordBatchIndex++;const i=t.header(),n=yield e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(i,n)}}if(t.isDictionaryBatch()){this._dictionaryIndex++;const i=t.header(),n=yield e.readMessageBody(t.bodyLength),r=this._loadDictionaryBatch(i,n);this.dictionaries.set(i.id,r)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new ta(this.schema)}):yield this.return()}))}_readNextMessageAndValidate(t){return r(this,void 0,void 0,(function*(){return yield this._reader.readMessage(t)}))}}class Wa extends ka{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(t,e){super(t instanceof fs?t:new fs(t),e)}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(t)}readRecordBatch(t){var e;if(this.closed)return null;this._footer||this.open();const i=null===(e=this._footer)||void 0===e?void 0:e.getRecordBatch(t);if(i&&this._handle.seek(i.offset)){const t=this._reader.readMessage(rt.RecordBatch);if(null==t?void 0:t.isRecordBatch()){const e=t.header(),i=this._reader.readMessageBody(t.bodyLength);return this._loadRecordBatch(e,i)}}return null}_readDictionaryBatch(t){var e;const i=null===(e=this._footer)||void 0===e?void 0:e.getDictionaryBatch(t);if(i&&this._handle.seek(i.offset)){const t=this._reader.readMessage(rt.DictionaryBatch);if(null==t?void 0:t.isDictionaryBatch()){const e=t.header(),i=this._reader.readMessageBody(t.bodyLength),n=this._loadDictionaryBatch(e,i);this.dictionaries.set(e.id,n)}}}_readFooter(){const{_handle:t}=this,e=t.size-Ua,i=t.readInt32(e),n=t.readAt(e-i,i);return ns.decode(n)}_readNextMessageAndValidate(t){var e;if(this._footer||this.open(),this._footer&&this._recordBatchIndexsuper.open}});return r(this,void 0,void 0,(function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(const t of this._footer.dictionaryBatches())t&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield e.open.call(this,t)}))}readRecordBatch(t){return r(this,void 0,void 0,(function*(){var e;if(this.closed)return null;this._footer||(yield this.open());const i=null===(e=this._footer)||void 0===e?void 0:e.getRecordBatch(t);if(i&&(yield this._handle.seek(i.offset))){const t=yield this._reader.readMessage(rt.RecordBatch);if(null==t?void 0:t.isRecordBatch()){const e=t.header(),i=yield this._reader.readMessageBody(t.bodyLength);return this._loadRecordBatch(e,i)}}return null}))}_readDictionaryBatch(t){return r(this,void 0,void 0,(function*(){var e;const i=null===(e=this._footer)||void 0===e?void 0:e.getDictionaryBatch(t);if(i&&(yield this._handle.seek(i.offset))){const t=yield this._reader.readMessage(rt.DictionaryBatch);if(null==t?void 0:t.isDictionaryBatch()){const e=t.header(),i=yield this._reader.readMessageBody(t.bodyLength),n=this._loadDictionaryBatch(e,i);this.dictionaries.set(e.id,n)}}}))}_readFooter(){return r(this,void 0,void 0,(function*(){const{_handle:t}=this;t._pending&&(yield t._pending);const e=t.size-Ua,i=yield t.readInt32(e),n=yield t.readAt(e-i,i);return ns.decode(n)}))}_readNextMessageAndValidate(t){return r(this,void 0,void 0,(function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndext.flatMap((t=>Array.isArray(t)?e(t):t instanceof Jo?t.data.children:t.data)),i=new Ka;return i.visitMany(e(t)),i}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}visit(t){if(t instanceof Er)return this.visitMany(t.data),this;const{type:e}=t;if(!Ie.isDictionary(e)){const{length:i}=t;if(i>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");if(Ie.isUnion(e))this.nodes.push(new ba(i,0));else{const{nullCount:n}=t;Ie.isNull(e)||Ja.call(this,n<=0?new Uint8Array(0):sr(t.offset,i,t.nullBitmap)),this.nodes.push(new ba(i,n))}}return super.visit(t)}visitNull(t){return this}visitDictionary(t){return this.visit(t.clone(t.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function Ja(t){const e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new fa(this._byteLength,e)),this._byteLength+=e,this}function qa(t){return Ja.call(this,t.values.subarray(0,t.length*t.stride))}function Qa(t){const{length:e,values:i,valueOffsets:n}=t,r=zt(n[0]),s=zt(n[e]),o=Math.min(s-r,i.byteLength-r);return Ja.call(this,R(-r,e+1,n)),Ja.call(this,i.subarray(r,r+o)),this}function tl(t){const{length:e,valueOffsets:i}=t;if(i){const{0:n,[e]:r}=i;return Ja.call(this,R(-n,e+1,i)),this.visit(t.children[0].slice(n,r-n))}return this.visit(t.children[0])}function el(t){return this.visitMany(t.type.children.map(((e,i)=>t.children[i])).filter(Boolean))[0]}Ka.prototype.visitBool=function(t){let e;return t.nullCount>=t.length?Ja.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?Ja.call(this,sr(t.offset,t.length,e)):Ja.call(this,or(t.values))},Ka.prototype.visitInt=qa,Ka.prototype.visitFloat=qa,Ka.prototype.visitUtf8=Qa,Ka.prototype.visitLargeUtf8=Qa,Ka.prototype.visitBinary=Qa,Ka.prototype.visitLargeBinary=Qa,Ka.prototype.visitFixedSizeBinary=qa,Ka.prototype.visitDate=qa,Ka.prototype.visitTimestamp=qa,Ka.prototype.visitTime=qa,Ka.prototype.visitDecimal=qa,Ka.prototype.visitList=tl,Ka.prototype.visitStruct=el,Ka.prototype.visitUnion=function(t){var e;const{type:i,length:n,typeIds:r,valueOffsets:s}=t;if(Ja.call(this,r),i.mode===H.Sparse)return el.call(this,t);if(i.mode===H.Dense){if(t.offset<=0)return Ja.call(this,s),el.call(this,t);{const o=new Int32Array(n),a=Object.create(null),l=Object.create(null);for(let t,i,u=-1;++u{const r=i.typeIds[e],s=a[r],o=l[r];return t.slice(s,Math.min(n,o))})))}}return this},Ka.prototype.visitInterval=qa,Ka.prototype.visitDuration=qa,Ka.prototype.visitFixedSizeList=tl,Ka.prototype.visitMap=tl;class il extends Ii{visit(t){return null==t?void 0:super.visit(t)}visitNull({typeId:t}){return{name:et[t].toLowerCase()}}visitInt({typeId:t,bitWidth:e,isSigned:i}){return{name:et[t].toLowerCase(),bitWidth:e,isSigned:i}}visitFloat({typeId:t,precision:e}){return{name:et[t].toLowerCase(),precision:G[e]}}visitBinary({typeId:t}){return{name:et[t].toLowerCase()}}visitLargeBinary({typeId:t}){return{name:et[t].toLowerCase()}}visitBool({typeId:t}){return{name:et[t].toLowerCase()}}visitUtf8({typeId:t}){return{name:et[t].toLowerCase()}}visitLargeUtf8({typeId:t}){return{name:et[t].toLowerCase()}}visitDecimal({typeId:t,scale:e,precision:i,bitWidth:n}){return{name:et[t].toLowerCase(),scale:e,precision:i,bitWidth:n}}visitDate({typeId:t,unit:e}){return{name:et[t].toLowerCase(),unit:Z[e]}}visitTime({typeId:t,unit:e,bitWidth:i}){return{name:et[t].toLowerCase(),unit:X[e],bitWidth:i}}visitTimestamp({typeId:t,timezone:e,unit:i}){return{name:et[t].toLowerCase(),unit:X[i],timezone:e}}visitInterval({typeId:t,unit:e}){return{name:et[t].toLowerCase(),unit:K[e]}}visitDuration({typeId:t,unit:e}){return{name:et[t].toLocaleLowerCase(),unit:X[e]}}visitList({typeId:t}){return{name:et[t].toLowerCase()}}visitStruct({typeId:t}){return{name:et[t].toLowerCase()}}visitUnion({typeId:t,mode:e,typeIds:i}){return{name:et[t].toLowerCase(),mode:H[e].toUpperCase(),typeIds:[...i]}}visitDictionary(t){return this.visit(t.dictionary)}visitFixedSizeBinary({typeId:t,byteWidth:e}){return{name:et[t].toLowerCase(),byteWidth:e}}visitFixedSizeList({typeId:t,listSize:e}){return{name:et[t].toLowerCase(),listSize:e}}visitMap({typeId:t,keysSorted:e}){return{name:et[t].toLowerCase(),keysSorted:e}}}class nl extends Ii{static assemble(...t){const e=new nl;return t.map((({schema:t,data:i})=>e.visitMany(t.fields,i.children)))}visit({name:t},e){const{length:i}=e,{offset:n,nullCount:r,nullBitmap:s}=e,o=Ie.isDictionary(e.type)?e.type.indices:e.type,a=Object.assign([],e.buffers,{[ot.VALIDITY]:void 0});return Object.assign({name:t,count:i,VALIDITY:Ie.isNull(o)||Ie.isUnion(o)?void 0:r<=0?Array.from({length:i},(()=>1)):[...new ar(s,n,i,null,rr)]},super.visit(e.clone(o,n,i,0,a)))}visitNull(){return{}}visitBool({values:t,offset:e,length:i}){return{DATA:[...new ar(t,e,i,null,nr)]}}visitInt(t){return{DATA:t.type.bitWidth<64?[...t.values]:[...sl(t.values,2)]}}visitFloat(t){return{DATA:[...t.values]}}visitUtf8(t){return{DATA:[...new Er([t])],OFFSET:[...t.valueOffsets]}}visitLargeUtf8(t){return{DATA:[...new Er([t])],OFFSET:[...sl(t.valueOffsets,2)]}}visitBinary(t){return{DATA:[...rl(new Er([t]))],OFFSET:[...t.valueOffsets]}}visitLargeBinary(t){return{DATA:[...rl(new Er([t]))],OFFSET:[...sl(t.valueOffsets,2)]}}visitFixedSizeBinary(t){return{DATA:[...rl(new Er([t]))]}}visitDate(t){return{DATA:t.type.unit===Z.DAY?[...t.values]:[...sl(t.values,2)]}}visitTimestamp(t){return{DATA:[...sl(t.values,2)]}}visitTime(t){return{DATA:t.type.unit`${t}${("0"+(255&e).toString(16)).slice(-2)}`),"").toUpperCase()}function*sl(t,e){const i=new Uint32Array(t.buffer);for(let t=-1,n=i.length/e;++tthis.writeAll(t))):g(t)?hl(this,t):cl(this,t)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(t){return this._sink.toDOMStream(t)}toNodeStream(t){return this._sink.toNodeStream(t)}close(){return this.reset()._sink.close()}abort(t){return this.reset()._sink.abort(t)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(t=this._sink,e=null){var i;return t===this._sink||t instanceof cs?this._sink=t:(this._sink=new cs,t&&(y(i=t)&&p(i.abort)&&p(i.getWriter)&&!I(i))?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&(t=>y(t)&&p(t.end)&&p(t.write)&&d(t.writable)&&!I(t))(t)&&this.toNodeStream({objectMode:!1}).pipe(t)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,e&&Eo(e,this._schema)||(null==e?(this._position=0,this._schema=null):(this._started=!0,this._schema=e,this._writeSchema(e))),this}write(t){let e=null;if(!this._sink)throw new Error("RecordBatchWriter is closed");if(null==t)return this.finish()&&void 0;if(t instanceof Zo&&!(e=t.schema))return this.finish()&&void 0;if(t instanceof Jo&&!(e=t.schema))return this.finish()&&void 0;if(e&&!Eo(e,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,e)}t instanceof Jo?t instanceof ta||this._writeRecordBatch(t):t instanceof Zo?this.writeAll(t.batches):b(t)&&this.writeAll(t)}_writeMessage(t,e=8){const i=e-1,n=da.encode(t),r=n.byteLength,s=this._writeLegacyIpcFormat?4:8,o=r+s+i&~i,a=o-r-s;return t.headerType===rt.RecordBatch?this._recordBatchBlocks.push(new ss(o,t.bodyLength,this._position)):t.headerType===rt.DictionaryBatch&&this._dictionaryBlocks.push(new ss(o,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(o-s)),r>0&&this._write(n),this._writePadding(a)}_write(t){if(this._started){const e=F(t);e&&e.byteLength>0&&(this._sink.write(e),this._position+=e.byteLength)}return this}_writeSchema(t){return this._writeMessage(da.from(t))}_writeFooter(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(Ma)}_writePadding(t){return t>0?this._write(new Uint8Array(t)):this}_writeRecordBatch(t){const{byteLength:e,nodes:i,bufferRegions:n,buffers:r}=Ka.assemble(t),s=new pa(t.numRows,i,n),o=da.from(s,e);return this._writeDictionaries(t)._writeMessage(o)._writeBodyBuffers(r)}_writeDictionaryBatch(t,e,i=!1){this._dictionaryDeltaOffsets.set(e,t.length+(this._dictionaryDeltaOffsets.get(e)||0));const{byteLength:n,nodes:r,bufferRegions:s,buffers:o}=Ka.assemble(new Er([t])),a=new pa(t.length,r,s),l=new ya(a,e,i),u=da.from(l,n);return this._writeMessage(u)._writeBodyBuffers(o)}_writeBodyBuffers(t){let e,i,n;for(let r=-1,s=t.length;++r0&&(this._write(e),(n=(i+7&-8)-i)>0&&this._writePadding(n));return this}_writeDictionaries(t){for(let[e,i]of t.dictionaries){let t=this._dictionaryDeltaOffsets.get(e)||0;if(0===t||(i=null==i?void 0:i.slice(t)).length>0)for(const n of i.data)this._writeDictionaryBatch(n,e,t>0),t+=n.length}return this}}class al extends ol{static writeAll(t,e){const i=new al(e);return f(t)?t.then((t=>i.writeAll(t))):g(t)?hl(i,t):cl(i,t)}}class ll extends ol{static writeAll(t){const e=new ll;return f(t)?t.then((t=>e.writeAll(t))):g(t)?hl(e,t):cl(e,t)}constructor(){super(),this._autoDestroy=!0}_writeSchema(t){return this._writeMagic()._writePadding(2)}_writeFooter(t){const e=ns.encode(new ns(t,Y.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(t)._write(e)._write(Int32Array.of(e.byteLength))._writeMagic()}}class ul extends ol{static writeAll(t){return(new ul).writeAll(t)}constructor(){super(),this._autoDestroy=!0,this._recordBatches=[],this._dictionaries=[]}_writeMessage(){return this}_writeFooter(t){return this}_writeSchema(t){return this._write(`{\n "schema": ${JSON.stringify({fields:t.fields.map((t=>dl(t)))},null,2)}`)}_writeDictionaries(t){return t.dictionaries.size>0&&this._dictionaries.push(t),this}_writeDictionaryBatch(t,e,i=!1){return this._dictionaryDeltaOffsets.set(e,t.length+(this._dictionaryDeltaOffsets.get(e)||0)),this._write(0===this._dictionaryBlocks.length?" ":",\n "),this._write(function(t,e,i=!1){const[n]=nl.assemble(new Jo({[e]:t}));return JSON.stringify({id:e,isDelta:i,data:{count:t.length,columns:n}},null,2)}(t,e,i)),this._dictionaryBlocks.push(new ss(0,0,0)),this}_writeRecordBatch(t){return this._writeDictionaries(t),this._recordBatches.push(t),this}close(){if(this._dictionaries.length>0){this._write(',\n "dictionaries": [\n');for(const t of this._dictionaries)super._writeDictionaries(t);this._write("\n ]")}if(this._recordBatches.length>0){for(let t=-1,e=this._recordBatches.length;++tdl(t))),dictionary:Ie.isDictionary(e)?{id:e.id,isOrdered:e.isOrdered,indexType:n.visit(e.indices)}:void 0}}function pl(t){const[e]=nl.assemble(t);return JSON.stringify({count:t.numRows,columns:e},null,2)}class yl{constructor(t){this._numChunks=0,this._finished=!1,this._bufferedSize=0;const{readableStrategy:e,writableStrategy:i,queueingStrategy:n="count"}=t,r=s(t,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=Ro(r),this._getSize="bytes"!==n?fl:bl;const{highWaterMark:o=("bytes"===n?Math.pow(2,14):1e3)}=Object.assign({},e),{highWaterMark:a=("bytes"===n?Math.pow(2,14):1e3)}=Object.assign({},i);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:t=>{this._maybeFlush(this._builder,this._controller=t)},start:t=>{this._maybeFlush(this._builder,this._controller=t)}},{highWaterMark:o,size:"bytes"!==n?fl:bl}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:a,size:t=>this._writeValueAndReturnChunkSize(t)})}_writeValueAndReturnChunkSize(t){const e=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(t)),this._bufferedSize-e}_maybeFlush(t,e){null!=e&&(this._bufferedSize>=e.desiredSize&&++this._numChunks&&this._enqueue(e,t.toVector()),t.finished&&((t.length>0||0===this._numChunks)&&++this._numChunks&&this._enqueue(e,t.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(e,null)))}_enqueue(t,e){this._bufferedSize=0,this._controller=null,null==e?t.close():t.enqueue(e)}}const fl=t=>{var e;return null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0},bl=t=>{var e;return null!==(e=null==t?void 0:t.byteLength)&&void 0!==e?e:0};function gl(t,e){const i=new cs;let n=null;const s=new ReadableStream({cancel(){return r(this,void 0,void 0,(function*(){yield i.close()}))},start(t){return r(this,void 0,void 0,(function*(){yield o(t,n||(n=yield function(){return r(this,void 0,void 0,(function*(){return yield(yield Ea.from(i)).open(e)}))}()))}))},pull(t){return r(this,void 0,void 0,(function*(){n?yield o(t,n):t.close()}))}});return{writable:new WritableStream(i,Object.assign({highWaterMark:Math.pow(2,14)},t)),readable:s};function o(t,e){return r(this,void 0,void 0,(function*(){let i=t.desiredSize,n=null;for(;!(n=yield e.next()).done;)if(t.enqueue(n.value),null!=i&&--i<=0)return;t.close()}))}}function vl(t,e){const i=new this(t),n=new ds(i),s=new ReadableStream({cancel(){return r(this,void 0,void 0,(function*(){yield n.cancel()}))},pull(t){return r(this,void 0,void 0,(function*(){yield o(t)}))},start(t){return r(this,void 0,void 0,(function*(){yield o(t)}))}},Object.assign({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(i,t),readable:s};function o(t){return r(this,void 0,void 0,(function*(){let e=null,i=t.desiredSize;for(;e=yield n.read(i||null);)if(t.enqueue(e),null!=i&&(i-=e.byteLength)<=0)return;t.close()}))}}function _l(t){const e=Ea.from(t);return f(e)?e.then((t=>_l(t))):e.isAsync()?e.readAll().then((t=>new Zo(t))):new Zo(e.readAll())}function ml(t,e="stream"){return("stream"===e?al:ll).writeAll(t).toUint8Array(!0)}const wl=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},we),Ss),hr),Li),P),ir),Rt),{compareSchemas:Eo,compareFields:function(t,e){return Co.compareFields(t,e)},compareTypes:Vo});j.toDOMStream=function(t,e){if(g(t))return function(t,e){let i=null;const n="bytes"===(null==e?void 0:e.type)||!1,s=(null==e?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(e){return r(this,void 0,void 0,(function*(){yield o(e,i||(i=t[Symbol.asyncIterator]()))}))},pull(t){return r(this,void 0,void 0,(function*(){i?yield o(t,i):t.close()}))},cancel(){return r(this,void 0,void 0,(function*(){(null==i?void 0:i.return)&&(yield i.return()),i=null}))}}),Object.assign({highWaterMark:n?s:void 0},e));function o(t,e){return r(this,void 0,void 0,(function*(){let i,r=null,s=t.desiredSize||null;for(;!(r=yield e.next(n?s:null)).done;)if(ArrayBuffer.isView(r.value)&&(i=F(r.value))&&(null!=s&&n&&(s=s-i.byteLength+1),r.value=i),t.enqueue(r.value),null!=s&&--s<=0)return;t.close()}))}}(t,e);if(b(t))return function(t,e){let i=null;const n="bytes"===(null==e?void 0:e.type)||!1,r=(null==e?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(e){s(e,i||(i=t[Symbol.iterator]()))},pull(t){i?s(t,i):t.close()},cancel(){(null==i?void 0:i.return)&&i.return(),i=null}}),Object.assign({highWaterMark:n?r:void 0},e));function s(t,e){let i,r=null,s=t.desiredSize||null;for(;!(r=e.next(n?s:null)).done;)if(ArrayBuffer.isView(r.value)&&(i=F(r.value))&&(null!=s&&n&&(s=s-i.byteLength+1),r.value=i),t.enqueue(r.value),null!=s&&--s<=0)return;t.close()}}(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")},Hr.throughDOM=function(t){return new yl(t)},Ea.throughDOM=gl,za.throughDOM=gl,Va.throughDOM=gl,ol.throughDOM=vl,ll.throughDOM=vl,al.throughDOM=vl;export{cs as AsyncByteQueue,ds as AsyncByteStream,Ta as AsyncMessageReader,Pa as AsyncRecordBatchFileReader,Ra as AsyncRecordBatchStreamReader,Ve as Binary,Ds as BinaryBuilder,je as Bool,Os as BoolBuilder,ot as BufferType,Hr as Builder,hs as ByteStream,dr as Data,Ie as DataType,Ls as DateBuilder,We as DateDay,xs as DateDayBuilder,Ye as DateMillisecond,Ms as DateMillisecondBuilder,Z as DateUnit,$e as Date_,ke as Decimal,Fs as DecimalBuilder,pi as DenseUnion,mo as DenseUnionBuilder,mi as Dictionary,Ns as DictionaryBuilder,si as Duration,$s as DurationBuilder,li as DurationMicrosecond,Hs as DurationMicrosecondBuilder,ai as DurationMillisecond,Ys as DurationMillisecondBuilder,ui as DurationNanosecond,Gs as DurationNanosecondBuilder,oi as DurationSecond,Ws as DurationSecondBuilder,qr as Field,fi as FixedSizeBinary,Us as FixedSizeBinaryBuilder,bi as FixedSizeList,Cs as FixedSizeListBuilder,Ne as Float,Ue as Float16,Vs as Float16Builder,Ce as Float32,Rs as Float32Builder,Ee as Float64,zs as Float64Builder,Es as FloatBuilder,Ae as Int,De as Int16,Ks as Int16Builder,Te as Int32,Js as Int32Builder,Oe as Int64,qs as Int64Builder,Be as Int8,Xs as Int8Builder,Zs as IntBuilder,ii as Interval,Ps as IntervalBuilder,ni as IntervalDayTime,js as IntervalDayTimeBuilder,K as IntervalUnit,ri as IntervalYearMonth,ks as IntervalYearMonthBuilder,Oa as JSONMessageReader,Re as LargeBinary,Ts as LargeBinaryBuilder,Pe as LargeUtf8,Io as LargeUtf8Builder,ci as List,no as ListBuilder,ro as MapBuilder,Hn as MapRow,gi as Map_,da as Message,rt as MessageHeader,Da as MessageReader,Y as MetadataVersion,Se as Null,so as NullBuilder,G as Precision,Jo as RecordBatch,za as RecordBatchFileReader,ll as RecordBatchFileWriter,ul as RecordBatchJSONWriter,Ea as RecordBatchReader,Va as RecordBatchStreamReader,al as RecordBatchStreamWriter,ol as RecordBatchWriter,Jr as Schema,yi as SparseUnion,_o as SparseUnionBuilder,hi as Struct,oo as StructBuilder,pn as StructRow,Zo as Table,He as Time,po as TimeBuilder,Xe as TimeMicrosecond,bo as TimeMicrosecondBuilder,Ze as TimeMillisecond,fo as TimeMillisecondBuilder,Ke as TimeNanosecond,go as TimeNanosecondBuilder,Ge as TimeSecond,yo as TimeSecondBuilder,X as TimeUnit,Je as Timestamp,ao as TimestampBuilder,ti as TimestampMicrosecond,co as TimestampMicrosecondBuilder,Qe as TimestampMillisecond,uo as TimestampMillisecondBuilder,ei as TimestampNanosecond,ho as TimestampNanosecondBuilder,qe as TimestampSecond,lo as TimestampSecondBuilder,st as Type,xe as Uint16,to as Uint16Builder,Me as Uint32,eo as Uint32Builder,Fe as Uint64,io as Uint64Builder,Le as Uint8,Qs as Uint8Builder,di as Union,vo as UnionBuilder,H as UnionMode,ze as Utf8,wo as Utf8Builder,Er as Vector,Ii as Visitor,$o as builderThroughAsyncIterable,ko as builderThroughIterable,Ro as makeBuilder,fr as makeData,Xo as makeTable,Rr as makeVector,Ko as tableFromArrays,_l as tableFromIPC,Po as tableFromJSON,ml as tableToIPC,wl as util,zo as vectorFromArray};export default null; diff --git a/isamples_export_client/ui/_npm/compare-versions@3.6.0/_esm.js b/isamples_export_client/ui/_npm/compare-versions@3.6.0/_esm.js new file mode 100644 index 0000000..b30c435 --- /dev/null +++ b/isamples_export_client/ui/_npm/compare-versions@3.6.0/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/compare-versions@3.6.0/index.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var e={exports:{}},r=e.exports=function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function r(e,r){return-1===e.indexOf(r)?e.length:e.indexOf(r)}function t(e){var t=e.replace(/^v/,"").replace(/\+.*$/,""),n=r(t,"-"),i=t.substring(0,n).split(".");return i.push(t.substring(n+1)),i}function n(e){return isNaN(Number(e))?e:Number(e)}function i(r){if("string"!=typeof r)throw new TypeError("Invalid argument expected string");if(!e.test(r))throw new Error("Invalid argument not valid semver ('"+r+"' received)")}function o(e,r){[e,r].forEach(i);for(var o=t(e),f=t(r),a=0;ad)return 1;if(d>u)return-1}var p=o[o.length-1],l=f[f.length-1];if(p&&l){var s=p.split(".").map(n),g=l.split(".").map(n);for(a=0;ag[a])return 1;if(g[a]>s[a])return-1}}else if(p||l)return p?-1:1;return 0}var f=[">",">=","=","<","<="],a={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};function u(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===f.indexOf(e))throw new TypeError("Invalid operator, expected one of "+f.join("|"))}return o.validate=function(r){return"string"==typeof r&&e.test(r)},o.compare=function(e,r,t){u(t);var n=o(e,r);return a[t].indexOf(n)>-1},o}();export{r as default}; diff --git a/isamples_export_client/ui/_npm/entities@4.5.0/_esm.js b/isamples_export_client/ui/_npm/entities@4.5.0/_esm.js new file mode 100644 index 0000000..d2fdb53 --- /dev/null +++ b/isamples_export_client/ui/_npm/entities@4.5.0/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/entities@4.5.0/lib/esm/index.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +var r,e=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((r=>r.charCodeAt(0)))),t=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((r=>r.charCodeAt(0))));const a=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),o=null!==(r=String.fromCodePoint)&&void 0!==r?r:function(r){let e="";return r>65535&&(r-=65536,e+=String.fromCharCode(r>>>10&1023|55296),r=56320|1023&r),e+=String.fromCharCode(r),e};var i;!function(r){r[r.NUM=35]="NUM",r[r.SEMI=59]="SEMI",r[r.EQUALS=61]="EQUALS",r[r.ZERO=48]="ZERO",r[r.NINE=57]="NINE",r[r.LOWER_A=97]="LOWER_A",r[r.LOWER_F=102]="LOWER_F",r[r.LOWER_X=120]="LOWER_X",r[r.LOWER_Z=122]="LOWER_Z",r[r.UPPER_A=65]="UPPER_A",r[r.UPPER_F=70]="UPPER_F",r[r.UPPER_Z=90]="UPPER_Z"}(i||(i={}));var c,s,n;function l(r){return r>=i.ZERO&&r<=i.NINE}function u(r){return r===i.EQUALS||function(r){return r>=i.UPPER_A&&r<=i.UPPER_Z||r>=i.LOWER_A&&r<=i.LOWER_Z||l(r)}(r)}!function(r){r[r.VALUE_LENGTH=49152]="VALUE_LENGTH",r[r.BRANCH_LENGTH=16256]="BRANCH_LENGTH",r[r.JUMP_TABLE=127]="JUMP_TABLE"}(c||(c={})),function(r){r[r.EntityStart=0]="EntityStart",r[r.NumericStart=1]="NumericStart",r[r.NumericDecimal=2]="NumericDecimal",r[r.NumericHex=3]="NumericHex",r[r.NamedEntity=4]="NamedEntity"}(s||(s={})),function(r){r[r.Legacy=0]="Legacy",r[r.Strict=1]="Strict",r[r.Attribute=2]="Attribute"}(n||(n={}));class d{constructor(r,e,t){this.decodeTree=r,this.emitCodePoint=e,this.errors=t,this.state=s.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=n.Strict}startEntity(r){this.decodeMode=r,this.state=s.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,e){switch(this.state){case s.EntityStart:return r.charCodeAt(e)===i.NUM?(this.state=s.NumericStart,this.consumed+=1,this.stateNumericStart(r,e+1)):(this.state=s.NamedEntity,this.stateNamedEntity(r,e));case s.NumericStart:return this.stateNumericStart(r,e);case s.NumericDecimal:return this.stateNumericDecimal(r,e);case s.NumericHex:return this.stateNumericHex(r,e);case s.NamedEntity:return this.stateNamedEntity(r,e)}}stateNumericStart(r,e){return e>=r.length?-1:(32|r.charCodeAt(e))===i.LOWER_X?(this.state=s.NumericHex,this.consumed+=1,this.stateNumericHex(r,e+1)):(this.state=s.NumericDecimal,this.stateNumericDecimal(r,e))}addToNumericResult(r,e,t,a){if(e!==t){const o=t-e;this.result=this.result*Math.pow(a,o)+parseInt(r.substr(e,o),a),this.consumed+=o}}stateNumericHex(r,e){const t=e;for(;e=i.UPPER_A&&a<=i.UPPER_F||a>=i.LOWER_A&&a<=i.LOWER_F)))return this.addToNumericResult(r,t,e,16),this.emitNumericEntity(o,3);e+=1}var a;return this.addToNumericResult(r,t,e,16),-1}stateNumericDecimal(r,e){const t=e;for(;e=55296&&r<=57343||r>1114111?65533:null!==(e=a.get(r))&&void 0!==e?e:r}(this.result),this.consumed),this.errors&&(r!==i.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(r,e){const{decodeTree:t}=this;let a=t[this.treeIndex],o=(a&c.VALUE_LENGTH)>>14;for(;e>14,0!==o){if(s===i.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==n.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var r;const{result:e,decodeTree:t}=this,a=(t[e]&c.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,a,this.consumed),null===(r=this.errors)||void 0===r||r.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(r,e,t){const{decodeTree:a}=this;return this.emitCodePoint(1===e?a[r]&~c.VALUE_LENGTH:a[r+1],t),3===e&&this.emitCodePoint(a[r+2],t),t}end(){var r;switch(this.state){case s.NamedEntity:return 0===this.result||this.decodeMode===n.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case s.NumericDecimal:return this.emitNumericEntity(0,2);case s.NumericHex:return this.emitNumericEntity(0,3);case s.NumericStart:return null===(r=this.errors)||void 0===r||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case s.EntityStart:return 0}}}function p(r){let e="";const t=new d(r,(r=>e+=o(r)));return function(r,a){let o=0,i=0;for(;(i=r.indexOf("&",i))>=0;){e+=r.slice(o,i),t.startEntity(a);const c=t.write(r,i+1);if(c<0){o=i+t.end();break}o=i+c,i=0===c?o+1:o}const c=e+r.slice(o);return e="",c}}function m(r,e,t,a){const o=(e&c.BRANCH_LENGTH)>>7,i=e&c.JUMP_TABLE;if(0===o)return 0!==i&&a===i?t:-1;if(i){const e=a-i;return e<0||e>=o?-1:r[t+e]-1}let s=t,n=s+o-1;for(;s<=n;){const e=s+n>>>1,t=r[e];if(ta))return r[e+o];n=e-1}}return-1}const f=p(e),g=p(t);function h(r,e=n.Legacy){return f(r,e)}function b(r){return f(r,n.Attribute)}function y(r){return f(r,n.Strict)}function v(r){return g(r,n.Strict)}function E(r){for(let e=1;e$\x80-\uFFFF]/g,A=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),L=null!=String.prototype.codePointAt?(r,e)=>r.codePointAt(e):(r,e)=>55296==(64512&r.charCodeAt(e))?1024*(r.charCodeAt(e)-55296)+r.charCodeAt(e+1)-56320+65536:r.charCodeAt(e);function k(r){let e,t="",a=0;for(;null!==(e=q.exec(r));){const o=e.index,i=r.charCodeAt(o),c=A.get(i);void 0!==c?(t+=r.substring(a,o)+c,a=o+1):(t+=`${r.substring(a,o)}&#x${L(r,o).toString(16)};`,a=q.lastIndex+=Number(55296==(64512&i)))}return t+r.substr(a)}const D=k;function N(r,e){return function(t){let a,o=0,i="";for(;a=r.exec(t);)o!==a.index&&(i+=t.substring(o,a.index)),i+=e.get(a[0].charCodeAt(0)),o=a.index+1;return i+t.substring(o)}}const T=N(/[&<>'"]/g,A),x=N(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),S=N(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),R=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function U(r){return H(R,r)}function C(r){return H(q,r)}function H(r,e){let t,a="",o=0;for(;null!==(t=r.exec(e));){const i=t.index;a+=e.substring(o,i);const c=e.charCodeAt(i);let s=w.get(c);if("object"==typeof s){if(i+1>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return BigInt.asIntN(64,BigInt(this.readUint32(t))+(BigInt(this.readUint32(t+4))<>8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeInt64(t,e){this.writeInt32(t,Number(BigInt.asIntN(32,e))),this.writeInt32(t+4,Number(BigInt.asIntN(32,e>>BigInt(32))))}writeUint64(t,e){this.writeUint32(t,Number(BigInt.asUintN(32,e))),this.writeUint32(t+4,Number(BigInt.asUintN(32,e>>BigInt(32))))}writeFloat32(t,e){n[0]=e,this.writeInt32(t,r[0])}writeFloat64(t,e){h[0]=e,this.writeInt32(t,r[a?0:1]),this.writeInt32(t+4,r[a?1:0])}getBufferIdentifier(){if(this.bytes_.lengththis.minalign&&(this.minalign=t);const s=1+~(this.bb.capacity()-this.space+e)&t-1;for(;this.space=0&&0==this.vtable[e];e--);const s=e+1;for(;e>=0;e--)this.addInt16(0!=this.vtable[e]?t-this.vtable[e]:0);this.addInt16(t-this.object_start);const i=2*(s+2);this.addInt16(i);let r=0;const n=this.space;t:for(e=0;e=0;e--)this.writeInt8(t.charCodeAt(e))}this.prep(this.minalign,4+i),this.addOffset(t),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(t,e){this.finish(t,e,!0)}requiredField(t,e){const s=this.bb.capacity()-t,i=s-this.bb.readInt32(s);if(!(e{if(null===e.firstChild)return null;if(e.firstChild===e.lastChild)return e.removeChild(e.firstChild);const t=document.createElement("span");return t.appendChild(e),t})),{fragment:oe(e,(e=>e))}),n=Object.assign(oe(t,(e=>null===e.firstChild?null:e.firstChild===e.lastChild?e.removeChild(e.firstChild):e)),{fragment:oe(t,(e=>{const t=document.createDocumentFragment();for(;e.firstChild;)t.appendChild(e.firstChild);return t}))}),a=9,s=10,i=12,o=13,c=32,l=65,f=90,u=97,d=122,p=60,k=62,b=47,h=45,g=33,m=61,w=34,C=39,x=63,v=1,y=2,A=3,N=4,L=5,T=6,S=7,U=8,$=9,E=10,M=11,B=12,O=13,P=14,R=15,j=16,q=17,H=18,X=19,D=20,F=21,W=22,Y=23,I=24,z=25,V=26,Z=27,G=28,J=29,K=128,Q=1,_=8,ee=1,te="http://www.w3.org/2000/svg",re="http://www.w3.org/1999/xlink",ne="http://www.w3.org/XML/1998/namespace",ae="http://www.w3.org/2000/xmlns/",se=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((e=>[e.toLowerCase(),e]))),ie=new Map([["xlink:actuate",re],["xlink:arcrole",re],["xlink:href",re],["xlink:role",re],["xlink:show",re],["xlink:title",re],["xlink:type",re],["xml:lang",ne],["xml:space",ne],["xmlns",ae],["xmlns:xlink",ae]]);function oe(e,t){return function({raw:r}){let n,a,s,i,o=v,c="",l=0;for(let e=0,t=arguments.length;e0){const n=arguments[e];switch(o){case V:if(null!=n){const e=`${n}`;if(pe(a))c+=e.replace(/[<]/g,ce);else{if(new RegExp(`/]`,"i").test(c.slice(-a.length-2)+e))throw new Error("unsafe raw text");c+=e}}break;case v:null==n||(n instanceof Node||"string"!=typeof n&&n[Symbol.iterator]||/(?:^|>)$/.test(r[e-1])&&/^(?:<|$)/.test(t)?(c+="\x3c!--::"+e+"--\x3e",l|=K):c+=`${n}`.replace(/[<&]/g,ce));break;case $:{let a;if(o=B,/^[\s>]/.test(t)){if(null==n||!1===n){c=c.slice(0,s-r[e-1].length);break}if(!0===n||""==(a=`${n}`)){c+="''";break}if("style"===r[e-1].slice(s,i)&&ue(n)||"function"==typeof n){c+="::"+e,l|=Q;break}}if(void 0===a&&(a=`${n}`),""===a)throw new Error("unsafe unquoted empty string");c+=a.replace(/^['"]|[\s>&]/g,ce);break}case B:c+=`${n}`.replace(/[\s>&]/g,ce);break;case M:c+=`${n}`.replace(/['&]/g,ce);break;case E:c+=`${n}`.replace(/["&]/g,ce);break;case T:if(ue(n)){c+="::"+e+"=''",l|=Q;break}throw new Error("invalid binding");case q:break;default:throw new Error("invalid binding")}}for(let e=0,r=t.length;e=0;--n)a=t.insertBefore(r[n],a);else for(const n of r)null!=n&&t.insertBefore(n instanceof Node?n:document.createTextNode(n),e);else t.insertBefore(document.createTextNode(r),e);d.push(e)}}}for(const e of d)e.parentNode.removeChild(e);return t(f)}}function ce(e){return`&#${e.charCodeAt(0).toString()};`}function le(e){return l<=e&&e<=f||u<=e&&e<=d}function fe(e){return e===a||e===s||e===i||e===c||e===o}function ue(e){return e&&e.toString===Object.prototype.toString}function de(e){return"script"===e||"style"===e||pe(e)}function pe(e){return"textarea"===e||"title"===e}function ke(e,t,r){return e.slice(t,r).toLowerCase()}function be(e,t,r){e.namespaceURI===te&&(t=t.toLowerCase(),t=se.get(t)||t,ie.has(t))?e.setAttributeNS(ie.get(t),t,r):e.setAttribute(t,r)}function he(e,t){e.namespaceURI===te&&(t=t.toLowerCase(),t=se.get(t)||t,ie.has(t))?e.removeAttributeNS(ie.get(t),t):e.removeAttribute(t)}function ge(e,t){for(const r in t){const n=t[r];r.startsWith("--")?e.setProperty(r,n):e[r]=n}}export{r as html,n as svg};export default null; diff --git a/isamples_export_client/ui/_npm/isoformat@0.2.1/_esm.js b/isamples_export_client/ui/_npm/isoformat@0.2.1/_esm.js new file mode 100644 index 0000000..f35d603 --- /dev/null +++ b/isamples_export_client/ui/_npm/isoformat@0.2.1/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/isoformat@0.2.1/src/index.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +function t(t,n){if(t instanceof Date||(t=new Date(+t)),isNaN(t))return"function"==typeof n?n(t):n;const o=t.getUTCHours(),d=t.getUTCMinutes(),r=t.getUTCSeconds(),u=t.getUTCMilliseconds();return`${$=t.getUTCFullYear(),$<0?`-${e(-$,6)}`:$>9999?`+${e($,6)}`:e($,4)}-${e(t.getUTCMonth()+1,2)}-${e(t.getUTCDate(),2)}${o||d||r||u?`T${e(o,2)}:${e(d,2)}${r||u?`:${e(r,2)}${u?`.${e(u,3)}`:""}`:""}Z`:""}`;var $}function e(t,e){return`${t}`.padStart(e,"0")}const n=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function o(t,e){return n.test(t+="")?new Date(t):"function"==typeof e?e(t):e}export{t as format,o as parse};export default null; diff --git a/isamples_export_client/ui/_npm/leaflet-spin@1.1.2/_esm.js b/isamples_export_client/ui/_npm/leaflet-spin@1.1.2/_esm.js new file mode 100644 index 0000000..6a135ed --- /dev/null +++ b/isamples_export_client/ui/_npm/leaflet-spin@1.1.2/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/leaflet-spin@1.1.2/leaflet.spin.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +import n from"../leaflet@1.9.4/_esm.js";import i from"../spin.js@2.3.2/_esm.js";var t={exports:{}},s=t.exports=function(t,s){return void 0===t&&(t=n),void 0===s&&(s=i),function(n,i){var t={spin:function(n,t){n?(this._spinner||(this._spinner=new i(t).spin(this._container),this._spinning=0),this._spinning++):(this._spinning--,this._spinning<=0&&this._spinner&&(this._spinner.stop(),this._spinner=null))}},s=function(){this.on("layeradd",(function(n){n.layer.loading&&this.spin(!0),"function"==typeof n.layer.on&&(n.layer.on("data:loading",(function(){this.spin(!0)}),this),n.layer.on("data:loaded",(function(){this.spin(!1)}),this))}),this),this.on("layerremove",(function(n){n.layer.loading&&this.spin(!1),"function"==typeof n.layer.on&&(n.layer.off("data:loaded"),n.layer.off("data:loading"))}),this)};n.Map.include(t),n.Map.addInitHook(s)}(t,s),t};export{s as default}; diff --git a/isamples_export_client/ui/_npm/leaflet.glify@3.2.0/_esm.js b/isamples_export_client/ui/_npm/leaflet.glify@3.2.0/_esm.js new file mode 100644 index 0000000..ca3c18a --- /dev/null +++ b/isamples_export_client/ui/_npm/leaflet.glify@3.2.0/_esm.js @@ -0,0 +1,15 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/leaflet.glify@3.2.0/dist/glify-browser.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +import t from"../leaflet@1.7.1/_esm.js";var n,r={exports:{}};window;var e=r.exports=(n=t,function(t){var n={};function r(e){if(n[e])return n[e].exports;var i=n[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)r.d(e,i,function(n){return t[n]}.bind(null,i));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=10)}([function(t,r){t.exports=n},function(t,n,r){function e(t,n,r){r=r||2;var e,a,s,c,f,v,d,g=n&&n.length,y=g?n[0]*r:t.length,_=i(t,0,y,r,!0),m=[];if(!_||_.next===_.prev)return m;if(g&&(_=function(t,n,r,e){var u,a,s,c=[];for(u=0,a=n.length;u80*r){e=s=t[0],a=c=t[1];for(var x=r;xs&&(s=f),v>c&&(c=v);d=0!==(d=Math.max(s-e,c-a))?1/d:0}return u(_,m,r,e,a,d),m}function i(t,n,r,e,i){var o,u;if(i===L(t,n,r,e)>0)for(o=n;o=n;o-=e)u=b(o,t[o],t[o+1],u);return u&&_(u,u.next)&&(S(u),u=u.next),u}function o(t,n){if(!t)return t;n||(n=t);var r,e=t;do{if(r=!1,e.steiner||!_(e,e.next)&&0!==y(e.prev,e,e.next))e=e.next;else{if(S(e),(e=n=e.prev)===e.next)break;r=!0}}while(r||e!==n);return n}function u(t,n,r,e,i,l,h){if(t){!h&&l&&function(t,n,r,e){var i=t;do{null===i.z&&(i.z=v(i.x,i.y,n,r,e)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var n,r,e,i,o,u,a,s,c=1;do{for(r=t,t=null,o=null,u=0;r;){for(u++,e=r,a=0,n=0;n0||s>0&&e;)0!==a&&(0===s||!e||r.z<=e.z)?(i=r,r=r.nextZ,a--):(i=e,e=e.nextZ,s--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;r=e}o.nextZ=null,c*=2}while(u>1)}(i)}(t,e,i,l);for(var p,d,g=t;t.prev!==t.next;)if(p=t.prev,d=t.next,l?s(t,e,i,l):a(t))n.push(p.i/r),n.push(t.i/r),n.push(d.i/r),S(t),t=d.next,g=d.next;else if((t=d)===g){h?1===h?u(t=c(t,n,r),n,r,e,i,l,2):2===h&&f(t,n,r,e,i,l):u(o(t),n,r,e,i,l,1);break}}}function a(t){var n=t.prev,r=t,e=t.next;if(y(n,r,e)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(d(n.x,n.y,r.x,r.y,e.x,e.y,i.x,i.y)&&y(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function s(t,n,r,e){var i=t.prev,o=t,u=t.next;if(y(i,o,u)>=0)return!1;for(var a=i.xo.x?i.x>u.x?i.x:u.x:o.x>u.x?o.x:u.x,f=i.y>o.y?i.y>u.y?i.y:u.y:o.y>u.y?o.y:u.y,l=v(a,s,n,r,e),h=v(c,f,n,r,e),p=t.prevZ,g=t.nextZ;p&&p.z>=l&&g&&g.z<=h;){if(p!==t.prev&&p!==t.next&&d(i.x,i.y,o.x,o.y,u.x,u.y,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,g!==t.prev&&g!==t.next&&d(i.x,i.y,o.x,o.y,u.x,u.y,g.x,g.y)&&y(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(;p&&p.z>=l;){if(p!==t.prev&&p!==t.next&&d(i.x,i.y,o.x,o.y,u.x,u.y,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;g&&g.z<=h;){if(g!==t.prev&&g!==t.next&&d(i.x,i.y,o.x,o.y,u.x,u.y,g.x,g.y)&&y(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function c(t,n,r){var e=t;do{var i=e.prev,o=e.next.next;!_(i,o)&&m(i,e,e.next,o)&&x(i,o)&&x(o,i)&&(n.push(i.i/r),n.push(e.i/r),n.push(o.i/r),S(e),S(e.next),e=t=o),e=e.next}while(e!==t);return e}function f(t,n,r,e,i,a){var s=t;do{for(var c=s.next.next;c!==s.prev;){if(s.i!==c.i&&g(s,c)){var f=w(s,c);return s=o(s,s.next),f=o(f,f.next),u(s,n,r,e,i,a),void u(f,n,r,e,i,a)}c=c.next}s=s.next}while(s!==t)}function l(t,n){return t.x-n.x}function h(t,n){if(n=function(t,n){var r,e=n,i=t.x,o=t.y,u=-1/0;do{if(o<=e.y&&o>=e.next.y&&e.next.y!==e.y){var a=e.x+(o-e.y)*(e.next.x-e.x)/(e.next.y-e.y);if(a<=i&&a>u){if(u=a,a===i){if(o===e.y)return e;if(o===e.next.y)return e.next}r=e.x=e.x&&e.x>=f&&i!==e.x&&d(or.x)&&x(e,t)&&(r=e,h=s),e=e.next;return r}(t,n)){var r=w(n,t);o(r,r.next)}}function v(t,n,r,e,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(n=1431655765&((n=858993459&((n=252645135&((n=16711935&((n=32767*(n-e)*i)|n<<8))|n<<4))|n<<2))|n<<1))<<1}function p(t){var n=t,r=t;do{(n.x=0&&(t-u)*(e-a)-(r-u)*(n-a)>=0&&(r-u)*(o-a)-(i-u)*(e-a)>=0}function g(t,n){return t.next.i!==n.i&&t.prev.i!==n.i&&!function(t,n){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==n.i&&r.next.i!==n.i&&m(r,r.next,t,n))return!0;r=r.next}while(r!==t);return!1}(t,n)&&x(t,n)&&x(n,t)&&function(t,n){var r=t,e=!1,i=(t.x+n.x)/2,o=(t.y+n.y)/2;do{r.y>o!=r.next.y>o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(e=!e),r=r.next}while(r!==t);return e}(t,n)}function y(t,n,r){return(n.y-t.y)*(r.x-n.x)-(n.x-t.x)*(r.y-n.y)}function _(t,n){return t.x===n.x&&t.y===n.y}function m(t,n,r,e){return!!(_(t,n)&&_(r,e)||_(t,e)&&_(r,n))||y(t,n,r)>0!=y(t,n,e)>0&&y(r,e,t)>0!=y(r,e,n)>0}function x(t,n){return y(t.prev,t,t.next)<0?y(t,n,t.next)>=0&&y(t,t.prev,n)>=0:y(t,n,t.prev)<0||y(t,t.next,n)<0}function w(t,n){var r=new A(t.i,t.x,t.y),e=new A(n.i,n.x,n.y),i=t.next,o=n.prev;return t.next=n,n.prev=t,r.next=i,i.prev=r,e.next=r,r.prev=e,o.next=e,e.prev=o,e}function b(t,n,r,e){var i=new A(t,n,r);return e?(i.next=e.next,i.prev=e,e.next.prev=i,e.next=i):(i.prev=i,i.next=i),i}function S(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function A(t,n,r){this.i=t,this.x=n,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function L(t,n,r,e){for(var i=0,o=n,u=r-e;o0&&(e+=t[i-1].length,r.holes.push(e))}return r}},function(t,n,r){var e=r(3),i=r(5),o=r(6),u=r(7);function a(t){void 0!==t&&this.loadFeatureCollection(t)}function s(t,n){var r=n.geometry.coordinates[0];if(i(t,r)){for(var e=1;e=r||!s(e,t)||(u++,0))}))}},a.prototype.search=function(t,n,r){return void 0===r?this.searchForOnePolygon(t,n):this.searchForMultiplePolygons(t,n,r)},a.prototype.loadFeatureCollection=function(t){var n=[],r=[],i=0;function u(t){r.push(t);var e=o.getBoundingBox(t.geometry.coordinates[0]);e.polyId=i++,n.push(e)}t.features.forEach((function(t){if(t.geometry&&void 0!==t.geometry.coordinates[0]&&t.geometry.coordinates[0].length>0)switch(t.geometry.type){case"Polygon":u(t);break;case"MultiPolygon":for(var n=t.geometry.coordinates,r=0;r=t.minX&&n.maxY>=t.minY}function d(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(t,n,r,i,o){for(var u,a=[n,r];a.length;)(r=a.pop())-(n=a.pop())<=i||(u=n+Math.ceil((r-n)/i/2)*i,e(t,u,n,r,o),a.push(n,u,u,r))}i.prototype={all:function(){return this._all(this.data,[])},search:function(t){var n=this.data,r=[],e=this.toBBox;if(!p(t,n))return r;for(var i,o,u,a,s=[];n;){for(i=0,o=n.children.length;i=0&&o[n].children.length>this._maxEntries;)this._split(o,n),n--;this._adjustParentBBoxes(i,o,n)},_split:function(t,n){var r=t[n],e=r.children.length,i=this._minEntries;this._chooseSplitAxis(r,i,e);var o=this._chooseSplitIndex(r,i,e),a=d(r.children.splice(o,r.children.length-o));a.height=r.height,a.leaf=r.leaf,u(r,this.toBBox),u(a,this.toBBox),n?t[n-1].children.push(a):this._splitRoot(r,a)},_splitRoot:function(t,n){this.data=d([t,n]),this.data.height=t.height+1,this.data.leaf=!1,u(this.data,this.toBBox)},_chooseSplitIndex:function(t,n,r){var e,i,o,u,s,c,f,h,v,p,d,g,y,_;for(c=f=1/0,e=n;e<=r-n;e++)v=i=a(t,0,e,this.toBBox),p=o=a(t,e,r,this.toBBox),d=void 0,g=void 0,y=void 0,_=void 0,d=Math.max(v.minX,p.minX),g=Math.max(v.minY,p.minY),y=Math.min(v.maxX,p.maxX),_=Math.min(v.maxY,p.maxY),u=Math.max(0,y-d)*Math.max(0,_-g),s=l(i)+l(o),u=n;i--)o=t.children[i],s(f,t.leaf?u(o):o),l+=h(f);return l},_adjustParentBBoxes:function(t,n,r){for(var e=r;e>=0;e--)s(n[e],t)},_condense:function(t){for(var n,r=t.length-1;r>=0;r--)0===t[r].children.length?r>0?(n=t[r-1].children).splice(n.indexOf(t[r]),1):this.clear():u(t[r],this.toBBox)},_initFormat:function(t){var n=["return a"," - b",";"];this.compareMinX=new Function("a","b",n.join(t[0])),this.compareMinY=new Function("a","b",n.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},function(t,n,r){t.exports=function(){function t(t,n,r){var e=t[n];t[n]=t[r],t[r]=e}function n(t,n){return tn?1:0}return function(r,e,i,o,u){!function n(r,e,i,o,u){for(;o>i;){if(o-i>600){var a=o-i+1,s=e-i+1,c=Math.log(a),f=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*f*(a-f)/a)*(s-a/2<0?-1:1);n(r,e,Math.max(i,Math.floor(e-s*f/a+l)),Math.min(o,Math.floor(e+(a-s)*f/a+l)),u)}var h=r[e],v=i,p=o;for(t(r,i,e),u(r[o],h)>0&&t(r,i,o);v0;)p--}0===u(r[i],h)?t(r,i,p):t(r,++p,o),p<=e&&(i=p+1),e<=p&&(o=p-1)}}(r,e,i||0,o||r.length-1,u||n)}}()},function(t,n){t.exports=function(t,n){for(var r=t[0],e=t[1],i=!1,o=0,u=n.length-1;oe!=f>e&&r<(c-a)*(e-s)/(f-s)+a&&(i=!i)}return i}},function(t,n,r){t.exports={getBoundingBox:function(t){for(var n=t[0],r={minX:n[0],minY:n[1],maxX:n[0],maxY:n[1]},e=1;er.maxX&&(r.maxX=o);var u=i[1];ur.maxY&&(r.maxY=u)}return r}}},function(t,n,r){(function(t,e){var i; +/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(){var o="Expected a function",u="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],s="[object Arguments]",c="[object Array]",f="[object Boolean]",l="[object Date]",h="[object Error]",v="[object Function]",p="[object GeneratorFunction]",d="[object Map]",g="[object Number]",y="[object Object]",_="[object RegExp]",m="[object Set]",x="[object String]",w="[object Symbol]",b="[object WeakMap]",S="[object ArrayBuffer]",A="[object DataView]",L="[object Float32Array]",E="[object Float64Array]",M="[object Int8Array]",k="[object Int16Array]",F="[object Int32Array]",B="[object Uint8Array]",C="[object Uint16Array]",z="[object Uint32Array]",R=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,O=/(__e\(.*?\)|\b__t\)) \+\n'';/g,P=/&(?:amp|lt|gt|quot|#39);/g,T=/[&<>"']/g,I=RegExp(P.source),N=RegExp(T.source),Y=/<%-([\s\S]+?)%>/g,U=/<%([\s\S]+?)%>/g,D=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,V=RegExp(K.source),H=/^\s+/,$=/\s/,q=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,G=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tt=/[()=,{}\[\]\/\s]/,nt=/\\(\\)?/g,rt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,et=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,ut=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,st=/^(?:0|[1-9]\d*)$/,ct=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ft=/($^)/,lt=/['\n\r\u2028\u2029\\]/g,ht="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",vt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",dt="["+vt+"]",gt="["+ht+"]",yt="\\d+",_t="[\\u2700-\\u27bf]",mt="[a-z\\xdf-\\xf6\\xf8-\\xff]",xt="[^\\ud800-\\udfff"+vt+yt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",wt="\\ud83c[\\udffb-\\udfff]",bt="[^\\ud800-\\udfff]",St="(?:\\ud83c[\\udde6-\\uddff]){2}",At="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Et="(?:"+mt+"|"+xt+")",Mt="(?:"+Lt+"|"+xt+")",kt="(?:"+gt+"|"+wt+")?",Ft="[\\ufe0e\\ufe0f]?"+kt+"(?:\\u200d(?:"+[bt,St,At].join("|")+")[\\ufe0e\\ufe0f]?"+kt+")*",Bt="(?:"+[_t,St,At].join("|")+")"+Ft,Ct="(?:"+[bt+gt+"?",gt,St,At,pt].join("|")+")",zt=RegExp("['’]","g"),Rt=RegExp(gt,"g"),jt=RegExp(wt+"(?="+wt+")|"+Ct+Ft,"g"),Ot=RegExp([Lt+"?"+mt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[dt,Lt,"$"].join("|")+")",Mt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[dt,Lt+Et,"$"].join("|")+")",Lt+"?"+Et+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yt,Bt].join("|"),"g"),Pt=RegExp("[\\u200d\\ud800-\\udfff"+ht+"\\ufe0e\\ufe0f]"),Tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,It=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Nt=-1,Yt={};Yt[L]=Yt[E]=Yt[M]=Yt[k]=Yt[F]=Yt[B]=Yt["[object Uint8ClampedArray]"]=Yt[C]=Yt[z]=!0,Yt[s]=Yt[c]=Yt[S]=Yt[f]=Yt[A]=Yt[l]=Yt[h]=Yt[v]=Yt[d]=Yt[g]=Yt[y]=Yt[_]=Yt[m]=Yt[x]=Yt[b]=!1;var Ut={};Ut[s]=Ut[c]=Ut[S]=Ut[A]=Ut[f]=Ut[l]=Ut[L]=Ut[E]=Ut[M]=Ut[k]=Ut[F]=Ut[d]=Ut[g]=Ut[y]=Ut[_]=Ut[m]=Ut[x]=Ut[w]=Ut[B]=Ut["[object Uint8ClampedArray]"]=Ut[C]=Ut[z]=!0,Ut[h]=Ut[v]=Ut[b]=!1;var Dt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wt=parseFloat,Zt=parseInt,Xt="object"==typeof t&&t&&t.Object===Object&&t,Kt="object"==typeof self&&self&&self.Object===Object&&self,Vt=Xt||Kt||Function("return this")(),Ht=n&&!n.nodeType&&n,$t=Ht&&"object"==typeof e&&e&&!e.nodeType&&e,qt=$t&&$t.exports===Ht,Gt=qt&&Xt.process,Jt=function(){try{return $t&&$t.require&&$t.require("util").types||Gt&&Gt.binding&&Gt.binding("util")}catch(t){}}(),Qt=Jt&&Jt.isArrayBuffer,tn=Jt&&Jt.isDate,nn=Jt&&Jt.isMap,rn=Jt&&Jt.isRegExp,en=Jt&&Jt.isSet,on=Jt&&Jt.isTypedArray;function un(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}function an(t,n,r,e){for(var i=-1,o=null==t?0:t.length;++i-1}function vn(t,n,r){for(var e=-1,i=null==t?0:t.length;++e-1;);return r}function Pn(t,n){for(var r=t.length;r--&&bn(n,t[r],0)>-1;);return r}function Tn(t,n){for(var r=t.length,e=0;r--;)t[r]===n&&++e;return e}var In=Mn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Nn=Mn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Yn(t){return"\\"+Dt[t]}function Un(t){return Pt.test(t)}function Dn(t){var n=-1,r=Array(t.size);return t.forEach((function(t,e){r[++n]=[e,t]})),r}function Wn(t,n){return function(r){return t(n(r))}}function Zn(t,n){for(var r=-1,e=t.length,i=0,o=[];++r",""":'"',"'":"'"}),Gn=function t(n){var r,e=(n=null==n?Vt:Gn.defaults(Vt.Object(),n,Gn.pick(Vt,It))).Array,i=n.Date,$=n.Error,ht=n.Function,vt=n.Math,pt=n.Object,dt=n.RegExp,gt=n.String,yt=n.TypeError,_t=e.prototype,mt=ht.prototype,xt=pt.prototype,wt=n["__core-js_shared__"],bt=mt.toString,St=xt.hasOwnProperty,At=0,Lt=(r=/[^.]+$/.exec(wt&&wt.keys&&wt.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Et=xt.toString,Mt=bt.call(pt),kt=Vt._,Ft=dt("^"+bt.call(St).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bt=qt?n.Buffer:void 0,Ct=n.Symbol,jt=n.Uint8Array,Pt=Bt?Bt.allocUnsafe:void 0,Dt=Wn(pt.getPrototypeOf,pt),Xt=pt.create,Kt=xt.propertyIsEnumerable,Ht=_t.splice,$t=Ct?Ct.isConcatSpreadable:void 0,Gt=Ct?Ct.iterator:void 0,Jt=Ct?Ct.toStringTag:void 0,mn=function(){try{var t=to(pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Mn=n.clearTimeout!==Vt.clearTimeout&&n.clearTimeout,Jn=i&&i.now!==Vt.Date.now&&i.now,Qn=n.setTimeout!==Vt.setTimeout&&n.setTimeout,tr=vt.ceil,nr=vt.floor,rr=pt.getOwnPropertySymbols,er=Bt?Bt.isBuffer:void 0,ir=n.isFinite,or=_t.join,ur=Wn(pt.keys,pt),ar=vt.max,sr=vt.min,cr=i.now,fr=n.parseInt,lr=vt.random,hr=_t.reverse,vr=to(n,"DataView"),pr=to(n,"Map"),dr=to(n,"Promise"),gr=to(n,"Set"),yr=to(n,"WeakMap"),_r=to(pt,"create"),mr=yr&&new yr,xr={},wr=ko(vr),br=ko(pr),Sr=ko(dr),Ar=ko(gr),Lr=ko(yr),Er=Ct?Ct.prototype:void 0,Mr=Er?Er.valueOf:void 0,kr=Er?Er.toString:void 0;function Fr(t){if(Xu(t)&&!ju(t)&&!(t instanceof Rr)){if(t instanceof zr)return t;if(St.call(t,"__wrapped__"))return Fo(t)}return new zr(t)}var Br=function(){function t(){}return function(n){if(!Zu(n))return{};if(Xt)return Xt(n);t.prototype=n;var r=new t;return t.prototype=void 0,r}}();function Cr(){}function zr(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=void 0}function Rr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function jr(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function Gr(t,n,r,e,i,o){var u,a=1&n,c=2&n,h=4&n;if(r&&(u=i?r(t,e,i,o):r(t)),void 0!==u)return u;if(!Zu(t))return t;var b=ju(t);if(b){if(u=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&St.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!a)return _i(t,u)}else{var R=eo(t),j=R==v||R==p;if(Iu(t))return hi(t,a);if(R==y||R==s||j&&!i){if(u=c||j?{}:oo(t),!a)return c?function(t,n){return mi(t,ro(t),n)}(t,function(t,n){return t&&mi(n,ba(n),t)}(u,t)):function(t,n){return mi(t,no(t),n)}(t,Vr(u,t))}else{if(!Ut[R])return i?t:{};u=function(t,n,r){var e,i=t.constructor;switch(n){case S:return vi(t);case f:case l:return new i(+t);case A:return function(t,n){var r=n?vi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case L:case E:case M:case k:case F:case B:case"[object Uint8ClampedArray]":case C:case z:return pi(t,r);case d:return new i;case g:case x:return new i(t);case _:return function(t){var n=new t.constructor(t.source,et.exec(t));return n.lastIndex=t.lastIndex,n}(t);case m:return new i;case w:return e=t,Mr?pt(Mr.call(e)):{}}}(t,R,a)}}o||(o=new Ir);var O=o.get(t);if(O)return O;o.set(t,u),qu(t)?t.forEach((function(e){u.add(Gr(e,n,r,e,t,o))})):Ku(t)&&t.forEach((function(e,i){u.set(i,Gr(e,n,r,i,t,o))}));var P=b?void 0:(h?c?Vi:Ki:c?ba:wa)(t);return sn(P||t,(function(e,i){P&&(e=t[i=e]),Zr(u,i,Gr(e,n,r,i,t,o))})),u}function Jr(t,n,r){var e=r.length;if(null==t)return!e;for(t=pt(t);e--;){var i=r[e],o=n[i],u=t[i];if(void 0===u&&!(i in t)||!o(u))return!1}return!0}function Qr(t,n,r){if("function"!=typeof t)throw new yt(o);return wo((function(){t.apply(void 0,r)}),n)}function te(t,n,r,e){var i=-1,o=hn,u=!0,a=t.length,s=[],c=n.length;if(!a)return s;r&&(n=pn(n,zn(r))),e?(o=vn,u=!1):n.length>=200&&(o=jn,u=!1,n=new Tr(n));t:for(;++i-1},Or.prototype.set=function(t,n){var r=this.__data__,e=Xr(r,t);return e<0?(++this.size,r.push([t,n])):r[e][1]=n,this},Pr.prototype.clear=function(){this.size=0,this.__data__={hash:new jr,map:new(pr||Or),string:new jr}},Pr.prototype.delete=function(t){var n=Ji(this,t).delete(t);return this.size-=n?1:0,n},Pr.prototype.get=function(t){return Ji(this,t).get(t)},Pr.prototype.has=function(t){return Ji(this,t).has(t)},Pr.prototype.set=function(t,n){var r=Ji(this,t),e=r.size;return r.set(t,n),this.size+=r.size==e?0:1,this},Tr.prototype.add=Tr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Tr.prototype.has=function(t){return this.__data__.has(t)},Ir.prototype.clear=function(){this.__data__=new Or,this.size=0},Ir.prototype.delete=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r},Ir.prototype.get=function(t){return this.__data__.get(t)},Ir.prototype.has=function(t){return this.__data__.has(t)},Ir.prototype.set=function(t,n){var r=this.__data__;if(r instanceof Or){var e=r.__data__;if(!pr||e.length<199)return e.push([t,n]),this.size=++r.size,this;r=this.__data__=new Pr(e)}return r.set(t,n),this.size=r.size,this};var ne=bi(ce),re=bi(fe,!0);function ee(t,n){var r=!0;return ne(t,(function(t,e,i){return r=!!n(t,e,i)})),r}function ie(t,n,r){for(var e=-1,i=t.length;++e0&&r(a)?n>1?ue(a,n-1,r,e,i):dn(i,a):e||(i[i.length]=a)}return i}var ae=Si(),se=Si(!0);function ce(t,n){return t&&ae(t,n,wa)}function fe(t,n){return t&&se(t,n,wa)}function le(t,n){return ln(n,(function(n){return Uu(t[n])}))}function he(t,n){for(var r=0,e=(n=si(n,t)).length;null!=t&&rn}function ge(t,n){return null!=t&&St.call(t,n)}function ye(t,n){return null!=t&&n in pt(t)}function _e(t,n,r){for(var i=r?vn:hn,o=t[0].length,u=t.length,a=u,s=e(u),c=1/0,f=[];a--;){var l=t[a];a&&n&&(l=pn(l,zn(n))),c=sr(l.length,c),s[a]=!r&&(n||o>=120&&l.length>=120)?new Tr(a&&l):void 0}l=t[0];var h=-1,v=s[0];t:for(;++h=a?s:s*("desc"==r[e]?-1:1)}return t.index-n.index}(t,n,r)}))}function je(t,n,r){for(var e=-1,i=n.length,o={};++e-1;)a!==t&&Ht.call(a,s,1),Ht.call(t,s,1);return t}function Pe(t,n){for(var r=t?n.length:0,e=r-1;r--;){var i=n[r];if(r==e||i!==o){var o=i;ao(i)?Ht.call(t,i,1):ti(t,i)}}return t}function Te(t,n){return t+nr(lr()*(n-t+1))}function Ie(t,n){var r="";if(!t||n<1||n>9007199254740991)return r;do{n%2&&(r+=t),(n=nr(n/2))&&(t+=t)}while(n);return r}function Ne(t,n){return bo(go(t,n,Va),t+"")}function Ye(t){return Yr(Ba(t))}function Ue(t,n){var r=Ba(t);return Lo(r,qr(n,0,r.length))}function De(t,n,r,e){if(!Zu(t))return t;for(var i=-1,o=(n=si(n,t)).length,u=o-1,a=t;null!=a&&++io?0:o+n),(r=r>o?o:r)<0&&(r+=o),o=n>r?0:r-n>>>0,n>>>=0;for(var u=e(o);++i>>1,u=t[o];null!==u&&!Ju(u)&&(r?u<=n:u=200){var c=n?null:Ii(t);if(c)return Xn(c);u=!1,i=jn,s=new Tr}else s=n?[]:a;t:for(;++e=e?t:Ke(t,n,r)}var li=Mn||function(t){return Vt.clearTimeout(t)};function hi(t,n){if(n)return t.slice();var r=t.length,e=Pt?Pt(r):new t.constructor(r);return t.copy(e),e}function vi(t){var n=new t.constructor(t.byteLength);return new jt(n).set(new jt(t)),n}function pi(t,n){var r=n?vi(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function di(t,n){if(t!==n){var r=void 0!==t,e=null===t,i=t==t,o=Ju(t),u=void 0!==n,a=null===n,s=n==n,c=Ju(n);if(!a&&!c&&!o&&t>n||o&&u&&s&&!a&&!c||e&&u&&s||!r&&s||!i)return 1;if(!e&&!o&&!c&&t1?r[i-1]:void 0,u=i>2?r[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,u&&so(r[0],r[1],u)&&(o=i<3?void 0:o,i=1),n=pt(n);++e-1?i[o?n[u]:u]:void 0}}function ki(t){return Xi((function(n){var r=n.length,e=r,i=zr.prototype.thru;for(t&&n.reverse();e--;){var u=n[e];if("function"!=typeof u)throw new yt(o);if(i&&!a&&"wrapper"==$i(u))var a=new zr([],!0)}for(e=a?e:r;++e1&&m.reverse(),l&&c<_&&(m.length=c),this&&this!==Vt&&this instanceof y&&(L=g||Ei(L)),L.apply(A,m)}}function Bi(t,n){return function(r,e){return function(t,n,r,e){return ce(t,(function(t,i,o){n(e,r(t),i,o)})),e}(r,t,n(e),{})}}function Ci(t,n){return function(r,e){var i;if(void 0===r&&void 0===e)return n;if(void 0!==r&&(i=r),void 0!==e){if(void 0===i)return e;"string"==typeof r||"string"==typeof e?(r=Je(r),e=Je(e)):(r=Ge(r),e=Ge(e)),i=t(r,e)}return i}}function zi(t){return Xi((function(n){return n=pn(n,zn(Gi())),Ne((function(r){var e=this;return t(n,(function(t){return un(t,e,r)}))}))}))}function Ri(t,n){var r=(n=void 0===n?" ":Je(n)).length;if(r<2)return r?Ie(n,t):n;var e=Ie(n,tr(t/Vn(n)));return Un(n)?fi(Hn(e),0,t).join(""):e.slice(0,t)}function ji(t){return function(n,r,i){return i&&"number"!=typeof i&&so(n,r,i)&&(r=i=void 0),n=ea(n),void 0===r?(r=n,n=0):r=ea(r),function(t,n,r,i){for(var o=-1,u=ar(tr((n-t)/(r||1)),0),a=e(u);u--;)a[i?u:++o]=t,t+=r;return a}(n,r,i=void 0===i?na))return!1;var c=o.get(t),f=o.get(n);if(c&&f)return c==n&&f==t;var l=-1,h=!0,v=2&r?new Tr:void 0;for(o.set(t,n),o.set(n,t);++l-1&&t%1==0&&t1?"& ":"")+n[e],n=n.join(r>2?", ":" "),t.replace(q,"{\n/* [wrapped with "+n+"] */\n")}(e,function(t,n){return sn(a,(function(r){var e="_."+r[0];n&r[1]&&!hn(t,e)&&t.push(e)})),t.sort()}(function(t){var n=t.match(G);return n?n[1].split(J):[]}(e),r)))}function Ao(t){var n=0,r=0;return function(){var e=cr(),i=16-(e-r);if(r=e,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}function Lo(t,n){var r=-1,e=t.length,i=e-1;for(n=void 0===n?e:n;++r1?t[n-1]:void 0;return r="function"==typeof r?(t.pop(),r):void 0,$o(t,r)}));function ru(t){var n=Fr(t);return n.__chain__=!0,n}function eu(t,n){return n(t)}var iu=Xi((function(t){var n=t.length,r=n?t[0]:0,e=this.__wrapped__,i=function(n){return $r(n,t)};return!(n>1||this.__actions__.length)&&e instanceof Rr&&ao(r)?((e=e.slice(r,+r+(n?1:0))).__actions__.push({func:eu,args:[i],thisArg:void 0}),new zr(e,this.__chain__).thru((function(t){return n&&!t.length&&t.push(void 0),t}))):this.thru(i)})),ou=xi((function(t,n,r){St.call(t,r)?++t[r]:Hr(t,r,1)})),uu=Mi(Ro),au=Mi(jo);function su(t,n){return(ju(t)?sn:ne)(t,Gi(n,3))}function cu(t,n){return(ju(t)?cn:re)(t,Gi(n,3))}var fu=xi((function(t,n,r){St.call(t,r)?t[r].push(n):Hr(t,r,[n])})),lu=Ne((function(t,n,r){var i=-1,o="function"==typeof n,u=Pu(t)?e(t.length):[];return ne(t,(function(t){u[++i]=o?un(n,t,r):me(t,n,r)})),u})),hu=xi((function(t,n,r){Hr(t,r,n)}));function vu(t,n){return(ju(t)?pn:ke)(t,Gi(n,3))}var pu=xi((function(t,n,r){t[r?0:1].push(n)}),(function(){return[[],[]]})),du=Ne((function(t,n){if(null==t)return[];var r=n.length;return r>1&&so(t,n[0],n[1])?n=[]:r>2&&so(n[0],n[1],n[2])&&(n=[n[0]]),Re(t,ue(n,1),[])})),gu=Jn||function(){return Vt.Date.now()};function yu(t,n,r){return n=r?void 0:n,Yi(t,128,void 0,void 0,void 0,void 0,n=t&&null==n?t.length:n)}function _u(t,n){var r;if("function"!=typeof n)throw new yt(o);return t=ia(t),function(){return--t>0&&(r=n.apply(this,arguments)),t<=1&&(n=void 0),r}}var mu=Ne((function(t,n,r){var e=1;if(r.length){var i=Zn(r,qi(mu));e|=32}return Yi(t,e,n,r,i)})),xu=Ne((function(t,n,r){var e=3;if(r.length){var i=Zn(r,qi(xu));e|=32}return Yi(n,e,t,r,i)}));function wu(t,n,r){var e,i,u,a,s,c,f=0,l=!1,h=!1,v=!0;if("function"!=typeof t)throw new yt(o);function p(n){var r=e,o=i;return e=i=void 0,f=n,a=t.apply(o,r)}function d(t){return f=t,s=wo(y,n),l?p(t):a}function g(t){var r=t-c;return void 0===c||r>=n||r<0||h&&t-f>=u}function y(){var t=gu();if(g(t))return _(t);s=wo(y,function(t){var r=n-(t-c);return h?sr(r,u-(t-f)):r}(t))}function _(t){return s=void 0,v&&e?p(t):(e=i=void 0,a)}function m(){var t=gu(),r=g(t);if(e=arguments,i=this,c=t,r){if(void 0===s)return d(c);if(h)return li(s),s=wo(y,n),p(c)}return void 0===s&&(s=wo(y,n)),a}return n=ua(n)||0,Zu(r)&&(l=!!r.leading,u=(h="maxWait"in r)?ar(ua(r.maxWait)||0,n):u,v="trailing"in r?!!r.trailing:v),m.cancel=function(){void 0!==s&&li(s),f=0,e=c=i=s=void 0},m.flush=function(){return void 0===s?a:_(gu())},m}var bu=Ne((function(t,n){return Qr(t,1,n)})),Su=Ne((function(t,n,r){return Qr(t,ua(n)||0,r)}));function Au(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new yt(o);var r=function(){var e=arguments,i=n?n.apply(this,e):e[0],o=r.cache;if(o.has(i))return o.get(i);var u=t.apply(this,e);return r.cache=o.set(i,u)||o,u};return r.cache=new(Au.Cache||Pr),r}function Lu(t){if("function"!=typeof t)throw new yt(o);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}Au.Cache=Pr;var Eu=ci((function(t,n){var r=(n=1==n.length&&ju(n[0])?pn(n[0],zn(Gi())):pn(ue(n,1),zn(Gi()))).length;return Ne((function(e){for(var i=-1,o=sr(e.length,r);++i=n})),Ru=xe(function(){return arguments}())?xe:function(t){return Xu(t)&&St.call(t,"callee")&&!Kt.call(t,"callee")},ju=e.isArray,Ou=Qt?zn(Qt):function(t){return Xu(t)&&pe(t)==S};function Pu(t){return null!=t&&Wu(t.length)&&!Uu(t)}function Tu(t){return Xu(t)&&Pu(t)}var Iu=er||us,Nu=tn?zn(tn):function(t){return Xu(t)&&pe(t)==l};function Yu(t){if(!Xu(t))return!1;var n=pe(t);return n==h||"[object DOMException]"==n||"string"==typeof t.message&&"string"==typeof t.name&&!Hu(t)}function Uu(t){if(!Zu(t))return!1;var n=pe(t);return n==v||n==p||"[object AsyncFunction]"==n||"[object Proxy]"==n}function Du(t){return"number"==typeof t&&t==ia(t)}function Wu(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Zu(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Xu(t){return null!=t&&"object"==typeof t}var Ku=nn?zn(nn):function(t){return Xu(t)&&eo(t)==d};function Vu(t){return"number"==typeof t||Xu(t)&&pe(t)==g}function Hu(t){if(!Xu(t)||pe(t)!=y)return!1;var n=Dt(t);if(null===n)return!0;var r=St.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&bt.call(r)==Mt}var $u=rn?zn(rn):function(t){return Xu(t)&&pe(t)==_},qu=en?zn(en):function(t){return Xu(t)&&eo(t)==m};function Gu(t){return"string"==typeof t||!ju(t)&&Xu(t)&&pe(t)==x}function Ju(t){return"symbol"==typeof t||Xu(t)&&pe(t)==w}var Qu=on?zn(on):function(t){return Xu(t)&&Wu(t.length)&&!!Yt[pe(t)]},ta=Oi(Me),na=Oi((function(t,n){return t<=n}));function ra(t){if(!t)return[];if(Pu(t))return Gu(t)?Hn(t):_i(t);if(Gt&&t[Gt])return function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}(t[Gt]());var n=eo(t);return(n==d?Dn:n==m?Xn:Ba)(t)}function ea(t){return t?(t=ua(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ia(t){var n=ea(t),r=n%1;return n==n?r?n-r:n:0}function oa(t){return t?qr(ia(t),0,4294967295):0}function ua(t){if("number"==typeof t)return t;if(Ju(t))return NaN;if(Zu(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=Zu(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=Cn(t);var r=ot.test(t);return r||at.test(t)?Zt(t.slice(2),r?2:8):it.test(t)?NaN:+t}function aa(t){return mi(t,ba(t))}function sa(t){return null==t?"":Je(t)}var ca=wi((function(t,n){if(ho(n)||Pu(n))mi(n,wa(n),t);else for(var r in n)St.call(n,r)&&Zr(t,r,n[r])})),fa=wi((function(t,n){mi(n,ba(n),t)})),la=wi((function(t,n,r,e){mi(n,ba(n),t,e)})),ha=wi((function(t,n,r,e){mi(n,wa(n),t,e)})),va=Xi($r),pa=Ne((function(t,n){t=pt(t);var r=-1,e=n.length,i=e>2?n[2]:void 0;for(i&&so(n[0],n[1],i)&&(e=1);++r1),n})),mi(t,Vi(t),r),e&&(r=Gr(r,7,Wi));for(var i=n.length;i--;)ti(r,n[i]);return r})),Ea=Xi((function(t,n){return null==t?{}:function(t,n){return je(t,n,(function(n,r){return ya(t,r)}))}(t,n)}));function Ma(t,n){if(null==t)return{};var r=pn(Vi(t),(function(t){return[t]}));return n=Gi(n),je(t,r,(function(t,r){return n(t,r[0])}))}var ka=Ni(wa),Fa=Ni(ba);function Ba(t){return null==t?[]:Rn(t,wa(t))}var Ca=Li((function(t,n,r){return n=n.toLowerCase(),t+(r?za(n):n)}));function za(t){return Ya(sa(t).toLowerCase())}function Ra(t){return(t=sa(t))&&t.replace(ct,In).replace(Rt,"")}var ja=Li((function(t,n,r){return t+(r?"-":"")+n.toLowerCase()})),Oa=Li((function(t,n,r){return t+(r?" ":"")+n.toLowerCase()})),Pa=Ai("toLowerCase"),Ta=Li((function(t,n,r){return t+(r?"_":"")+n.toLowerCase()})),Ia=Li((function(t,n,r){return t+(r?" ":"")+Ya(n)})),Na=Li((function(t,n,r){return t+(r?" ":"")+n.toUpperCase()})),Ya=Ai("toUpperCase");function Ua(t,n,r){return t=sa(t),void 0===(n=r?void 0:n)?function(t){return Tt.test(t)}(t)?function(t){return t.match(Ot)||[]}(t):function(t){return t.match(Q)||[]}(t):t.match(n)||[]}var Da=Ne((function(t,n){try{return un(t,void 0,n)}catch(t){return Yu(t)?t:new $(t)}})),Wa=Xi((function(t,n){return sn(n,(function(n){n=Mo(n),Hr(t,n,mu(t[n],t))})),t}));function Za(t){return function(){return t}}var Xa=ki(),Ka=ki(!0);function Va(t){return t}function Ha(t){return Ae("function"==typeof t?t:Gr(t,1))}var $a=Ne((function(t,n){return function(r){return me(r,t,n)}})),qa=Ne((function(t,n){return function(r){return me(t,r,n)}}));function Ga(t,n,r){var e=wa(n),i=le(n,e);null!=r||Zu(n)&&(i.length||!e.length)||(r=n,n=t,t=this,i=le(n,wa(n)));var o=!(Zu(r)&&"chain"in r&&!r.chain),u=Uu(t);return sn(i,(function(r){var e=n[r];t[r]=e,u&&(t.prototype[r]=function(){var n=this.__chain__;if(o||n){var r=t(this.__wrapped__);return(r.__actions__=_i(this.__actions__)).push({func:e,args:arguments,thisArg:t}),r.__chain__=n,r}return e.apply(t,dn([this.value()],arguments))})})),t}function Ja(){}var Qa=zi(pn),ts=zi(fn),ns=zi(_n);function rs(t){return co(t)?En(Mo(t)):function(t){return function(n){return he(n,t)}}(t)}var es=ji(),is=ji(!0);function os(){return[]}function us(){return!1}var as,ss=Ci((function(t,n){return t+n}),0),cs=Ti("ceil"),fs=Ci((function(t,n){return t/n}),1),ls=Ti("floor"),hs=Ci((function(t,n){return t*n}),1),vs=Ti("round"),ps=Ci((function(t,n){return t-n}),0);return Fr.after=function(t,n){if("function"!=typeof n)throw new yt(o);return t=ia(t),function(){if(--t<1)return n.apply(this,arguments)}},Fr.ary=yu,Fr.assign=ca,Fr.assignIn=fa,Fr.assignInWith=la,Fr.assignWith=ha,Fr.at=va,Fr.before=_u,Fr.bind=mu,Fr.bindAll=Wa,Fr.bindKey=xu,Fr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return ju(t)?t:[t]},Fr.chain=ru,Fr.chunk=function(t,n,r){n=(r?so(t,n,r):void 0===n)?1:ar(ia(n),0);var i=null==t?0:t.length;if(!i||n<1)return[];for(var o=0,u=0,a=e(tr(i/n));oi?0:i+r),(e=void 0===e||e>i?i:ia(e))<0&&(e+=i),e=r>e?0:oa(e);r>>0)?(t=sa(t))&&("string"==typeof n||null!=n&&!$u(n))&&!(n=Je(n))&&Un(t)?fi(Hn(t),0,r):t.split(n,r):[]},Fr.spread=function(t,n){if("function"!=typeof t)throw new yt(o);return n=null==n?0:ar(ia(n),0),Ne((function(r){var e=r[n],i=fi(r,0,n);return e&&dn(i,e),un(t,this,i)}))},Fr.tail=function(t){var n=null==t?0:t.length;return n?Ke(t,1,n):[]},Fr.take=function(t,n,r){return t&&t.length?Ke(t,0,(n=r||void 0===n?1:ia(n))<0?0:n):[]},Fr.takeRight=function(t,n,r){var e=null==t?0:t.length;return e?Ke(t,(n=e-(n=r||void 0===n?1:ia(n)))<0?0:n,e):[]},Fr.takeRightWhile=function(t,n){return t&&t.length?ri(t,Gi(n,3),!1,!0):[]},Fr.takeWhile=function(t,n){return t&&t.length?ri(t,Gi(n,3)):[]},Fr.tap=function(t,n){return n(t),t},Fr.throttle=function(t,n,r){var e=!0,i=!0;if("function"!=typeof t)throw new yt(o);return Zu(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),wu(t,n,{leading:e,maxWait:n,trailing:i})},Fr.thru=eu,Fr.toArray=ra,Fr.toPairs=ka,Fr.toPairsIn=Fa,Fr.toPath=function(t){return ju(t)?pn(t,Mo):Ju(t)?[t]:_i(Eo(sa(t)))},Fr.toPlainObject=aa,Fr.transform=function(t,n,r){var e=ju(t),i=e||Iu(t)||Qu(t);if(n=Gi(n,4),null==r){var o=t&&t.constructor;r=i?e?new o:[]:Zu(t)&&Uu(o)?Br(Dt(t)):{}}return(i?sn:ce)(t,(function(t,e,i){return n(r,t,e,i)})),r},Fr.unary=function(t){return yu(t,1)},Fr.union=Xo,Fr.unionBy=Ko,Fr.unionWith=Vo,Fr.uniq=function(t){return t&&t.length?Qe(t):[]},Fr.uniqBy=function(t,n){return t&&t.length?Qe(t,Gi(n,2)):[]},Fr.uniqWith=function(t,n){return n="function"==typeof n?n:void 0,t&&t.length?Qe(t,void 0,n):[]},Fr.unset=function(t,n){return null==t||ti(t,n)},Fr.unzip=Ho,Fr.unzipWith=$o,Fr.update=function(t,n,r){return null==t?t:ni(t,n,ai(r))},Fr.updateWith=function(t,n,r,e){return e="function"==typeof e?e:void 0,null==t?t:ni(t,n,ai(r),e)},Fr.values=Ba,Fr.valuesIn=function(t){return null==t?[]:Rn(t,ba(t))},Fr.without=qo,Fr.words=Ua,Fr.wrap=function(t,n){return Mu(ai(n),t)},Fr.xor=Go,Fr.xorBy=Jo,Fr.xorWith=Qo,Fr.zip=tu,Fr.zipObject=function(t,n){return oi(t||[],n||[],Zr)},Fr.zipObjectDeep=function(t,n){return oi(t||[],n||[],De)},Fr.zipWith=nu,Fr.entries=ka,Fr.entriesIn=Fa,Fr.extend=fa,Fr.extendWith=la,Ga(Fr,Fr),Fr.add=ss,Fr.attempt=Da,Fr.camelCase=Ca,Fr.capitalize=za,Fr.ceil=cs,Fr.clamp=function(t,n,r){return void 0===r&&(r=n,n=void 0),void 0!==r&&(r=(r=ua(r))==r?r:0),void 0!==n&&(n=(n=ua(n))==n?n:0),qr(ua(t),n,r)},Fr.clone=function(t){return Gr(t,4)},Fr.cloneDeep=function(t){return Gr(t,5)},Fr.cloneDeepWith=function(t,n){return Gr(t,5,n="function"==typeof n?n:void 0)},Fr.cloneWith=function(t,n){return Gr(t,4,n="function"==typeof n?n:void 0)},Fr.conformsTo=function(t,n){return null==n||Jr(t,n,wa(n))},Fr.deburr=Ra,Fr.defaultTo=function(t,n){return null==t||t!=t?n:t},Fr.divide=fs,Fr.endsWith=function(t,n,r){t=sa(t),n=Je(n);var e=t.length,i=r=void 0===r?e:qr(ia(r),0,e);return(r-=n.length)>=0&&t.slice(r,i)==n},Fr.eq=Bu,Fr.escape=function(t){return(t=sa(t))&&N.test(t)?t.replace(T,Nn):t},Fr.escapeRegExp=function(t){return(t=sa(t))&&V.test(t)?t.replace(K,"\\$&"):t},Fr.every=function(t,n,r){var e=ju(t)?fn:ee;return r&&so(t,n,r)&&(n=void 0),e(t,Gi(n,3))},Fr.find=uu,Fr.findIndex=Ro,Fr.findKey=function(t,n){return xn(t,Gi(n,3),ce)},Fr.findLast=au,Fr.findLastIndex=jo,Fr.findLastKey=function(t,n){return xn(t,Gi(n,3),fe)},Fr.floor=ls,Fr.forEach=su,Fr.forEachRight=cu,Fr.forIn=function(t,n){return null==t?t:ae(t,Gi(n,3),ba)},Fr.forInRight=function(t,n){return null==t?t:se(t,Gi(n,3),ba)},Fr.forOwn=function(t,n){return t&&ce(t,Gi(n,3))},Fr.forOwnRight=function(t,n){return t&&fe(t,Gi(n,3))},Fr.get=ga,Fr.gt=Cu,Fr.gte=zu,Fr.has=function(t,n){return null!=t&&io(t,n,ge)},Fr.hasIn=ya,Fr.head=Po,Fr.identity=Va,Fr.includes=function(t,n,r,e){t=Pu(t)?t:Ba(t),r=r&&!e?ia(r):0;var i=t.length;return r<0&&(r=ar(i+r,0)),Gu(t)?r<=i&&t.indexOf(n,r)>-1:!!i&&bn(t,n,r)>-1},Fr.indexOf=function(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=null==r?0:ia(r);return i<0&&(i=ar(e+i,0)),bn(t,n,i)},Fr.inRange=function(t,n,r){return n=ea(n),void 0===r?(r=n,n=0):r=ea(r),function(t,n,r){return t>=sr(n,r)&&t=-9007199254740991&&t<=9007199254740991},Fr.isSet=qu,Fr.isString=Gu,Fr.isSymbol=Ju,Fr.isTypedArray=Qu,Fr.isUndefined=function(t){return void 0===t},Fr.isWeakMap=function(t){return Xu(t)&&eo(t)==b},Fr.isWeakSet=function(t){return Xu(t)&&"[object WeakSet]"==pe(t)},Fr.join=function(t,n){return null==t?"":or.call(t,n)},Fr.kebabCase=ja,Fr.last=Yo,Fr.lastIndexOf=function(t,n,r){var e=null==t?0:t.length;if(!e)return-1;var i=e;return void 0!==r&&(i=(i=ia(r))<0?ar(e+i,0):sr(i,e-1)),n==n?function(t,n,r){for(var e=r+1;e--;)if(t[e]===n)return e;return e}(t,n,i):wn(t,An,i,!0)},Fr.lowerCase=Oa,Fr.lowerFirst=Pa,Fr.lt=ta,Fr.lte=na,Fr.max=function(t){return t&&t.length?ie(t,Va,de):void 0},Fr.maxBy=function(t,n){return t&&t.length?ie(t,Gi(n,2),de):void 0},Fr.mean=function(t){return Ln(t,Va)},Fr.meanBy=function(t,n){return Ln(t,Gi(n,2))},Fr.min=function(t){return t&&t.length?ie(t,Va,Me):void 0},Fr.minBy=function(t,n){return t&&t.length?ie(t,Gi(n,2),Me):void 0},Fr.stubArray=os,Fr.stubFalse=us,Fr.stubObject=function(){return{}},Fr.stubString=function(){return""},Fr.stubTrue=function(){return!0},Fr.multiply=hs,Fr.nth=function(t,n){return t&&t.length?ze(t,ia(n)):void 0},Fr.noConflict=function(){return Vt._===this&&(Vt._=kt),this},Fr.noop=Ja,Fr.now=gu,Fr.pad=function(t,n,r){t=sa(t);var e=(n=ia(n))?Vn(t):0;if(!n||e>=n)return t;var i=(n-e)/2;return Ri(nr(i),r)+t+Ri(tr(i),r)},Fr.padEnd=function(t,n,r){t=sa(t);var e=(n=ia(n))?Vn(t):0;return n&&en){var e=t;t=n,n=e}if(r||t%1||n%1){var i=lr();return sr(t+i*(n-t+Wt("1e-"+((i+"").length-1))),n)}return Te(t,n)},Fr.reduce=function(t,n,r){var e=ju(t)?gn:kn,i=arguments.length<3;return e(t,Gi(n,4),r,i,ne)},Fr.reduceRight=function(t,n,r){var e=ju(t)?yn:kn,i=arguments.length<3;return e(t,Gi(n,4),r,i,re)},Fr.repeat=function(t,n,r){return n=(r?so(t,n,r):void 0===n)?1:ia(n),Ie(sa(t),n)},Fr.replace=function(){var t=arguments,n=sa(t[0]);return t.length<3?n:n.replace(t[1],t[2])},Fr.result=function(t,n,r){var e=-1,i=(n=si(n,t)).length;for(i||(i=1,t=void 0);++e9007199254740991)return[];var r=4294967295,e=sr(t,4294967295);t-=4294967295;for(var i=Bn(e,n=Gi(n));++r=o)return t;var a=r-Vn(e);if(a<1)return e;var s=u?fi(u,0,a).join(""):t.slice(0,a);if(void 0===i)return s+e;if(u&&(a+=s.length-a),$u(i)){if(t.slice(a).search(i)){var c,f=s;for(i.global||(i=dt(i.source,sa(et.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var l=c.index;s=s.slice(0,void 0===l?a:l)}}else if(t.indexOf(Je(i),a)!=a){var h=s.lastIndexOf(i);h>-1&&(s=s.slice(0,h))}return s+e},Fr.unescape=function(t){return(t=sa(t))&&I.test(t)?t.replace(P,qn):t},Fr.uniqueId=function(t){var n=++At;return sa(t)+n},Fr.upperCase=Na,Fr.upperFirst=Ya,Fr.each=su,Fr.eachRight=cu,Fr.first=Po,Ga(Fr,(as={},ce(Fr,(function(t,n){St.call(Fr.prototype,n)||(as[n]=t)})),as),{chain:!1}),Fr.VERSION="4.17.21",sn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Fr[t].placeholder=Fr})),sn(["drop","take"],(function(t,n){Rr.prototype[t]=function(r){r=void 0===r?1:ar(ia(r),0);var e=this.__filtered__&&!n?new Rr(this):this.clone();return e.__filtered__?e.__takeCount__=sr(r,e.__takeCount__):e.__views__.push({size:sr(r,4294967295),type:t+(e.__dir__<0?"Right":"")}),e},Rr.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),sn(["filter","map","takeWhile"],(function(t,n){var r=n+1,e=1==r||3==r;Rr.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Gi(t,3),type:r}),n.__filtered__=n.__filtered__||e,n}})),sn(["head","last"],(function(t,n){var r="take"+(n?"Right":"");Rr.prototype[t]=function(){return this[r](1).value()[0]}})),sn(["initial","tail"],(function(t,n){var r="drop"+(n?"":"Right");Rr.prototype[t]=function(){return this.__filtered__?new Rr(this):this[r](1)}})),Rr.prototype.compact=function(){return this.filter(Va)},Rr.prototype.find=function(t){return this.filter(t).head()},Rr.prototype.findLast=function(t){return this.reverse().find(t)},Rr.prototype.invokeMap=Ne((function(t,n){return"function"==typeof t?new Rr(this):this.map((function(r){return me(r,t,n)}))})),Rr.prototype.reject=function(t){return this.filter(Lu(Gi(t)))},Rr.prototype.slice=function(t,n){t=ia(t);var r=this;return r.__filtered__&&(t>0||n<0)?new Rr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),void 0!==n&&(r=(n=ia(n))<0?r.dropRight(-n):r.take(n-t)),r)},Rr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Rr.prototype.toArray=function(){return this.take(4294967295)},ce(Rr.prototype,(function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),e=/^(?:head|last)$/.test(n),i=Fr[e?"take"+("last"==n?"Right":""):n],o=e||/^find/.test(n);i&&(Fr.prototype[n]=function(){var n=this.__wrapped__,u=e?[1]:arguments,a=n instanceof Rr,s=u[0],c=a||ju(n),f=function(t){var n=i.apply(Fr,dn([t],u));return e&&l?n[0]:n};c&&r&&"function"==typeof s&&1!=s.length&&(a=c=!1);var l=this.__chain__,h=!!this.__actions__.length,v=o&&!l,p=a&&!h;if(!o&&c){n=p?n:new Rr(this);var d=t.apply(n,u);return d.__actions__.push({func:eu,args:[f],thisArg:void 0}),new zr(d,l)}return v&&p?t.apply(this,u):(d=this.thru(f),v?e?d.value()[0]:d.value():d)})})),sn(["pop","push","shift","sort","splice","unshift"],(function(t){var n=_t[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",e=/^(?:pop|shift)$/.test(t);Fr.prototype[t]=function(){var t=arguments;if(e&&!this.__chain__){var i=this.value();return n.apply(ju(i)?i:[],t)}return this[r]((function(r){return n.apply(ju(r)?r:[],t)}))}})),ce(Rr.prototype,(function(t,n){var r=Fr[n];if(r){var e=r.name+"";St.call(xr,e)||(xr[e]=[]),xr[e].push({name:n,func:r})}})),xr[Fi(void 0,2).name]=[{name:"wrapper",func:void 0}],Rr.prototype.clone=function(){var t=new Rr(this.__wrapped__);return t.__actions__=_i(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=_i(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=_i(this.__views__),t},Rr.prototype.reverse=function(){if(this.__filtered__){var t=new Rr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Rr.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,r=ju(t),e=n<0,i=r?t.length:0,o=function(t,n,r){for(var e=-1,i=r.length;++e=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Fr.prototype.plant=function(t){for(var n,r=this;r instanceof Cr;){var e=Fo(r);e.__index__=0,e.__values__=void 0,n?i.__wrapped__=e:n=e;var i=e;r=r.__wrapped__}return i.__wrapped__=t,n},Fr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Rr){var n=t;return this.__actions__.length&&(n=new Rr(this)),(n=n.reverse()).__actions__.push({func:eu,args:[Zo],thisArg:void 0}),new zr(n,this.__chain__)}return this.thru(Zo)},Fr.prototype.toJSON=Fr.prototype.valueOf=Fr.prototype.value=function(){return ei(this.__wrapped__,this.__actions__)},Fr.prototype.first=Fr.prototype.head,Gt&&(Fr.prototype[Gt]=function(){return this}),Fr}();Vt._=Gn,void 0===(i=function(){return Gn}.call(n,r,n,e))||(e.exports=i)}).call(this)}).call(this,r(8),r(9)(t))},function(t,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n,r){r.r(n),r.d(n,"Glify",(function(){return M})),r.d(n,"glify",(function(){return k}));var e=r(0);class i extends e.Layer{constructor(t,n){super(),this._userDrawFunc=t,this._frame=null,this._redrawCallbacks=[],this._pane=n}drawing(t){return this._userDrawFunc=t,this}params(t){return e.Util.setOptions(this,t),this}redraw(t){return"function"==typeof t&&this._redrawCallbacks.push(t),null===this._frame&&(this._frame=e.Util.requestAnimFrame(this._redraw,this)),this}isAnimated(){return Boolean(this._map.options.zoomAnimation&&e.Browser.any3d)}onAdd(t){var n;this._map=t;const r=this.canvas=null!==(n=this.canvas)&&void 0!==n?n:document.createElement("canvas"),i=t.getSize(),o=this.isAnimated();r.width=i.x,r.height=i.y,r.className="leaflet-zoom-"+(o?"animated":"hide");const u=t.getPane(this._pane);if(!u)throw new Error("unable to find pane");return u.appendChild(this.canvas),t.on("moveend",this._reset,this),t.on("resize",this._resize,this),o&&t.on("zoomanim",e.Layer?this._animateZoom:this._animateZoomNoLayer,this),this._reset(),this}onRemove(t){if(this.canvas){const n=t.getPane(this._pane);if(!n)throw new Error("unable to find pane");n.removeChild(this.canvas)}return t.off("moveend",this._reset,this),t.off("resize",this._resize,this),this.isAnimated()&&t.off("zoomanim",e.Layer?this._animateZoom:this._animateZoomNoLayer,this),this}addTo(t){return t.addLayer(this),this}get map(){return this._map}set map(t){this._map=t}_resize(t){this.canvas&&(this.canvas.width=t.newSize.x,this.canvas.height=t.newSize.y)}_reset(){if(this.canvas){const t=this._map.containerPointToLayerPoint([0,0]);e.DomUtil.setPosition(this.canvas,t)}this._redraw()}_redraw(){const{_map:t,canvas:n}=this,r=t.getSize(),i=t.getBounds(),o=180*r.x/(20037508.34*(i.getEast()-i.getWest())),u=t.getZoom(),a=new e.LatLng(i.getNorth(),i.getWest()),s=this._unclampedProject(a,0);for(n&&this._userDrawFunc({bounds:i,canvas:n,offset:s,scale:Math.pow(2,u),size:r,zoomScale:o,zoom:u});this._redrawCallbacks.length>0;){const t=this._redrawCallbacks.shift();t&&t(this)}this._frame=null}_animateZoom(t){const{_map:n,canvas:r}=this,i=n.getZoomScale(t.zoom,n.getZoom()),o=this._unclampedLatLngBoundsToNewLayerBounds(n.getBounds(),t.zoom,t.center).min;r&&o&&e.DomUtil.setTransform(r,o,i)}_animateZoomNoLayer(t){const{_map:n,canvas:r}=this;if(r){const i=n.getZoomScale(t.zoom,n.getZoom()),o=n._getCenterOffset(t.center)._multiplyBy(-i).subtract(n._getMapPanePos());e.DomUtil.setTransform(r,o,i)}}_unclampedProject(t,n){var r;const{crs:i}=this._map.options,{R:o}=i.projection,u=Math.PI/180,a=t.lat,s=Math.sin(a*u),c=new e.Point(o*t.lng*u,o*Math.log((1+s)/(1-s))/2),f=null!==(r=null==i?void 0:i.scale(n))&&void 0!==r?r:0;return i.transformation._transform(c,f)}_unclampedLatLngBoundsToNewLayerBounds(t,n,r){const i=this._map._getNewPixelOrigin(r,n);return new e.Bounds([this._unclampedProject(t.getSouthWest(),n).subtract(i),this._unclampedProject(t.getNorthWest(),n).subtract(i),this._unclampedProject(t.getSouthEast(),n).subtract(i),this._unclampedProject(t.getNorthEast(),n).subtract(i)])}}function o(t){return`"${t}" not properly defined`}class u{constructor(){this.array=new Float32Array(16)}setSize(t,n){return this.array.set([2/t,0,0,0,0,-2/n,0,0,0,0,0,0,-1,1,0,1]),this}translateTo(t,n){const{array:r}=this;return r[12]=r[0]*t-1,r[13]=r[5]*n+1,this}scaleTo(t){const{array:n}=this;return n[0]*=t,n[5]*=t,this}}const a={pane:"overlayPane"};class s{constructor(t){var n,r;this.bytes=0,this.buffers={},this.attributeLocations={},this.uniformLocations={},this.settings={...a,...t},this.mapMatrix=new u,this.active=!0,this.vertexShader=null,this.fragmentShader=null,this.program=null,this.matrix=null,this.vertices=null,this.vertexLines=null;const e=Boolean(t.preserveDrawingBuffer),s=this.layer=new i((t=>this.drawOnCanvas(t)),this.pane).addTo(this.map);if(!s.canvas)throw new Error(o("layer.canvas"));const c=this.canvas=s.canvas;c.width=c.clientWidth,c.height=c.clientHeight,c.style.position="absolute",this.className&&(c.className+=" "+this.className),this.gl=null!==(r=null!==(n=c.getContext("webgl2",{preserveDrawingBuffer:e}))&&void 0!==n?n:c.getContext("webgl",{preserveDrawingBuffer:e}))&&void 0!==r?r:c.getContext("experimental-webgl",{preserveDrawingBuffer:e})}get data(){if(!this.settings.data)throw new Error(o("settings.data"));return this.settings.data}get pane(){var t;return null!==(t=this.settings.pane)&&void 0!==t?t:"overlayPane"}get className(){var t;return null!==(t=this.settings.className)&&void 0!==t?t:""}get map(){if(!this.settings.map)throw new Error(o("settings.map"));return this.settings.map}get sensitivity(){if("number"!=typeof this.settings.sensitivity)throw new Error(o("settings.sensitivity"));return this.settings.sensitivity}get sensitivityHover(){if("number"!=typeof this.settings.sensitivityHover)throw new Error(o("settings.sensitivityHover"));return this.settings.sensitivityHover}get hoverWait(){var t;return null!==(t=this.settings.hoverWait)&&void 0!==t?t:250}get longitudeKey(){if("number"!=typeof this.settings.longitudeKey)throw new Error(o("settings.longitudeKey"));return this.settings.longitudeKey}get latitudeKey(){if("number"!=typeof this.settings.latitudeKey)throw new Error(o("settings.latitudeKey"));return this.settings.latitudeKey}get opacity(){if("number"!=typeof this.settings.opacity)throw new Error(o("settings.opacity"));return this.settings.opacity}get color(){var t;return null!==(t=this.settings.color)&&void 0!==t?t:null}attachShaderVariables(t){if(0===this.getShaderVariableCount())return this;const{gl:n,settings:r}=this,{shaderVariables:e}=r;let i=0;for(const r in e){if(!e.hasOwnProperty(r))continue;const o=e[r],u=this.getAttributeLocation(r);if(u<0)throw new Error("shader variable "+r+" not found");n.vertexAttribPointer(u,o.size,n[o.type],!!o.normalize,this.bytes*t,i*t),i+=o.size,n.enableVertexAttribArray(u)}return this}getShaderVariableCount(){var t;return Object.keys(null!==(t=this.settings.shaderVariables)&&void 0!==t?t:{}).length}setData(t){return this.settings={...this.settings,data:t},this.render()}setup(){const t=this.settings;return t.click&&t.setupClick&&t.setupClick(this.map),t.hover&&t.setupHover&&t.setupHover(this.map,this.hoverWait),this.setupVertexShader().setupFragmentShader().setupProgram()}setupVertexShader(){const{gl:t,settings:n}=this,r="function"==typeof n.vertexShaderSource?n.vertexShaderSource():n.vertexShaderSource,e=t.createShader(t.VERTEX_SHADER);if(!e)throw new Error("Not able to create vertex");if(!r)throw new Error(o("settings.vertexShaderSource"));return t.shaderSource(e,r),t.compileShader(e),this.vertexShader=e,this}setupFragmentShader(){const t=this.gl,n=this.settings,r="function"==typeof n.fragmentShaderSource?n.fragmentShaderSource():n.fragmentShaderSource,e=t.createShader(t.FRAGMENT_SHADER);if(!e)throw new Error("Not able to create fragment");if(!r)throw new Error(o("settings.fragmentShaderSource"));return t.shaderSource(e,r),t.compileShader(e),this.fragmentShader=e,this}setupProgram(){const{gl:t,vertexShader:n,fragmentShader:r}=this,e=t.createProgram();if(!e)throw new Error("Not able to create program");if(!n)throw new Error(o("this.vertexShader"));if(!r)throw new Error(o("this.fragmentShader"));return t.attachShader(e,n),t.attachShader(e,r),t.linkProgram(e),t.useProgram(e),t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA),t.enable(t.BLEND),this.program=e,this}addTo(t){return this.layer.addTo(null!=t?t:this.map),this.active=!0,this.render()}remove(t){if(void 0===t)this.map.removeLayer(this.layer),this.active=!1;else{const n=this.settings.data.features||this.settings.data;"number"==typeof(t=t instanceof Array?t:[t])&&(t=[t]),t.sort(((t,n)=>t-n)).reverse().forEach((t=>{n.splice(t,1)})),this.render()}return this}insert(t,n){return(this.settings.data.features||this.settings.data).splice(n,0,t),this.render()}update(t,n){return(this.settings.data.features||this.settings.data)[n]=t,this.render()}getBuffer(t){if(!this.buffers[t]){const n=this.gl.createBuffer();if(!n)throw new Error("Not able to create buffer");this.buffers[t]=n}return this.buffers[t]}getAttributeLocation(t){if(!this.program)throw new Error(o("this.program"));return void 0!==this.attributeLocations[t]?this.attributeLocations[t]:this.attributeLocations[t]=this.gl.getAttribLocation(this.program,t)}getUniformLocation(t){if(!this.program)throw new Error(o("this.program"));if(void 0!==this.uniformLocations[t])return this.uniformLocations[t];const n=this.gl.getUniformLocation(this.program,t);if(!n)throw new Error("Cannot find location");return this.uniformLocations[t]=n}click(t,n){if(!this.settings.click)return;const r=this.settings.click(t,n);return void 0!==r?r:void 0}hover(t,n){if(!this.settings.hover)return;const r=this.settings.hover(t,n);return void 0!==r?r:void 0}hoverOff(t,n){this.settings.hoverOff&&this.settings.hoverOff(t,n)}}function c(){return{r:Math.random(),g:Math.random(),b:Math.random(),a:Math.random()}}s.defaults=a;class f{constructor(t){this.pixels=[],this.latLngs=[],this.settings=t,this.vertexCount=0,this.array=[]}get length(){return this.array.length}fillFromCoordinates(t){var n;const{color:r,opacity:i,project:o,latitudeKey:u,longitudeKey:a}=this.settings;for(let s=0;s1?(c=i,f=o):(c=r+l*u,f=e+l*a);const h=t-c,v=n-f;return Math.sqrt(h*h+v*v)}function p(t,n,r){const e=r.latLngToLayerPoint(t),i=r.latLngToLayerPoint(n);return function(t,n){return Math.sqrt(t*t+n*n)}(e.x-i.x,e.y-i.y)}const d={data:{type:"FeatureCollection",features:[]},color:c,className:"",opacity:.5,weight:2,sensitivity:.1,sensitivityHover:.03,shaderVariables:{vertex:{type:"FLOAT",start:0,size:2},color:{type:"FLOAT",start:2,size:4}}};class g extends s{constructor(t){if(super(t),this.scale=1/0,this.bytes=6,this.allVertices=[],this.allVerticesTyped=new Float32Array(0),this.vertices=[],this.aPointSize=-1,this.hoveringFeatures=[],this.settings={...g.defaults,...t},!t.data)throw new Error('"data" is missing');this.active=!0,this.setup().render()}get weight(){if(!this.settings.weight)throw new Error("settings.weight not correctly defined");return this.settings.weight}render(){this.resetVertices();const{canvas:t,gl:n,layer:r,mapMatrix:e}=this,i=this.getBuffer("vertex");n.bindBuffer(n.ARRAY_BUFFER,i);const o=this.allVerticesTyped.BYTES_PER_ELEMENT;n.bufferData(n.ARRAY_BUFFER,this.allVerticesTyped,n.STATIC_DRAW);const u=this.getAttributeLocation("vertex");return n.vertexAttribPointer(u,2,n.FLOAT,!1,o*this.bytes,0),n.enableVertexAttribArray(u),this.matrix=this.getUniformLocation("matrix"),this.aPointSize=this.getAttributeLocation("pointSize"),e.setSize(t.width,t.height),n.viewport(0,0,t.width,t.height),n.uniformMatrix4fv(this.matrix,!1,e.array),this.attachShaderVariables(o),r.redraw(),this}resetVertices(){const{map:t,opacity:n,color:r,weight:e,latitudeKey:i,longitudeKey:o,data:u,bytes:a,settings:s}=this,{eachVertex:c}=s,{features:l}=u,h=l.length;let v,p,d=null,g=null,y=0;"function"==typeof r&&(d=r),"function"==typeof e&&(g=e);const _=t.project.bind(t),m=[];for(;y18)i.translateTo(-h.x,-h.y),n.uniformMatrix4fv(o,!1,i.array),n.drawArrays(n.LINES,0,u.length/f);else if("number"==typeof s)for(let t=-s;t<=s;t+=.5)for(let r=-s;r<=s;r+=.5)i.translateTo(-h.x+r/l,-h.y+t/l),n.uniformMatrix4fv(o,!1,i.array),n.drawArrays(n.LINES,0,u.length/f);else if("function"==typeof s){let t=0;const{features:e}=r;for(let r=0;r{const{latitudeKey:o,longitudeKey:u,sensitivity:a,weight:s,scale:c,active:f}=r;function l(n,s,f,l){v(t.latlng.lng,t.latlng.lat,s[u],s[o],n[u],n[o])<=a+l/c&&(e=f,i=r)}f&&r.map===n&&r.data.features.forEach(((t,n)=>{const r="function"==typeof s?s(n,t):s,{coordinates:e,type:i}=t.geometry;if("LineString"===i)for(let n=1;n0){const i=e[n-1];l(i[i.length-1],e[n][o],t,r)}else o>0&&l(e[n][o],e[n][o-1],t,r)}}))})),i&&e){const n=i.click(t,e);return void 0!==n?n:void 0}}static tryHover(t,n,r){const i=[];return r.forEach((r=>{const{sensitivityHover:o,latitudeKey:u,longitudeKey:a,data:s,hoveringFeatures:c,weight:f,scale:l}=r;function h(n,r,e,i){return v(t.latlng.lng,t.latlng.lat,r[a],r[u],n[a],n[u])<=o+i/l&&(d.includes(e)||d.push(e),!p.includes(e))}if(!r.active)return;if(n!==r.map)return;const p=c,d=[];r.hoveringFeatures=d;const g=Object(e.geoJSON)(s.features).getBounds();(function(t,n){const r=n.getNorthEast(),e=n.getSouthWest();return r.lat>t.lat&&t.lat>e.lat&&r.lng>t.lng&&t.lng>e.lng})(t.latlng,g)&&s.features.forEach(((n,e)=>{const o="function"==typeof f?f(e,n):f,{coordinates:u,type:a}=n.geometry;let s=!1;if("LineString"===a)for(let t=1;t0){const r=u[t-1];if(s=h(r[r.length-1],u[t][e],n,o),s)break}else if(e>0&&(s=h(u[t][e],u[t][e-1],n,o),s))break}if(s){const e=r.hover(t,n);void 0!==e&&i.push(e)}}));for(let n=0;n0?e:this.allLatLngLookup,f)}static closest(t,n,r){return n.length<1?null:n.reduce(((n,e)=>p(t,n.latLng,r){a=r.settings,r.active&&r.map===n&&(u=r.lookup(t.latlng),null!==u&&(i[u.key]=r,e.push(u)))})),e.length<1)return;if(!a)return;const s=this.closest(t.latlng,e,n);if(!s)return;const c=i[s.key];if(!c)return;const{sensitivity:f}=c,l=s.latLng;return h(n.latLngToLayerPoint(l),t.layerPoint,s.chosenSize*(null!=f?f:1))?(o=c.click(t,s.feature||s.latLng),void 0===o||o):void 0}static tryHover(t,n,r){const e=[];return r.forEach((r=>{if(!r.active)return;if(r.map!==n)return;const i=r.lookup(t.latlng);if(i&&h(n.latLngToLayerPoint(i.latLng),t.layerPoint,i.chosenSize*r.sensitivityHover*30)){const n=r.hover(t,i.feature||i.latLng);void 0!==n&&e.push(n)}})),e}}_.defaults=y,_.maps=[];var m=r(1),x=r.n(m),w=r(2),b=r.n(w);function S(t){switch(t&&t.type||null){case"FeatureCollection":return t.features=t.features.reduce((function(t,n){return t.concat(S(n))}),[]),t;case"Feature":return t.geometry?S(t.geometry).map((function(n){var r={type:"Feature",properties:JSON.parse(JSON.stringify(t.properties)),geometry:n};return void 0!==t.id&&(r.id=t.id),r})):[t];case"MultiPoint":return t.coordinates.map((function(t){return{type:"Point",coordinates:t}}));case"MultiPolygon":return t.coordinates.map((function(t){return{type:"Polygon",coordinates:t}}));case"MultiLineString":return t.coordinates.map((function(t){return{type:"LineString",coordinates:t}}));case"GeometryCollection":return t.geometries.map(S).reduce((function(t,n){return t.concat(n)}),[]);case"Point":case"Polygon":case"LineString":return[t]}}const A={color:c,className:"",opacity:.5,borderOpacity:1,shaderVariables:{vertex:{type:"FLOAT",start:0,size:2},color:{type:"FLOAT",start:2,size:4}},border:!1};class L extends s{constructor(t){if(super(t),this.bytes=6,this.polygonLookup=null,this.settings={...L.defaults,...t},!t.data)throw new Error(o("settings.data"));if(!t.map)throw new Error(o("settings.map"));this.setup().render()}get border(){if("boolean"!=typeof this.settings.border)throw new Error(o("settings.border"));return this.settings.border}get borderOpacity(){if("number"!=typeof this.settings.borderOpacity)throw new Error(o("settings.borderOpacity"));return this.settings.borderOpacity}render(){this.resetVertices();const{canvas:t,gl:n,layer:r,vertices:e,mapMatrix:i}=this,o=this.getBuffer("vertex"),u=new Float32Array(e),a=u.BYTES_PER_ELEMENT,s=this.getAttributeLocation("vertex");return n.bindBuffer(n.ARRAY_BUFFER,o),n.bufferData(n.ARRAY_BUFFER,u,n.STATIC_DRAW),n.vertexAttribPointer(s,2,n.FLOAT,!1,a*this.bytes,0),n.enableVertexAttribArray(s),this.matrix=this.getUniformLocation("matrix"),n.viewport(0,0,t.width,t.height),i.setSize(t.width,t.height),n.uniformMatrix4fv(this.matrix,!1,i.array),this.attachShaderVariables(a),r.redraw(),this}resetVertices(){this.vertices=[],this.vertexLines=[],this.polygonLookup=new b.a;const{vertices:t,vertexLines:n,polygonLookup:r,map:i,border:u,opacity:a,borderOpacity:s,color:c,data:f}=this;let h,v,p,d,g,y,_,m,w,A,L=null,E=0;switch(f.type){case"Feature":r.loadFeatureCollection({type:"FeatureCollection",features:[f]}),p=S(f);break;case"MultiPolygon":{const t={type:"MultiPolygon",coordinates:f.coordinates};r.loadFeatureCollection({type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:t}]}),p=S(f);break}default:r.loadFeatureCollection(f),p=f.features}const M=p.length;if(!c)throw new Error(o("settings.color"));for("function"==typeof c&&(L=c);E{if(r.active&&r.map===n&&r.polygonLookup&&(i=r.polygonLookup.search(t.latlng.lng,t.latlng.lat),i)){const n=r.hover(t,i);void 0!==n&&e.push(n)}})),e}}L.defaults=A;const E={vertex:"uniform mat4 matrix;\nattribute vec4 vertex;\nattribute vec4 color;\nattribute float pointSize;\nvarying vec4 _color;\n\nvoid main() {\n //set the size of the point\n gl_PointSize = pointSize;\n\n //multiply each vertex by a matrix.\n gl_Position = matrix * vertex;\n\n //pass the color to the fragment shader\n _color = color;\n}\n",fragment:{dot:"precision mediump float;\nuniform vec4 color;\n\nvoid main() {\n float border = 0.05;\n float radius = 0.5;\n vec2 center = vec2(0.5);\n\n vec4 color0 = vec4(0.0);\n vec4 color1 = vec4(color[0], color[1], color[2], color[3]);\n\n vec2 m = gl_PointCoord.xy - center;\n float dist = radius - sqrt(m.x * m.x + m.y * m.y);\n\n float t = 0.0;\n if (dist > border) {\n t = 1.0;\n } else if (dist > 0.0) {\n t = dist / border;\n }\n\n //works for overlapping circles if blending is enabled\n gl_FragColor = mix(color0, color1, t);\n}\n",point:"precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n float border = 0.1;\n float radius = 0.5;\n vec2 center = vec2(0.5, 0.5);\n\n vec4 pointColor = vec4(\n _color[0],\n _color[1],\n _color[2],\n _color[3]\n );\n\n vec2 m = gl_PointCoord.xy - center;\n float dist1 = radius - sqrt(m.x * m.x + m.y * m.y);\n\n float t1 = 0.0;\n if (dist1 > border) {\n t1 = 1.0;\n } else if (dist1 > 0.0) {\n t1 = dist1 / border;\n }\n\n //works for overlapping circles if blending is enabled\n //gl_FragColor = mix(color0, color1, t);\n\n //border\n float outerBorder = 0.05;\n float innerBorder = 0.8;\n vec4 borderColor = vec4(0, 0, 0, 0.4);\n vec2 uv = gl_PointCoord.xy;\n vec4 clearColor = vec4(0, 0, 0, 0);\n\n // Offset uv with the center of the circle.\n uv -= center;\n\n float dist2 = sqrt(dot(uv, uv));\n\n float t2 = 1.0 + smoothstep(radius, radius + outerBorder, dist2)\n - smoothstep(radius - innerBorder, radius, dist2);\n\n gl_FragColor = mix(mix(borderColor, clearColor, t2), pointColor, t1);\n}\n",puck:"precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n vec2 center = vec2(0.5);\n vec2 uv = gl_PointCoord.xy - center;\n float smoothing = 0.005;\n vec4 _color1 = vec4(_color[0], _color[1], _color[2], _color[3]);\n float radius1 = 0.3;\n vec4 _color2 = vec4(_color[0], _color[1], _color[2], _color[3]);\n float radius2 = 0.5;\n float dist = length(uv);\n\n //SMOOTH\n float gamma = 2.2;\n color1.rgb = pow(_color1.rgb, vec3(gamma));\n color2.rgb = pow(_color2.rgb, vec3(gamma));\n\n vec4 puck = mix(\n mix(\n _color1,\n _color2,\n smoothstep(\n radius1 - smoothing,\n radius1 + smoothing,\n dist\n )\n ),\n vec4(0,0,0,0),\n smoothstep(\n radius2 - smoothing,\n radius2 + smoothing,\n dist\n )\n );\n\n //Gamma correction (prevents color fringes)\n puck.rgb = pow(puck.rgb, vec3(1.0 / gamma));\n gl_FragColor = puck;\n}\n",simpleCircle:"precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n vec4 color1 = vec4(_color[0], _color[1], _color[2], _color[3]);\n\n //simple circles\n float d = distance (gl_PointCoord, vec2(0.5, 0.5));\n if (d < 0.5 ){\n gl_FragColor = color1;\n } else {\n discard;\n }\n}\n",square:"precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n //squares\n gl_FragColor = vec4(_color[0], _color[1], _color[2], _color[3]);\n}\n",polygon:"precision mediump float;\nvarying vec4 _color;\n\nvoid main() {\n gl_FragColor = vec4(\n _color[0],\n _color[1],\n _color[2],\n _color[3]\n );\n}\n"}};class M{constructor(){this.longitudeKey=1,this.latitudeKey=0,this.clickSetupMaps=[],this.hoverSetupMaps=[],this.shader=E,this.Points=_,this.Shapes=L,this.Lines=g,this.pointsInstances=[],this.shapesInstances=[],this.linesInstances=[]}longitudeFirst(){return this.longitudeKey=0,this.latitudeKey=1,this}latitudeFirst(){return this.latitudeKey=0,this.longitudeKey=1,this}get instances(){return[...this.pointsInstances,...this.linesInstances,...this.shapesInstances]}points(t){const n=new this.Points({setupClick:this.setupClick.bind(this),setupHover:this.setupHover.bind(this),latitudeKey:k.latitudeKey,longitudeKey:k.longitudeKey,vertexShaderSource:()=>this.shader.vertex,fragmentShaderSource:()=>this.shader.fragment.point,...t});return this.pointsInstances.push(n),n}lines(t){const n=new this.Lines({setupClick:this.setupClick.bind(this),setupHover:this.setupHover.bind(this),latitudeKey:this.latitudeKey,longitudeKey:this.longitudeKey,vertexShaderSource:()=>this.shader.vertex,fragmentShaderSource:()=>this.shader.fragment.polygon,...t});return this.linesInstances.push(n),n}shapes(t){const n=new this.Shapes({setupClick:this.setupClick.bind(this),setupHover:this.setupHover.bind(this),latitudeKey:this.latitudeKey,longitudeKey:this.longitudeKey,vertexShaderSource:()=>this.shader.vertex,fragmentShaderSource:()=>this.shader.fragment.polygon,...t});return this.shapesInstances.push(n),n}setupClick(t){this.clickSetupMaps.includes(t)||(this.clickSetupMaps.push(t),t.on("click",(n=>{let r;return r=this.Points.tryClick(n,t,this.pointsInstances),void 0!==r?r:(r=this.Lines.tryClick(n,t,this.linesInstances),void 0!==r?r:(r=this.Shapes.tryClick(n,t,this.shapesInstances),void 0!==r?r:void 0))})))}setupHover(t,n,r){this.hoverSetupMaps.includes(t)||(this.hoverSetupMaps.push(t),t.on("mousemove",function(t,n,r){let e=null;return function(i){const o=r&&!e;null!==e&&clearTimeout(e),e=setTimeout((function(){e=null,r||t(i)}),n),o&&t(i)}}((n=>{this.Points.tryHover(n,t,this.pointsInstances),this.Lines.tryHover(n,t,this.linesInstances),this.Shapes.tryHover(n,t,this.shapesInstances)}),null!=n?n:0,r)))}}const k=new M;n.default=k,"undefined"!=typeof window&&window.L&&(window.L.glify=k,window.L.Glify=M)}])),i=r.exports.Glify,o=r.exports.__esModule,u=r.exports.glify;export{i as Glify,o as __esModule,e as default,u as glify}; diff --git a/isamples_export_client/ui/_npm/leaflet@1.7.1/_esm.js b/isamples_export_client/ui/_npm/leaflet@1.7.1/_esm.js new file mode 100644 index 0000000..075eca5 --- /dev/null +++ b/isamples_export_client/ui/_npm/leaflet@1.7.1/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/leaflet@1.7.1/dist/leaflet-src.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var t={exports:{}};!function(t){var e="1.7.1";function i(t){var e,i,n,o;for(i=1,n=arguments.length;i0?Math.floor(t):Math.ceil(t)};function A(t,e,i){return t instanceof B?t:g(t)?new B(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new B(t.x,t.y):new B(t,e,i)}function O(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=R(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return s&&r},overlaps:function(t){t=R(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.xe.y&&n.y=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=D(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return s&&r},overlaps:function(t){t=D(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.late.lng&&n.lng1,Ct=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",u,e),window.removeEventListener("testPassiveEventSupport",u,e)}catch(t){}return t}(),St=!!document.createElement("canvas").getContext,Zt=!(!document.createElementNS||!X("svg").createSVGRect),kt=!Zt&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}();function Et(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Bt={ie:tt,ielt9:et,edge:it,webkit:nt,android:ot,android23:st,androidStock:at,opera:ht,chrome:ut,gecko:lt,safari:ct,phantom:dt,opera12:_t,win:pt,ie3d:mt,webkit3d:ft,gecko3d:gt,any3d:vt,mobile:yt,mobileWebkit:xt,mobileWebkit3d:wt,msPointer:Pt,pointer:Lt,touch:bt,mobileOpera:Tt,mobileGecko:Mt,retina:zt,passiveEvents:Ct,canvas:St,svg:Zt,vml:kt},It=Pt?"MSPointerDown":"pointerdown",At=Pt?"MSPointerMove":"pointermove",Ot=Pt?"MSPointerUp":"pointerup",Rt=Pt?"MSPointerCancel":"pointercancel",Nt={},Dt=!1;function jt(t,e,i,n){return"touchstart"===e?Ht(t,i,n):"touchmove"===e?qt(t,i,n):"touchend"===e&&Kt(t,i,n),this}function Wt(t,e,i){var n=t["_leaflet_"+e+i];return"touchstart"===e?t.removeEventListener(It,n,!1):"touchmove"===e?t.removeEventListener(At,n,!1):"touchend"===e&&(t.removeEventListener(Ot,n,!1),t.removeEventListener(Rt,n,!1)),this}function Ht(t,e,i){var n=o((function(t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Ue(t),Gt(t,e)}));t["_leaflet_touchstart"+i]=n,t.addEventListener(It,n,!1),Dt||(document.addEventListener(It,Ft,!0),document.addEventListener(At,Ut,!0),document.addEventListener(Ot,Vt,!0),document.addEventListener(Rt,Vt,!0),Dt=!0)}function Ft(t){Nt[t.pointerId]=t}function Ut(t){Nt[t.pointerId]&&(Nt[t.pointerId]=t)}function Vt(t){delete Nt[t.pointerId]}function Gt(t,e){for(var i in t.touches=[],Nt)t.touches.push(Nt[i]);t.changedTouches=[t],e(t)}function qt(t,e,i){var n=function(t){t.pointerType===(t.MSPOINTER_TYPE_MOUSE||"mouse")&&0===t.buttons||Gt(t,e)};t["_leaflet_touchmove"+i]=n,t.addEventListener(At,n,!1)}function Kt(t,e,i){var n=function(t){Gt(t,e)};t["_leaflet_touchend"+i]=n,t.addEventListener(Ot,n,!1),t.addEventListener(Rt,n,!1)}var Yt=Pt?"MSPointerDown":Lt?"pointerdown":"touchstart",Jt=Pt?"MSPointerUp":Lt?"pointerup":"touchend",Xt="_leaflet_";function $t(t,e,i){var n,o,s=!1,r=250;function a(t){if(Lt){if(!t.isPrimary)return;if("mouse"===t.pointerType)return}else if(t.touches.length>1)return;var e=Date.now(),i=e-(n||e);o=t.touches?t.touches[0]:t,s=i>0&&i<=r,n=e}function h(t){if(s&&!o.cancelBubble){if(Lt){if("mouse"===t.pointerType)return;var i,r,a={};for(r in o)i=o[r],a[r]=i&&i.bind?i.bind(o):i;o=a}o.type="dblclick",o.button=0,e(o),n=null}}return t[Xt+Yt+i]=a,t[Xt+Jt+i]=h,t[Xt+"dblclick"+i]=e,t.addEventListener(Yt,a,!!Ct&&{passive:!1}),t.addEventListener(Jt,h,!!Ct&&{passive:!1}),t.addEventListener("dblclick",e,!1),this}function Qt(t,e){var i=t[Xt+Yt+e],n=t[Xt+Jt+e],o=t[Xt+"dblclick"+e];return t.removeEventListener(Yt,i,!!Ct&&{passive:!1}),t.removeEventListener(Jt,n,!!Ct&&{passive:!1}),t.removeEventListener("dblclick",o,!1),this}var te,ee,ie,ne,oe,se=Pe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),re=Pe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ae="webkitTransition"===re||"OTransition"===re?re+"End":"transitionend";function he(t){return"string"==typeof t?document.getElementById(t):t}function ue(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function le(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function ce(t){var e=t.parentNode;e&&e.removeChild(t)}function de(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function _e(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function pe(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function me(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=ye(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function fe(t,e){if(void 0!==t.classList)for(var i=d(e),n=0,o=i.length;nthis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,D(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=A((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=A(e.paddingBottomRight||e.padding||[0,0]),o=this.getCenter(),s=this.project(o),r=this.project(t),a=this.getPixelBounds(),h=a.getSize().divideBy(2),u=R([a.min.add(i),a.max.subtract(n)]);if(!u.contains(r)){this._enforcingBounds=!0;var l=s.subtract(r),c=A(r.x+l.x,r.y+l.y);(r.xu.max.x)&&(c.x=s.x-l.x,l.x>0?c.x+=h.x-i.x:c.x-=h.x-n.x),(r.yu.max.y)&&(c.y=s.y-l.y,l.y>0?c.y+=h.y-i.y:c.y-=h.y-n.y),this.panTo(this.unproject(c),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),s=e.divideBy(2).round(),r=n.divideBy(2).round(),a=s.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e=new j(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(o,n.maxZoom):o)}var s={latlng:e,bounds:i,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire("locationfound",s)},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ce(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ce(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=le("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new N(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=D(t),i=A(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(i),u=R(this.project(a,n),this.project(r,n)).getSize(),l=vt?this.options.zoomSnap:1,c=h.x/u.x,d=h.y/u.y,_=e?Math.max(c,d):Math.min(c,d);return n=this.getScaleZoom(_,n),l&&(n=Math.round(n/(l/100))*(l/100),n=e?Math.ceil(n/l)*l:Math.floor(n/l)*l),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new B(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new O(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(W(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(A(t),e)},layerPointToLatLng:function(t){var e=A(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(W(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(W(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,e){return this.options.crs.distance(W(t),W(e))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(A(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(W(t)))},mouseEventToContainerPoint:function(t){return Ge(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=he(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Ie(e,"scroll",this._onScroll,this),this._containerId=r(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&vt,fe(t,"leaflet-container"+(bt?" leaflet-touch":"")+(zt?" leaflet-retina":"")+(et?" leaflet-oldie":"")+(ct?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ue(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),be(this._mapPane,new B(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(fe(t.markerPane,"leaflet-zoom-hide"),fe(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){be(this._mapPane,new B(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n,!1)._move(t,e)._moveEnd(n),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i){void 0===e&&(e=this._zoom);var n=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){be(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[r(this._container)]=this;var e=t?Oe:Ie;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),vt&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){z(this._resizeRequest),this._resizeRequest=M((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],o="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,a=!1;s;){if((i=this._targets[r(s)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(i)){a=!0;break}if(i&&i.listens(e,!0)){if(o&&!$e(s,t))break;if(n.push(i),o)break}if(s===this._container)break;s=s.parentNode}return n.length||a||o||!$e(s,t)||(n=[this]),n},_handleDOMEvent:function(t){if(this._loaded&&!Xe(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e&&"keyup"!==e&&"keydown"!==e||Se(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var o=i({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,e))).length){var s=n[0];"contextmenu"===e&&s.listens(e,!0)&&Ue(t);var r={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var a=s.getLatLng&&(!s._radius||s._radius<=10);r.containerPoint=a?this.latLngToContainerPoint(s.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=a?s.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var h=0;h0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=vt?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ge(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=le("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=se,i=this._proxy.style[e];Le(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ce(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Le(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(o)||(M((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,fe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ge(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),M((function(){this._moveEnd(!0)}),this))}});function ii(t,e){return new ei(t,e)}var ni=S.extend({options:{position:"topright"},initialize:function(t){_(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return fe(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ce(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),oi=function(t){return new ni(t)};ei.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=le("div",e+"control-container",this._container);function n(n,o){var s=e+n+" "+e+o;t[n+o]=le("div",s,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ce(this._controlCorners[t]);ce(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var si=ni.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+r(this),n),this._layerControlInputs.push(e),e.layerId=r(t.layer),Ie(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("div");return i.appendChild(s),s.appendChild(e),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=i.length-1;s>=0;s--)t=i[s],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(s=0;s=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&ne.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),ri=function(t,e,i){return new si(t,e,i)},ai=ni.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=le("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var s=le("a",i,n);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),Fe(s),Ie(s,"click",Ve),Ie(s,"click",o,this),Ie(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";ge(this._zoomInButton,e),ge(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&fe(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&fe(this._zoomInButton,e)}});ei.mergeOptions({zoomControl:!0}),ei.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new ai,this.addControl(this.zoomControl))}));var hi=function(t){return new ai(t)},ui=ni.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=le("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=le("div",e,i)),t.imperial&&(this._iScale=le("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,o=3.2808399*t;o>5280?(e=o/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),li=function(t){return new ui(t)},ci=ni.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){_(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=le("div","leaflet-control-attribution"),Fe(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(" | ")}}});ei.mergeOptions({attributionControl:!0}),ei.addInitHook((function(){this.options.attributionControl&&(new ci).addTo(this)}));var di=function(t){return new ci(t)};ni.Layers=si,ni.Zoom=ai,ni.Scale=ui,ni.Attribution=ci,oi.layers=ri,oi.zoom=hi,oi.scale=li,oi.attribution=di;var _i=S.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});_i.addTo=function(t,e){return t.addHandler(e,this),this};var pi,mi={Events:k},fi=bt?"touchstart mousedown":"mousedown",gi={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},vi={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},yi=E.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){_(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Ie(this._dragStartTarget,fi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(yi._dragging===this&&this.finishDrag(),Oe(this._dragStartTarget,fi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!me(this._element,"leaflet-zoom-anim")&&!(yi._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(yi._dragging=this,this._preventOutline&&Se(this._element),ze(),te(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t,i=ke(this._element);this._startPoint=new B(e.clientX,e.clientY),this._parentScale=Ee(i),Ie(document,vi[t.type],this._onMove,this),Ie(document,gi[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new B(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)h&&(s=r,h=a);h>i&&(e[s]=1,bi(t,e,i,n,s),bi(t,e,i,s,o))}function Ti(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;ne&&(i.push(t[n]),o=n);return oe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i}function Si(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Zi(t,e,i,n){var o,s=e.x,r=e.y,a=i.x-s,h=i.y-r,u=a*a+h*h;return u>0&&((o=((t.x-s)*a+(t.y-r)*h)/u)>1?(s=i.x,r=i.y):o>0&&(s+=a*o,r+=h*o)),a=t.x-s,h=t.y-r,n?a*a+h*h:new B(s,r)}function ki(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Ei(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),ki(t)}var Bi={simplify:xi,pointToSegmentDistance:wi,closestPointOnSegment:Pi,clipSegment:Mi,_getEdgeIntersection:zi,_getBitCode:Ci,_sqClosestPointOnSegment:Zi,isFlat:ki,_flat:Ei};function Ii(t,e,i){var n,o,s,r,a,h,u,l,c,d=[1,4,2,8];for(o=0,u=t.length;o1e-7;h++)e=s*Math.sin(a),e=Math.pow((1-e)/(1+e),s/2),a+=u=Math.PI/2-2*Math.atan(r*e)-a;return new j(a*i,t.x*i/n)}},Ni={LonLat:Oi,Mercator:Ri,SphericalMercator:G},Di=i({},U,{code:"EPSG:3395",projection:Ri,transformation:function(){var t=.5/(Math.PI*Ri.R);return K(t,.5,-t,.5)}()}),ji=i({},U,{code:"EPSG:4326",projection:Oi,transformation:K(1/180,1,-1/180,.5)}),Wi=i({},F,{projection:Oi,transformation:K(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});F.Earth=U,F.EPSG3395=Di,F.EPSG3857=Y,F.EPSG900913=J,F.EPSG4326=ji,F.Simple=Wi;var Hi=E.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});ei.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=r(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&r(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?g(t)?t:[t]:[]).length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()e)return r=(n-e)/i,this._map.layerPointToLatLng([s.x-r*(s.x-o.x),s.y-r*(s.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=W(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new N,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return ki(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=ki(t),n=0,o=t.length;n=2&&e[0]instanceof j&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){sn.prototype._setLatLngs.call(this,t),ki(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return ki(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new B(e,e);if(t=new O(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;ot.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(u=!u);return u||sn.prototype._containsPoint.call(this,t,!0)}});function hn(t,e){return new an(t,e)}var un=Vi.extend({initialize:function(t,e){_(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=g(t)?t:t.features;if(o){for(e=0,i=o.length;e0?n:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted;for(var r=0;ro?(e.height=o+"px",fe(t,s)):ge(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();be(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,e=parseInt(ue(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new B(this._containerLeft,-i-this._containerBottom);o._add(Te(this._container));var s=t.layerPointToContainerPoint(o),r=A(this.options.autoPanPadding),a=A(this.options.autoPanPaddingTopLeft||r),h=A(this.options.autoPanPaddingBottomRight||r),u=t.getSize(),l=0,c=0;s.x+n+h.x>u.x&&(l=s.x+n-u.x+h.x),s.x-l-a.x<0&&(l=s.x-a.x),s.y+i+h.y>u.y&&(c=s.y+i-u.y+h.y),s.y-c-a.y<0&&(c=s.y-a.y),(l||c)&&t.fire("autopanstart").panBy([l,c])}},_onCloseButtonClick:function(t){this._close(),Ve(t)},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Sn=function(t,e){return new Cn(t,e)};ei.mergeOptions({closePopupOnClick:!0}),ei.include({openPopup:function(t,e,i){return t instanceof Cn||(t=new Cn(i).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Hi.include({bindPopup:function(t,e){return t instanceof Cn?(_(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new Cn(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){return this._popup&&this._map&&(e=this._popup._prepareOpen(this,t,e),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(Ve(t),e instanceof Qi?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Zn=zn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){zn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){zn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=zn.prototype.getEvents.call(this);return bt&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=le("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,s=n.latLngToContainerPoint(n.getCenter()),r=n.layerPointToContainerPoint(t),a=this.options.direction,h=o.offsetWidth,u=o.offsetHeight,l=A(this.options.offset),c=this._getAnchor();"top"===a?(e=h/2,i=u):"bottom"===a?(e=h/2,i=0):"center"===a?(e=h/2,i=u/2):"right"===a?(e=0,i=u/2):"left"===a?(e=h,i=u/2):r.xthis.options.maxZoom||in&&this._retainParent(o,s,r,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var r=new B(o,s);r.z=i+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),i+1this.options.maxZoom||void 0!==this.options.minZoom&&o1)this._setView(t,i);else{for(var c=o.min.y;c<=o.max.y;c++)for(var d=o.min.x;d<=o.max.x;d++){var _=new B(d,c);if(_.z=this._tileZoom,this._isValidTile(_)){var p=this._tiles[this._tileCoordsToKey(_)];p?p.current=!0:r.push(_)}}if(r.sort((function(t,e){return t.distanceTo(s)-e.distanceTo(s)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;di.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i);return[e.unproject(n,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new N(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new B(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(ce(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){fe(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=u,t.onmousemove=u,et&&this.options.opacity<1&&xe(t,this.options.opacity),ot&&!st&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&M(o(this._tileReady,this,t,null,s)),be(s,i),this._tiles[n]={el:s,coords:t,current:!0},e.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(xe(i.el,0),z(this._fadeFrame),this._fadeFrame=M(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(fe(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),et||!this._map._fadeAnimated?M(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new B(this._wrapX?h(t.x,this._wrapX):t.x,this._wrapY?h(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new O(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function An(t){return new In(t)}var On=In.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=_(this,e)).detectRetina&&zt&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),ot||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return Ie(i,"load",o(this._tileOnLoad,this,e,i)),Ie(i,"error",o(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i.alt="",i.setAttribute("role","presentation"),i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:zt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return f(this._url,i(e,this.options))},_tileOnLoad:function(t,e){et?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=u,e.onerror=u,e.complete||(e.src=y,ce(e),delete this._tiles[t]))},_removeTile:function(t){var e=this._tiles[t];if(e)return at||e.el.setAttribute("src",y),In.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return In.prototype._tileReady.call(this,t,e,i)}});function Rn(t,e){return new On(t,e)}var Nn=On.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);var s=(e=_(this,e)).detectRetina&&zt?2:1,r=this.getTileSize();n.width=r.x*s,n.height=r.y*s,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,On.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=R(i.project(e[0]),i.project(e[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===ji?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=On.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});function Dn(t,e){return new Nn(t,e)}On.WMS=Nn,Rn.wms=Dn;var jn=Hi.extend({options:{padding:.1,tolerance:0},initialize:function(t){_(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&fe(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=Te(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,e),r=this._map.project(t,e).subtract(s),a=o.multiplyBy(-i).add(n).add(o).subtract(r);vt?Le(this._container,a,i):be(this._container,a)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new O(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Wn=jn.extend({getEvents:function(){var t=jn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){jn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Ie(t,"mousemove",this._onMouseMove,this),Ie(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ie(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest),delete this._ctx,ce(this._container),Oe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){jn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=zt?2:1;be(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",zt&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){jn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[r(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,i,n=t.options.dashArray.split(/[, ]+/),o=[];for(i=0;i')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),Un={_initContainer:function(){this._container=le("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(jn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Fn("shape");fe(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Fn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ce(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=Fn("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=Fn("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){_e(t._container)},_bringToBack:function(t){pe(t._container)}},Vn=kt?Fn:X,Gn=jn.extend({getEvents:function(){var t=jn.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=Vn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Vn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ce(this._container),Oe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){jn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),be(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Vn("path");t.options.className&&fe(e,t.options.className),t.options.interactive&&fe(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ce(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,$(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){_e(t._path)},_bringToBack:function(t){pe(t._path)}});function qn(t){return Zt||kt?new Gn(t):null}kt&&Gn.include(Un),ei.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Hn(t)||qn(t)}});var Kn=an.extend({initialize:function(t,e){an.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Yn(t,e){return new Kn(t,e)}Gn.create=Vn,Gn.pointsToPath=$,un.geometryToLayer=ln,un.coordsToLatLng=dn,un.coordsToLatLngs=_n,un.latLngToCoords=pn,un.latLngsToCoords=mn,un.getFeature=fn,un.asFeature=gn,ei.mergeOptions({boxZoom:!0});var Jn=_i.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Ie(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Oe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ce(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),te(),ze(),this._startPoint=this._map.mouseEventToContainerPoint(t),Ie(document,{contextmenu:Ve,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=le("div","leaflet-zoom-box",this._container),fe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new O(this._point,this._startPoint),i=e.getSize();be(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(ce(this._box),ge(this._container,"leaflet-crosshair")),ee(),Ce(),Oe(document,{contextmenu:Ve,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});ei.addInitHook("addHandler","boxZoom",Jn),ei.mergeOptions({doubleClickZoom:!0});var Xn=_i.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});ei.addInitHook("addHandler","doubleClickZoom",Xn),ei.mergeOptions({dragging:!0,inertia:!st,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var $n=_i.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new yi(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}fe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ge(this._map._container,"leaflet-grab"),ge(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=D(this._map.options.maxBounds);this._offsetLimit=R(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,r=Math.abs(o+i)0?s:-s))-e;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});ei.addInitHook("addHandler","scrollWheelZoom",to),ei.mergeOptions({tap:!0,tapTolerance:15});var eo=_i.extend({addHooks:function(){Ie(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Oe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Ue(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],i=e.target;this._startPos=this._newPos=new B(e.clientX,e.clientY),i.tagName&&"a"===i.tagName.toLowerCase()&&fe(i,"leaflet-active"),this._holdTimeout=setTimeout(o((function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))}),this),1e3),this._simulateEvent("mousedown",e),Ie(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),Oe(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],i=e.target;i&&i.tagName&&"a"===i.tagName.toLowerCase()&&ge(i,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new B(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var i=document.createEvent("MouseEvents");i._simulated=!0,e.target._simulatedClick=!0,i.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(i)}});!bt||Lt&&!ct||ei.addInitHook("addHandler","tap",eo),ei.mergeOptions({touchZoom:bt&&!st,bounceAtZoomLimits:!0});var io=_i.extend({addHooks:function(){fe(this._map._container,"leaflet-touch-zoom"),Ie(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ge(this._map._container,"leaflet-touch-zoom"),Oe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Ie(document,"touchmove",this._onTouchMove,this),Ie(document,"touchend",this._onTouchEnd,this),Ue(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),s=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(s,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&s>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),z(this._animRequest);var a=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=M(a,this,!0),Ue(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,z(this._animRequest),Oe(document,"touchmove",this._onTouchMove,this),Oe(document,"touchend",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});ei.addInitHook("addHandler","touchZoom",io),ei.BoxZoom=Jn,ei.DoubleClickZoom=Xn,ei.Drag=$n,ei.Keyboard=Qn,ei.ScrollWheelZoom=to,ei.Tap=eo,ei.TouchZoom=io,t.version=e,t.Control=ni,t.control=oi,t.Browser=Bt,t.Evented=E,t.Mixin=mi,t.Util=C,t.Class=S,t.Handler=_i,t.extend=i,t.bind=o,t.stamp=r,t.setOptions=_,t.DomEvent=Qe,t.DomUtil=Be,t.PosAnimation=ti,t.Draggable=yi,t.LineUtil=Bi,t.PolyUtil=Ai,t.Point=B,t.point=A,t.Bounds=O,t.bounds=R,t.Transformation=q,t.transformation=K,t.Projection=Ni,t.LatLng=j,t.latLng=W,t.LatLngBounds=N,t.latLngBounds=D,t.CRS=F,t.GeoJSON=un,t.geoJSON=yn,t.geoJson=xn,t.Layer=Hi,t.LayerGroup=Fi,t.layerGroup=Ui,t.FeatureGroup=Vi,t.featureGroup=Gi,t.ImageOverlay=wn,t.imageOverlay=Pn,t.VideoOverlay=Ln,t.videoOverlay=bn,t.SVGOverlay=Tn,t.svgOverlay=Mn,t.DivOverlay=zn,t.Popup=Cn,t.popup=Sn,t.Tooltip=Zn,t.tooltip=kn,t.Icon=qi,t.icon=Ki,t.DivIcon=En,t.divIcon=Bn,t.Marker=Xi,t.marker=$i,t.TileLayer=On,t.tileLayer=Rn,t.GridLayer=In,t.gridLayer=An,t.SVG=Gn,t.svg=qn,t.Renderer=jn,t.Canvas=Wn,t.canvas=Hn,t.Path=Qi,t.CircleMarker=tn,t.circleMarker=en,t.Circle=nn,t.circle=on,t.Polyline=sn,t.polyline=rn,t.Polygon=an,t.polygon=hn,t.Rectangle=Kn,t.rectangle=Yn,t.Map=ei,t.map=ii;var no=window.L;t.noConflict=function(){return window.L=no,this},window.L=t}(t.exports);var e=t.exports,i=t.exports.Bounds,n=t.exports.Browser,o=t.exports.CRS,s=t.exports.Canvas,r=t.exports.Circle,a=t.exports.CircleMarker,h=t.exports.Class,u=t.exports.Control,l=t.exports.DivIcon,c=t.exports.DivOverlay,d=t.exports.DomEvent,_=t.exports.DomUtil,p=t.exports.Draggable,m=t.exports.Evented,f=t.exports.FeatureGroup,g=t.exports.GeoJSON,v=t.exports.GridLayer,y=t.exports.Handler,x=t.exports.Icon,w=t.exports.ImageOverlay,P=t.exports.LatLng,b=t.exports.LatLngBounds,T=t.exports.Layer,M=t.exports.LayerGroup,z=t.exports.LineUtil,C=t.exports.Map,S=t.exports.Marker,Z=t.exports.Mixin,k=t.exports.Path,E=t.exports.Point,B=t.exports.PolyUtil,I=t.exports.Polygon,A=t.exports.Polyline,O=t.exports.Popup,R=t.exports.PosAnimation,N=t.exports.Projection,D=t.exports.Rectangle,j=t.exports.Renderer,W=t.exports.SVG,H=t.exports.SVGOverlay,F=t.exports.TileLayer,U=t.exports.Tooltip,V=t.exports.Transformation,G=t.exports.Util,q=t.exports.VideoOverlay,K=t.exports.bind,Y=t.exports.bounds,J=t.exports.canvas,X=t.exports.circle,$=t.exports.circleMarker,Q=t.exports.control,tt=t.exports.divIcon,et=t.exports.extend,it=t.exports.featureGroup,nt=t.exports.geoJSON,ot=t.exports.geoJson,st=t.exports.gridLayer,rt=t.exports.icon,at=t.exports.imageOverlay,ht=t.exports.latLng,ut=t.exports.latLngBounds,lt=t.exports.layerGroup,ct=t.exports.map,dt=t.exports.marker,_t=t.exports.noConflict,pt=t.exports.point,mt=t.exports.polygon,ft=t.exports.polyline,gt=t.exports.popup,vt=t.exports.rectangle,yt=t.exports.setOptions,xt=t.exports.stamp,wt=t.exports.svg,Pt=t.exports.svgOverlay,Lt=t.exports.tileLayer,bt=t.exports.tooltip,Tt=t.exports.transformation,Mt=t.exports.version,zt=t.exports.videoOverlay;export{i as Bounds,n as Browser,o as CRS,s as Canvas,r as Circle,a as CircleMarker,h as Class,u as Control,l as DivIcon,c as DivOverlay,d as DomEvent,_ as DomUtil,p as Draggable,m as Evented,f as FeatureGroup,g as GeoJSON,v as GridLayer,y as Handler,x as Icon,w as ImageOverlay,P as LatLng,b as LatLngBounds,T as Layer,M as LayerGroup,z as LineUtil,C as Map,S as Marker,Z as Mixin,k as Path,E as Point,B as PolyUtil,I as Polygon,A as Polyline,O as Popup,R as PosAnimation,N as Projection,D as Rectangle,j as Renderer,W as SVG,H as SVGOverlay,F as TileLayer,U as Tooltip,V as Transformation,G as Util,q as VideoOverlay,K as bind,Y as bounds,J as canvas,X as circle,$ as circleMarker,Q as control,e as default,tt as divIcon,et as extend,it as featureGroup,nt as geoJSON,ot as geoJson,st as gridLayer,rt as icon,at as imageOverlay,ht as latLng,ut as latLngBounds,lt as layerGroup,ct as map,dt as marker,_t as noConflict,pt as point,mt as polygon,ft as polyline,gt as popup,vt as rectangle,yt as setOptions,xt as stamp,wt as svg,Pt as svgOverlay,Lt as tileLayer,bt as tooltip,Tt as transformation,Mt as version,zt as videoOverlay}; diff --git a/isamples_export_client/ui/_npm/leaflet@1.9.4/_esm.js b/isamples_export_client/ui/_npm/leaflet@1.9.4/_esm.js new file mode 100644 index 0000000..26c1408 --- /dev/null +++ b/isamples_export_client/ui/_npm/leaflet@1.9.4/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/leaflet@1.9.4/dist/leaflet-src.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var t={exports:{}};!function(t){var e="1.9.4";function i(t){var e,i,n,o;for(i=1,n=arguments.length;i0?Math.floor(t):Math.ceil(t)};function A(t,e,i){return t instanceof O?t:g(t)?new O(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new O(t.x,t.y):new O(t,e,i)}function I(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=R(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return s&&r},overlaps:function(t){t=R(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.xe.y&&n.y=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=D(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return s&&r},overlaps:function(t){t=D(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.late.lng&&n.lng1,Zt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(t){}return t}(),Et=!!document.createElement("canvas").getContext,kt=!(!document.createElementNS||!X("svg").createSVGRect),Ot=!!kt&&((Q=document.createElement("div")).innerHTML="","http://www.w3.org/2000/svg"===(Q.firstChild&&Q.firstChild.namespaceURI)),Bt=!kt&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),At=0===navigator.platform.indexOf("Mac"),It=0===navigator.platform.indexOf("Linux");function Rt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Nt={ie:et,ielt9:it,edge:nt,webkit:ot,android:st,android23:rt,androidStock:ht,opera:lt,chrome:ut,gecko:ct,safari:dt,phantom:_t,opera12:pt,win:mt,ie3d:ft,webkit3d:gt,gecko3d:vt,any3d:yt,mobile:xt,mobileWebkit:wt,mobileWebkit3d:bt,msPointer:Pt,pointer:Lt,touch:Mt,touchNative:Tt,mobileOpera:zt,mobileGecko:Ct,retina:St,passiveEvents:Zt,canvas:Et,svg:kt,vml:Bt,inlineSvg:Ot,mac:At,linux:It},Dt=Nt.msPointer?"MSPointerDown":"pointerdown",jt=Nt.msPointer?"MSPointerMove":"pointermove",Ht=Nt.msPointer?"MSPointerUp":"pointerup",Ft=Nt.msPointer?"MSPointerCancel":"pointercancel",Wt={touchstart:Dt,touchmove:jt,touchend:Ht,touchcancel:Ft},Ut={touchstart:te,touchmove:Qt,touchend:Qt,touchcancel:Qt},Vt={},Gt=!1;function qt(t,e,i){return"touchstart"===e&&$t(),Ut[e]?(i=Ut[e].bind(this,i),t.addEventListener(Wt[e],i,!1),i):(console.warn("wrong event specified:",e),l)}function Kt(t,e,i){Wt[e]?t.removeEventListener(Wt[e],i,!1):console.warn("wrong event specified:",e)}function Yt(t){Vt[t.pointerId]=t}function Jt(t){Vt[t.pointerId]&&(Vt[t.pointerId]=t)}function Xt(t){delete Vt[t.pointerId]}function $t(){Gt||(document.addEventListener(Dt,Yt,!0),document.addEventListener(jt,Jt,!0),document.addEventListener(Ht,Xt,!0),document.addEventListener(Ft,Xt,!0),Gt=!0)}function Qt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],Vt)e.touches.push(Vt[i]);e.changedTouches=[e],t(e)}}function te(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ye(e),Qt(t,e)}function ee(t){var e,i,n={};for(i in t)e=t[i],n[i]=e&&e.bind?e.bind(t):e;return t=n,n.type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}var ie=200;function ne(t,e){t.addEventListener("dblclick",e);var i,n=0;function o(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var o=Xe(t);if(!o.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||o.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var s=Date.now();s-n<=ie?2==++i&&e(ee(t)):i=1,n=s}}}else i=t.detail}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function oe(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var se,re,ae,he,le,ue=ze(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ce=ze(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),de="webkitTransition"===ce||"OTransition"===ce?ce+"End":"transitionend";function _e(t){return"string"==typeof t?document.getElementById(t):t}function pe(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function me(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function fe(t){var e=t.parentNode;e&&e.removeChild(t)}function ge(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ve(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ye(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function xe(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=Le(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function we(t,e){if(void 0!==t.classList)for(var i=d(e),n=0,o=i.length;n0?2*window.devicePixelRatio:1;function ti(t){return Nt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Qe:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function ei(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var ii={__proto__:null,on:De,off:He,stopPropagation:Ge,disableScrollPropagation:qe,disableClickPropagation:Ke,preventDefault:Ye,stop:Je,getPropagationPath:Xe,getMousePosition:$e,getWheelDelta:ti,isExternalTarget:ei,addListener:De,removeListener:He},ni=k.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Ze(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=M(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;ethis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,D(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=A((e=e||{}).paddingTopLeft||e.padding||[0,0]),n=A(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),s=this.project(t),r=this.getPixelBounds(),a=R([r.min.add(i),r.max.subtract(n)]),h=a.getSize();if(!a.contains(s)){this._enforcingBounds=!0;var l=s.subtract(a.getCenter()),u=a.extend(s).getSize().subtract(h);o.x+=l.x<0?-u.x:u.x,o.y+=l.y<0?-u.y:u.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var n=this.getSize(),s=e.divideBy(2).round(),r=n.divideBy(2).round(),a=s.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:n})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,n,t):navigator.geolocation.getCurrentPosition(e,n,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new j(t.coords.latitude,t.coords.longitude),i=e.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(o,n.maxZoom):o)}var s={latlng:e,bounds:i,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire("locationfound",s)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),fe(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)fe(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=me("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new N(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=D(t),i=A(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(i),l=R(this.project(a,n),this.project(r,n)).getSize(),u=Nt.any3d?this.options.zoomSnap:1,c=h.x/l.x,d=h.y/l.y,_=e?Math.max(c,d):Math.min(c,d);return n=this.getScaleZoom(_,n),u&&(n=Math.round(n/(u/100))*(u/100),n=e?Math.ceil(n/u)*u:Math.floor(n/u)*u),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new O(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new I(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(H(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(A(t),e)},layerPointToLatLng:function(t){var e=A(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(H(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(H(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,e){return this.options.crs.distance(H(t),H(e))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(A(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(H(t)))},mouseEventToContainerPoint:function(t){return $e(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=_e(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");De(e,"scroll",this._onScroll,this),this._containerId=r(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Nt.any3d,we(t,"leaflet-container"+(Nt.touch?" leaflet-touch":"")+(Nt.retina?" leaflet-retina":"")+(Nt.ielt9?" leaflet-oldie":"")+(Nt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=pe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Se(this._mapPane,new O(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(we(t.markerPane,"leaflet-zoom-hide"),we(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){Se(this._mapPane,new O(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Se(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[r(this._container)]=this;var e=t?He:De;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Nt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){z(this._resizeRequest),this._resizeRequest=M((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,n=[],o="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,a=!1;s;){if((i=this._targets[r(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){a=!0;break}if(i&&i.listens(e,!0)){if(o&&!ei(s,t))break;if(n.push(i),o)break}if(s===this._container)break;s=s.parentNode}return n.length||a||o||!this.listens(e,!0)||(n=[this]),n},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var i=t.type;"mousedown"===i&&Be(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var o=i({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}var s=this._findEventTargets(t,e);if(n){for(var r=[],a=0;a0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Nt.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){be(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=me("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=ue,i=this._proxy.style[e];Ce(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){fe(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Ce(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(o)||(M((function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,we(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&be(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function si(t,e){return new oi(t,e)}var ri=S.extend({options:{position:"topright"},initialize:function(t){_(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return we(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(fe(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ai=function(t){return new ri(t)};oi.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=me("div",e+"control-container",this._container);function n(n,o){var s=e+n+" "+e+o;t[n+o]=me("div",s,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)fe(this._controlCorners[t]);fe(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var hi=ri.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(r(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+r(this),n),this._layerControlInputs.push(e),e.layerId=r(t.layer),De(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");return i.appendChild(s),s.appendChild(e),s.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=i.length-1;s>=0;s--)t=i[s],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(s=0;s=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&ne.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,De(t,"click",Ye),this.expand();var e=this;setTimeout((function(){He(t,"click",Ye),e._preventClick=!1}))}}),li=function(t,e,i){return new hi(t,e,i)},ui=ri.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=me("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var s=me("a",i,n);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),Ke(s),De(s,"click",Je),De(s,"click",o,this),De(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";be(this._zoomInButton,e),be(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(we(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(we(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});oi.mergeOptions({zoomControl:!0}),oi.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new ui,this.addControl(this.zoomControl))}));var ci=function(t){return new ui(t)},di=ri.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=me("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=me("div",e,i)),t.imperial&&(this._iScale=me("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,o=3.2808399*t;o>5280?(e=o/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),_i=function(t){return new di(t)},pi='',mi=ri.extend({options:{position:"bottomright",prefix:''+(Nt.inlineSvg?pi+" ":"")+"Leaflet"},initialize:function(t){_(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=me("div","leaflet-control-attribution"),Ke(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' ')}}});oi.mergeOptions({attributionControl:!0}),oi.addInitHook((function(){this.options.attributionControl&&(new mi).addTo(this)}));var fi=function(t){return new mi(t)};ri.Layers=hi,ri.Zoom=ui,ri.Scale=di,ri.Attribution=mi,ai.layers=li,ai.zoom=ci,ai.scale=_i,ai.attribution=fi;var gi=S.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});gi.addTo=function(t,e){return t.addHandler(e,this),this};var vi={Events:E},yi=Nt.touch?"touchstart mousedown":"mousedown",xi=k.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){_(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(De(this._dragStartTarget,yi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(xi._dragging===this&&this.finishDrag(!0),He(this._dragStartTarget,yi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!xe(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)xi._dragging===this&&this.finishDrag();else if(!(xi._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(xi._dragging=this,this._preventOutline&&Be(this._element),ke(),se(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,i=Ie(this._element);this._startPoint=new O(e.clientX,e.clientY),this._startPos=Ze(this._element),this._parentScale=Re(i);var n="mousedown"===t.type;De(document,n?"mousemove":"touchmove",this._onMove,this),De(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new O(e.clientX,e.clientY)._subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)h&&(s=r,h=a);h>i&&(e[s]=1,Zi(t,e,i,n,s),Zi(t,e,i,s,o))}function Ei(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;ne&&(i.push(t[n]),o=n);return oe.max.x&&(i|=2),t.ye.max.y&&(i|=8),i}function Ai(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Ii(t,e,i,n){var o,s=e.x,r=e.y,a=i.x-s,h=i.y-r,l=a*a+h*h;return l>0&&((o=((t.x-s)*a+(t.y-r)*h)/l)>1?(s=i.x,r=i.y):o>0&&(s+=a*o,r+=h*o)),a=t.x-s,h=t.y-r,n?a*a+h*h:new O(s,r)}function Ri(t){return!g(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Ni(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ri(t)}function Di(t,e){var i,n,o,s,r,a,h,l;if(!t||0===t.length)throw new Error("latlngs not passed");Ri(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=H([0,0]),c=D(t);c.getNorthWest().distanceTo(c.getSouthWest())*c.getNorthEast().distanceTo(c.getNorthWest())<1700&&(u=Pi(t));var d=t.length,_=[];for(i=0;in){h=(s-n)/o,l=[a.x-h*(a.x-r.x),a.y-h*(a.y-r.y)];break}var m=e.unproject(A(l));return H([m.lat+u.lat,m.lng+u.lng])}var ji={__proto__:null,simplify:Mi,pointToSegmentDistance:zi,closestPointOnSegment:Ci,clipSegment:ki,_getEdgeIntersection:Oi,_getBitCode:Bi,_sqClosestPointOnSegment:Ii,isFlat:Ri,_flat:Ni,polylineCenter:Di},Hi={project:function(t){return new O(t.lng,t.lat)},unproject:function(t){return new j(t.y,t.x)},bounds:new I([-180,-90],[180,90])},Fi={R:6378137,R_MINOR:6356752.314245179,bounds:new I([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,s=Math.sqrt(1-o*o),r=s*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2);return n=-i*Math.log(Math.max(a,1e-10)),new O(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),h=0,l=.1;h<15&&Math.abs(l)>1e-7;h++)e=s*Math.sin(a),e=Math.pow((1-e)/(1+e),s/2),a+=l=Math.PI/2-2*Math.atan(r*e)-a;return new j(a*i,t.x*i/n)}},Wi={__proto__:null,LonLat:Hi,Mercator:Fi,SphericalMercator:G},Ui=i({},U,{code:"EPSG:3395",projection:Fi,transformation:function(){var t=.5/(Math.PI*Fi.R);return K(t,.5,-t,.5)}()}),Vi=i({},U,{code:"EPSG:4326",projection:Hi,transformation:K(1/180,1,-1/180,.5)}),Gi=i({},W,{projection:Hi,transformation:K(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});W.Earth=U,W.EPSG3395=Ui,W.EPSG3857=Y,W.EPSG900913=J,W.EPSG4326=Vi,W.Simple=Gi;var qi=k.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[r(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[r(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});oi.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=r(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=r(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return r(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?g(t)?t:[t]:[]).length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()=2&&e[0]instanceof j&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){un.prototype._setLatLngs.call(this,t),Ri(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ri(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new O(e,e);if(t=new I(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;ot.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(l=!l);return l||un.prototype._containsPoint.call(this,t,!0)}});function _n(t,e){return new dn(t,e)}var pn=Ji.extend({initialize:function(t,e){_(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=g(t)?t:t.features;if(o){for(e=0,i=o.length;e0&&o.push(o[0].slice()),o}function wn(t,e){return t.feature?i({},t.feature,{geometry:e}):bn(e)}function bn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Pn={toGeoJSON:function(t){return wn(this,{type:"Point",coordinates:yn(this.getLatLng(),t)})}};function Ln(t,e){return new pn(t,e)}nn.include(Pn),hn.include(Pn),rn.include(Pn),un.include({toGeoJSON:function(t){var e=!Ri(this._latlngs);return wn(this,{type:(e?"Multi":"")+"LineString",coordinates:xn(this._latlngs,e?1:0,!1,t)})}}),dn.include({toGeoJSON:function(t){var e=!Ri(this._latlngs),i=e&&!Ri(this._latlngs[0]),n=xn(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),wn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),Ki.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)})),wn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i)n.push(o.geometry);else{var s=bn(o);"FeatureCollection"===s.type?n.push.apply(n,s.features):n.push(s)}}})),i?wn(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var Tn=Ln,Mn=qi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=D(e),_(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(we(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){fe(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ve(this._image),this},bringToBack:function(){return this._map&&ye(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=D(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:me("img");we(e,"leaflet-image-layer"),this._zoomAnimated&&we(e,"leaflet-zoom-animated"),this.options.className&&we(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Ce(this._image,i,e)},_reset:function(){var t=this._image,e=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();Se(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){Te(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),zn=function(t,e,i){return new Mn(t,e,i)},Cn=Mn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:me("video");if(we(e,"leaflet-image-layer"),this._zoomAnimated&&we(e,"leaflet-zoom-animated"),this.options.className&&we(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onloadeddata=o(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],s=0;s0?n:[e.src]}else{g(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var r=0;ro?(e.height=o+"px",we(t,s)):be(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();Se(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(pe(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new O(this._containerLeft,-i-this._containerBottom);o._add(Ze(this._container));var s=t.layerPointToContainerPoint(o),r=A(this.options.autoPanPadding),a=A(this.options.autoPanPaddingTopLeft||r),h=A(this.options.autoPanPaddingBottomRight||r),l=t.getSize(),u=0,c=0;s.x+n+h.x>l.x&&(u=s.x+n-l.x+h.x),s.x-u-a.x<0&&(u=s.x-a.x),s.y+i+h.y>l.y&&(c=s.y+i-l.y+h.y),s.y-c-a.y<0&&(c=s.y-a.y),(u||c)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([u,c]))}},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Bn=function(t,e){return new On(t,e)};oi.mergeOptions({closePopupOnClick:!0}),oi.include({openPopup:function(t,e,i){return this._initOverlay(On,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),qi.include({bindPopup:function(t,e){return this._popup=this._initOverlay(On,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Ji||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Je(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof sn?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var An=kn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){kn.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){kn.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=kn.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=me("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+r(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,s=n.latLngToContainerPoint(n.getCenter()),r=n.layerPointToContainerPoint(t),a=this.options.direction,h=o.offsetWidth,l=o.offsetHeight,u=A(this.options.offset),c=this._getAnchor();"top"===a?(e=h/2,i=l):"bottom"===a?(e=h/2,i=0):"center"===a?(e=h/2,i=l/2):"right"===a?(e=0,i=l/2):"left"===a?(e=h,i=l/2):r.xthis.options.maxZoom||in&&this._retainParent(o,s,r,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var r=new O(o,s);r.z=i+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),i+1this.options.maxZoom||void 0!==this.options.minZoom&&o1)this._setView(t,i);else{for(var c=o.min.y;c<=o.max.y;c++)for(var d=o.min.x;d<=o.max.x;d++){var _=new O(d,c);if(_.z=this._tileZoom,this._isValidTile(_)){var p=this._tiles[this._tileCoordsToKey(_)];p?p.current=!0:r.push(_)}}if(r.sort((function(t,e){return t.distanceTo(s)-e.distanceTo(s)})),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;di.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i);return[e.unproject(n,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new N(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new O(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(fe(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){we(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,Nt.ielt9&&this.options.opacity<1&&Te(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&M(o(this._tileReady,this,t,null,s)),Se(s,i),this._tiles[n]={el:s,coords:t,current:!0},e.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(Te(i.el,0),z(this._fadeFrame),this._fadeFrame=M(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(we(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Nt.ielt9||!this._map._fadeAnimated?M(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new O(this._wrapX?h(t.x,this._wrapX):t.x,this._wrapY?h(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new I(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function jn(t){return new Dn(t)}var Hn=Dn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=_(this,e)).detectRetina&&Nt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return De(i,"load",o(this._tileOnLoad,this,e,i)),De(i,"error",o(this._tileOnError,this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:Nt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return f(this._url,i(e,this.options))},_tileOnLoad:function(t,e){Nt.ielt9?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,!e.complete)){e.src=y;var i=this._tiles[t].coords;fe(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",y),Dn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==y))return Dn.prototype._tileReady.call(this,t,e,i)}});function Fn(t,e){return new Hn(t,e)}var Wn=Hn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);var s=(e=_(this,e)).detectRetina&&Nt.retina?2:1,r=this.getTileSize();n.width=r.x*s,n.height=r.y*s,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Hn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=R(i.project(e[0]),i.project(e[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===Vi?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=Hn.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});function Un(t,e){return new Wn(t,e)}Hn.WMS=Wn,Fn.wms=Un;var Vn=qi.extend({options:{padding:.1},initialize:function(t){_(this,t),r(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),we(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),s=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));Nt.any3d?Ce(this._container,s,i):Se(this._container,s)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new I(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Gn=Vn.extend({options:{tolerance:0},getEvents:function(){var t=Vn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Vn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");De(t,"mousemove",this._onMouseMove,this),De(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),De(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest),delete this._ctx,fe(this._container),He(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Nt.retina?2:1;Se(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Nt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Vn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[r(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[r(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,i,n=t.options.dashArray.split(/[, ]+/),o=[];for(i=0;i')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Yn={_initContainer:function(){this._container=me("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Vn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Kn("shape");we(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Kn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;fe(e),t.removeInteractiveTarget(e),delete this._layers[r(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=Kn("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=Kn("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ve(t._container)},_bringToBack:function(t){ye(t._container)}},Jn=Nt.vml?Kn:X,Xn=Vn.extend({_initContainer:function(){this._container=Jn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Jn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){fe(this._container),He(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Vn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),Se(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Jn("path");t.options.className&&we(e,t.options.className),t.options.interactive&&we(e,"leaflet-interactive"),this._updateStyle(t),this._layers[r(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){fe(t._path),t.removeInteractiveTarget(t._path),delete this._layers[r(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,$(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ve(t._path)},_bringToBack:function(t){ye(t._path)}});function $n(t){return Nt.svg||Nt.vml?new Xn(t):null}Nt.vml&&Xn.include(Yn),oi.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&qn(t)||$n(t)}});var Qn=dn.extend({initialize:function(t,e){dn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function to(t,e){return new Qn(t,e)}Xn.create=Jn,Xn.pointsToPath=$,pn.geometryToLayer=mn,pn.coordsToLatLng=gn,pn.coordsToLatLngs=vn,pn.latLngToCoords=yn,pn.latLngsToCoords=xn,pn.getFeature=wn,pn.asFeature=bn,oi.mergeOptions({boxZoom:!0});var eo=gi.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){De(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){He(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){fe(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),se(),ke(),this._startPoint=this._map.mouseEventToContainerPoint(t),De(document,{contextmenu:Je,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=me("div","leaflet-zoom-box",this._container),we(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new I(this._point,this._startPoint),i=e.getSize();Se(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(fe(this._box),be(this._container,"leaflet-crosshair")),re(),Oe(),He(document,{contextmenu:Je,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});oi.addInitHook("addHandler","boxZoom",eo),oi.mergeOptions({doubleClickZoom:!0});var io=gi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});oi.addInitHook("addHandler","doubleClickZoom",io),oi.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var no=gi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new xi(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}we(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){be(this._map._container,"leaflet-grab"),be(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=D(this._map.options.maxBounds);this._offsetLimit=R(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.xe.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,r=Math.abs(o+i)0?s:-s))-e;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});oi.addInitHook("addHandler","scrollWheelZoom",so);var ro=600;oi.mergeOptions({tapHold:Nt.touchNative&&Nt.safari&&Nt.mobile,tapTolerance:15});var ao=gi.extend({addHooks:function(){De(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){He(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new O(e.clientX,e.clientY),this._holdTimeout=setTimeout(o((function(){this._cancel(),this._isTapValid()&&(De(document,"touchend",Ye),De(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),ro),De(document,"touchend touchcancel contextmenu",this._cancel,this),De(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){He(document,"touchend",Ye),He(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),He(document,"touchend touchcancel contextmenu",this._cancel,this),He(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new O(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});oi.addInitHook("addHandler","tapHold",ao),oi.mergeOptions({touchZoom:Nt.touch,bounceAtZoomLimits:!0});var ho=gi.extend({addHooks:function(){we(this._map._container,"leaflet-touch-zoom"),De(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){be(this._map._container,"leaflet-touch-zoom"),He(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),De(document,"touchmove",this._onTouchMove,this),De(document,"touchend touchcancel",this._onTouchEnd,this),Ye(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),s=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(s,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&s>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),z(this._animRequest);var a=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=M(a,this,!0),Ye(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,z(this._animRequest),He(document,"touchmove",this._onTouchMove,this),He(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});oi.addInitHook("addHandler","touchZoom",ho),oi.BoxZoom=eo,oi.DoubleClickZoom=io,oi.Drag=no,oi.Keyboard=oo,oi.ScrollWheelZoom=so,oi.TapHold=ao,oi.TouchZoom=ho,t.Bounds=I,t.Browser=Nt,t.CRS=W,t.Canvas=Gn,t.Circle=hn,t.CircleMarker=rn,t.Class=S,t.Control=ri,t.DivIcon=Rn,t.DivOverlay=kn,t.DomEvent=ii,t.DomUtil=Ne,t.Draggable=xi,t.Evented=k,t.FeatureGroup=Ji,t.GeoJSON=pn,t.GridLayer=Dn,t.Handler=gi,t.Icon=$i,t.ImageOverlay=Mn,t.LatLng=j,t.LatLngBounds=N,t.Layer=qi,t.LayerGroup=Ki,t.LineUtil=ji,t.Map=oi,t.Marker=nn,t.Mixin=vi,t.Path=sn,t.Point=O,t.PolyUtil=Ti,t.Polygon=dn,t.Polyline=un,t.Popup=On,t.PosAnimation=ni,t.Projection=Wi,t.Rectangle=Qn,t.Renderer=Vn,t.SVG=Xn,t.SVGOverlay=Zn,t.TileLayer=Hn,t.Tooltip=An,t.Transformation=q,t.Util=C,t.VideoOverlay=Cn,t.bind=o,t.bounds=R,t.canvas=qn,t.circle=ln,t.circleMarker=an,t.control=ai,t.divIcon=Nn,t.extend=i,t.featureGroup=Xi,t.geoJSON=Ln,t.geoJson=Tn,t.gridLayer=jn,t.icon=Qi,t.imageOverlay=zn,t.latLng=H,t.latLngBounds=D,t.layerGroup=Yi,t.map=si,t.marker=on,t.point=A,t.polygon=_n,t.polyline=cn,t.popup=Bn,t.rectangle=to,t.setOptions=_,t.stamp=r,t.svg=$n,t.svgOverlay=En,t.tileLayer=Fn,t.tooltip=In,t.transformation=K,t.version=e,t.videoOverlay=Sn;var lo=window.L;t.noConflict=function(){return window.L=lo,this},window.L=t}(t.exports);var e=t.exports,i=t.exports.Bounds,n=t.exports.Browser,o=t.exports.CRS,s=t.exports.Canvas,r=t.exports.Circle,a=t.exports.CircleMarker,h=t.exports.Class,l=t.exports.Control,u=t.exports.DivIcon,c=t.exports.DivOverlay,d=t.exports.DomEvent,_=t.exports.DomUtil,p=t.exports.Draggable,m=t.exports.Evented,f=t.exports.FeatureGroup,g=t.exports.GeoJSON,v=t.exports.GridLayer,y=t.exports.Handler,x=t.exports.Icon,w=t.exports.ImageOverlay,b=t.exports.LatLng,P=t.exports.LatLngBounds,T=t.exports.Layer,M=t.exports.LayerGroup,z=t.exports.LineUtil,C=t.exports.Map,S=t.exports.Marker,Z=t.exports.Mixin,E=t.exports.Path,k=t.exports.Point,O=t.exports.PolyUtil,B=t.exports.Polygon,A=t.exports.Polyline,I=t.exports.Popup,R=t.exports.PosAnimation,N=t.exports.Projection,D=t.exports.Rectangle,j=t.exports.Renderer,H=t.exports.SVG,F=t.exports.SVGOverlay,W=t.exports.TileLayer,U=t.exports.Tooltip,V=t.exports.Transformation,G=t.exports.Util,q=t.exports.VideoOverlay,K=t.exports.bind,Y=t.exports.bounds,J=t.exports.canvas,X=t.exports.circle,$=t.exports.circleMarker,Q=t.exports.control,tt=t.exports.divIcon,et=t.exports.extend,it=t.exports.featureGroup,nt=t.exports.geoJSON,ot=t.exports.geoJson,st=t.exports.gridLayer,rt=t.exports.icon,at=t.exports.imageOverlay,ht=t.exports.latLng,lt=t.exports.latLngBounds,ut=t.exports.layerGroup,ct=t.exports.map,dt=t.exports.marker,_t=t.exports.noConflict,pt=t.exports.point,mt=t.exports.polygon,ft=t.exports.polyline,gt=t.exports.popup,vt=t.exports.rectangle,yt=t.exports.setOptions,xt=t.exports.stamp,wt=t.exports.svg,bt=t.exports.svgOverlay,Pt=t.exports.tileLayer,Lt=t.exports.tooltip,Tt=t.exports.transformation,Mt=t.exports.version,zt=t.exports.videoOverlay;export{i as Bounds,n as Browser,o as CRS,s as Canvas,r as Circle,a as CircleMarker,h as Class,l as Control,u as DivIcon,c as DivOverlay,d as DomEvent,_ as DomUtil,p as Draggable,m as Evented,f as FeatureGroup,g as GeoJSON,v as GridLayer,y as Handler,x as Icon,w as ImageOverlay,b as LatLng,P as LatLngBounds,T as Layer,M as LayerGroup,z as LineUtil,C as Map,S as Marker,Z as Mixin,E as Path,k as Point,O as PolyUtil,B as Polygon,A as Polyline,I as Popup,R as PosAnimation,N as Projection,D as Rectangle,j as Renderer,H as SVG,F as SVGOverlay,W as TileLayer,U as Tooltip,V as Transformation,G as Util,q as VideoOverlay,K as bind,Y as bounds,J as canvas,X as circle,$ as circleMarker,Q as control,e as default,tt as divIcon,et as extend,it as featureGroup,nt as geoJSON,ot as geoJson,st as gridLayer,rt as icon,at as imageOverlay,ht as latLng,lt as latLngBounds,ut as layerGroup,ct as map,dt as marker,_t as noConflict,pt as point,mt as polygon,ft as polyline,gt as popup,vt as rectangle,yt as setOptions,xt as stamp,wt as svg,bt as svgOverlay,Pt as tileLayer,Lt as tooltip,Tt as transformation,Mt as version,zt as videoOverlay}; diff --git a/isamples_export_client/ui/_npm/linkify-it@5.0.0/_esm.js b/isamples_export_client/ui/_npm/linkify-it@5.0.0/_esm.js new file mode 100644 index 0000000..a12ee28 --- /dev/null +++ b/isamples_export_client/ui/_npm/linkify-it@5.0.0/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/linkify-it@5.0.0/index.mjs + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +import{Any as t,Cc as _,Z as e,P as s}from"../uc.micro@2.1.0/_esm.js";function r(t){return Array.prototype.slice.call(arguments,1).forEach((function(_){_&&Object.keys(_).forEach((function(e){t[e]=_[e]}))})),t}function i(t){return Object.prototype.toString.call(t)}function c(t){return"[object Function]"===i(t)}function n(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const o={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const h={"http:":{validate:function(t,_,e){const s=t.slice(_);return e.re.http||(e.re.http=new RegExp("^\\/\\/"+e.re.src_auth+e.re.src_host_port_strict+e.re.src_path,"i")),e.re.http.test(s)?s.match(e.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,_,e){const s=t.slice(_);return e.re.no_http||(e.re.no_http=new RegExp("^"+e.re.src_auth+"(?:localhost|(?:(?:"+e.re.src_domain+")\\.)+"+e.re.src_domain_root+")"+e.re.src_port+e.re.src_host_terminator+e.re.src_path,"i")),e.re.no_http.test(s)?_>=3&&":"===t[_-3]||_>=3&&"/"===t[_-3]?0:s.match(e.re.no_http)[0].length:0}},"mailto:":{validate:function(t,_,e){const s=t.slice(_);return e.re.mailto||(e.re.mailto=new RegExp("^"+e.re.src_email_name+"@"+e.re.src_host_strict,"i")),e.re.mailto.test(s)?s.match(e.re.mailto)[0].length:0}}},l="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",a="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function u(r){const o=r.re=function(r){const i={};r=r||{},i.src_Any=t.source,i.src_Cc=_.source,i.src_Z=e.source,i.src_P=s.source,i.src_ZPCc=[i.src_Z,i.src_P,i.src_Cc].join("|"),i.src_ZCc=[i.src_Z,i.src_Cc].join("|");const c="[><|]";return i.src_pseudo_letter="(?:(?![><|]|"+i.src_ZPCc+")"+i.src_Any+")",i.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",i.src_auth="(?:(?:(?!"+i.src_ZCc+"|[@/\\[\\]()]).)+@)?",i.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",i.src_host_terminator="(?=$|[><|]|"+i.src_ZPCc+")(?!"+(r["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+i.src_ZPCc+"))",i.src_path="(?:[/?#](?:(?!"+i.src_ZCc+"|"+c+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+i.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+i.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+i.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+i.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+i.src_ZCc+"|[']).)+\\'|\\'(?="+i.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+i.src_ZCc+"|[.]|$)|"+(r["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+i.src_ZCc+"|$)|;(?!"+i.src_ZCc+"|$)|\\!+(?!"+i.src_ZCc+"|[!]|$)|\\?(?!"+i.src_ZCc+"|[?]|$))+|\\/)?",i.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',i.src_xn="xn--[a-z0-9\\-]{1,59}",i.src_domain_root="(?:"+i.src_xn+"|"+i.src_pseudo_letter+"{1,63})",i.src_domain="(?:"+i.src_xn+"|(?:"+i.src_pseudo_letter+")|(?:"+i.src_pseudo_letter+"(?:-|"+i.src_pseudo_letter+"){0,61}"+i.src_pseudo_letter+"))",i.src_host="(?:(?:(?:(?:"+i.src_domain+")\\.)*"+i.src_domain+"))",i.tpl_host_fuzzy="(?:"+i.src_ip4+"|(?:(?:(?:"+i.src_domain+")\\.)+(?:%TLDS%)))",i.tpl_host_no_ip_fuzzy="(?:(?:(?:"+i.src_domain+")\\.)+(?:%TLDS%))",i.src_host_strict=i.src_host+i.src_host_terminator,i.tpl_host_fuzzy_strict=i.tpl_host_fuzzy+i.src_host_terminator,i.src_host_port_strict=i.src_host+i.src_port+i.src_host_terminator,i.tpl_host_port_fuzzy_strict=i.tpl_host_fuzzy+i.src_port+i.src_host_terminator,i.tpl_host_port_no_ip_fuzzy_strict=i.tpl_host_no_ip_fuzzy+i.src_port+i.src_host_terminator,i.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+i.src_ZPCc+"|>|$))",i.tpl_email_fuzzy='(^|[><|]|"|\\(|'+i.src_ZCc+")("+i.src_email_name+"@"+i.tpl_host_fuzzy_strict+")",i.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+i.src_ZPCc+"))((?![$+<=>^`||])"+i.tpl_host_port_fuzzy_strict+i.src_path+")",i.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+i.src_ZPCc+"))((?![$+<=>^`||])"+i.tpl_host_port_no_ip_fuzzy_strict+i.src_path+")",i}(r.__opts__),h=r.__tlds__.slice();function a(t){return t.replace("%TLDS%",o.src_tlds)}r.onCompile(),r.__tlds_replaced__||h.push(l),h.push(o.src_xn),o.src_tlds=h.join("|"),o.email_fuzzy=RegExp(a(o.tpl_email_fuzzy),"i"),o.link_fuzzy=RegExp(a(o.tpl_link_fuzzy),"i"),o.link_no_ip_fuzzy=RegExp(a(o.tpl_link_no_ip_fuzzy),"i"),o.host_fuzzy_test=RegExp(a(o.tpl_host_fuzzy_test),"i");const u=[];function p(t,_){throw new Error('(LinkifyIt) Invalid schema "'+t+'": '+_)}r.__compiled__={},Object.keys(r.__schemas__).forEach((function(t){const _=r.__schemas__[t];if(null===_)return;const e={validate:null,link:null};if(r.__compiled__[t]=e,"[object Object]"===i(_))return!function(t){return"[object RegExp]"===i(t)}(_.validate)?c(_.validate)?e.validate=_.validate:p(t,_):e.validate=function(t){return function(_,e){const s=_.slice(e);return t.test(s)?s.match(t)[0].length:0}}(_.validate),void(c(_.normalize)?e.normalize=_.normalize:_.normalize?p(t,_):e.normalize=function(t,_){_.normalize(t)});!function(t){return"[object String]"===i(t)}(_)?p(t,_):u.push(t)})),u.forEach((function(t){r.__compiled__[r.__schemas__[t]]&&(r.__compiled__[t].validate=r.__compiled__[r.__schemas__[t]].validate,r.__compiled__[t].normalize=r.__compiled__[r.__schemas__[t]].normalize)})),r.__compiled__[""]={validate:null,normalize:function(t,_){_.normalize(t)}};const m=Object.keys(r.__compiled__).filter((function(t){return t.length>0&&r.__compiled__[t]})).map(n).join("|");r.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+o.src_ZPCc+"))("+m+")","i"),r.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+o.src_ZPCc+"))("+m+")","ig"),r.re.schema_at_start=RegExp("^"+r.re.schema_search.source,"i"),r.re.pretest=RegExp("("+r.re.schema_test.source+")|("+r.re.host_fuzzy_test.source+")|@","i"),function(t){t.__index__=-1,t.__text_cache__=""}(r)}function p(t,_){const e=t.__index__,s=t.__last_index__,r=t.__text_cache__.slice(e,s);this.schema=t.__schema__.toLowerCase(),this.index=e+_,this.lastIndex=s+_,this.raw=r,this.text=r,this.url=r}function m(t,_){const e=new p(t,_);return t.__compiled__[e.schema].normalize(e,t),e}function d(t,_){if(!(this instanceof d))return new d(t,_);var e;_||(e=t,Object.keys(e||{}).reduce((function(t,_){return t||o.hasOwnProperty(_)}),!1)&&(_=t,t={})),this.__opts__=r({},o,_),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},h,t),this.__compiled__={},this.__tlds__=a,this.__tlds_replaced__=!1,this.re={},u(this)}d.prototype.add=function(t,_){return this.__schemas__[t]=_,u(this),this},d.prototype.set=function(t){return this.__opts__=r(this.__opts__,t),this},d.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let _,e,s,r,i,c,n,o,h;if(this.re.schema_test.test(t))for(n=this.re.schema_search,n.lastIndex=0;null!==(_=n.exec(t));)if(r=this.testSchemaAt(t,_[2],n.lastIndex),r){this.__schema__=_[2],this.__index__=_.index+_[1].length,this.__last_index__=_.index+_[0].length+r;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(o=t.search(this.re.host_fuzzy_test),o>=0&&(this.__index__<0||o=0&&null!==(s=t.match(this.re.email_fuzzy))&&(i=s.index+s[1].length,c=s.index+s[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=c))),this.__index__>=0},d.prototype.pretest=function(t){return this.re.pretest.test(t)},d.prototype.testSchemaAt=function(t,_,e){return this.__compiled__[_.toLowerCase()]?this.__compiled__[_.toLowerCase()].validate(t,e,this):0},d.prototype.match=function(t){const _=[];let e=0;this.__index__>=0&&this.__text_cache__===t&&(_.push(m(this,e)),e=this.__last_index__);let s=e?t.slice(e):t;for(;this.test(s);)_.push(m(this,e)),s=s.slice(this.__last_index__),e+=this.__last_index__;return _.length?_:null},d.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const _=this.re.schema_at_start.exec(t);if(!_)return null;const e=this.testSchemaAt(t,_[2],_[0].length);return e?(this.__schema__=_[2],this.__index__=_.index+_[1].length,this.__last_index__=_.index+_[0].length+e,m(this,0)):null},d.prototype.tlds=function(t,_){return t=Array.isArray(t)?t:[t],_?(this.__tlds__=this.__tlds__.concat(t).sort().filter((function(t,_,e){return t!==e[_-1]})).reverse(),u(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,u(this),this)},d.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),"mailto:"!==t.schema||/^mailto:/i.test(t.url)||(t.url="mailto:"+t.url)},d.prototype.onCompile=function(){};export{d as default}; diff --git a/isamples_export_client/ui/_npm/markdown-it@14.1.0/_esm.js b/isamples_export_client/ui/_npm/markdown-it@14.1.0/_esm.js new file mode 100644 index 0000000..bef8e0f --- /dev/null +++ b/isamples_export_client/ui/_npm/markdown-it@14.1.0/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/markdown-it@14.1.0/index.mjs + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +import*as t from"../mdurl@2.0.0/_esm.js";import*as e from"../uc.micro@2.1.0/_esm.js";import{decodeHTML as n}from"../entities@4.5.0/_esm.js";import r from"../linkify-it@5.0.0/_esm.js";import s from"../punycode.js@2.3.1/_esm.js";function o(t){return"[object String]"===function(t){return Object.prototype.toString.call(t)}(t)}const i=Object.prototype.hasOwnProperty;function c(t){return Array.prototype.slice.call(arguments,1).forEach((function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach((function(n){t[n]=e[n]}))}})),t}function l(t,e,n){return[].concat(t.slice(0,e),n,t.slice(e+1))}function a(t){return!(t>=55296&&t<=57343)&&(!(t>=64976&&t<=65007)&&(65535!=(65535&t)&&65534!=(65535&t)&&(!(t>=0&&t<=8)&&(11!==t&&(!(t>=14&&t<=31)&&(!(t>=127&&t<=159)&&!(t>1114111)))))))}function h(t){if(t>65535){const e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}const u=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,p=new RegExp(u.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function d(t){return t.indexOf("\\")<0&&t.indexOf("&")<0?t:t.replace(p,(function(t,e,r){return e||function(t,e){if(35===e.charCodeAt(0)&&f.test(e)){const n="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return a(n)?h(n):t}const r=n(t);return r!==t?r:t}(t,r)}))}const k=/[&<>"]/,m=/[&<>"]/g,g={"&":"&","<":"<",">":">",'"':"""};function b(t){return g[t]}function _(t){return k.test(t)?t.replace(m,b):t}const C=/[.?*+^$[\]\\(){}|-]/g;function y(t){switch(t){case 9:case 32:return!0}return!1}function A(t){if(t>=8192&&t<=8202)return!0;switch(t){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function x(t){return e.P.test(t)||e.S.test(t)}function M(t){switch(t){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function v(t){return t=t.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(t=t.replace(/ẞ/g,"ß")),t.toLowerCase().toUpperCase()}const w={mdurl:t,ucmicro:e};var S=Object.freeze({__proto__:null,lib:w,assign:c,isString:o,has:function(t,e){return i.call(t,e)},unescapeMd:function(t){return t.indexOf("\\")<0?t:t.replace(u,"$1")},unescapeAll:d,isValidEntityCode:a,fromCodePoint:h,escapeHtml:_,arrayReplaceAt:l,isSpace:y,isWhiteSpace:A,isMdAsciiPunct:M,isPunctChar:x,escapeRE:function(t){return t.replace(C,"\\$&")},normalizeReference:v});var I=Object.freeze({__proto__:null,parseLinkLabel:function(t,e,n){let r,s,o,i;const c=t.posMax,l=t.pos;for(t.pos=e+1,r=1;t.pos32))return o;if(41===r){if(0===i)break;i--}s++}return e===s||0!==i||(o.str=d(t.slice(e,s)),o.pos=s,o.ok=!0),o},parseLinkTitle:function(t,e,n,r){let s,o=e;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)i.str=r.str,i.marker=r.marker;else{if(o>=n)return i;let r=t.charCodeAt(o);if(34!==r&&39!==r&&40!==r)return i;e++,o++,40===r&&(r=41),i.marker=r}for(;o"+_(o.content)+""},L.code_block=function(t,e,n,r,s){const o=t[e];return""+_(t[e].content)+"\n"},L.fence=function(t,e,n,r,s){const o=t[e],i=o.info?d(o.info).trim():"";let c,l="",a="";if(i){const t=i.split(/(\s+)/g);l=t[0],a=t.slice(2).join("")}if(c=n.highlight&&n.highlight(o.content,l,a)||_(o.content),0===c.indexOf("${c}\n`}return`
${c}
\n`},L.image=function(t,e,n,r,s){const o=t[e];return o.attrs[o.attrIndex("alt")][1]=s.renderInlineAsText(o.children,n,r),s.renderToken(t,e,n)},L.hardbreak=function(t,e,n){return n.xhtmlOut?"
\n":"
\n"},L.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},L.text=function(t,e){return _(t[e].content)},L.html_block=function(t,e){return t[e].content},L.html_inline=function(t,e){return t[e].content},z.prototype.renderAttrs=function(t){let e,n,r;if(!t.attrs)return"";for(r="",e=0,n=t.attrs.length;e\n":">",s},z.prototype.renderInline=function(t,e,n){let r="";const s=this.rules;for(let o=0,i=t.length;o=0&&(n=this.attrs[e][1]),n},E.prototype.attrJoin=function(t,e){const n=this.attrIndex(t);n<0?this.attrPush([t,e]):this.attrs[n][1]=this.attrs[n][1]+" "+e},$.prototype.Token=E;const O=/\r\n?|\n/g,q=/\0/g;function P(t){return/^<\/a\s*>/i.test(t)}const j=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,R=/\((c|tm|r)\)/i,Z=/\((c|tm|r)\)/gi,D={c:"©",r:"®",tm:"™"};function N(t,e){return D[e.toLowerCase()]}function B(t){let e=0;for(let n=t.length-1;n>=0;n--){const r=t[n];"text"!==r.type||e||(r.content=r.content.replace(Z,N)),"link_open"===r.type&&"auto"===r.info&&e--,"link_close"===r.type&&"auto"===r.info&&e++}}function W(t){let e=0;for(let n=t.length-1;n>=0;n--){const r=t[n];"text"!==r.type||e||j.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&e--,"link_close"===r.type&&"auto"===r.info&&e++}}const F=/['"]/,U=/['"]/g,G="’";function H(t,e,n){return t.slice(0,e)+n+t.slice(e+1)}function J(t,e){let n;const r=[];for(let s=0;s=0&&!(r[n].level<=i);n--);if(r.length=n+1,"text"!==o.type)continue;let c=o.content,l=0,a=c.length;t:for(;l=0)d=c.charCodeAt(h.index-1);else for(n=s-1;n>=0&&("softbreak"!==t[n].type&&"hardbreak"!==t[n].type);n--)if(t[n].content){d=t[n].content.charCodeAt(t[n].content.length-1);break}let k=32;if(l=48&&d<=57&&(p=u=!1),u&&p&&(u=m,p=g),u||p){if(p)for(n=r.length-1;n>=0;n--){let u=r[n];if(r[n].level=0;i--){const c=s[i];if("link_close"!==c.type){if("html_inline"===c.type&&(n=c.content,/^\s]/i.test(n)&&o>0&&o--,P(c.content)&&o++),!(o>0)&&"text"===c.type&&t.md.linkify.test(c.content)){const n=c.content;let o=t.md.linkify.match(n);const a=[];let h=c.level,u=0;o.length>0&&0===o[0].index&&i>0&&"text_special"===s[i-1].type&&(o=o.slice(1));for(let e=0;eu){const e=new t.Token("text","",0);e.content=n.slice(u,c),e.level=h,a.push(e)}const l=new t.Token("link_open","a",1);l.attrs=[["href",s]],l.level=h++,l.markup="linkify",l.info="auto",a.push(l);const p=new t.Token("text","",0);p.content=i,p.level=h,a.push(p);const f=new t.Token("link_close","a",-1);f.level=--h,f.markup="linkify",f.info="auto",a.push(f),u=o[e].lastIndex}if(u=0;e--)"inline"===t.tokens[e].type&&(R.test(t.tokens[e].content)&&B(t.tokens[e].children),j.test(t.tokens[e].content)&&W(t.tokens[e].children))}],["smartquotes",function(t){if(t.md.options.typographer)for(let e=t.tokens.length-1;e>=0;e--)"inline"===t.tokens[e].type&&F.test(t.tokens[e].content)&&J(t.tokens[e].children,t)}],["text_join",function(t){let e,n;const r=t.tokens,s=r.length;for(let t=0;t0&&this.level++,this.tokens.push(r),r},Q.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Q.prototype.skipEmptyLines=function(t){for(let e=this.lineMax;te;)if(!y(this.src.charCodeAt(--t)))return t+1;return t},Q.prototype.skipChars=function(t,e){for(let n=this.src.length;tn;)if(e!==this.src.charCodeAt(--t))return t+1;return t},Q.prototype.getLines=function(t,e,n,r){if(t>=e)return"";const s=new Array(e-t);for(let o=0,i=t;in?new Array(t-n+1).join(" ")+this.src.slice(a,l):this.src.slice(a,l)}return s.join("")},Q.prototype.Token=E;function X(t,e){const n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.slice(n,r)}function Y(t){const e=[],n=t.length;let r=0,s=t.charCodeAt(r),o=!1,i=0,c="";for(;r=r)return-1;let o=t.src.charCodeAt(s++);if(o<48||o>57)return-1;for(;;){if(s>=r)return-1;if(o=t.src.charCodeAt(s++),!(o>=48&&o<=57)){if(41===o||46===o)break;return-1}if(s-n>=10)return-1}return s`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",rt="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",st=new RegExp("^(?:"+nt+"|"+rt+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),ot=new RegExp("^(?:"+nt+"|"+rt+")"),it=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(ot.source+"\\s*$"),/^$/,!1]];const ct=[["table",function(t,e,n,r){if(e+2>n)return!1;let s=e+1;if(t.sCount[s]=4)return!1;let o=t.bMarks[s]+t.tShift[s];if(o>=t.eMarks[s])return!1;const i=t.src.charCodeAt(o++);if(124!==i&&45!==i&&58!==i)return!1;if(o>=t.eMarks[s])return!1;const c=t.src.charCodeAt(o++);if(124!==c&&45!==c&&58!==c&&!y(c))return!1;if(45===i&&y(c))return!1;for(;o=4)return!1;a=Y(l),a.length&&""===a[0]&&a.shift(),a.length&&""===a[a.length-1]&&a.pop();const u=a.length;if(0===u||u!==h.length)return!1;if(r)return!0;const p=t.parentType;t.parentType="table";const f=t.md.block.ruler.getRules("blockquote"),d=[e,0];t.push("table_open","table",1).map=d,t.push("thead_open","thead",1).map=[e,e+1],t.push("tr_open","tr",1).map=[e,e+1];for(let e=0;e=4)break;if(a=Y(l),a.length&&""===a[0]&&a.shift(),a.length&&""===a[a.length-1]&&a.pop(),m+=u-a.length,m>65536)break;if(s===e+2){t.push("tbody_open","tbody",1).map=k=[e+2,0]}t.push("tr_open","tr",1).map=[s,s+1];for(let e=0;e=4))break;r++,s=r}t.line=s;const o=t.push("code_block","code",0);return o.content=t.getLines(e,s,4+t.blkIndent,!1)+"\n",o.map=[e,t.line],!0}],["fence",function(t,e,n,r){let s=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(t.sCount[e]-t.blkIndent>=4)return!1;if(s+3>o)return!1;const i=t.src.charCodeAt(s);if(126!==i&&96!==i)return!1;let c=s;s=t.skipChars(s,i);let l=s-c;if(l<3)return!1;const a=t.src.slice(c,s),h=t.src.slice(s,o);if(96===i&&h.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;let u=e,p=!1;for(;(u++,!(u>=n))&&(s=c=t.bMarks[u]+t.tShift[u],o=t.eMarks[u],!(s=4||(s=t.skipChars(s,i),s-c=4)return!1;if(62!==t.src.charCodeAt(s))return!1;if(r)return!0;const c=[],l=[],a=[],h=[],u=t.md.block.ruler.getRules("blockquote"),p=t.parentType;t.parentType="blockquote";let f,d=!1;for(f=e;f=o)break;if(62===t.src.charCodeAt(s++)&&!e){let e,n,r=t.sCount[f]+1;32===t.src.charCodeAt(s)?(s++,r++,n=!1,e=!0):9===t.src.charCodeAt(s)?(e=!0,(t.bsCount[f]+r)%4==3?(s++,r++,n=!1):n=!0):e=!1;let i=r;for(c.push(t.bMarks[f]),t.bMarks[f]=s;s=o,l.push(t.bsCount[f]),t.bsCount[f]=t.sCount[f]+1+(e?1:0),a.push(t.sCount[f]),t.sCount[f]=i-r,h.push(t.tShift[f]),t.tShift[f]=s-t.bMarks[f];continue}if(d)break;let r=!1;for(let e=0,s=u.length;e";const g=[e,0];m.map=g,t.md.block.tokenize(t,e,f),t.push("blockquote_close","blockquote",-1).markup=">",t.lineMax=i,t.parentType=p,g[1]=t.line;for(let n=0;n=4)return!1;let o=t.bMarks[e]+t.tShift[e];const i=t.src.charCodeAt(o++);if(42!==i&&45!==i&&95!==i)return!1;let c=1;for(;o=4)return!1;if(t.listIndent>=0&&t.sCount[l]-t.listIndent>=4&&t.sCount[l]=t.blkIndent&&(f=!0),(p=et(t,l))>=0){if(h=!0,i=t.bMarks[l]+t.tShift[l],u=Number(t.src.slice(i,p-1)),f&&1!==u)return!1}else{if(!((p=tt(t,l))>=0))return!1;h=!1}if(f&&t.skipSpaces(p)>=t.eMarks[l])return!1;if(r)return!0;const d=t.src.charCodeAt(p-1),k=t.tokens.length;h?(c=t.push("ordered_list_open","ol",1),1!==u&&(c.attrs=[["start",u]])):c=t.push("bullet_list_open","ul",1);const m=[l,0];c.map=m,c.markup=String.fromCharCode(d);let g=!1;const b=t.md.block.ruler.getRules("list"),_=t.parentType;for(t.parentType="list";l=s?1:r-e,f>4&&(f=1);const k=e+f;c=t.push("list_item_open","li",1),c.markup=String.fromCharCode(d);const m=[l,0];c.map=m,h&&(c.info=t.src.slice(i,p-1));const _=t.tight,C=t.tShift[l],y=t.sCount[l],A=t.listIndent;if(t.listIndent=t.blkIndent,t.blkIndent=k,t.tight=!0,t.tShift[l]=u-t.bMarks[l],t.sCount[l]=r,u>=s&&t.isEmpty(l+1)?t.line=Math.min(t.line+2,n):t.md.block.tokenize(t,l,n,!0),t.tight&&!g||(a=!1),g=t.line-l>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=A,t.tShift[l]=C,t.sCount[l]=y,t.tight=_,c=t.push("list_item_close","li",-1),c.markup=String.fromCharCode(d),l=t.line,m[1]=l,l>=n)break;if(t.sCount[l]=4)break;let x=!1;for(let e=0,r=b.length;e=4)return!1;if(91!==t.src.charCodeAt(s))return!1;function c(e){const n=t.lineMax;if(e>=n||t.isEmpty(e))return null;let r=!1;if(t.sCount[e]-t.blkIndent>3&&(r=!0),t.sCount[e]<0&&(r=!0),!r){const r=t.md.block.ruler.getRules("reference"),s=t.parentType;t.parentType="reference";let o=!1;for(let s=0,i=r.length;s=4)return!1;if(!t.md.options.html)return!1;if(60!==t.src.charCodeAt(s))return!1;let i=t.src.slice(s,o),c=0;for(;c=4)return!1;let i=t.src.charCodeAt(s);if(35!==i||s>=o)return!1;let c=1;for(i=t.src.charCodeAt(++s);35===i&&s6||ss&&y(t.src.charCodeAt(l-1))&&(o=l),t.line=e+1;const a=t.push("heading_open","h"+String(c),1);a.markup="########".slice(0,c),a.map=[e,t.line];const h=t.push("inline","",0);return h.content=t.src.slice(s,o).trim(),h.map=[e,t.line],h.children=[],t.push("heading_close","h"+String(c),-1).markup="########".slice(0,c),!0},["paragraph","reference","blockquote"]],["lheading",function(t,e,n){const r=t.md.block.ruler.getRules("paragraph");if(t.sCount[e]-t.blkIndent>=4)return!1;const s=t.parentType;t.parentType="paragraph";let o,i=0,c=e+1;for(;c3)continue;if(t.sCount[c]>=t.blkIndent){let e=t.bMarks[c]+t.tShift[c];const n=t.eMarks[c];if(e=n))){i=61===o?1:2;break}}if(t.sCount[c]<0)continue;let e=!1;for(let s=0,o=r.length;s3)continue;if(t.sCount[o]<0)continue;let e=!1;for(let s=0,i=r.length;s=n))&&!(t.sCount[i]=o){t.line=n;break}const e=t.line;let l=!1;for(let o=0;o=t.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");t.tight=!c,t.isEmpty(t.line-1)&&(c=!0),i=t.line,i0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(s),r},at.prototype.scanDelims=function(t,e){const n=this.posMax,r=this.src.charCodeAt(t),s=t>0?this.src.charCodeAt(t-1):32;let o=t;for(;o?@[]^_`{|}~-".split("").forEach((function(t){pt[t.charCodeAt(0)]=1}));var dt={tokenize:function(t,e){const n=t.pos,r=t.src.charCodeAt(n);if(e)return!1;if(126!==r)return!1;const s=t.scanDelims(t.pos,!0);let o=s.length;const i=String.fromCharCode(r);if(o<2)return!1;let c;o%2&&(c=t.push("text","",0),c.content=i,o--);for(let e=0;e=0;n--){const r=e[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const s=e[r.end],o=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===s.token+1,i=String.fromCharCode(r.marker),c=t.tokens[r.token];c.type=o?"strong_open":"em_open",c.tag=o?"strong":"em",c.nesting=1,c.markup=o?i+i:i,c.content="";const l=t.tokens[s.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?i+i:i,l.content="",o&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--)}}var mt={tokenize:function(t,e){const n=t.pos,r=t.src.charCodeAt(n);if(e)return!1;if(95!==r&&42!==r)return!1;const s=t.scanDelims(t.pos,42===r);for(let e=0;e\x00-\x20]*)$/;const _t=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Ct=/^&([a-z][a-z0-9]{1,31});/i;function yt(t){const e={},n=t.length;if(!n)return;let r=0,s=-2;const o=[];for(let i=0;ic;l-=o[l]+1){const e=t[l];if(e.marker===n.marker&&(e.open&&e.end<0)){let r=!1;if((e.close||n.open)&&(e.length+n.length)%3==0&&(e.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!t[l-1].open?o[l-1]+1:0;o[i]=i-l+r,o[l]=r,n.open=!1,e.end=i,e.close=!1,a=-1,s=-2;break}}}-1!==a&&(e[n.marker][(n.open?3:0)+(n.length||0)%3]=a)}}const At=[["text",function(t,e){let n=t.pos;for(;n0)return!1;const n=t.pos;if(n+3>t.posMax)return!1;if(58!==t.src.charCodeAt(n))return!1;if(47!==t.src.charCodeAt(n+1))return!1;if(47!==t.src.charCodeAt(n+2))return!1;const r=t.pending.match(ut);if(!r)return!1;const s=r[1],o=t.md.linkify.matchAtStart(t.src.slice(n-s.length));if(!o)return!1;let i=o.url;if(i.length<=s.length)return!1;i=i.replace(/\*+$/,"");const c=t.md.normalizeLink(i);if(!t.md.validateLink(c))return!1;if(!e){t.pending=t.pending.slice(0,-s.length);const e=t.push("link_open","a",1);e.attrs=[["href",c]],e.markup="linkify",e.info="auto";t.push("text","",0).content=t.md.normalizeLinkText(i);const n=t.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return t.pos+=i.length-s.length,!0}],["newline",function(t,e){let n=t.pos;if(10!==t.src.charCodeAt(n))return!1;const r=t.pending.length-1,s=t.posMax;if(!e)if(r>=0&&32===t.pending.charCodeAt(r))if(r>=1&&32===t.pending.charCodeAt(r-1)){let e=r-1;for(;e>=1&&32===t.pending.charCodeAt(e-1);)e--;t.pending=t.pending.slice(0,e),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(n++;n=r)return!1;let s=t.src.charCodeAt(n);if(10===s){for(e||t.push("hardbreak","br",0),n++;n=55296&&s<=56319&&n+1=56320&&e<=57343&&(o+=t.src[n+1],n++)}const i="\\"+o;if(!e){const e=t.push("text_special","",0);s<256&&0!==pt[s]?e.content=o:e.content=i,e.markup=i,e.info="escape"}return t.pos=n+1,!0}],["backticks",function(t,e){let n=t.pos;if(96!==t.src.charCodeAt(n))return!1;const r=n;n++;const s=t.posMax;for(;n=u)return!1;if(l=d,s=t.md.helpers.parseLinkDestination(t.src,d,t.posMax),s.ok){for(i=t.md.normalizeLink(s.str),t.md.validateLink(i)?d=s.pos:i="",l=d;d=u||41!==t.src.charCodeAt(d))&&(a=!0),d++}if(a){if(void 0===t.env.references)return!1;if(d=0?r=t.src.slice(l,d++):d=f+1):d=f+1,r||(r=t.src.slice(p,f)),o=t.env.references[v(r)],!o)return t.pos=h,!1;i=o.href,c=o.title}if(!e){t.pos=p,t.posMax=f;const e=[["href",i]];t.push("link_open","a",1).attrs=e,c&&e.push(["title",c]),t.linkLevel++,t.md.inline.tokenize(t),t.linkLevel--,t.push("link_close","a",-1)}return t.pos=d,t.posMax=u,!0}],["image",function(t,e){let n,r,s,o,i,c,l,a,h="";const u=t.pos,p=t.posMax;if(33!==t.src.charCodeAt(t.pos))return!1;if(91!==t.src.charCodeAt(t.pos+1))return!1;const f=t.pos+2,d=t.md.helpers.parseLinkLabel(t,t.pos+1,!1);if(d<0)return!1;if(o=d+1,o=p)return!1;for(a=o,c=t.md.helpers.parseLinkDestination(t.src,o,t.posMax),c.ok&&(h=t.md.normalizeLink(c.str),t.md.validateLink(h)?o=c.pos:h=""),a=o;o=p||41!==t.src.charCodeAt(o))return t.pos=u,!1;o++}else{if(void 0===t.env.references)return!1;if(o=0?s=t.src.slice(a,o++):o=d+1):o=d+1,s||(s=t.src.slice(f,d)),i=t.env.references[v(s)],!i)return t.pos=u,!1;h=i.href,l=i.title}if(!e){r=t.src.slice(f,d);const e=[];t.md.inline.parse(r,t.md,t.env,e);const n=t.push("image","img",0),s=[["src",h],["alt",""]];n.attrs=s,n.children=e,n.content=r,l&&s.push(["title",l])}return t.pos=o,t.posMax=p,!0}],["autolink",function(t,e){let n=t.pos;if(60!==t.src.charCodeAt(n))return!1;const r=t.pos,s=t.posMax;for(;;){if(++n>=s)return!1;const e=t.src.charCodeAt(n);if(60===e)return!1;if(62===e)break}const o=t.src.slice(r+1,n);if(bt.test(o)){const n=t.md.normalizeLink(o);if(!t.md.validateLink(n))return!1;if(!e){const e=t.push("link_open","a",1);e.attrs=[["href",n]],e.markup="autolink",e.info="auto";t.push("text","",0).content=t.md.normalizeLinkText(o);const r=t.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return t.pos+=o.length+2,!0}if(gt.test(o)){const n=t.md.normalizeLink("mailto:"+o);if(!t.md.validateLink(n))return!1;if(!e){const e=t.push("link_open","a",1);e.attrs=[["href",n]],e.markup="autolink",e.info="auto";t.push("text","",0).content=t.md.normalizeLinkText(o);const r=t.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return t.pos+=o.length+2,!0}return!1}],["html_inline",function(t,e){if(!t.md.options.html)return!1;const n=t.posMax,r=t.pos;if(60!==t.src.charCodeAt(r)||r+2>=n)return!1;const s=t.src.charCodeAt(r+1);if(33!==s&&63!==s&&47!==s&&!function(t){const e=32|t;return e>=97&&e<=122}(s))return!1;const o=t.src.slice(r).match(st);if(!o)return!1;if(!e){const e=t.push("html_inline","",0);e.content=o[0],i=e.content,/^\s]/i.test(i)&&t.linkLevel++,function(t){return/^<\/a\s*>/i.test(t)}(e.content)&&t.linkLevel--}var i;return t.pos+=o[0].length,!0}],["entity",function(t,e){const r=t.pos,s=t.posMax;if(38!==t.src.charCodeAt(r))return!1;if(r+1>=s)return!1;if(35===t.src.charCodeAt(r+1)){const n=t.src.slice(r).match(_t);if(n){if(!e){const e="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),r=t.push("text_special","",0);r.content=a(e)?h(e):h(65533),r.markup=n[0],r.info="entity"}return t.pos+=n[0].length,!0}}else{const s=t.src.slice(r).match(Ct);if(s){const r=n(s[0]);if(r!==s[0]){if(!e){const e=t.push("text_special","",0);e.content=r,e.markup=s[0],e.info="entity"}return t.pos+=s[0].length,!0}}}return!1}]],xt=[["balance_pairs",function(t){const e=t.tokens_meta,n=t.tokens_meta.length;yt(t.delimiters);for(let t=0;t0&&r++,"text"===s[e].type&&e+1=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;i||t.pos++,o[e]=t.pos},Mt.prototype.tokenize=function(t){const e=this.ruler.getRules(""),n=e.length,r=t.posMax,s=t.md.options.maxNesting;for(;t.pos=t.pos)throw new Error("inline rule didn't increment state.pos");break}if(i){if(t.pos>=r)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Mt.prototype.parse=function(t,e,n,r){const s=new this.State(t,e,n,r);this.tokenize(s);const o=this.ruler2.getRules(""),i=o.length;for(let t=0;t=0))try{n.hostname=s.toASCII(n.hostname)}catch(t){}return t.encode(t.format(n))}function Tt(e){const n=t.parse(e,!0);if(n.hostname&&(!n.protocol||Lt.indexOf(n.protocol)>=0))try{n.hostname=s.toUnicode(n.hostname)}catch(t){}return t.decode(t.format(n),t.decode.defaultChars+"%")}function Et(t,e){if(!(this instanceof Et))return new Et(t,e);e||o(t)||(e=t||{},t="default"),this.inline=new Mt,this.block=new lt,this.core=new K,this.renderer=new z,this.linkify=new r,this.validateLink=It,this.normalizeLink=zt,this.normalizeLinkText=Tt,this.utils=S,this.helpers=c({},I),this.options={},this.configure(t),e&&this.set(e)}Et.prototype.set=function(t){return c(this.options,t),this},Et.prototype.configure=function(t){const e=this;if(o(t)){const e=t;if(!(t=vt[e]))throw new Error('Wrong `markdown-it` preset "'+e+'", check name')}if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach((function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)})),this},Et.prototype.enable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){n=n.concat(this[e].ruler.enable(t,!0))}),this),n=n.concat(this.inline.ruler2.enable(t,!0));const r=t.filter((function(t){return n.indexOf(t)<0}));if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Et.prototype.disable=function(t,e){let n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach((function(e){n=n.concat(this[e].ruler.disable(t,!0))}),this),n=n.concat(this.inline.ruler2.disable(t,!0));const r=t.filter((function(t){return n.indexOf(t)<0}));if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Et.prototype.use=function(t){const e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},Et.prototype.parse=function(t,e){if("string"!=typeof t)throw new Error("Input data should be a String");const n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},Et.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},Et.prototype.parseInline=function(t,e){const n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},Et.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};export{Et as default}; diff --git a/isamples_export_client/ui/_npm/mdurl@2.0.0/_esm.js b/isamples_export_client/ui/_npm/mdurl@2.0.0/_esm.js new file mode 100644 index 0000000..8994171 --- /dev/null +++ b/isamples_export_client/ui/_npm/mdurl@2.0.0/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/mdurl@2.0.0/index.mjs + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +const t={};function e(s,n){"string"!=typeof n&&(n=e.defaultChars);const o=function(e){let s=t[e];if(s)return s;s=t[e]=[];for(let t=0;t<128;t++){const e=String.fromCharCode(t);s.push(e)}for(let t=0;t=55296&&t<=57343?"���":String.fromCharCode(t),s+=6;continue}}if(240==(248&h)&&s+91114111?e+="����":(t-=65536,e+=String.fromCharCode(55296+(t>>10),56320+(1023&t))),s+=9;continue}}e+="�"}}return e}))}e.defaultChars=";/?:@&=+$,#",e.componentChars="";const s={};function n(t,e,o){"string"!=typeof e&&(o=e,e=n.defaultChars),void 0===o&&(o=!0);const h=function(t){let e=s[t];if(e)return e;e=s[t]=[];for(let t=0;t<128;t++){const s=String.fromCharCode(t);/^[0-9a-z]$/i.test(s)?e.push(s):e.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2))}for(let s=0;s=55296&&n<=57343){if(n>=55296&&n<=56319&&e+1=56320&&s<=57343){i+=encodeURIComponent(t[e]+t[e+1]),e++;continue}}i+="%EF%BF%BD"}else i+=encodeURIComponent(t[e])}return i}function o(t){let e="";return e+=t.protocol||"",e+=t.slashes?"//":"",e+=t.auth?t.auth+"@":"",t.hostname&&-1!==t.hostname.indexOf(":")?e+="["+t.hostname+"]":e+=t.hostname||"",e+=t.port?":"+t.port:"",e+=t.pathname||"",e+=t.search||"",e+=t.hash||"",e}function h(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()";const i=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),f=["%","/","?",";","#"].concat(c),p=["/","?","#"],u=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},C={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function d(t,e){if(t&&t instanceof h)return t;const s=new h;return s.parse(t,e),s}h.prototype.parse=function(t,e){let s,n,o,h=t;if(h=h.trim(),!e&&1===t.split("#").length){const t=a.exec(h);if(t)return this.pathname=t[1],t[2]&&(this.search=t[2]),this}let r=i.exec(h);if(r&&(r=r[0],s=r.toLowerCase(),this.protocol=r,h=h.substr(r.length)),(e||r||h.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===h.substr(0,2),!o||r&&g[r]||(h=h.substr(2),this.slashes=!0)),!g[r]&&(o||r&&!C[r])){let t,e,s=-1;for(let t=0;t127?n+="x":n+=s[t];if(!n.match(u)){const n=t.slice(0,e),o=t.slice(e+1),i=s.match(m);i&&(n.push(i[1]),o.unshift(i[2])),o.length&&(h=o.join(".")+h),this.hostname=n.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),i&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=h.indexOf("#");-1!==l&&(this.hash=h.substr(l),h=h.slice(0,l));const c=h.indexOf("?");return-1!==c&&(this.search=h.substr(c),h=h.slice(0,c)),h&&(this.pathname=h),C[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this},h.prototype.parseHost=function(t){let e=r.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};export{e as decode,n as encode,o as format,d as parse};export default null; diff --git a/isamples_export_client/ui/_npm/punycode.js@2.3.1/_esm.js b/isamples_export_client/ui/_npm/punycode.js@2.3.1/_esm.js new file mode 100644 index 0000000..67c71b0 --- /dev/null +++ b/isamples_export_client/ui/_npm/punycode.js@2.3.1/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/punycode.js@2.3.1/punycode.es6.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +const t=2147483647,o=36,n=/^xn--/,e=/[^\0-\x7F]/,r=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},s=Math.floor,i=String.fromCharCode;function f(t){throw new RangeError(c[t])}function l(t,o){const n=t.split("@");let e="";n.length>1&&(e=n[0]+"@",t=n[1]);const c=function(t,o){const n=[];let e=t.length;for(;e--;)n[e]=o(t[e]);return n}((t=t.replace(r,".")).split("."),o).join(".");return e+c}function u(t){const o=[];let n=0;const e=t.length;for(;n=55296&&r<=56319&&nString.fromCodePoint(...t),d=function(t,o){return t+22+75*(t<26)-((0!=o)<<5)},h=function(t,n,e){let r=0;for(t=e?s(t/700):t>>1,t+=s(t/n);t>455;r+=o)t=s(t/35);return s(r+36*t/(t+38))},p=function(n){const e=[],r=n.length;let c=0,i=128,l=72,u=n.lastIndexOf("-");u<0&&(u=0);for(let t=0;t=128&&f("not-basic"),e.push(n.charCodeAt(t));for(let d=u>0?u+1:0;d=r&&f("invalid-input");const u=(a=n.charCodeAt(d++))>=48&&a<58?a-48+26:a>=65&&a<91?a-65:a>=97&&a<123?a-97:o;u>=o&&f("invalid-input"),u>s((t-c)/e)&&f("overflow"),c+=u*e;const h=i<=l?1:i>=l+26?26:i-l;if(us(t/p)&&f("overflow"),e*=p}const p=e.length+1;l=h(c-u,p,0==u),s(c/p)>t-i&&f("overflow"),i+=s(c/p),c%=p,e.splice(c++,0,i)}var a;return String.fromCodePoint(...e)},g=function(n){const e=[],r=(n=u(n)).length;let c=128,l=0,a=72;for(const t of n)t<128&&e.push(i(t));const p=e.length;let g=p;for(p&&e.push("-");g=c&&ts((t-l)/u)&&f("overflow"),l+=(r-c)*u,c=r;for(const r of n)if(rt&&f("overflow"),r===c){let t=l;for(let n=o;;n+=o){const r=n<=a?1:n>=a+26?26:n-a;if(t>1)+"px"})}for(;a',e)}e.addRule(".spin-vml","behavior:url(#default#VML)"),u.prototype.lines=function(e,i){var o=i.scale*(i.length+i.width),n=2*i.scale*o;function s(){return l(t("group",{coordsize:n+" "+n,coordorigin:-o+" "+-o}),{width:n,height:n})}var a,c=-(i.width+i.length)*i.scale*2+"px",p=l(s(),{position:"absolute",top:c,left:c});function f(e,n,a){r(p,r(l(s(),{rotation:360/i.lines*e+"deg",left:~~n}),r(l(t("roundrect",{arcsize:i.corners}),{width:o,height:i.scale*i.width,left:i.scale*i.radius,top:-i.scale*i.width>>1,filter:a}),t("fill",{color:d(i.color,e),opacity:i.opacity}),t("stroke",{opacity:0}))))}if(i.shadow)for(a=1;a<=i.lines;a++)f(a,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(a=1;a<=i.lines;a++)f(a);return r(e,p)},u.prototype.opacity=function(t,e,i,o){var n=t.firstChild;o=o.shadow&&o.lines||0,n&&e+o=6,r={west:t[0],east:t[e?3:2],south:t[1],north:t[e?4:3]};return e&&(r.base=t[2],r.height=t[5]),r}function n(t){let{west:e,east:n,south:s,north:i}=r(t);return[[[e,i],[e,s],[n,s],[n,i],[e,i]]]}function s(t){if(!Array.isArray(t)||![4,6].includes(t.length)||t.some((t=>"number"!=typeof t)))return!1;let{west:e,east:n,south:s,north:i}=r(t);return s<=i&&e>=-180&&e<=180&&s>=-90&&n<=180&&n>=-180&&i<=90}function i(t){if(!s(t))return!1;let{west:e,east:n}=r(t);return e>n}function l(t){if(!Array.isArray(t)||0===t.length)return null;let e={west:180,south:90,east:-180,north:-90};t.forEach((t=>{if(!s(t))return;let n=r(t),i=["west","south"];for(let t in n){let r=i.includes(t)?Math.min:Math.max;e[t]=r(e[t],n[t])}}));let n=[e.west,e.south,e.east,e.north];return s(n)?n:null}function u(t){return"string"==typeof t&&t.length>0}function a(t){return"object"==typeof t&&t===Object(t)&&!Array.isArray(t)}function o(...t){if((t=t.filter((t=>Array.isArray(t)))).length>1){let e=Math.max(...t.map((t=>t.length))),r=[];for(let n=0;nt[n]))));return r}return 1===t.length?t[0]:[]}class h{constructor(t,e={},r=[]){if(!a(t))throw new Error("Given data is not an object");if(t instanceof h){for(let e of r)this[e]=t[e];t=t.toJSON()}this._keyMap=e,this._privateKeys=["_keyMap","_privateKeys"].concat(r);for(let r in t)void 0===this[r]&&(this[r]=r in e?e[r](t[r],this):t[r])}isItem(){return"Feature"===this.type}isCatalog(){return"Catalog"===this.type}isCatalogLike(){return this.isCatalog()||this.isCollection()}isCollection(){return"Collection"===this.type}isItemCollection(){return"FeatureCollection"===this.type}isCollectionCollection(){return!1}isAsset(){return!1}isLink(){return!1}getObjectType(){}getAbsoluteUrl(){return null}getMetadata(t){return this[t]}toGeoJSON(){return null}getBoundingBox(){return null}getCenter(){return function(t){if(!s(t))return null;let e=r(t),n=[];if(i(t)){let t=(e.west+360+e.east)/2;t>180&&(t-=360),n.push(t)}else n.push((e.west+e.east)/2);return n.push((e.south+e.north)/2),void 0!==e.base&&n.push((e.base+e.height)/2),n}(this.getBoundingBox())}getBoundingBoxes(){return[]}toJSON(){let t={};return Object.keys(this).forEach((e=>{if("function"==typeof this[e]||this._privateKeys.includes(e))return;let r=this[e];if(e in this._keyMap){let t=Array.isArray(r)?[]:{};for(let e in r)t[e]=r[e].toJSON();r=t}t[e]=r})),t}}const c=["http","https"];function g(t,r,n=!0){return function(t,r=null,n=!1,s=!0){"string"==typeof t&&t.startsWith("/vsicurl/")&&(t=t.replace(/^\/vsicurl\//,""));let i=e(t);if(r&&i.is("relative")&&!function(t){return"string"==typeof t&&t.startsWith("/vsi")&&!t.startsWith("/vsicurl/")}(t)){let t=e(r),n=t.path();n.endsWith("/")||n.endsWith(".json")||t.path(n+"/"),i=i.absoluteTo(t)}i.normalize(),n&&(i.query(""),i.fragment(""));return s?i.toString():i}(t,r,!1,n)}const m=["application/json","application/geo+json","text/json"],p=["image/gif","image/jpeg","image/apng","image/png","image/webp"],f=["image/tiff; application=geotiff; profile=cloud-optimized","image/vnd.stac.geotiff; cloud-optimized=true"],d=["application/geotiff","image/tiff; application=geotiff","image/vnd.stac.geotiff"].concat(f);function y(t,e,r=!1){return Array.isArray(e)||(e=[e]),!(!r||void 0!==t)||"string"==typeof t&&(e=e.map((t=>t.toLowerCase())),e.includes(t.toLowerCase()))}class x extends h{constructor(t,e=null,r={},n=[]){super(t,r,["_context"].concat(n)),this._context||(this._context=e)}getAbsoluteUrl(t=!0){return this._context?g(this.href,this._context.getAbsoluteUrl(),t):this.href.includes("://")?this.href:null}getContext(){return this._context}canBrowserDisplayImage(t=!1){if("string"!=typeof this.href)return!1;if(!t&&void 0===this.type)return!1;let r=new e(this.href),n=r.protocol().toLowerCase(),s=r.suffix().toLowerCase();return!(u(n)&&!c.includes(n))&&(!(!u(this.type)||!p.includes(this.type.toLowerCase()))||!(void 0!==this.type||!u(s)||"jpg"!==s&&!p.includes("image/"+s)))}isType(t){return u(this.type)&&y(this.type,t)}isGeoTIFF(){return this.isType(d)}isCOG(){return this.isType(f)}isHTTP(){let t=this.getAbsoluteUrl(!1).protocol().toLowerCase();return u(t)&&c.includes(t)}}class A extends x{constructor(t,e=null){super(t,e)}isLink(){return!0}getObjectType(){return"Link"}static fromLinks(t,e=null){return Array.isArray(t)?t.map((t=>a(t)?new A(t,e):t)):[]}}class b extends h{constructor(t,e=null,r={},n=[]){if(super(t,Object.assign({links:A.fromLinks},r),["_url"].concat(n)),!this._url&&(this._url=e,!this._url)){let t=this.getSelfLink();t&&(this._url=t.href)}}getAbsoluteUrl(){return this._url}setAbsoluteUrl(t){this._url=t}getStacLinksWithRel(t,e=!0){return this.getLinksWithRels([t]).filter((t=>function(t,e=!1){return y(t,m,e)}(t.type,e)))}getStacLinkWithRel(t,e=!0){const r=this.getStacLinksWithRel(t,e);return r.length>0?r[0]:null}getLinks(){return Array.isArray(this.links)?this.links.filter((t=>a(t)&&u(t.href))):[]}getLinkWithRel(t){return this.getLinks().find((e=>e.rel===t))||null}getLinksWithRels(t){return this.getLinks().filter((e=>t.includes(e.rel)))}getLinksWithOtherRels(t){return this.getLinks().filter((e=>!t.includes(e.rel)))}getSelfLink(){return this.getStacLinkWithRel("self")}getRootLink(){return this.getStacLinkWithRel("root")}getParentLink(){return this.getStacLinkWithRel("parent")}}class B extends b{constructor(t,e=null,r={},n=[]){super(t,e,r,n)}getAll(){return[]}}class k extends x{constructor(t,e=null,r=null){super(t,r,{},["_key"]),this._key||(this._key=e)}getObjectType(){return"Asset"}isAsset(){return!0}getAbsoluteUrl(t=!0){return this.isDefinition()?null:super.getAbsoluteUrl(t)}getKey(){return this._key}getMetadata(t){return void 0!==this[t]?this[t]:this._context?this._context.getMetadata(t):void 0}getBands(){return o(this["eo:bands"],this["raster:bands"])}findVisualBands(){let t={red:null,green:null,blue:null},e=this.getBands();for(let r in e){let n=parseInt(r,10),s=e[n];a(s)&&u(s.common_name)&&s.common_name in t&&(t[s.common_name]={index:n,band:s})}return Object.values(t).every((t=>null!==t))?t:null}findBand(t,e="name",r=null){Array.isArray(t)||(t=[t]),a(r)||(r=this.getBands());let n=r.findIndex((r=>a(r)&&t.includes(r[e])));return n>=0?{index:n,band:r[n]}:null}getBand(t){if(a(t)||null===t)return t;return this.getBands()[t]||null}getMinMaxValues(t=null){const e={minimum:null,maximum:null},r=t=>null!==t.minimum&&null!==t.maximum;if(t=this.getBand(t)){if(a(t.statistics)&&("number"==typeof t.statistics.minimum&&(e.minimum=t.statistics.minimum),"number"==typeof t.statistics.maximum&&(e.maximum=t.statistics.maximum),r(e)))return e;if(a(t.histogram)&&("number"==typeof t.histogram.min&&(e.minimum=t.histogram.min),"number"==typeof t.histogram.max&&(e.maximum=t.histogram.max),r(e)))return e}let n=this.getMetadata("classification:classes");if(Array.isArray(n)&&(n.reduce(((t,e)=>(t.minimum=Math.min(t.minimum,e.value),t.maximum=Math.max(t.maximum,e.value),t)),e),r(e)))return e;let s=this.getMetadata("file:values");if(Array.isArray(s)&&(s.reduce(((t,e)=>(t.minimum=Math.min(t.minimum,...e.values),t.maximum=Math.max(t.maximum,...e.values),t)),e),r(e)))return e;let i=a(t)&&t.data_type||this.getMetadata("file:data_type");return i&&(e.minimum=function(t){switch(t){case"int8":return-128;case"int16":return-32768;case"int32":return-2147483648}return t.startsWith("u")?0:null}(i),e.maximum=function(t){switch(t){case"int8":return 127;case"uint8":return 255;case"int16":return 32767;case"uint16":return 65535;case"int32":return 2147483647;case"uint32":return 4294967295}return null}(i)),e}getNoDataValues(t=null){let e=[];if((t=this.getBand(t))&&void 0!==t.nodata)e.push(t.nodata);else{let t=this.getMetadata("file:nodata");if(void 0!==t)e=t;else{let t=this.getMetadata("classification:classes");Array.isArray(t)&&(e=t.filter((t=>Boolean(t.nodata))).map((t=>t.value)))}}return e.map((t=>"nan"===t?NaN:"+inf"===t?1/0:"-inf"===t?-1/0:t))}isDefinition(){return!u(this.href)}isHTTP(){return this.isDefinition()?null:super.isHTTP()}hasRole(t,e=!1){return Array.isArray(t)||(t=[t]),!(!e||!t.includes(this.getKey()))||Array.isArray(this.roles)&&Boolean(this.roles.find((e=>t.includes(e))))}static fromAssets(t,e=null){let r={};if(a(t))for(let n in t)r[n]=new k(t[n],n,e);return r}}class T extends b{constructor(t,e=null,r={},n=[]){super(t,e,r,n)}getTemporalExtent(){return null}getTemporalExtents(){return[]}getIcons(t=!0){return this.getLinksWithRels(["icon"]).filter((e=>e.canBrowserDisplayImage(t)))}getThumbnails(t=!0,e=null){let r=this.getAssetsWithRoles(["thumbnail","overview"],!0);if(0===r.length&&(r=this.getLinksWithRels(["preview"])),t&&(r=r.filter((t=>t.canBrowserDisplayImage()))),e&&r.length>1){let t=t=>Array.isArray(t.roles)&&t.roles.includes(e)||t.getKey()===e;r=r.filter(t).concat(r.filter((e=>!t(e))))}return r}getDefaultGeoTIFF(t=!0,e=!1){let r=this.rankGeoTIFFs(t,e);return r[0]?.asset}rankGeoTIFFs(t=!0,e=!1,r=null,n=null){a(r)||(r={data:1,visual:2,thumbnail:2,overview:3});let s=[],i=this.getAssetsByTypes(d);t&&(i=i.filter((t=>t.isHTTP()&&(!e||t.isCOG()))));let l=Object.entries(r);for(let t of i){let r=0;if(l.length>0){let e=l.filter((([e])=>t.hasRole(e,!0))).map((([,t])=>t));e.length>0&&(r+=Math.max(...e))}!e&&t.isCOG()&&(r+=2),t.findVisualBands()&&(r+=1),"function"==typeof n&&(r+=n(t)),s.push({asset:t,score:r})}return s.sort(((t,e)=>e.score-t.score)),s}findVisualAssets(){let t={red:null,green:null,blue:null},e=Object.keys(t),r=this.getAssets();for(let n of r){let r=n.getBands();if(1!==r.length)continue;let s=n.findBand(e,"common_name",r);s&&(t[s.band.common_name]=n)}return Object.values(t).every((t=>null!==t))?t:null}getAsset(t){return a(this.assets)&&this.assets[t]||null}getAssets(){return a(this.assets)?Object.values(this.assets):[]}getAssetsWithRoles(t,e=!1){return this.getAssets().filter((r=>r.hasRole(t,e)))}getAssetWithRole(t,e=!1){return this.getAssetsWithRoles([t],e)[0]||null}getAssetsByTypes(t){return this.getAssets().filter((e=>y(e.type,t)))}equals(t){return this===t||t instanceof T&&(this.getObjectType()===t.getObjectType()&&!(!this.id||this.id!==t.id))}}class w extends T{constructor(t,e=null,r={},n=[]){super(t,e,r,n)}getObjectType(){return this.type}getSearchLink(t=null){let e=this.getStacLinksWithRel("search");return t?e[0]||null:e.find((e=>e.method===t||!t&&!e.method))||null}getApiCollectionsLink(){return this.getStacLinkWithRel("data")}getApiItemsLink(){return this.getStacLinkWithRel("items")}getChildLinks(){return this.getStacLinksWithRel("child")}getItemLinks(){return this.getStacLinksWithRel("item")}}class L extends w{constructor(t,e=null){super(t,e)}}function v(t){if(u(t)&&t.length>=10)try{let e=t.match(/^(-?\d{1,})-(\d\d)-(\d\d)[T ](\d\d):(\d\d):(\d\d)(?:\.(\d*))?(?:Z|[+-]00:00)?$/i).slice(1).map((t=>parseInt(t,10)));return new Date(Date.UTC(e[0],e[1]-1,e[2],e[3],e[4],e[5],e[6]||0))}catch(t){return null}return null}function _(t){if(!Array.isArray(t)||0===t.length)return null;let e,r;const n=(t,e,r)=>void 0===t?e:null===t||null===e?null:r(t,e);return t.forEach((([t,s])=>{e=n(e,t,Math.min),r=n(r,s,Math.max)})),[null===e?null:new Date(e),null===r?null:new Date(r)]}class C extends w{constructor(t,e=null){super(t,e,{assets:k.fromAssets,item_assets:k.fromAssets})}toGeoJSON(){let t=function(t){if(s(t)?t=[t]:Array.isArray(t)&&(t=t.filter((t=>s(t)))),!Array.isArray(t)||0===t.length)return null;let e=t.reduce(((t,e)=>{if(i(e)){let{west:s,east:i,south:l,north:u}=r(e);t.push(n([-180,l,i,u])),t.push(n([s,l,180,u]))}else t.push(n(e));return t}),[]),l=null;return 1===e.length?l={type:"Polygon",coordinates:e[0]}:e.length>1&&(l={type:"MultiPolygon",coordinates:e}),l?{type:"Feature",geometry:l,properties:{}}:void 0}(this.getBoundingBoxes());return t&&(t.id=this.id),t}getBoundingBox(){let t=this.getRawBoundingBoxes();return t.length>0&&s(t[0])?t[0]:null}getBoundingBoxes(){let t=this.getRawBoundingBoxes();return 1===t.length&&s(t[0])?t:t.length>1?t.filter(((t,e)=>e>0&&s(t))):[]}getRawBoundingBoxes(){let t=this.extent?.spatial?.bbox;return Array.isArray(t)&&t.length>0?t:[]}getTemporalExtent(){return this.getTemporalExtents()[0]||null}getTemporalExtents(){let t=this.extent?.temporal?.interval;return Array.isArray(t)&&t.length>0?t.filter((t=>Array.isArray(t)&&(u(t[0])||u(t[1])))).map((t=>t.map((t=>v(t))))):[]}getSummary(t){return this.summaries[t]}getBands(){let t=[this.getSummary("eo:bands"),this.getSummary("raster:bands")].filter((t=>Array.isArray(t)));return t.length>=2?o(...t):1===t.length?t[0]:[]}}class O extends B{constructor(t,e=null){super(t,e,{collections:t=>t.map((t=>new C(t)))})}getObjectType(){return"CollectionCollection"}getAll(){return this.collections}isCollectionCollection(){return!0}toGeoJSON(){return{type:"FeatureCollection",features:this.collections.map((t=>t.toGeoJSON())).filter((t=>null!==t))}}getBoundingBox(){return l(this.getBoundingBoxes())}getBoundingBoxes(){return this.collections.map((t=>t.getBoundingBox()))}getTemporalExtent(){return _(this.getTemporalExtents())}getTemporalExtents(){return this.collections.map((t=>t.getTemporalExtent()))}}class S extends T{constructor(t,e=null){super(t,e,{assets:k.fromAssets})}getObjectType(){return"Item"}toGeoJSON(){return this.toJSON()}getBoundingBox(){return s(this.bbox)?this.bbox:null}getBoundingBoxes(){return s(this.bbox)?[this.bbox]:[]}getDateTime(){let t=v(this.properties.datetime);if(!t){let t=v(this.properties.start_datetime),e=v(this.properties.end_datetime);return t&&e?function(t,e){return new Date(t.valueOf()+(e-t)/2)}(t,e):t||e}return t}getTemporalExtent(){return this.getTemporalExtents()[0]||null}getTemporalExtents(){let t=[];return u(this.properties.start_datetime)||u(this.properties.end_datetime)?t=[[this.properties.start_datetime||null,this.properties.end_datetime||null]]:u(this.properties.datetime)&&(t=[[this.properties.datetime,this.properties.datetime]]),t.map((t=>t.map((t=>v(t)))))}getMetadata(t){return this.properties[t]}getBands(){let t=this.getMetadata("eo:bands");return Array.isArray(t)?t:[]}getCollectionLink(){return this.getStacLinkWithRel("collection")}}class R extends B{constructor(t,e=null){super(t,e,{features:t=>t.map((t=>new S(t)))})}getObjectType(){return"ItemCollection"}getAll(){return this.features}toGeoJSON(){return this.toJSON()}getBoundingBox(){return l(this.getBoundingBoxes())}getBoundingBoxes(){return this.features.map((t=>t.getBoundingBox()))}getTemporalExtent(){return _(this.getTemporalExtents())}getTemporalExtents(){return this.features.map((t=>t.getTemporalExtent()))}}function W(e,r=!0,n=!1){return r&&(e=t.stac(e,n)),"Feature"===e.type?new S(e):"FeatureCollection"===e.type?new R(e):"Collection"===e.type||!e.type&&void 0!==e.extent&&void 0!==e.license?new C(e):!e.type&&Array.isArray(e.collections)?new O(e):new L(e)}export{B as APICollection,k as Asset,L as Catalog,w as CatalogLike,C as Collection,O as CollectionCollection,S as Item,R as ItemCollection,A as Link,T as STAC,b as STACHypermedia,h as STACObject,x as STACReference,W as default}; diff --git a/isamples_export_client/ui/_npm/tslib@2.6.3/_esm.js b/isamples_export_client/ui/_npm/tslib@2.6.3/_esm.js new file mode 100644 index 0000000..f091874 --- /dev/null +++ b/isamples_export_client/ui/_npm/tslib@2.6.3/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/tslib@2.6.3/tslib.es6.mjs + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)};function t(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var r=function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function a(e,t){return function(r,n){t(r,n,e)}}function i(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,u=n.kind,f="getter"===u?"get":"setter"===u?"set":"value",l=!t&&e?n.static?e:e.prototype:null,s=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),p=!1,y=r.length-1;y>=0;y--){var d={};for(var h in n)d[h]="access"===h?{}:n[h];for(var h in n.access)d.access[h]=n.access[h];d.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var v=(0,r[y])("accessor"===u?{get:s.get,set:s.set}:s[f],d);if("accessor"===u){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(c=i(v.get))&&(s.get=c),(c=i(v.set))&&(s.set=c),(c=i(v.init))&&o.unshift(c)}else(c=i(v))&&("field"===u?o.unshift(c):s[f]=c)}l&&Object.defineProperty(l,n.name,s),p=!0}function c(e,t,r){for(var n=arguments.length>2,o=0;o0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function b(){for(var e=[],t=0;t1||c(e,t)}))},t&&(n[e]=t(n[e])))}function c(e,t){try{(r=o[e](t)).value instanceof m?Promise.resolve(r.value.v).then(u,f):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function u(e){c("next",e)}function f(e){c("throw",e)}function l(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function O(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:!1}:o?o(t):t}:o}}function j(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&y(t,e,r);return S(t,e),t}function x(e){return e&&e.__esModule?e:{default:e}}function T(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function k(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function I(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function D(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var R="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function A(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}var C={__extends:t,__assign:r,__rest:n,__decorate:o,__param:a,__metadata:l,__awaiter:s,__generator:p,__createBinding:y,__exportStar:d,__values:h,__read:v,__spread:b,__spreadArrays:w,__spreadArray:_,__await:m,__asyncGenerator:g,__asyncDelegator:O,__asyncValues:j,__makeTemplateObject:P,__importStar:E,__importDefault:x,__classPrivateFieldGet:T,__classPrivateFieldSet:k,__classPrivateFieldIn:I,__addDisposableResource:D,__disposeResources:A};export{D as __addDisposableResource,r as __assign,O as __asyncDelegator,g as __asyncGenerator,j as __asyncValues,m as __await,s as __awaiter,T as __classPrivateFieldGet,I as __classPrivateFieldIn,k as __classPrivateFieldSet,y as __createBinding,o as __decorate,A as __disposeResources,i as __esDecorate,d as __exportStar,t as __extends,p as __generator,x as __importDefault,E as __importStar,P as __makeTemplateObject,l as __metadata,a as __param,u as __propKey,v as __read,n as __rest,c as __runInitializers,f as __setFunctionName,b as __spread,_ as __spreadArray,w as __spreadArrays,h as __values,C as default}; diff --git a/isamples_export_client/ui/_npm/uc.micro@2.1.0/_esm.js b/isamples_export_client/ui/_npm/uc.micro@2.1.0/_esm.js new file mode 100644 index 0000000..f62db31 --- /dev/null +++ b/isamples_export_client/ui/_npm/uc.micro@2.1.0/_esm.js @@ -0,0 +1,7 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/uc.micro@2.1.0/index.mjs + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +var u=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,D=/[\0-\x1F\x7F-\x9F]/,F=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,E=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,C=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,A=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;export{u as Any,D as Cc,F as Cf,E as P,C as S,A as Z};export default null; diff --git a/isamples_export_client/ui/_npm/urijs@1.19.11/_esm.js b/isamples_export_client/ui/_npm/urijs@1.19.11/_esm.js new file mode 100644 index 0000000..972e984 --- /dev/null +++ b/isamples_export_client/ui/_npm/urijs@1.19.11/_esm.js @@ -0,0 +1,33 @@ +/** + * Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2. + * Original file: /npm/urijs@1.19.11/src/URI.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +var e,t,r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={exports:{}},o={exports:{}};e=o,t=o.exports,function(n){var o=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,s="object"==typeof r&&r;s.global!==s&&s.window!==s&&s.self!==s||(n=s);var a,u,c=2147483647,h=36,p=1,l=26,d=38,g=700,m=72,f=128,v="-",y=/^xn--/,b=/[^\x20-\x7E]/,_=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=h-p,x=Math.floor,z=String.fromCharCode;function Q(e){throw new RangeError(w[e])}function A(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function P(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+A((e=e.replace(_,".")).split("."),t).join(".")}function I(e){for(var t,r,n=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=z((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=z(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function q(e,t,r){var n=0;for(e=r?x(e/g):e>>1,e+=x(e/t);e>k*l>>1;n+=h)e=x(e/k);return x(n+(k+1)*e/(e+d))}function U(e){var t,r,n,o,i,s,a,u,d,g,y,b=[],_=e.length,w=0,k=f,z=m;for((r=e.lastIndexOf(v))<0&&(r=0),n=0;n=128&&Q("not-basic"),b.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<_;){for(i=w,s=1,a=h;o>=_&&Q("invalid-input"),((u=(y=e.charCodeAt(o++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:h)>=h||u>x((c-w)/s))&&Q("overflow"),w+=u*s,!(u<(d=a<=z?p:a>=z+l?l:a-z));a+=h)s>x(c/(g=h-d))&&Q("overflow"),s*=g;z=q(w-i,t=b.length+1,0==i),x(w/t)>c-k&&Q("overflow"),k+=x(w/t),w%=t,b.splice(w++,0,k)}return S(b)}function E(e){var t,r,n,o,i,s,a,u,d,g,y,b,_,w,k,A=[];for(b=(e=I(e)).length,t=f,r=0,i=m,s=0;s=t&&yx((c-r)/(_=n+1))&&Q("overflow"),r+=(a-t)*_,t=a,s=0;sc&&Q("overflow"),y==t){for(u=r,d=h;!(u<(g=d<=i?p:d>=i+l?l:d-i));d+=h)k=u-g,w=h-g,A.push(z(j(g+k%w,0))),u=x(k/w);A.push(z(j(u,0))),i=q(r,_,n==o),r=0,++n}++r,++t}return A.join("")}if(a={version:"1.3.2",ucs2:{decode:I,encode:S},decode:U,encode:E,toASCII:function(e){return P(e,(function(e){return b.test(e)?"xn--"+E(e):e}))},toUnicode:function(e){return P(e,(function(e){return y.test(e)?U(e.slice(4).toLowerCase()):e}))}},o&&i)if(e.exports==o)i.exports=a;else for(u in a)a.hasOwnProperty(u)&&(o[u]=a[u]);else n.punycode=a}(r);var i={exports:{}}; +/*! + * URI.js - Mutating URLs + * IPv6 Support + * + * Version: 1.19.11 + * + * Author: Rodney Rehm + * Web: http://medialize.github.io/URI.js/ + * + * Licensed under + * MIT License http://www.opensource.org/licenses/mit-license + * + */!function(e){var t,n;t=r,n=function(e){var t=e&&e.IPv6;return{best:function(e){var t,r,n=e.toLowerCase().split(":"),o=n.length,i=8;for(""===n[0]&&""===n[1]&&""===n[2]?(n.shift(),n.shift()):""===n[0]&&""===n[1]?n.shift():""===n[o-1]&&""===n[o-2]&&n.pop(),-1!==n[(o=n.length)-1].indexOf(".")&&(i=7),t=0;t1;a++)r.splice(0,1);n[s]=r.join("")}var u=-1,c=0,h=0,p=-1,l=!1;for(s=0;sc&&(u=p,c=h)):"0"===n[s]&&(l=!0,p=s,h=1);h>c&&(u=p,c=h),c>1&&n.splice(u,c,""),o=n.length;var d="";for(""===n[0]&&(d=":"),s=0;s=e.length-1)return!1;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return!1;var o=r.list[e.slice(t+1)];return!!o&&o.indexOf(" "+e.slice(n+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var n=r.list[e.slice(t+1)];return!!n&&n.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return null;var o=r.list[e.slice(t+1)];return o?o.indexOf(" "+e.slice(n+1,t)+" ")<0?null:e.slice(n+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return r},e.exports?e.exports=n():t.SecondLevelDomains=n(t)}(s),function(e){var t,n;t=r,n=function(e,t,r,n){var o=n&&n.URI;function i(e,t){var r=arguments.length>=1;if(!(this instanceof i))return r?arguments.length>=2?new i(e,t):new i(e):new i;if(void 0===e){if(r)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&r)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}i.version="1.19.11";var s=i.prototype,a=Object.prototype.hasOwnProperty;function u(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function c(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function h(e){return"Array"===c(e)}function p(e,t){var r,n,o={};if("RegExp"===c(t))o=null;else if(h(t))for(r=0,n=t.length;r]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,i.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},i.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,i.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},i.hostProtocols=["http","https"],i.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,i.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},i.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return i.domAttributes[t]}},i.encode=f,i.decode=decodeURIComponent,i.iso8859=function(){i.encode=escape,i.decode=unescape},i.unicode=function(){i.encode=f,i.decode=decodeURIComponent},i.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},i.encodeQuery=function(e,t){var r=i.encode(e+"");return void 0===t&&(t=i.escapeQuerySpace),t?r.replace(/%20/g,"+"):r},i.decodeQuery=function(e,t){e+="",void 0===t&&(t=i.escapeQuerySpace);try{return i.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var v,y={encode:"encode",decode:"decode"},b=function(e,t){return function(r){try{return i[t](r+"").replace(i.characters[e][t].expression,(function(r){return i.characters[e][t].map[r]}))}catch(e){return r}}};for(v in y)i[v+"PathSegment"]=b("pathname",y[v]),i[v+"UrnPathSegment"]=b("urnpath",y[v]);var _=function(e,t,r){return function(n){var o;o=r?function(e){return i[t](i[r](e))}:i[t];for(var s=(n+"").split(e),a=0,u=s.length;a-1&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),(r=e.indexOf("?"))>-1&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),"//"===(e=(e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=i.parseAuthority(e,t)):(r=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(i.protocol_expression)?t.protocol=void 0:"//"===e.substring(r+1,r+3).replace(/\\/g,"/")?(e=e.substring(r+3),e=i.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0)),t.path=e,t},i.parseHost=function(e,t){e||(e="");var r,n,o=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===o&&(o=e.length),"["===e.charAt(0))r=e.indexOf("]"),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,o)||null,"/"===t.port&&(t.port=null);else{var s=e.indexOf(":"),a=e.indexOf("/"),u=e.indexOf(":",s+1);-1!==u&&(-1===a||u-1?o:e.length-1);return s>-1&&(-1===o||s-1?d.slice(0,g)+d.slice(g).replace(s,""):d.replace(s,"")).length<=c[0].length||r.ignore&&r.ignore.test(d))){var v=t(d,h,l=h+d.length,e);void 0!==v?(v=String(v),e=e.slice(0,h)+v+e.slice(l),n.lastIndex=h+v.length):n.lastIndex=l}}return n.lastIndex=0,e},i.ensureValidHostname=function(t,r){var n=!!t,o=!1;if(!!r&&(o=l(i.hostProtocols,r)),o&&!n)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(t&&t.match(i.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(i.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},i.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},i.noConflict=function(e){if(e){var t={URI:this.noConflict()};return n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(t.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(t.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=n.SecondLevelDomains.noConflict()),t}return n.URI===this&&(n.URI=o),this},s.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=i.build(this._parts),this._deferred_build=!1),this},s.clone=function(){return new i(this)},s.valueOf=s.toString=function(){return this.build(!1)._string},s.protocol=w("protocol"),s.username=w("username"),s.password=w("password"),s.hostname=w("hostname"),s.port=w("port"),s.query=k("query","?"),s.fragment=k("fragment","#"),s.search=function(e,t){var r=this.query(e,t);return"string"==typeof r&&r.length?"?"+r:r},s.hash=function(e,t){var r=this.fragment(e,t);return"string"==typeof r&&r.length?"#"+r:r},s.pathname=function(e,t){if(void 0===e||!0===e){var r=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?i.decodeUrnPath:i.decodePath)(r):r}return this._parts.urn?this._parts.path=e?i.recodeUrnPath(e):"":this._parts.path=e?i.recodePath(e):"/",this.build(!t),this},s.path=s.pathname,s.href=function(e,t){var r;if(void 0===e)return this.toString();this._string="",this._parts=i._parts();var n=e instanceof i,o="object"==typeof e&&(e.hostname||e.path||e.pathname);if(e.nodeName&&(e=e[i.getDomAttribute(e)]||"",o=!1),!n&&o&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=i.parse(String(e),this._parts);else{if(!n&&!o)throw new TypeError("invalid input");var s=n?e._parts:e;for(r in s)"query"!==r&&a.call(this._parts,r)&&(this._parts[r]=s[r]);s.query&&this.query(s.query,!1)}return this.build(!t),this},s.is=function(e){var t=!1,n=!1,o=!1,s=!1,a=!1,u=!1,c=!1,h=!this._parts.urn;switch(this._parts.hostname&&(h=!1,n=i.ip4_expression.test(this._parts.hostname),o=i.ip6_expression.test(this._parts.hostname),a=(s=!(t=n||o))&&r&&r.has(this._parts.hostname),u=s&&i.idn_expression.test(this._parts.hostname),c=s&&i.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return h;case"absolute":return!h;case"domain":case"name":return s;case"sld":return a;case"ip":return t;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return o;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var x=s.protocol,z=s.port,Q=s.hostname;s.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(i.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return x.call(this,e,t)},s.scheme=s.protocol,s.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),i.ensureValidPort(e))),z.call(this,e,t))},s.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var r={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==i.parseHost(e,r))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=r.hostname,this._parts.preventInvalidHostname&&i.ensureValidHostname(e,this._parts.protocol)}return Q.call(this,e,t)},s.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}var n=i(e);return this.protocol(n.protocol()).authority(n.authority()).build(!t),this},s.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildHost(this._parts):"";if("/"!==i.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildAuthority(this._parts):"";if("/"!==i.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},s.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=i.buildUserinfo(this._parts);return r?r.substring(0,r.length-1):r}return"@"!==e[e.length-1]&&(e+="@"),i.parseUserinfo(e,this._parts),this.build(!t),this},s.resource=function(e,t){var r;return void 0===e?this.path()+this.search()+this.hash():(r=i.parse(e),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!t),this)},s.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}var n=this._parts.hostname.length-this.domain().length,o=this._parts.hostname.substring(0,n),s=new RegExp("^"+u(o));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&i.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(s,e),this.build(!t),this},s.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);if(r&&r.length<2)return this._parts.hostname;var n=this._parts.hostname.length-this.tld(t).length-1;return n=this._parts.hostname.lastIndexOf(".",n-1)+1,this._parts.hostname.substring(n)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(i.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var o=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},s.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf("."),o=this._parts.hostname.substring(n+1);return!0!==t&&r&&r.list[o.toLowerCase()]&&r.get(this._parts.hostname)||o}var i;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');i=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");i=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},s.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,n=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return e?i.decodePath(n):n}var o=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,o),a=new RegExp("^"+u(s));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=i.recodePath(e),this._parts.path=this._parts.path.replace(a,e),this.build(!t),this},s.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),n=this._parts.path.substring(r+1);return e?i.decodePathSegment(n):n}var o=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(o=!0);var s=new RegExp(u(this.filename())+"$");return e=i.recodePath(e),this._parts.path=this._parts.path.replace(s,e),o?this.normalizePath(t):this.build(!t),this},s.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var r,n,o=this.filename(),s=o.lastIndexOf(".");return-1===s?"":(r=o.substring(s+1),n=/^[a-z0-9%]+$/i.test(r)?r:"",e?i.decodePathSegment(n):n)}"."===e.charAt(0)&&(e=e.substring(1));var a,c=this.suffix();if(c)a=e?new RegExp(u(c)+"$"):new RegExp(u("."+c)+"$");else{if(!e)return this;this._parts.path+="."+i.recodePath(e)}return a&&(e=i.recodePath(e),this._parts.path=this._parts.path.replace(a,e)),this.build(!t),this},s.segment=function(e,t,r){var n=this._parts.urn?":":"/",o=this.path(),i="/"===o.substring(0,1),s=o.split(n);if(void 0!==e&&"number"!=typeof e&&(r=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(i&&s.shift(),e<0&&(e=Math.max(s.length+e,0)),void 0===t)return void 0===e?s:s[e];if(null===e||void 0===s[e])if(h(t)){s=[];for(var a=0,u=t.length;ane(e,"name",{value:t,configurable:!0});import{Inspector as E,Runtime as se}from"./runtime.js";import{Generators as y,resize as ae,FileAttachment as ie,Mutable as le}from"./stdlib.js";var ce=Object.defineProperty,B=r((e,t)=>ce(e,"name",{value:t,configurable:!0}),"o$3");const N=document.createElement("template");N.innerHTML='',D();function D(){for(const e of document.querySelectorAll("pre:not([data-copy=none])")){const t=e.parentNode;if(t.classList.contains("observablehq-pre-container"))continue;const o=t.insertBefore(document.createElement("div"),e);o.className="observablehq-pre-container",Object.assign(o.dataset,e.dataset),o.appendChild(N.content.cloneNode(!0).firstChild).addEventListener("click",O),o.appendChild(e)}}r(D,"r$1"),B(D,"enableCopyButtons");async function O({currentTarget:e}){await navigator.clipboard.writeText(e.nextElementSibling.textContent.trim());const[t]=e.getAnimations({subtree:!0});t&&(t.currentTime=0),e.classList.add("observablehq-pre-copied"),e.addEventListener("animationend",()=>e.classList.remove("observablehq-pre-copied"),{once:!0})}r(O,"c$3"),B(O,"copy");var de=Object.defineProperty,A=r((e,t)=>de(e,"name",{value:t,configurable:!0}),"s$3");const m=document.querySelector("#observablehq-sidebar-toggle");if(m){let e=m.indeterminate;m.onclick=()=>{const o=matchMedia("(min-width: calc(640px + 6rem + 272px))").matches;e?(m.checked=!o,e=!1):m.checked===o&&(e=!0),m.indeterminate=e,e?sessionStorage.removeItem("observablehq-sidebar"):sessionStorage.setItem("observablehq-sidebar",m.checked)},addEventListener("keypress",o=>{o.code==="KeyB"&&(o.metaKey||o.altKey)&&!o.ctrlKey&&(o.target===document.body||o.target===m||o.target?.closest("#observablehq-sidebar"))&&(m.click(),o.preventDefault())});const t=`Toggle sidebar ${/Mac|iPhone/.test(navigator.platform)?/Firefox/.test(navigator.userAgent)?"\u2325":"\u2318":"Alt-"}B`;for(const o of document.querySelectorAll("#observablehq-sidebar-toggle, label[for='observablehq-sidebar-toggle']"))o.title=t}function R(e){e.detail>1&&e.preventDefault()}r(R,"l$4"),A(R,"preventDoubleClick");function I(){sessionStorage.setItem(`observablehq-sidebar:${this.firstElementChild.textContent}`,this.open)}r(I,"i$3"),A(I,"persistOpen");for(const e of document.querySelectorAll("#observablehq-sidebar summary"))e.onmousedown=R,e.parentElement.ontoggle=I;var pe=Object.defineProperty,P=r((e,t)=>pe(e,"name",{value:t,configurable:!0}),"l$3");const _=document.querySelector("#observablehq-toc");if(_){const e=_.appendChild(document.createElement("div"));e.classList.add("observablehq-secondary-link-highlight");const t=document.querySelector("#observablehq-main"),o=Array.from(t.querySelectorAll(_.dataset.selector)).reverse(),s=_.querySelectorAll(".observablehq-secondary-link"),q=P(()=>{for(const a of s)a.classList.remove("observablehq-secondary-link-active");if(location.hash)for(const a of o){const u=encodeURI(`#${a.id}`);if(u===location.hash){const f=a.getBoundingClientRect().top;if(0=innerHeight*.5)continue;const u=a.querySelector("a[href]")?.hash;for(const f of s)if(f.querySelector("a[href]")?.hash===u)return f.classList.add("observablehq-secondary-link-active"),f;break}},"relink"),C=P(()=>{const a=q();e.style.cssText=a?`top: ${a.offsetTop}px; height: ${a.offsetHeight}px;`:""},"intersected"),v=new IntersectionObserver(C,{rootMargin:"0px 0px -50% 0px"});for(const a of o)v.observe(a)}var me=Object.defineProperty,T=r((e,t)=>me(e,"name",{value:t,configurable:!0}),"n$1");function M(e){const t=new E(document.createElement("div"));return t.fulfilled(e),t._node.firstChild}r(M,"i$2"),T(M,"inspect");function z(e){const t=new E(document.createElement("div"));t.rejected(e);const o=t._node.firstChild;return o.classList.add("observablehq--error"),o}r(z,"s$1"),T(z,"inspectError");var ue=Object.defineProperty,n=r((e,t)=>ue(e,"name",{value:t,configurable:!0}),"o$1");const fe=n(()=>import("../_npm/lodash@4.17.21/_esm.js").then(e=>e.default),"_"),be=n(()=>import("../_npm/arquero@5.4.0/_esm.js"),"aq"),he=n(()=>import("../_npm/apache-arrow@16.1.0/_esm.js"),"Arrow"),ve=n(()=>import("../_npm/d3@7.9.0/_esm.js"),"d3"),ge=n(()=>import("./stdlib/dot.js").then(e=>e.default),"dot"),ye=n(()=>import("../_npm/@duckdb/duckdb-wasm@1.28.0/_esm.js"),"duckdb"),$e=n(()=>import("./stdlib/duckdb.js").then(e=>e.DuckDBClient),"DuckDBClient"),qe=n(()=>import("../_npm/echarts@5.5.0/dist/echarts.esm.min.js._esm.js"),"echarts"),we=n(()=>import("../_npm/htl@0.3.1/_esm.js"),"htl"),_e=n(()=>import("../_npm/htl@0.3.1/_esm.js").then(e=>e.html),"html"),ke=n(()=>import("../_npm/htl@0.3.1/_esm.js").then(e=>e.svg),"svg"),xe=n(()=>import("./stdlib/inputs.js"),"Inputs"),Ce=n(()=>import("../_npm/leaflet@1.9.4/_esm.js"),"L"),Le=n(()=>import("../_npm/mapbox-gl@3.4.0/_esm.js").then(e=>e.default),"mapboxgl"),Se=n(()=>import("./stdlib/mermaid.js").then(e=>e.default),"mermaid"),je=n(()=>import("../_npm/@observablehq/plot@0.6.15/_esm.js"),"Plot"),Ee=n(()=>import("../_npm/react@18.3.1/_esm.js"),"React"),Be=n(()=>import("../_npm/react-dom@18.3.1/_esm.js"),"ReactDOM"),Ne=n(()=>import("./stdlib/duckdb.js").then(e=>e.sql),"sql"),De=n(()=>import("./stdlib/sqlite.js").then(e=>e.default),"SQLite"),Oe=n(()=>import("./stdlib/sqlite.js").then(e=>e.SQLiteDatabaseClient),"SQLiteDatabaseClient"),Ae=n(()=>import("./stdlib/tex.js").then(e=>e.default),"tex"),Re=n(()=>import("../_npm/topojson-client@3.1.0/_esm.js"),"topojson"),Ie=n(()=>import("./stdlib/vgplot.js").then(e=>e.default()),"vg"),Pe=n(()=>import("./stdlib/vega-lite.js").then(e=>e.default),"vl");var Te=Object.freeze({__proto__:null,Arrow:he,DuckDBClient:$e,Inputs:xe,L:Ce,Plot:je,React:Ee,ReactDOM:Be,SQLite:De,SQLiteDatabaseClient:Oe,_:fe,aq:be,d3:ve,dot:ge,duckdb:ye,echarts:qe,htl:we,html:_e,mapboxgl:Le,mermaid:Se,sql:Ne,svg:ke,tex:Ae,topojson:Re,vg:Ie,vl:Pe}),Me=Object.defineProperty,l=r((e,t)=>Me(e,"name",{value:t,configurable:!0}),"e");const ze=l(()=>c(import.meta.resolve("../_npm/@observablehq/sample-datasets@1.0.1/aapl.csv"),!0),"aapl"),Qe=l(()=>c(import.meta.resolve("../_npm/@observablehq/sample-datasets@1.0.1/alphabet.csv"),!0),"alphabet"),He=l(()=>c(import.meta.resolve("../_npm/@observablehq/sample-datasets@1.0.1/cars.csv"),!0),"cars"),Ve=l(()=>c(import.meta.resolve("../_npm/@observablehq/sample-datasets@1.0.1/citywages.csv"),!0),"citywages"),Ke=l(()=>c(import.meta.resolve("../_npm/@observablehq/sample-datasets@1.0.1/diamonds.csv"),!0),"diamonds"),Fe=l(()=>c(import.meta.resolve("../_npm/@observablehq/sample-datasets@1.0.1/flare.csv"),!0),"flare"),Ge=l(()=>c(import.meta.resolve("../_npm/@observablehq/sample-datasets@1.0.1/industries.csv"),!0),"industries"),Je=l(()=>Q(import.meta.resolve("../_npm/@observablehq/sample-datasets@1.0.1/miserables.json")),"miserables"),Ue=l(()=>c(import.meta.resolve("../_npm/@observablehq/sample-datasets@1.0.1/olympians.csv"),!0),"olympians"),We=l(()=>c(import.meta.resolve("../_npm/@observablehq/sample-datasets@1.0.1/penguins.csv"),!0),"penguins"),Ze=l(()=>c(import.meta.resolve("../_npm/@observablehq/sample-datasets@1.0.1/pizza.csv"),!0),"pizza"),Xe=l(()=>c(import.meta.resolve("../_npm/@observablehq/sample-datasets@1.0.1/weather.csv"),!0),"weather");async function Q(e){const t=await fetch(e);if(!t.ok)throw new Error(`unable to fetch ${e}: status ${t.status}`);return t.json()}r(Q,"w"),l(Q,"json");async function H(e){const t=await fetch(e);if(!t.ok)throw new Error(`unable to fetch ${e}: status ${t.status}`);return t.text()}r(H,"y"),l(H,"text");async function c(e,t){const[o,s]=await Promise.all([H(e),import("../_npm/d3-dsv@3.0.1/_esm.js")]);return s.csvParse(o,t&&s.autoType)}r(c,"t"),l(c,"csv");var Ye=Object.freeze({__proto__:null,aapl:ze,alphabet:Qe,cars:He,citywages:Ve,diamonds:Ke,flare:Fe,industries:Ge,miserables:Je,olympians:Ue,penguins:We,pizza:Ze,weather:Xe}),et=Object.defineProperty,i=r((e,t)=>et(e,"name",{value:t,configurable:!0}),"o");const tt={now:()=>y.now(),width:()=>y.width(document.querySelector("main")),dark:()=>y.dark(),resize:()=>ae,FileAttachment:()=>ie,Generators:()=>y,Mutable:()=>le,...Te,...Ye},ot=new se(tt),V=ot.module(),j=new Map,k=X(document.body);function K(e){const{id:t,mode:o,inputs:s=[],outputs:q=[],body:C}=e,v=[];j.set(t,{cell:e,variables:v});const a=k.get(t),u=te(a);a._nodes=[],u&&a._nodes.push(u);const f=i(()=>G(a,u),"pending"),g=i(b=>J(a,b),"rejected"),p=V.variable({_node:a.parentNode,pending:f,rejected:g},{shadow:{}});if(s.includes("display")||s.includes("view")){let b=-1;const L=o==="jsx"?F:$,oe=o==="inline"?W:o==="jsx"?U:Z,S=new p.constructor(2,p._module);if(S.define(s.filter(d=>d!=="display"&&d!=="view"),()=>{let d=p._version;return w=>{if(db&&L(a),b=d,oe(a,w),w}}),p._shadow.set("display",S),s.includes("view")){const d=new p.constructor(2,p._module,null,{shadow:{}});d._shadow.set("display",S),d.define(["display"],w=>re=>y.input(w(re))),p._shadow.set("view",d)}}p.define(q.length?`cell ${t}`:null,s,C),v.push(p);for(const b of q)v.push(V.variable(!0).define(b,[`cell ${t}`],L=>L[b]))}r(K,"F"),i(K,"define");function F(){}r(F,"O"),i(F,"noop");function $(e){for(const t of e._nodes)t.remove();e._nodes.length=0}r($,"p"),i($,"clear");function G(e,t){e._error&&(e._error=!1,$(e),t&&h(e,t))}r(G,"q"),i(G,"reset");function J(e,t){console.error(t),e._error=!0,$(e),h(e,z(t))}r(J,"C"),i(J,"reject");function U(e,t){return(e._root??=import("../_npm/react-dom@18.3.1/client._esm.js").then(({createRoot:o})=>{const s=document.createElement("DIV");return[s,o(s)]})).then(([o,s])=>{o.parentNode||(e._nodes.push(o),e.parentNode.insertBefore(o,e)),s.render(t)})}r(U,"H"),i(U,"displayJsx");function h(e,t){if(t.nodeType===11){let o;for(;o=t.firstChild;)e._nodes.push(o),e.parentNode.insertBefore(o,e)}else e._nodes.push(t),e.parentNode.insertBefore(t,e)}r(h,"l"),i(h,"displayNode");function W(e,t){if(x(t))h(e,t);else if(typeof t=="string"||!t?.[Symbol.iterator])h(e,document.createTextNode(t));else for(const o of t)h(e,x(o)?o:document.createTextNode(o))}r(W,"J"),i(W,"displayInline");function Z(e,t){h(e,x(t)?t:M(t))}r(Z,"Q"),i(Z,"displayBlock");function rt(e){$(k.get(e)),j.get(e).variables.forEach(t=>t.delete()),j.delete(e)}r(rt,"K"),i(rt,"undefine");function x(e){return e instanceof Node&&e instanceof e.constructor}r(x,"b"),i(x,"isNode");function X(e){const t=new Map,o=document.createNodeIterator(e,128,null);let s;for(;s=o.nextNode();)Y(s)&&t.set(s.data.slice(1,-1),s);return t}r(X,"B"),i(X,"findRoots");function Y(e){return e.nodeType===8&&/^:[0-9a-f]{8}(?:-\d+)?:$/.test(e.data)}r(Y,"P"),i(Y,"isRoot");function ee(e){return e.nodeType===1&&e.tagName==="OBSERVABLEHQ-LOADING"}r(ee,"U"),i(ee,"isLoading");function te(e){const t=e.previousSibling;return t&&ee(t)?t:null}r(te,"x"),i(te,"findLoading");function nt(e,t){t==null?k.delete(e):k.set(e,t)}r(nt,"W"),i(nt,"registerRoot");export{K as define}; diff --git a/isamples_export_client/ui/_observablehq/runtime.js b/isamples_export_client/ui/_observablehq/runtime.js new file mode 100644 index 0000000..5b2dbbd --- /dev/null +++ b/isamples_export_client/ui/_observablehq/runtime.js @@ -0,0 +1,7 @@ +var Ft=Object.defineProperty;var r=(e,t)=>Ft(e,"name",{value:t,configurable:!0});var B,H;import{FileAttachments as Rt,Library as Ut}from"./stdlib.js";var zt=Object.defineProperty,Bt=r((e,t)=>zt(e,"name",{value:t,configurable:!0}),"c$7");function A(e,t,n){n=n||{};var i=e.ownerDocument,l=i.defaultView.CustomEvent;typeof l=="function"?l=new l(t,{detail:n}):(l=i.createEvent("Event"),l.initEvent(t,!1,!1),l.detail=n),e.dispatchEvent(l)}r(A,"o$c"),Bt(A,"dispatch");var Ht=Object.defineProperty,be=r((e,t)=>Ht(e,"name",{value:t,configurable:!0}),"r$7");function ee(e){return Array.isArray(e)||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}r(ee,"o$b"),be(ee,"isarray");function te(e){return e===(e|0)+""}r(te,"s$4"),be(te,"isindex");var Vt=Object.defineProperty,Yt=r((e,t)=>Vt(e,"name",{value:t,configurable:!0}),"n$8");function g(e){const t=document.createElement("span");return t.className="observablehq--cellname",t.textContent=`${e} = `,t}r(g,"c$6"),Yt(g,"inspectName");var Gt=Object.defineProperty,Jt=r((e,t)=>Gt(e,"name",{value:t,configurable:!0}),"t$8");const Kt=Symbol.prototype.toString;function j(e){return Kt.call(e)}r(j,"e$6"),Jt(j,"formatSymbol");var Zt=Object.defineProperty,ne=r((e,t)=>Zt(e,"name",{value:t,configurable:!0}),"n$6");const{getOwnPropertySymbols:Xt,prototype:{hasOwnProperty:Qt}}=Object,{toStringTag:Wt}=Symbol,ve={},k=Xt;function L(e,t){return Qt.call(e,t)}r(L,"i$5"),ne(L,"isown");function V(e){return e[Wt]||e.constructor&&e.constructor.name||"Object"}r(V,"l$1"),ne(V,"tagof");function _(e,t){try{const n=e[t];return n&&n.constructor,n}catch{return ve}}r(_,"y$2"),ne(_,"valueof");var en=Object.defineProperty,tn=r((e,t)=>en(e,"name",{value:t,configurable:!0}),"i$4");const nn=[{symbol:"@@__IMMUTABLE_INDEXED__@@",name:"Indexed",modifier:!0},{symbol:"@@__IMMUTABLE_KEYED__@@",name:"Keyed",modifier:!0},{symbol:"@@__IMMUTABLE_LIST__@@",name:"List",arrayish:!0},{symbol:"@@__IMMUTABLE_MAP__@@",name:"Map"},{symbol:"@@__IMMUTABLE_ORDERED__@@",name:"Ordered",modifier:!0,prefix:!0},{symbol:"@@__IMMUTABLE_RECORD__@@",name:"Record"},{symbol:"@@__IMMUTABLE_SET__@@",name:"Set",arrayish:!0,setish:!0},{symbol:"@@__IMMUTABLE_STACK__@@",name:"Stack",arrayish:!0}];function re(e){try{let t=nn.filter(({symbol:o})=>e[o]===!0);if(!t.length)return;const n=t.find(o=>!o.modifier),i=n.name==="Map"&&t.find(o=>o.modifier&&o.prefix),l=t.some(o=>o.arrayish),a=t.some(o=>o.setish);return{name:`${i?i.name:""}${n.name}`,symbols:t,arrayish:l&&!a,setish:a}}catch{return null}}r(re,"y$1"),tn(re,"immutableName");var rn=Object.defineProperty,b=r((e,t)=>rn(e,"name",{value:t,configurable:!0}),"i$3");const{getPrototypeOf:ie,getOwnPropertyDescriptors:on}=Object,ye=ie({});function oe(e,t,n,i){let l=ee(e),a,o,s,u;e instanceof Map?e instanceof e.constructor?(a=`Map(${e.size})`,o=ge):(a="Map()",o=P):e instanceof Set?e instanceof e.constructor?(a=`Set(${e.size})`,o=$e):(a="Set()",o=P):l?(a=`${e.constructor.name}(${e.length})`,o=Ce):(u=re(e))?(a=`Immutable.${u.name}${u.name==="Record"?"":`(${e.size})`}`,l=u.arrayish,o=u.arrayish?Ee:u.setish?we:Se):i?(a=V(e),o=xe):(a=V(e),o=P);const c=document.createElement("span");c.className="observablehq--expanded",n&&c.appendChild(g(n));const p=c.appendChild(document.createElement("a"));p.innerHTML=` + + `,p.appendChild(document.createTextNode(`${a}${l?" [":" {"}`)),p.addEventListener("mouseup",function(d){d.stopPropagation(),D(c,Y(e,null,n,i))}),o=o(e);for(let d=0;!(s=o.next()).done&&d<20;++d)c.appendChild(s.value);if(!s.done){const d=c.appendChild(document.createElement("a"));d.className="observablehq--field",d.style.display="block",d.appendChild(document.createTextNode(" \u2026 more")),d.addEventListener("mouseup",function(S){S.stopPropagation(),c.insertBefore(s.value,c.lastChild.previousSibling);for(let O=0;!(s=o.next()).done&&O<19;++O)c.insertBefore(s.value,c.lastChild.previousSibling);s.done&&c.removeChild(c.lastChild.previousSibling),A(c,"load")})}return c.appendChild(document.createTextNode(l?"]":"}")),c}r(oe,"F$2"),b(oe,"inspectExpanded");function*ge(e){for(const[t,n]of e)yield Ne(t,n);yield*P(e)}r(ge,"A$3"),b(ge,"iterateMap");function*$e(e){for(const t of e)yield se(t);yield*P(e)}r($e,"B$1"),b($e,"iterateSet");function*we(e){for(const t of e)yield se(t)}r(we,"D$5"),b(we,"iterateImSet");function*Ce(e){for(let t=0,n=e.length;t ")),n.appendChild(h(t)),n}r(Ne,"J$1"),b(Ne,"formatMapField");function se(e){const t=document.createElement("div");return t.className="observablehq--field",t.appendChild(document.createTextNode(" ")),t.appendChild(h(e)),t}r(se,"k$2"),b(se,"formatSetField");var an=Object.defineProperty,v=r((e,t)=>an(e,"name",{value:t,configurable:!0}),"a$3");function le(e){const t=window.getSelection();return t.type==="Range"&&(t.containsNode(e,!0)||t.anchorNode.isSelfOrDescendant(e)||t.focusNode.isSelfOrDescendant(e))}r(le,"$$3"),v(le,"hasSelection");function Y(e,t,n,i){let l=ee(e),a,o,s,u;if(e instanceof Map?e instanceof e.constructor?(a=`Map(${e.size})`,o=Oe):(a="Map()",o=q):e instanceof Set?e instanceof e.constructor?(a=`Set(${e.size})`,o=je):(a="Set()",o=q):l?(a=`${e.constructor.name}(${e.length})`,o=Me):(u=re(e))?(a=`Immutable.${u.name}${u.name==="Record"?"":`(${e.size})`}`,l=u.arrayish,o=u.arrayish?qe:u.setish?Pe:Te):(a=V(e),o=q),t){const d=document.createElement("span");return d.className="observablehq--shallow",n&&d.appendChild(g(n)),d.appendChild(document.createTextNode(a)),d.addEventListener("mouseup",function(S){le(d)||(S.stopPropagation(),D(d,Y(e)))}),d}const c=document.createElement("span");c.className="observablehq--collapsed",n&&c.appendChild(g(n));const p=c.appendChild(document.createElement("a"));p.innerHTML=` + + `,p.appendChild(document.createTextNode(`${a}${l?" [":" {"}`)),c.addEventListener("mouseup",function(d){le(c)||(d.stopPropagation(),D(c,oe(e,null,n,i)))},!0),o=o(e);for(let d=0;!(s=o.next()).done&&d<20;++d)d>0&&c.appendChild(document.createTextNode(", ")),c.appendChild(s.value);return s.done||c.appendChild(document.createTextNode(", \u2026")),c.appendChild(document.createTextNode(l?"]":"}")),c}r(Y,"q$1"),v(Y,"inspectCollapsed");function*Oe(e){for(const[t,n]of e)yield Ae(t,n);yield*q(e)}r(Oe,"D$4"),v(Oe,"iterateMap");function*je(e){for(const t of e)yield h(t,!0);yield*q(e)}r(je,"F$1"),v(je,"iterateSet");function*Pe(e){for(const t of e)yield h(t,!0)}r(Pe,"I$2"),v(Pe,"iterateImSet");function*qe(e){let t=-1,n=0;for(const i=e.size;nt+1&&(yield I(n-t-1)),yield h(e.get(n),!0),t=n;n>t+1&&(yield I(n-t-1))}r(qe,"L$3"),v(qe,"iterateImArray");function*Me(e){let t=-1,n=0;for(const i=e.length;nt+1&&(yield I(n-t-1)),yield h(_(e,n),!0),t=n);n>t+1&&(yield I(n-t-1));for(const i in e)!te(i)&&L(e,i)&&(yield M(i,_(e,i),"observablehq--key"));for(const i of k(e))yield M(j(i),_(e,i),"observablehq--symbol")}r(Me,"O$3"),v(Me,"iterateArray");function*q(e){for(const t in e)L(e,t)&&(yield M(t,_(e,t),"observablehq--key"));for(const t of k(e))yield M(j(t),_(e,t),"observablehq--symbol")}r(q,"u$2"),v(q,"iterateObject");function*Te(e){for(const[t,n]of e)yield M(t,n,"observablehq--key")}r(Te,"A$2"),v(Te,"iterateImObject");function I(e){const t=document.createElement("span");return t.className="observablehq--empty",t.textContent=e===1?"empty":`empty \xD7 ${e}`,t}r(I,"h$3"),v(I,"formatEmpty");function M(e,t,n){const i=document.createDocumentFragment(),l=i.appendChild(document.createElement("span"));return l.className=n,l.textContent=e,i.appendChild(document.createTextNode(": ")),i.appendChild(h(t,!0)),i}r(M,"m$1"),v(M,"formatField");function Ae(e,t){const n=document.createDocumentFragment();return n.appendChild(h(e,!0)),n.appendChild(document.createTextNode(" => ")),n.appendChild(h(t,!0)),n}r(Ae,"P$2"),v(Ae,"formatMapField");var sn=Object.defineProperty,ce=r((e,t)=>sn(e,"name",{value:t,configurable:!0}),"i$2");function ke(e,t){if(e instanceof Date||(e=new Date(+e)),isNaN(e))return typeof t=="function"?t(e):t;const n=e.getUTCHours(),i=e.getUTCMinutes(),l=e.getUTCSeconds(),a=e.getUTCMilliseconds();return`${Le(e.getUTCFullYear())}-${w(e.getUTCMonth()+1,2)}-${w(e.getUTCDate(),2)}${n||i||l||a?`T${w(n,2)}:${w(i,2)}${l||a?`:${w(l,2)}${a?`.${w(a,3)}`:""}`:""}Z`:""}`}r(ke,"c$4"),ce(ke,"format");function Le(e){return e<0?`-${w(-e,6)}`:e>9999?`+${w(e,6)}`:w(e,4)}r(Le,"f$6"),ce(Le,"formatYear");function w(e,t){return`${e}`.padStart(t,"0")}r(w,"t$7"),ce(w,"pad");var ln=Object.defineProperty,cn=r((e,t)=>ln(e,"name",{value:t,configurable:!0}),"t$6");const un=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function dn(e,t){return un.test(e+="")?new Date(e):typeof t=="function"?t(e):t}r(dn,"r$5"),cn(dn,"parse");var fn=Object.defineProperty,pn=r((e,t)=>fn(e,"name",{value:t,configurable:!0}),"r$4");function Ie(e){return ke(e,"Invalid Date")}r(Ie,"f$5"),pn(Ie,"formatDate");var mn=Object.defineProperty,hn=r((e,t)=>mn(e,"name",{value:t,configurable:!0}),"t$5"),_n=Error.prototype.toString;function De(e){return e.stack||_n.call(e)}r(De,"e$4"),hn(De,"formatError");var bn=Object.defineProperty,vn=r((e,t)=>bn(e,"name",{value:t,configurable:!0}),"r$3"),yn=RegExp.prototype.toString;function Fe(e){return yn.call(e)}r(Fe,"g$1"),vn(Fe,"formatRegExp");var gn=Object.defineProperty,G=r((e,t)=>gn(e,"name",{value:t,configurable:!0}),"s$1");const ue=20;function Re(e,t,n,i){if(t===!1){if(fe(e,/["\n]/g)<=fe(e,/`|\${/g)){const c=document.createElement("span");i&&c.appendChild(g(i));const p=c.appendChild(document.createElement("span"));return p.className="observablehq--string",p.textContent=JSON.stringify(e),c}const o=e.split(` +`);if(o.length>ue&&!n){const c=document.createElement("div");i&&c.appendChild(g(i));const p=c.appendChild(document.createElement("span"));p.className="observablehq--string",p.textContent="`"+de(o.slice(0,ue).join(` +`));const d=c.appendChild(document.createElement("span")),S=o.length-ue;return d.textContent=`Show ${S} truncated line${S>1?"s":""}`,d.className="observablehq--string-expand",d.addEventListener("mouseup",function(O){O.stopPropagation(),D(c,h(e,t,!0,i))}),c}const s=document.createElement("span");i&&s.appendChild(g(i));const u=s.appendChild(document.createElement("span"));return u.className=`observablehq--string${n?" observablehq--expanded":""}`,u.textContent="`"+de(e)+"`",s}const l=document.createElement("span");i&&l.appendChild(g(i));const a=l.appendChild(document.createElement("span"));return a.className="observablehq--string",a.textContent=JSON.stringify(e.length>100?`${e.slice(0,50)}\u2026${e.slice(-49)}`:e),l}r(Re,"g"),G(Re,"formatString");function de(e){return e.replace(/[\\`\x00-\x09\x0b-\x19]|\${/g,Ue)}r(de,"h$2"),G(de,"templatify");function Ue(e){var t=e.charCodeAt(0);switch(t){case 8:return"\\b";case 9:return"\\t";case 11:return"\\v";case 12:return"\\f";case 13:return"\\r"}return t<16?"\\x0"+t.toString(16):t<32?"\\x"+t.toString(16):"\\"+e}r(Ue,"$$2"),G(Ue,"templatifyChar");function fe(e,t){for(var n=0;t.exec(e);)++n;return n}r(fe,"C$2"),G(fe,"count");var $n=Object.defineProperty,ze=r((e,t)=>$n(e,"name",{value:t,configurable:!0}),"a$1"),wn=Function.prototype.toString,Cn={prefix:"async \u0192"},En={prefix:"async \u0192*"},Be={prefix:"class"},xn={prefix:"\u0192"},Sn={prefix:"\u0192*"};function He(e,t){var n,i,l=wn.call(e);switch(e.constructor&&e.constructor.name){case"AsyncFunction":n=Cn;break;case"AsyncGeneratorFunction":n=En;break;case"GeneratorFunction":n=Sn;break;default:n=/^class\b/.test(l)?Be:xn;break}return n===Be?T(n,"",t):(i=/^(?:async\s*)?(\w+)\s*=>/.exec(l))?T(n,"("+i[1]+")",t):(i=/^(?:async\s*)?\(\s*(\w+(?:\s*,\s*\w+)*)?\s*\)/.exec(l))?T(n,i[1]?"("+i[1].replace(/\s*,\s*/g,", ")+")":"()",t):(i=/^(?:async\s*)?function(?:\s*\*)?(?:\s*\w+)?\s*\(\s*(\w+(?:\s*,\s*\w+)*)?\s*\)/.exec(l))?T(n,i[1]?"("+i[1].replace(/\s*,\s*/g,", ")+")":"()",t):T(n,"(\u2026)",t)}r(He,"y"),ze(He,"inspectFunction");function T(e,t,n){var i=document.createElement("span");i.className="observablehq--function",n&&i.appendChild(g(n));var l=i.appendChild(document.createElement("span"));return l.className="observablehq--keyword",l.textContent=e.prefix,i.appendChild(document.createTextNode(t)),i}r(T,"c$3"),ze(T,"formatFunction");var Nn=Object.defineProperty,Ve=r((e,t)=>Nn(e,"name",{value:t,configurable:!0}),"c$2");const{prototype:{toString:On}}=Object;function h(e,t,n,i,l){let a=typeof e;switch(a){case"boolean":case"undefined":{e+="";break}case"number":{e=e===0&&1/e<0?"-0":e+"";break}case"bigint":{e=e+"n";break}case"symbol":{e=j(e);break}case"function":return He(e,i);case"string":return Re(e,t,n,i);default:{if(e===null){a=null,e="null";break}if(e instanceof Date){a="date",e=Ie(e);break}if(e===ve){a="forbidden",e="[forbidden]";break}switch(On.call(e)){case"[object RegExp]":{a="regexp",e=Fe(e);break}case"[object Error]":case"[object DOMException]":{a="error",e=De(e);break}default:return(n?oe:Y)(e,t,i,l)}break}}const o=document.createElement("span");i&&o.appendChild(g(i));const s=o.appendChild(document.createElement("span"));return s.className=`observablehq--${a}`,s.textContent=e,o}r(h,"$$1"),Ve(h,"inspect");function D(e,t){e.classList.contains("observablehq--inspect")&&t.classList.add("observablehq--inspect"),e.parentNode.replaceChild(t,e),A(t,"load")}r(D,"z$2"),Ve(D,"replace");var jn=Object.defineProperty,Ye=r((e,t)=>jn(e,"name",{value:t,configurable:!0}),"n$2");const Pn=/\s+\(\d+:\d+\)$/m,Ge=(B=class{constructor(t){if(!t)throw new Error("invalid node");this._node=t,t.classList.add("observablehq")}pending(){const{_node:t}=this;t.classList.remove("observablehq--error"),t.classList.add("observablehq--running")}fulfilled(t,n){const{_node:i}=this;if((!Je(t)||t.parentNode&&t.parentNode!==i)&&(t=h(t,!1,i.firstChild&&i.firstChild.classList&&i.firstChild.classList.contains("observablehq--expanded"),n),t.classList.add("observablehq--inspect")),i.classList.remove("observablehq--running","observablehq--error"),i.firstChild!==t)if(i.firstChild){for(;i.lastChild!==i.firstChild;)i.removeChild(i.lastChild);i.replaceChild(t,i.firstChild)}else i.appendChild(t);A(i,"update")}rejected(t,n){const{_node:i}=this;for(i.classList.remove("observablehq--running"),i.classList.add("observablehq--error");i.lastChild;)i.removeChild(i.lastChild);var l=document.createElement("div");l.className="observablehq--inspect",n&&l.appendChild(g(n)),l.appendChild(document.createTextNode((t+"").replace(Pn,""))),i.appendChild(l),A(i,"error",{error:t})}},r(B,"o"),B);Ye(Ge,"Inspector");let pe=Ge;pe.into=function(e){if(typeof e=="string"&&(e=document.querySelector(e),e==null))throw new Error("container not found");return function(){return new pe(e.appendChild(document.createElement("div")))}};function Je(e){return(e instanceof Element||e instanceof Text)&&e instanceof e.constructor}r(Je,"p$2"),Ye(Je,"isnode");var qn=Object.defineProperty,Mn=r((e,t)=>qn(e,"name",{value:t,configurable:!0}),"o$4");const Ke=(H=class extends Error{constructor(t,n){super(t),this.input=n}},r(H,"e"),H);Mn(Ke,"RuntimeError");let C=Ke;C.prototype.name="RuntimeError";var Tn=Object.defineProperty,An=r((e,t)=>Tn(e,"name",{value:t,configurable:!0}),"t$4");function Ze(e){return e&&typeof e.next=="function"&&typeof e.return=="function"}r(Ze,"f$1"),An(Ze,"generatorish");var kn=Object.defineProperty,Ln=r((e,t)=>kn(e,"name",{value:t,configurable:!0}),"t$3");function J(e){return()=>e}r(J,"e$2"),Ln(J,"constant");var In=Object.defineProperty,Dn=r((e,t)=>In(e,"name",{value:t,configurable:!0}),"n$1");function F(e){return e}r(F,"o$3"),Dn(F,"identity");var Fn=Object.defineProperty,Rn=r((e,t)=>Fn(e,"name",{value:t,configurable:!0}),"t$2");function Xe(e){return()=>{throw e}}r(Xe,"h$1"),Rn(Xe,"rethrow");const Un=Array.prototype,zn=Un.map;var Bn=Object.defineProperty,Hn=r((e,t)=>Bn(e,"name",{value:t,configurable:!0}),"o$1");function E(){}r(E,"e"),Hn(E,"noop");var Vn=Object.defineProperty,m=r((e,t)=>Vn(e,"name",{value:t,configurable:!0}),"r");const me=1,R=2,K=3,U=Symbol("no-observer");function N(e,t,n,i){n||(n=U),Object.defineProperties(this,{_observer:{value:n,writable:!0},_definition:{value:Z,writable:!0},_duplicate:{value:void 0,writable:!0},_duplicates:{value:void 0,writable:!0},_indegree:{value:NaN,writable:!0},_inputs:{value:[],writable:!0},_invalidate:{value:E,writable:!0},_module:{value:t},_name:{value:null,writable:!0},_outputs:{value:new Set,writable:!0},_promise:{value:Promise.resolve(void 0),writable:!0},_reachable:{value:n!==U,writable:!0},_rejector:{value:tt(this)},_shadow:{value:Qe(t,i)},_type:{value:e},_value:{value:void 0,writable:!0},_version:{value:0,writable:!0}})}r(N,"h"),m(N,"Variable"),Object.defineProperties(N.prototype,{_pending:{value:at,writable:!0,configurable:!0},_fulfilled:{value:st,writable:!0,configurable:!0},_rejected:{value:lt,writable:!0,configurable:!0},_resolve:{value:rt,writable:!0,configurable:!0},define:{value:nt,writable:!0,configurable:!0},delete:{value:ot,writable:!0,configurable:!0},import:{value:it,writable:!0,configurable:!0}});function Qe(e,t){return t?.shadow?new Map(Object.entries(t.shadow).map(([n,i])=>[n,new N(R,e).define([],i)])):null}r(Qe,"x$2"),m(Qe,"initShadow");function We(e){e._module._runtime._dirty.add(e),e._outputs.add(this)}r(We,"S$1"),m(We,"variable_attach");function et(e){e._module._runtime._dirty.add(e),e._outputs.delete(this)}r(et,"j"),m(et,"variable_detach");function Z(){throw Z}r(Z,"f"),m(Z,"variable_undefined");function x(){throw x}r(x,"b"),m(x,"variable_stale");function tt(e){return t=>{throw t===x?t:t===Z?new C(`${e._name} is not defined`,e._name):t instanceof Error&&t.message?new C(t.message,e._name):new C(`${e._name} could not be resolved`,e._name)}}r(tt,"O$2"),m(tt,"variable_rejector");function he(e){return()=>{throw new C(`${e} is defined more than once`)}}r(he,"w$1"),m(he,"variable_duplicate");function nt(e,t,n){switch(arguments.length){case 1:{n=e,e=t=null;break}case 2:{n=t,typeof e=="string"?t=null:(t=e,e=null);break}}return X.call(this,e==null?null:String(e),t==null?[]:zn.call(t,this._resolve,this),typeof n=="function"?n:J(n))}r(nt,"P$1"),m(nt,"variable_define");function rt(e){return this._shadow?.get(e)??this._module._resolve(e)}r(rt,"I$1"),m(rt,"variable_resolve");function X(e,t,n){const i=this._module._scope,l=this._module._runtime;if(this._inputs.forEach(et,this),t.forEach(We,this),this._inputs=t,this._definition=n,this._value=void 0,n===E?l._variables.delete(this):l._variables.add(this),e!==this._name||i.get(e)!==this){let a,o;if(this._name)if(this._outputs.size)i.delete(this._name),o=this._module._resolve(this._name),o._outputs=this._outputs,this._outputs=new Set,o._outputs.forEach(function(s){s._inputs[s._inputs.indexOf(this)]=o},this),o._outputs.forEach(l._updates.add,l._updates),l._dirty.add(o).add(this),i.set(this._name,o);else if((o=i.get(this._name))===this)i.delete(this._name);else if(o._type===K)o._duplicates.delete(this),this._duplicate=void 0,o._duplicates.size===1&&(o=o._duplicates.keys().next().value,a=i.get(this._name),o._outputs=a._outputs,a._outputs=new Set,o._outputs.forEach(function(s){s._inputs[s._inputs.indexOf(a)]=o}),o._definition=o._duplicate,o._duplicate=void 0,l._dirty.add(a).add(o),l._updates.add(o),i.set(this._name,o));else throw new Error;if(this._outputs.size)throw new Error;e&&((o=i.get(e))?o._type===K?(this._definition=he(e),this._duplicate=n,o._duplicates.add(this)):o._type===R?(this._outputs=o._outputs,o._outputs=new Set,this._outputs.forEach(function(s){s._inputs[s._inputs.indexOf(o)]=this},this),l._dirty.add(o).add(this),i.set(e,this)):(o._duplicate=o._definition,this._duplicate=n,a=new N(K,this._module),a._name=e,a._definition=this._definition=o._definition=he(e),a._outputs=o._outputs,o._outputs=new Set,a._outputs.forEach(function(s){s._inputs[s._inputs.indexOf(o)]=a}),a._duplicates=new Set([this,o]),l._dirty.add(o).add(a),l._updates.add(o).add(a),i.set(e,a)):i.set(e,this)),this._name=e}return this._version>0&&++this._version,l._updates.add(this),l._compute(),this}r(X,"c"),m(X,"variable_defineImpl");function it(e,t,n){return arguments.length<3&&(n=t,t=e),X.call(this,String(t),[n._resolve(String(e))],F)}r(it,"T$1"),m(it,"variable_import");function ot(){return X.call(this,null,[],E)}r(ot,"k$1"),m(ot,"variable_delete");function at(){this._observer.pending&&this._observer.pending()}r(at,"z$1"),m(at,"variable_pending");function st(e){this._observer.fulfilled&&this._observer.fulfilled(e,this._name)}r(st,"L$2"),m(st,"variable_fulfilled");function lt(e){this._observer.rejected&&this._observer.rejected(e,this._name)}r(lt,"M$2"),m(lt,"variable_rejected");var Yn=Object.defineProperty,y=r((e,t)=>Yn(e,"name",{value:t,configurable:!0}),"n");const ct=Symbol("variable"),ut=Symbol("invalidation"),dt=Symbol("visibility");function z(e,t=[]){Object.defineProperties(this,{_runtime:{value:e},_scope:{value:new Map},_builtins:{value:new Map([["@variable",ct],["invalidation",ut],["visibility",dt],...t])},_source:{value:null,writable:!0}})}r(z,"M$1"),y(z,"Module"),Object.defineProperties(z.prototype,{_resolve:{value:vt,writable:!0,configurable:!0},redefine:{value:ft,writable:!0,configurable:!0},define:{value:pt,writable:!0,configurable:!0},derive:{value:bt,writable:!0,configurable:!0},import:{value:mt,writable:!0,configurable:!0},value:{value:_t,writable:!0,configurable:!0},variable:{value:ht,writable:!0,configurable:!0},builtin:{value:yt,writable:!0,configurable:!0}});function ft(e){const t=this._scope.get(e);if(!t)throw new C(`${e} is not defined`);if(t._type===K)throw new C(`${e} is defined more than once`);return t.define.apply(t,arguments)}r(ft,"O$1"),y(ft,"module_redefine");function pt(){const e=new N(me,this);return e.define.apply(e,arguments)}r(pt,"V$1"),y(pt,"module_define");function mt(){const e=new N(me,this);return e.import.apply(e,arguments)}r(mt,"Y$1"),y(mt,"module_import");function ht(e,t){return new N(me,this,e,t)}r(ht,"$"),y(ht,"module_variable");async function _t(e){let t=this._scope.get(e);if(!t)throw new C(`${e} is not defined`);if(t._observer===U){t=this.variable(!0).define([e],F);try{return await Q(this._runtime,t)}finally{t.delete()}}else return Q(this._runtime,t)}r(_t,"A$1"),y(_t,"module_value");async function Q(e,t){await e._compute();try{return await t._promise}catch(n){if(n===x)return Q(e,t);throw n}}r(Q,"p"),y(Q,"module_revalue");function bt(e,t){const n=new Map,i=new Set,l=[];function a(s){let u=n.get(s);return u||(u=new z(s._runtime,s._builtins),u._source=s,n.set(s,u),l.push([u,s]),i.add(s),u)}r(a,"v"),y(a,"alias");const o=a(this);for(const s of e){const{alias:u,name:c}=typeof s=="object"?s:{name:s};o.import(c,u??c,t)}for(const s of i)for(const[u,c]of s._scope)if(c._definition===F){if(s===this&&o._scope.has(u))continue;const p=c._inputs[0]._module;p._source&&a(p)}for(const[s,u]of l)for(const[c,p]of u._scope){const d=s._scope.get(c);if(!(d&&d._type!==R))if(p._definition===F){const S=p._inputs[0],O=S._module;s.import(S._name,c,n.get(O)||O)}else s.define(c,p._inputs.map(gt),p._definition)}return o}r(bt,"C$1"),y(bt,"module_derive");function vt(e){let t=this._scope.get(e),n;if(!t)if(t=new N(R,this),this._builtins.has(e))t.define(e,J(this._builtins.get(e)));else if(this._runtime._builtin._scope.has(e))t.import(e,this._runtime._builtin);else{try{n=this._runtime._global(e)}catch(i){return t.define(e,Xe(i))}n===void 0?this._scope.set(t._name=e,t):t.define(e,J(n))}return t}r(vt,"R$1"),y(vt,"module_resolve");function yt(e,t){this._builtins.set(e,t)}r(yt,"D$1"),y(yt,"module_builtin");function gt(e){return e._name}r(gt,"N"),y(gt,"variable_name");var Gn=Object.defineProperty,f=r((e,t)=>Gn(e,"name",{value:t,configurable:!0}),"o");const Jn=typeof requestAnimationFrame=="function"?requestAnimationFrame:typeof setImmediate=="function"?setImmediate:e=>setTimeout(e,0);function _e(e=new Ut,t=Dt){const n=this.module();if(Object.defineProperties(this,{_dirty:{value:new Set},_updates:{value:new Set},_precomputes:{value:[],writable:!0},_computing:{value:null,writable:!0},_init:{value:null,writable:!0},_modules:{value:new Map},_variables:{value:new Set},_disposed:{value:!1,writable:!0},_builtin:{value:n},_global:{value:t}}),e)for(const i in e)new N(R,n).define(i,[],e[i])}r(_e,"k"),f(_e,"Runtime"),Object.defineProperties(_e.prototype,{_precompute:{value:Ct,writable:!0,configurable:!0},_compute:{value:Et,writable:!0,configurable:!0},_computeSoon:{value:xt,writable:!0,configurable:!0},_computeNow:{value:St,writable:!0,configurable:!0},dispose:{value:$t,writable:!0,configurable:!0},module:{value:wt,writable:!0,configurable:!0},fileAttachments:{value:Rt,writable:!0,configurable:!0}});function $t(){this._computing=Promise.resolve(),this._disposed=!0,this._variables.forEach(e=>{e._invalidate(),e._version=NaN})}r($t,"q"),f($t,"runtime_dispose");function wt(e,t=E){let n;if(e===void 0)return(n=this._init)?(this._init=null,n):new z(this);if(n=this._modules.get(e),n)return n;this._init=n=new z(this),this._modules.set(e,n);try{e(this,t)}finally{this._init=null}return n}r(wt,"A"),f(wt,"runtime_module");function Ct(e){this._precomputes.push(e),this._compute()}r(Ct,"O"),f(Ct,"runtime_precompute");function Et(){return this._computing||(this._computing=this._computeSoon())}r(Et,"T"),f(Et,"runtime_compute");function xt(){return new Promise(Jn).then(()=>this._disposed?void 0:this._computeNow())}r(xt,"F"),f(xt,"runtime_computeSoon");async function St(){let e=[],t,n,i=this._precomputes;if(i.length){this._precomputes=[];for(const a of i)a();await Nt(3)}t=new Set(this._dirty),t.forEach(function(a){a._inputs.forEach(t.add,t);const o=It(a);o>a._reachable?this._updates.add(a):o{});return t}r(Nt,"x"),f(Nt,"runtime_defer");function Ot(e){const t=new Set(e._inputs);for(const n of t){if(n===e)return!0;n._inputs.forEach(t.add,t)}return!1}r(Ot,"L"),f(Ot,"variable_circular");function jt(e){++e._indegree}r(jt,"R"),f(jt,"variable_increment");function Pt(e){--e._indegree}r(Pt,"V"),f(Pt,"variable_decrement");function qt(e){return e._promise.catch(e._rejector)}r(qt,"z"),f(qt,"variable_value");function W(e){return new Promise(function(t){e._invalidate=t})}r(W,"d"),f(W,"variable_invalidator");function Mt(e,t){let n=typeof IntersectionObserver=="function"&&t._observer&&t._observer._node,i=!n,l=E,a=E,o,s;return n&&(s=new IntersectionObserver(([u])=>(i=u.isIntersecting)&&(o=null,l())),s.observe(n),e.then(()=>(s.disconnect(),s=null,a()))),function(u){return i?Promise.resolve(u):s?(o||(o=new Promise((c,p)=>(l=c,a=p))),o.then(()=>u)):Promise.reject()}}r(Mt,"C"),f(Mt,"variable_intersector");function Tt(e){e._invalidate(),e._invalidate=E,e._pending();const t=e._value,n=++e._version;let i=null;const l=e._promise=(e._inputs.length?Promise.all(e._inputs.map(qt)).then(a):new Promise(s=>s(e._definition.call(t)))).then(o);function a(s){if(e._version!==n)throw x;for(let u=0,c=s.length;u{e._value=s,e._fulfilled(s)},s=>{s===x||e._version!==n||(e._value=void 0,e._rejected(s))})}r(Tt,"Y"),f(Tt,"variable_compute");function At(e,t,n){const i=e._module._runtime;let l;function a(u){return new Promise(c=>c(n.next(l))).then(({done:c,value:p})=>c?void 0:Promise.resolve(p).then(u))}r(a,"r"),f(a,"compute");function o(){const u=a(c=>{if(e._version!==t)throw x;return l=c,s(c,u).then(()=>i._precompute(o)),e._fulfilled(c),c});u.catch(c=>{c===x||e._version!==t||(s(void 0,u),e._rejected(c))})}r(o,"_"),f(o,"recompute");function s(u,c){return e._value=u,e._promise=c,e._outputs.forEach(i._updates.add,i._updates),i._compute()}return r(s,"i"),f(s,"postcompute"),a(u=>{if(e._version!==t)throw x;return l=u,i._precompute(o),u})}r(At,"B"),f(At,"variable_generate");function kt(e,t){e._invalidate(),e._invalidate=E,e._pending(),++e._version,e._indegree=NaN,(e._promise=Promise.reject(t)).catch(E),e._value=void 0,e._rejected(t)}r(kt,"D"),f(kt,"variable_error");function Lt(e){return function(){e.return()}}r(Lt,"G"),f(Lt,"variable_return");function It(e){if(e._observer!==U)return!0;const t=new Set(e._outputs);for(const n of t){if(n._observer!==U)return!0;n._outputs.forEach(t.add,t)}return!1}r(It,"H"),f(It,"variable_reachable");function Dt(e){return globalThis[e]}r(Dt,"J"),f(Dt,"window_global");export{pe as Inspector,_e as Runtime,C as RuntimeError}; diff --git a/isamples_export_client/ui/_observablehq/stdlib.js b/isamples_export_client/ui/_observablehq/stdlib.js new file mode 100644 index 0000000..c6e61d5 --- /dev/null +++ b/isamples_export_client/ui/_observablehq/stdlib.js @@ -0,0 +1 @@ +var T=Object.defineProperty;var i=(t,e)=>T(t,"name",{value:e,configurable:!0});var f,m,d,D=Object.defineProperty,u=i((t,e)=>D(t,"name",{value:e,configurable:!0}),"o$3");const h=new Map;function P(t,e){const r=new URL(t,location).href;if(e==null)h.delete(r);else{const{path:n,mimeType:a,lastModified:o}=e,s=new b(new URL(n,location).href,t.split("/").pop(),a,o);h.set(r,s)}}i(P,"y"),u(P,"registerFile");function v(t,e=location){if(new.target!==void 0)throw new TypeError("FileAttachment is not a constructor");const r=h.get(new URL(t,e).href);if(!r)throw new Error(`File not found: ${t}`);return r}i(v,"p$1"),u(v,"FileAttachment");async function c(t){const e=await fetch(await t.url());if(!e.ok)throw new Error(`Unable to load file: ${t.name}`);return e}i(c,"i$5"),u(c,"remote_fetch");const O=(f=class{constructor(e,r="application/octet-stream",n){Object.defineProperties(this,{name:{value:`${e}`,enumerable:!0},mimeType:{value:`${r}`,enumerable:!0},lastModified:{value:+n,enumerable:!0}})}async blob(){return(await c(this)).blob()}async arrayBuffer(){return(await c(this)).arrayBuffer()}async text(e){return e===void 0?(await c(this)).text():new TextDecoder(e).decode(await this.arrayBuffer())}async json(){return(await c(this)).json()}async stream(){return(await c(this)).body}async dsv({delimiter:e=",",array:r=!1,typed:n=!1}={}){const[a,o]=await Promise.all([this.text(),import("../_npm/d3-dsv@3.0.1/_esm.js")]),s=o.dsvFormat(e);return(r?s.parseRows:s.parse)(a,n&&o.autoType)}async csv(e){return this.dsv({...e,delimiter:","})}async tsv(e){return this.dsv({...e,delimiter:" "})}async image(e){const r=await this.url();return new Promise((n,a)=>{const o=new Image;new URL(r,document.baseURI).origin!==new URL(location).origin&&(o.crossOrigin="anonymous"),Object.assign(o,e),o.onload=()=>n(o),o.onerror=()=>a(new Error(`Unable to load file: ${this.name}`)),o.src=r})}async arrow(){const[e,r]=await Promise.all([import("../_npm/apache-arrow@16.1.0/_esm.js"),c(this)]);return e.tableFromIPC(r)}async parquet(){const[e,r,n]=await Promise.all([import("../_npm/apache-arrow@16.1.0/_esm.js"),import("../_npm/parquet-wasm@0.6.1/_esm.js").then(async a=>(await a.default(import.meta.resolve("../_npm/parquet-wasm@0.6.1/esm/parquet_wasm_bg.wasm")),a)),this.arrayBuffer()]);return e.tableFromIPC(r.readParquet(new Uint8Array(n)).intoIPCStream())}async sqlite(){const[{SQLiteDatabaseClient:e},r]=await Promise.all([import("./stdlib/sqlite.js"),this.arrayBuffer()]);return e.open(r)}async zip(){const[{ZipArchive:e},r]=await Promise.all([import("./stdlib/zip.js"),this.arrayBuffer()]);return e.from(r)}async xml(e="application/xml"){return new DOMParser().parseFromString(await this.text(),e)}async html(){return this.xml("text/html")}async xlsx(){const[{Workbook:e},r]=await Promise.all([import("./stdlib/xlsx.js"),this.arrayBuffer()]);return e.load(r)}},i(f,"m"),f);u(O,"AbstractFile");let j=O;const x=(m=class extends j{constructor(e,r,n,a){super(r,n,a),Object.defineProperty(this,"href",{value:e})}async url(){return this.href}},i(m,"w"),m);u(x,"FileAttachmentImpl");let b=x;Object.defineProperty(b,"name",{value:"FileAttachment"}),v.prototype=b.prototype;var _=Object.defineProperty,S=i((t,e)=>_(t,"name",{value:e,configurable:!0}),"r$2");async function*l(t){let e,r,n=!1;const a=t(o=>(r=o,e?(e(o),e=null):n=!0,o));if(a!=null&&typeof a!="function")throw new Error(typeof a.then=="function"?"async initializers are not supported":"initializer returned something, but not a dispose function");try{for(;;)yield n?(n=!1,r):new Promise(o=>e=o)}finally{a?.()}}i(l,"u"),S(l,"observe");var G=Object.defineProperty,F=i((t,e)=>G(t,"name",{value:e,configurable:!0}),"o$2");function A(){return l(t=>{let e;const r=matchMedia("(prefers-color-scheme: dark)"),n=F(()=>{const a=getComputedStyle(document.body).getPropertyValue("color-scheme")==="dark";e!==a&&t(e=a)},"changed");return n(),r.addEventListener("change",n),()=>r.removeEventListener("change",n)})}i(A,"m"),F(A,"dark");var N=Object.defineProperty,y=i((t,e)=>N(t,"name",{value:e,configurable:!0}),"e$2");function E(t){return l(e=>{const r=L(t);let n=w(t);const a=y(()=>e(w(t)),"inputted");return t.addEventListener(r,a),n!==void 0&&e(n),()=>t.removeEventListener(r,a)})}i(E,"o$1"),y(E,"input");function w(t){switch(t.type){case"range":case"number":return t.valueAsNumber;case"date":return t.valueAsDate;case"checkbox":return t.checked;case"file":return t.multiple?t.files:t.files[0];case"select-multiple":return Array.from(t.selectedOptions,e=>e.value);default:return t.value}}i(w,"a"),y(w,"valueof");function L(t){switch(t.type){case"button":case"submit":case"checkbox":return"click";case"file":return"change";default:return"input"}}i(L,"f$2"),y(L,"eventof");var Q=Object.defineProperty,V=i((t,e)=>Q(t,"name",{value:e,configurable:!0}),"e$1");async function*k(){for(;;)yield Date.now()}i(k,"i$3"),V(k,"now");var W=Object.defineProperty,Z=i((t,e)=>W(t,"name",{value:e,configurable:!0}),"r$1");async function*R(t){let e;const r=[],n=t(a=>(r.push(a),e&&(e(r.shift()),e=null),a));if(n!=null&&typeof n!="function")throw new Error(typeof n.then=="function"?"async initializers are not supported":"initializer returned something, but not a dispose function");try{for(;;)yield r.length?r.shift():new Promise(a=>e=a)}finally{n?.()}}i(R,"l$1"),Z(R,"queue");var H=Object.defineProperty,J=i((t,e)=>H(t,"name",{value:e,configurable:!0}),"i$2");function z(t,e){return l(r=>{let n;const a=new ResizeObserver(([o])=>{const s=o.contentRect.width;s!==n&&r(n=s)});return a.observe(t,e),()=>a.disconnect()})}i(z,"d$1"),J(z,"width");var K=Object.freeze({__proto__:null,dark:A,input:E,now:k,observe:l,queue:R,width:z}),X=Object.defineProperty,Y=i((t,e)=>X(t,"name",{value:e,configurable:!0}),"r");function U(t){let e;return Object.defineProperty(l(r=>{e=r,t!==void 0&&e(t)}),"value",{get:()=>t,set:r=>void e(t=r)})}i(U,"f$1"),Y(U,"Mutable");var ee=Object.defineProperty,q=i((t,e)=>ee(t,"name",{value:e,configurable:!0}),"l");function B(t,e){const r=document.createElement("div");r.style.position="relative",t.length!==1&&(r.style.height="100%");let n=0,a=0;const o=new ResizeObserver(async([s])=>{const{width:g,height:I}=s.contentRect,$=++n,p=g>0?await t(g,I):null;if(!(a>$)){for(a=$;r.lastChild;)r.lastChild.remove();p!=null&&(t.length!==1&&C(p)&&(p.style.position="absolute"),r.append(p))}});return o.observe(r),e?.then(()=>o.disconnect()),r}i(B,"p"),q(B,"resize");function C(t){return typeof t=="object"&&t.nodeType===1}i(C,"f"),q(C,"isElement");var te=Object.defineProperty,re=i((t,e)=>te(t,"name",{value:e,configurable:!0}),"o");const M=(d=class{},i(d,"e"),d);re(M,"Library");let ne=M;const ae=void 0;export{j as AbstractFile,v as FileAttachment,ae as FileAttachments,K as Generators,ne as Library,U as Mutable,P as registerFile,B as resize}; diff --git a/isamples_export_client/ui/_observablehq/stdlib/duckdb.js b/isamples_export_client/ui/_observablehq/stdlib/duckdb.js new file mode 100644 index 0000000..57b7790 --- /dev/null +++ b/isamples_export_client/ui/_observablehq/stdlib/duckdb.js @@ -0,0 +1 @@ +var L=Object.defineProperty;var s=(t,a)=>L(t,"name",{value:a,configurable:!0});var u;import*as l from"../../_npm/@duckdb/duckdb-wasm@1.28.0/_esm.js";var N=Object.defineProperty,o=s((t,a)=>N(t,"name",{value:a,configurable:!0}),"s");const E=await l.selectBundle({mvp:{mainModule:import.meta.resolve("../../_npm/@duckdb/duckdb-wasm@1.28.0/dist/duckdb-mvp.wasm"),mainWorker:import.meta.resolve("../../_npm/@duckdb/duckdb-wasm@1.28.0/dist/duckdb-browser-mvp.worker.js")},eh:{mainModule:import.meta.resolve("../../_npm/@duckdb/duckdb-wasm@1.28.0/dist/duckdb-eh.wasm"),mainWorker:import.meta.resolve("../../_npm/@duckdb/duckdb-wasm@1.28.0/dist/duckdb-browser-eh.worker.js")}}),O=new l.ConsoleLogger(l.LogLevel.WARNING);let m,d=[];const p=new Map;function q(t,a){a==null?(p.delete(t),m=w.of(),d=Array.from(p,e=>m.then(n=>f(n._db,...e)))):(p.set(t,a),m??=w.of(),d.push(m.then(e=>f(e._db,t,a))))}s(q,"q"),o(q,"registerTable");async function g(t,...a){return(await b()).query(t.join("?"),a)}s(g,"k"),o(g,"sql");async function b(){return await Promise.all(d),await(m??=w.of())}s(b,"p"),o(b,"getDefaultClient");const I=(u=class{constructor(a){Object.defineProperties(this,{_db:{value:a}})}async queryStream(a,e){const n=await this._db.connect();let r,i;try{if(e?.length>0?r=await(await n.prepare(a)).send(...e):r=await n.send(a),i=await r.next(),i.done)throw new Error("missing first batch")}catch(c){throw await n.close(),c}return{schema:i.value.schema,async*readRows(){try{for(;!i.done;)yield i.value.toArray(),i=await r.next()}finally{await n.close()}}}}async query(a,e){const n=await this._db.connect();let r;try{e?.length>0?r=await(await n.prepare(a)).query(...e):r=await n.query(a)}finally{await n.close()}return r}async queryRow(a,e){const n=(await this.queryStream(a,e)).readRows();try{const{done:r,value:i}=await n.next();return r||!i.length?null:i[0]}finally{await n.return()}}async sql(a,...e){return await this.query(a.join("?"),e)}queryTag(a,...e){return[a.join("?"),e]}escape(a){return`"${a}"`}async describeTables(){return Array.from(await this.query("SHOW TABLES"),({name:a})=>({name:a}))}async describeColumns({table:a}={}){return Array.from(await this.query(`DESCRIBE ${this.escape(a)}`),({column_name:e,column_type:n,null:r})=>({name:e,type:S(n),nullable:r!=="NO",databaseType:n}))}static async of(a={},e={}){const n=await R();return e.query?.castTimestampToDate===void 0&&(e={...e,query:{...e.query,castTimestampToDate:!0}}),e.query?.castBigIntToDouble===void 0&&(e={...e,query:{...e.query,castBigIntToDouble:!0}}),await n.open(e),await Promise.all(Object.entries(a).map(([r,i])=>f(n,r,i))),new u(n)}static sql(){return this.of.apply(this,arguments).then(a=>a.sql.bind(a))}},s(u,"y"),u);o(I,"DuckDBClient");let w=I;Object.defineProperty(w.prototype,"dialect",{value:"duckdb"});async function f(t,a,e){if(e=await e,B(e))return A(t,a,e);if(h(e))return y(t,a,e);if(Array.isArray(e))return T(t,a,e);if(D(e))return C(t,a,e);if(typeof e=="string")return k(t,a,e);if(e&&typeof e=="object"){if("data"in e){const{data:n,...r}=e;return h(n)?y(t,a,n,r):T(t,a,n,r)}if("file"in e){const{file:n,...r}=e;return A(t,a,n,r)}}throw new Error(`invalid source: ${e}`)}s(f,"f"),o(f,"insertSource");async function k(t,a,e){const n=await t.connect();try{await n.query(`CREATE VIEW '${a}' AS FROM '${e}'`)}finally{await n.close()}}s(k,"R"),o(k,"insertUrl");async function A(t,a,e,n){const r=await e.url();if(r.startsWith("blob:")){const c=await e.arrayBuffer();await t.registerFileBuffer(e.name,new Uint8Array(c))}else await t.registerFileURL(e.name,new URL(r,location).href,4);const i=await t.connect();try{switch(e.mimeType){case"text/csv":case"text/tab-separated-values":return await i.insertCSVFromPath(e.name,{name:a,schema:"main",...n}).catch(async c=>{if(c.toString().includes("Could not convert"))return await v(i,e,a);throw c});case"application/json":return await i.insertJSONFromPath(e.name,{name:a,schema:"main",...n});default:if(/\.arrow$/i.test(e.name)){const c=new Uint8Array(await e.arrayBuffer());return await i.insertArrowFromIPCStream(c,{name:a,schema:"main",...n})}if(/\.parquet$/i.test(e.name))return await i.query(`CREATE VIEW '${a}' AS SELECT * FROM parquet_scan('${e.name}')`);if(/\.(db|ddb|duckdb)$/i.test(e.name))return await i.query(`ATTACH '${e.name}' AS ${a} (READ_ONLY)`);throw new Error(`unknown file type: ${e.mimeType}`)}}finally{await i.close()}}s(A,"A"),o(A,"insertFile");async function v(t,a,e){return await(await t.prepare(`CREATE TABLE '${e}' AS SELECT * FROM read_csv_auto(?, ALL_VARCHAR=TRUE)`)).send(a.name)}s(v,"S"),o(v,"insertUntypedCSV");async function y(t,a,e,n){const r=await t.connect();try{await r.insertArrowTable(e,{name:a,schema:"main",...n})}finally{await r.close()}}s(y,"l"),o(y,"insertArrowTable");async function C(t,a,e){const n=(await import("../../_npm/apache-arrow@16.1.0/_esm.js")).tableFromIPC(e.toArrowBuffer());return await y(t,a,n)}s(C,"L"),o(C,"insertArqueroTable");async function T(t,a,e,n){const r=(await import("../../_npm/apache-arrow@16.1.0/_esm.js")).tableFromJSON(e);return await y(t,a,r,n)}s(T,"h"),o(T,"insertArray");async function R(){const t=await l.createWorker(E.mainWorker),a=new l.AsyncDuckDB(O,t);return await a.instantiate(E.mainModule),a}s(R,"N"),o(R,"createDuckDB");function S(t){switch(t){case"BIGINT":case"HUGEINT":case"UBIGINT":return"bigint";case"DOUBLE":case"REAL":case"FLOAT":return"number";case"INTEGER":case"SMALLINT":case"TINYINT":case"USMALLINT":case"UINTEGER":case"UTINYINT":return"integer";case"BOOLEAN":return"boolean";case"DATE":case"TIMESTAMP":case"TIMESTAMP WITH TIME ZONE":return"date";case"VARCHAR":case"UUID":return"string";default:return/^DECIMAL\(/.test(t)?"integer":"other"}}s(S,"g"),o(S,"getDuckDBType");function B(t){return t&&typeof t.name=="string"&&typeof t.url=="function"&&typeof t.arrayBuffer=="function"}s(B,"B"),o(B,"isFileAttachment");function D(t){return t&&typeof t.toArrowBuffer=="function"}s(D,"C"),o(D,"isArqueroTable");function h(t){return t&&typeof t.getChild=="function"&&typeof t.toArray=="function"&&t.schema&&Array.isArray(t.schema.fields)}s(h,"T"),o(h,"isArrowTable");export{w as DuckDBClient,b as getDefaultClient,q as registerTable,g as sql}; diff --git a/isamples_export_client/ui/_observablehq/stdlib/inputs.css b/isamples_export_client/ui/_observablehq/stdlib/inputs.css new file mode 100644 index 0000000..bcfe960 --- /dev/null +++ b/isamples_export_client/ui/_observablehq/stdlib/inputs.css @@ -0,0 +1 @@ +.inputs-3a86ea{--length1: 3.25px;--length2: 6.5px;--length3: 13px;--label-width: 120px;--input-width: 240px;font:13px/1.2 var(--sans-serif)}form.inputs-3a86ea{display:flex;align-items:center;flex-wrap:wrap;min-height:25.5px;margin:var(--length3) 0}form.inputs-3a86ea>label{width:100%;padding-bottom:3px}form.inputs-3a86ea-toggle{flex-wrap:nowrap}form.inputs-3a86ea-toggle>label{align-self:start;padding:5px 0 4px;margin-right:var(--length2)}form.inputs-3a86ea-toggle>label,form.inputs-3a86ea-toggle .inputs-3a86ea-input{width:initial}@media only screen and (min-width: 30em){form.inputs-3a86ea{flex-wrap:nowrap;width:calc(var(--input-width) + var(--label-width));max-width:100%;margin:initial}form.inputs-3a86ea>label{flex-shrink:0;align-self:start;padding:5px 0 4px;width:var(--label-width);margin-right:var(--length2)}}.inputs-3a86ea button,.inputs-3a86ea input,.inputs-3a86ea select,.inputs-3a86ea table,.inputs-3a86ea textarea{color:inherit;font:inherit;box-sizing:border-box}.inputs-3a86ea button,.inputs-3a86ea input{line-height:normal}.inputs-3a86ea button{margin:0}.inputs-3a86ea button+button{margin-left:var(--length1)}.inputs-3a86ea-textarea{--input-width: 520px}.inputs-3a86ea-textarea>div{width:100%;text-align:right}.inputs-3a86ea-textarea>div textarea{display:block;width:100%;margin:0;padding:4px;min-height:calc(2.5em + 8px);max-height:calc(14em + 8px);resize:vertical}.inputs-3a86ea-textarea>div button{margin:4px 0 0}.inputs-3a86ea input[type=radio],.inputs-3a86ea input[type=checkbox]{margin-right:var(--length2)}.inputs-3a86ea-input{display:flex;align-items:center;width:100%}.inputs-3a86ea-input>input,.inputs-3a86ea-input>button,.inputs-3a86ea-input>output{width:inherit;min-width:0}.inputs-3a86ea-input>button,.inputs-3a86ea-input>output,.inputs-3a86ea-input>input[type=number]{flex-shrink:2.5}.inputs-3a86ea-input>output{white-space:pre;margin-left:var(--length2)}.inputs-3a86ea-input>button{margin-left:var(--length1)}.inputs-3a86ea-input>input[type=number]{font-variant-numeric:tabular-nums;flex-shrink:1.5;text-overflow:ellipsis}.inputs-3a86ea-input>input[type=color]~output{font-family:ui-monospace,var(--monospace)}.inputs-3a86ea-input:not(:only-child)>input[type=color]~output{flex-shrink:1}.inputs-3a86ea-input>input[type=range]{margin:0;margin-left:var(--length2)}.inputs-3a86ea-input>input[type=date],.inputs-3a86ea-input>input[type=datetime-local]{height:22px}form.inputs-3a86ea-checkbox{width:auto;max-width:640px}.inputs-3a86ea-checkbox div label{display:inline-flex;align-items:center;margin-right:var(--length3)}form.inputs-3a86ea-table{display:block;overflow-y:auto;width:100%}.inputs-3a86ea-table table{max-width:initial;min-height:33px;margin:0;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}.inputs-3a86ea-table tr:not(:last-child) td,.inputs-3a86ea-table tr:not(:last-child) th{border-bottom:solid 1px var(--theme-foreground-faintest)}.inputs-3a86ea-table thead tr td,.inputs-3a86ea-table thead tr th{border-bottom:solid 1px var(--theme-foreground-fainter)}.inputs-3a86ea-table thead th span{display:inline-block;width:.5em;margin-left:-.5em}.inputs-3a86ea-table td,.inputs-3a86ea-table th{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:3px 6.5px 3px 0}.inputs-3a86ea-table tr>:not(:first-of-type){padding-left:var(--length2)}.inputs-3a86ea-table tr>:last-of-type{padding-right:var(--length3)}.inputs-3a86ea-table tr>:first-of-type{text-overflow:unset;width:19px}.inputs-3a86ea-table tr>:first-of-type input{opacity:0;margin:0 3px 1px 4px}.inputs-3a86ea-table tr:hover>:first-of-type input:enabled,.inputs-3a86ea-table tr>:first-of-type input:focus,.inputs-3a86ea-table tr>:first-of-type input:checked,.inputs-3a86ea-table tr>:first-of-type input[type=checkbox]:indeterminate{opacity:inherit}.inputs-3a86ea-table thead tr{border-bottom:none}.inputs-3a86ea-table thead th{position:sticky;top:0;background:var(--theme-background);cursor:ns-resize}.inputs-3a86ea-table tbody tr:first-child td{padding-top:4px} diff --git a/isamples_export_client/ui/_observablehq/stdlib/inputs.js b/isamples_export_client/ui/_observablehq/stdlib/inputs.js new file mode 100644 index 0000000..69020e1 --- /dev/null +++ b/isamples_export_client/ui/_observablehq/stdlib/inputs.js @@ -0,0 +1,100 @@ +var nn=Object.defineProperty;var a=(e,t)=>nn(e,"name",{value:t,configurable:!0});var ve,pe,me;import{html as m}from"../../_npm/htl@0.3.1/_esm.js";import{AbstractFile as rn}from"../stdlib.js";var an=Object.defineProperty,it=a((e,t)=>an(e,"name",{value:t,configurable:!0}),"t$6");function B(e){return e==null?null:typeof e=="number"?`${e}px`:`${e}`}a(B,"r$8"),it(B,"length");function I(e){return{"--input-width":B(e)}}a(I,"l$6"),it(I,"maybeWidth");var on=Object.defineProperty,Te=a((e,t)=>on(e,"name",{value:t,configurable:!0}),"e$1");const De={bubbles:!0};function Q(e){e.preventDefault()}a(Q,"c$5"),Te(Q,"preventDefault");function ue({currentTarget:e}){(e.form||e).dispatchEvent(new Event("input",De))}a(ue,"o$9"),Te(ue,"dispatchInput");function ze(e){return e.checkValidity()}a(ze,"r$7"),Te(ze,"checkValidity");var ln=Object.defineProperty,un=a((e,t)=>ln(e,"name",{value:t,configurable:!0}),"n$6");function L(e){return e}a(L,"o$8"),un(L,"identity");var sn=Object.defineProperty,cn=a((e,t)=>sn(e,"name",{value:t,configurable:!0}),"n$5");let fn=0;function se(){return`inputs-3a86ea-${++fn}`}a(se,"o$7"),cn(se,"newId");var dn=Object.defineProperty,vn=a((e,t)=>dn(e,"name",{value:t,configurable:!0}),"o$6");function D(e,t){if(e)return e=m`