@arcgis/coding-components 4.30.0-next.28 → 4.30.0-next.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-a7f63339.js → p-0dc0bb8a.js} +2 -2
- package/dist/arcgis-coding-components/{p-05329d74.js → p-1cdc731d.js} +2 -2
- package/dist/arcgis-coding-components/{p-6ffcf9bd.js → p-2262edb5.js} +2 -2
- package/dist/arcgis-coding-components/{p-adb8cc85.js → p-23baf361.js} +2 -2
- package/dist/arcgis-coding-components/{p-a5e144c2.js → p-24adbb7c.js} +3 -3
- package/dist/arcgis-coding-components/{p-f3a5cf72.js → p-622b32b2.js} +1 -1
- package/dist/arcgis-coding-components/{p-e263e557.js → p-62e5bb1a.js} +1 -1
- package/dist/arcgis-coding-components/{p-f11ac435.js → p-6df29b26.js} +2 -2
- package/dist/arcgis-coding-components/{p-baddb414.js → p-77ed71a8.js} +2 -2
- package/dist/arcgis-coding-components/{p-43b2b10c.js → p-9a00ddea.js} +2 -2
- package/dist/arcgis-coding-components/{p-ae1028fe.js → p-9a6e0c8c.js} +1 -1
- package/dist/arcgis-coding-components/{p-79167424.entry.js → p-9dc57c40.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-8674dbd7.js → p-9f9cd0b9.js} +2 -2
- package/dist/arcgis-coding-components/{p-b74a3fb4.js → p-e2200653.js} +10 -10
- package/dist/arcgis-coding-components/{p-8545f46d.js → p-eff2d3a4.js} +2 -2
- package/dist/cjs/{Accessor-U5QUEX2T-f444d013.js → Accessor-U5QUEX2T-e8f5e012.js} +2 -2
- package/dist/cjs/{arcade-defaults-8ace3578.js → arcade-defaults-5269f6ab.js} +10 -10
- package/dist/cjs/{arcade-mode-727df04b.js → arcade-mode-85df9043.js} +3 -3
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +6 -6
- package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
- package/dist/cjs/{chunk-CQC6TXVI-b0b59905.js → chunk-CQC6TXVI-eb50b11c.js} +1 -1
- package/dist/cjs/{css-ba0a630f.js → css-894bed01.js} +1 -1
- package/dist/cjs/{cssMode-1cfa5667.js → cssMode-0fd626db.js} +3 -3
- package/dist/cjs/{decorators-5KFQ5FDO-5b2fdbc9.js → decorators-5KFQ5FDO-45eeb3a7.js} +2 -2
- package/dist/cjs/{html-86fa1a6e.js → html-64719fae.js} +3 -3
- package/dist/cjs/{htmlMode-a8e46292.js → htmlMode-ad637d19.js} +3 -3
- package/dist/cjs/{index-5592f263.js → index-994ea295.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-828857b9.js → javascript-72aed55a.js} +4 -4
- package/dist/cjs/{jsonMode-99376076.js → jsonMode-b98b4ca9.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tsMode-78b54b15.js → tsMode-7b613436.js} +3 -3
- package/dist/cjs/{typescript-eb479355.js → typescript-585a7543.js} +3 -3
- package/dist/components/Accessor-U5QUEX2T.js +1 -1
- package/dist/components/arcade-api.js +1 -1
- package/dist/components/arcade-contribution.js +1 -1
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcade-variables.js +1 -1
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/chunk-CQC6TXVI.js +1 -1
- package/dist/components/chunk-MRROWYKQ.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/decorators-5KFQ5FDO.js +1 -1
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{Accessor-U5QUEX2T-71e644c6.js → Accessor-U5QUEX2T-0dfda39e.js} +2 -2
- package/dist/esm/{arcade-defaults-56655a7c.js → arcade-defaults-87a86d11.js} +10 -10
- package/dist/esm/{arcade-mode-7293ac11.js → arcade-mode-45fc67da.js} +3 -3
- package/dist/esm/arcgis-arcade-api_6.entry.js +6 -6
- package/dist/esm/arcgis-coding-components.js +3 -3
- package/dist/esm/{chunk-CQC6TXVI-cf693cde.js → chunk-CQC6TXVI-f8d27710.js} +1 -1
- package/dist/esm/{css-dcaeba41.js → css-08f38d73.js} +1 -1
- package/dist/esm/{cssMode-7fd737ab.js → cssMode-ab8f5063.js} +3 -3
- package/dist/esm/{decorators-5KFQ5FDO-8c3f3363.js → decorators-5KFQ5FDO-7ae08fab.js} +3 -3
- package/dist/esm/{html-a10f2fbc.js → html-af497230.js} +3 -3
- package/dist/esm/{htmlMode-03dc4760.js → htmlMode-da083262.js} +3 -3
- package/dist/esm/{index-1c1d386e.js → index-18371544.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-766012a6.js → javascript-5e6afc56.js} +4 -4
- package/dist/esm/{jsonMode-b625c527.js → jsonMode-71281d55.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tsMode-1510291e.js → tsMode-98a33527.js} +3 -3
- package/dist/esm/{typescript-72bf51f6.js → typescript-1dcc1a21.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/package.json +9 -9
- /package/dist/types/data/{actions-runner-1 → actions-runner-2}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +0 -0
- /package/dist/types/data/{actions-runner-1 → actions-runner-2}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +0 -0
- /package/dist/types/data/{actions-runner-1 → actions-runner-2}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.29
|
|
5
5
|
*/
|
|
6
|
-
import{p as e,b as t}from"./p-
|
|
6
|
+
import{p as e,b as t}from"./p-9a6e0c8c.js";export{s as setNonce}from"./p-9a6e0c8c.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-9dc57c40",[[0,"arcgis-arcade-editor",{profile:[16],script:[1],testData:[16],suggestions:[16],snippets:[16],hideDocumentationActions:[4,"hide-documentation-actions"],hideSideBar:[4,"hide-side-bar"],sideActionBarExpanded:[1540,"side-action-bar-expanded"],openedSidePanel:[1537,"opened-side-panel"],editorOptions:[16],messages:[32],_standaloneCodeEditor:[32],_preparingProfile:[32],_editorProfile:[32],_showExecutionPanel:[32],_resultPanel:[32],_executingScript:[32],_consoleLogs:[32],_executionResult:[32],getScript:[64],setFocus:[64],getEditorInstance:[64],getTestResult:[64],updateThemeColors:[64]},null,{profile:["_profileChanged"],testData:["_testDataChanged"],snippets:["_snippetChanged"]}],[1,"arcgis-arcade-api",{hideDocumentationActions:[4,"hide-documentation-actions"],modelId:[1,"model-id"],_selectedApiItem:[32],_filterValue:[32],_colorizeStyle:[32],_preparingApi:[32],_apiLibrary:[32]}],[1,"arcgis-arcade-results",{loading:[4],openedResultPanel:[1537,"opened-result-panel"],result:[16],consoleLogs:[16]}],[1,"arcgis-arcade-suggestions",{suggestions:[16],_selectedSuggestion:[32],_filterValue:[32],_colorizeStyle:[32]},null,{suggestions:["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{loading:[4],modelId:[1,"model-id"],_mutationCounter:[32],_flowItemRenderers:[32],_filterValue:[32]},null,{modelId:["modelIdPropChanged"]}],[0,"arcgis-code-editor",{value:[1],language:[1],modelId:[1,"model-id"],options:[16],getValue:[64],setValue:[64],insertText:[64],insertSnippet:[64],getEditorInstance:[64],setFocus:[64]},null,{value:["valuePropChange"],language:["languagePropChange"],modelId:["modelIdPropChange"],options:["optionsPropChange"]}]]]],e)));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.29
|
|
5
5
|
*/
|
|
6
|
-
export{a as arcade}from"./p-
|
|
6
|
+
export{a as arcade}from"./p-e2200653.js";import"./p-9a6e0c8c.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.29
|
|
5
5
|
*/
|
|
6
|
-
import{v as t,S as s,j as i,r as e,y as n,a as r,o as h,I as o,b as c,n as u,t as l,e as a,h as f,s as d,i as v,f as p,c as m,m as w,p as y,k as g,g as b,d as A,u as _,O}from"./p-e263e557.js";var k=class t{constructor(t,s,i,e=1,n=0){if(this._ctor=t,this._acquireFunction=s,this._releaseFunction=i,this.allocationSize=e,this._pool=new Array(n),this._initialSize=n,this._ctor)for(let t=0;t<n;t++)this._pool[t]=new this._ctor;this.allocationSize=Math.max(e,1)}destroy(){this.prune(0)}acquire(...s){let i;if(t.test.disabled)i=new this._ctor;else{if(0===this._pool.length){const t=this.allocationSize;for(let s=0;s<t;s++)this._pool[s]=new this._ctor}i=this._pool.pop()}return this._acquireFunction?this._acquireFunction(i,...s):function(t){return t?.acquire&&"function"==typeof t.acquire}(i)&&i.acquire(...s),i}release(s){s&&!t.test.disabled&&(this._releaseFunction?this._releaseFunction(s):function(t){return t?.release&&"function"==typeof t.release}(s)&&s.release(),this._pool.push(s))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let s=t;s<this._pool.length;++s)this._dispose(this._pool[s]);this._pool.length=t}}_dispose(t){t.dispose&&"function"==typeof t.dispose&&t.dispose()}};k.test={disabled:!1};var E,S=[];!function(t){const s=(t,s,i,e)=>{let n=s,r=s;const h=i>>>1,o=t[n-1];for(;r<=h;){r=n<<1,r<i&&e(t[r-1],t[r])<0&&++r;const s=t[r-1];if(e(s,o)<=0)break;t[n-1]=s,n=r}t[n-1]=o},i=(t,s)=>t<s?-1:t>s?1:0;t.sort=function(t,e,n,r){void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===r&&(r=i);for(let i=n>>>1;i>e;i--)s(t,i,n,r);const h=e+1;for(let i=n-1;i>e;i--){const n=t[e];t[e]=t[i],t[i]=n,s(t,h,i,r)}},t.iterableSort=function*(t,e,n,r){void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===r&&(r=i);for(let i=n>>>1;i>e;i--)s(t,i,n,r),yield;const h=e+1;for(let i=n-1;i>e;i--){const n=t[e];t[e]=t[i],t[i]=n,s(t,h,i,r),yield}}}(E||(E={}));var T=E,M=class{constructor(s){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new t,s&&(s.initialSize&&(this.data=new Array(s.initialSize)),s.allocator&&(this._allocator=s.allocator),void 0!==s.deallocator&&(this._deallocator=s.deallocator),s.shrink&&(this._shrink=()=>C(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const s=new Array;for(let i=0;i<this._length;i++){const e=this.data[i];t(e)&&s.push(e)}return s}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,s){const i=this.data.indexOf(t,s);return-1!==i&&i<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let s=t;s<this._length;++s)this.data[s]=this._deallocator(this.data[s]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,s=t.length){for(let i=0;i<s;i++)this.data[this._length++]=t[i]}fill(t,s){for(let i=0;i<s;i++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,C(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const i=s(this.data,t,this.length,this._hint);if(-1!==i)return this.data.splice(i,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex(s(this.data,t,this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,s=t.length,e){this.length=i(this.data,t,this.length,s,this._hint,e),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,s){if(t>=this.length||s>=this.length||t===s)return;const i=this.data[t];this.data[t]=this.data[s],this.data[s]=i}sort(t){T.sort(this.data,0,this.length,t)}iterableSort(t){return T.iterableSort(this.data,0,this.length,t)}some(t,s){for(let i=0;i<this.length;++i)if(t.call(s,this.data[i],i,this.data))return!0;return!1}find(t,s){for(let i=0;i<this.length;++i){const e=this.data[i];if(t.call(s,e,i))return e}}filterInPlace(t,s){let i=0;for(let e=0;e<this._length;++e){const n=this.data[e];t.call(s,n,e,this.data)&&(this.data[e]=this.data[i],this.data[i]=n,i++)}if(this._deallocator)for(let t=i;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=i,this._shrink(),this}forAll(t,s){const{data:i,length:e}=this;for(let n=0;n<e;++n)t.call(s,i[n],n,i)}forEach(t,s){this.data.slice(0,this.length).forEach(t,s)}map(t,s){const i=new Array(this.length);for(let e=0;e<this.length;++e)i[e]=t.call(s,this.data[e],e,this.data);return i}reduce(t,s){let i=s;for(let s=0;s<this.length;++s)i=t(i,this.data[s],s,this.data);return i}has(t){const s=this.length,i=this.data;for(let e=0;e<s;++e)if(i[e]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}};function C(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}var D=class{constructor(t,s=30){this.name=t,this._counter=0,this._samples=new Array(s)}record(t){null!=t&&(this._samples[++this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort(((t,s)=>t-s))[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce(((t,s)=>t+s),0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}},I=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},R=0,$={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},q=["prepare","preRender","render","postRender","update","finish"],U=[],z=new M,x={frameTasks:z,willDispatch:!1,clearFrameTasks:function(t=!1){z.forAll((t=>{t.removed=!0})),t&&P()},dispatch:F,executeFrameTasks:function(t){const s=t-R;R=t;const i=1e3/60,e=Math.max(0,s-i);$.time=t,$.frameDuration=i-e;for(let i=0;i<q.length;i++){const e=performance.now(),n=q[i];z.forAll((e=>{e.paused||e.removed||(0===i&&e.ticks++,e.phases[n]&&($.elapsedFrameTime=performance.now()-t,$.deltaTime=0===e.ticks?0:s,e.phases[n]?.call(e,$)))})),N[i].record(performance.now()-e)}P(),W.record(performance.now()-t)},reschedule:function(){}};var H=new M;function P(){z.forAll((t=>{t.removed&&H.push(t)})),z.removeUnorderedMany(H.data,H.length),H.clear()}function F(){for(;U.length;){const t=U.shift();t.isActive&&t.callback()}x.willDispatch=!1}var N=q.map((t=>new D(t))),W=new D("total");function j(t){return null!=t&&"function"==typeof t[Symbol.iterator]}var B=class{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let t=0;return this._groups.forEach((s=>{t+=s.length})),t}add(t,s){if(j(t)){const i=this._getOrCreateGroup(s);for(const s of t)V(s)&&i.push(s)}else V(t)&&this._getOrCreateGroup(s).push(t);return this}forEach(t,s){if("function"==typeof t)this._groups.forEach((s=>s.forEach(t)));else{const i=this._getGroup(t);i&&s&&i.forEach(s)}}has(t){return this._groups.has(G(t))}remove(t){if("string"!=typeof t&&j(t)){for(const s of t)this.remove(s);return this}return this.has(t)?(L(this._getGroup(t)),this._groups.delete(G(t)),this):this}removeAll(){return this._groups.forEach(L),this._groups.clear(),this}_getOrCreateGroup(t){if(this.has(t))return this._getGroup(t);const s=[];return this._groups.set(G(t),s),s}_getGroup(t){return this._groups.get(G(t))}};function G(t){return t||"_default_"}function L(t){for(const s of t)s instanceof B?s.removeAll():s.remove()}function V(t){return null!=t&&(!!t.remove||t instanceof B)}var J=new WeakMap;var K,Q,X=class{constructor(t,s){this._observers=t,this._observer=s}remove(){O(this._observers,this._observer)}},Y=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return Z;null==this._observers&&(this._observers=[]);const s=this._observers;let i=!1,e=!1;const n=s.length;for(let r=0;r<n;++r){const n=s[r];if(n.destroyed)e=!0;else if(n===t){i=!0;break}}return i||(s.push(t),e&&this._removeDestroyedObservers()),new X(s,t)}_removeDestroyedObservers(){const t=this._observers;if(!t||0===t.length)return;const s=t.length;let i=0;for(let e=0;e<s;++e){for(;e+i<s&&t[e+i].destroyed;)++i;if(i>0){if(!(e+i<s))break;t[e]=t[e+i]}}t.length=s-i}destroy(){if(this.destroyed)return;this.destroyed=!0;const t=this._observers;if(null!=t){for(const s of t)s.onCommitted();this._observers=null}}},Z=a();function tt(t){switch(t){case K.DEFAULTS:return"defaults";case K.SERVICE:return"service";case K.PORTAL_ITEM:return"portal-item";case K.WEB_SCENE:return"web-scene";case K.WEB_MAP:return"web-map";case K.LINK_CHART:return"link-chart";case K.USER:return"user"}}(Q=K||(K={}))[Q.DEFAULTS=0]="DEFAULTS",Q[Q.COMPUTED=1]="COMPUTED",Q[Q.SERVICE=2]="SERVICE",Q[Q.PORTAL_ITEM=3]="PORTAL_ITEM",Q[Q.WEB_SCENE=4]="WEB_SCENE",Q[Q.WEB_MAP=5]="WEB_MAP",Q[Q.LINK_CHART=6]="LINK_CHART",Q[Q.USER=7]="USER";var st=class extends Y{constructor(t,s){super(),this.propertyName=t,this.metadata=s,this._accessed=null,this._handles=null,this.flags=0,this.flags=v.Dirty|(s.nonNullable?v.NonNullable:0)|(s.hasOwnProperty("value")?v.HasDefaultValue:0)|(void 0===s.get?v.DepTrackingInitialized:0)|(void 0===s.dependsOn?v.AutoTracked:0)}destroy(){this.flags&v.Dirty&&this.onCommitted(),super.destroy(),this._accessed=null,this._clearObservationHandles()}getComputed(t){d(this);const s=t.store,i=this.propertyName,e=this.flags,n=s.get(i);if(e&v.Computing)return n;if(~e&v.Dirty&&s.has(i))return n;this.flags|=v.Computing;const r=t.host;let h;e&v.AutoTracked?h=p(this,this.metadata.get,r):(g(r,this),h=this.metadata.get.call(r)),s.set(i,h,K.COMPUTED);const o=s.get(i);return o===n?this.flags&=~v.Dirty:b(this.commit,this),this.flags&=~v.Computing,o}onObservableAccessed(t){if(t===this)return;let s=this._accessed;if(null==s)s=[],this._accessed=s;else if(s.includes(t))return;s.push(t)}onTrackingEnd(){this._clearObservationHandles(),this.flags|=v.DepTrackingInitialized;const t=this._accessed;if(null==t||0===t.length)return;let s=this._handles;null==s&&(s=[],this._handles=s);for(let i=0;i<t.length;++i)s.push(t[i].observe(this));t.length=0}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~v.Dirty,this.onCommitted()}_clearObservationHandles(){const t=this._handles;if(null!==t){for(let s=0;s<t.length;++s)t[s].remove();t.length=0}}onInvalidated(){~this.flags&v.Overridden&&(this.flags|=v.Dirty);const t=this._observers;if(t&&t.length>0)for(const s of t)s.onInvalidated()}onCommitted(){const t=this._observers;if(t&&t.length>0){const s=t.slice();for(const t of s)t.onCommitted()}}},it=class t{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(s){const i=new t;return this._values.forEach(((t,e)=>{s&&s.has(e)||i.set(e,A(t))})),i}get(t){return this._values.get(t)}originOf(){return K.USER}keys(){return[...this._values.keys()]}set(t,s){this._values.set(t,s)}delete(t){this._values.delete(t)}has(t){return this._values.has(t)}forEach(t){this._values.forEach(t)}};function et(t){return void 0!==t}function nt(t,s,i){return!(void 0===t||null==i&&t.flags&v.NonNullable)}var rt,ht,ot=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=o.INITIALIZING,this.store=new it,this._origin=K.USER;const s=this.host.constructor.__accessorMetadata__;for(const t in s){const i=new st(t,s[t]);this.propertiesByName.set(t,i)}this.metadata=s}initialize(){this.lifecycle=o.CONSTRUCTING}constructed(){this.lifecycle=o.CONSTRUCTED}destroy(){this.lifecycle=o.DESTROYED,this.propertiesByName.forEach((t=>t.destroy()))}get initialized(){return this.lifecycle!==o.INITIALIZING}get(t){const s=this.propertiesByName.get(t);if(s.metadata.get)return s.getComputed(this);d(s);const i=this.store;return i.has(t)?i.get(t):s.metadata.value}originOf(t){const s=this.store.originOf(t);if(void 0===s){const s=this.propertiesByName.get(t);if(void 0!==s&&s.flags&v.HasDefaultValue)return"defaults"}return tt(s)}has(t){return this.propertiesByName.has(t)&&this.store.has(t)}keys(){return[...this.propertiesByName.keys()]}internalGet(t){const s=this.propertiesByName.get(t);if(et(s))return this.store.has(t)?this.store.get(t):s.metadata.value}internalSet(t,s){const i=this.propertiesByName.get(t);et(i)&&this._internalSet(i,s)}getDependsInfo(t,s,i){const e=this.propertiesByName.get(s);if(!et(e))return"";const n=new Set,r=p({onObservableAccessed:t=>n.add(t),onTrackingEnd:()=>{}},(()=>e.metadata.get?.call(t)));let h=`${i}${t.declaredClass.split(".").pop()}.${s}: ${r}\n`;if(0===n.size)return h;i+=" ";for(const t of n)t instanceof st&&(h+=`${i}${t.propertyName}: undefined\n`);return h}setAtOrigin(t,s,i){const e=this.propertiesByName.get(t);if(et(e))return this._setAtOrigin(e,s,i)}isOverridden(t){const s=this.propertiesByName.get(t);return void 0!==s&&!!(s.flags&v.Overridden)}clearOverride(t){const s=this.propertiesByName.get(t);s&&s.flags&v.Overridden&&(s.flags&=~v.Overridden,s.notifyChange())}override(t,s){const i=this.propertiesByName.get(t);if(!nt(i,0,s))return;const e=i.metadata.cast;if(e){const t=this._cast(e,s),{valid:i,value:n}=t;if(ct.release(t),!i)return;s=n}i.flags|=v.Overridden,this._internalSet(i,s)}set(t,s){const i=this.propertiesByName.get(t);if(!nt(i,0,s))return;const e=i.metadata.cast;if(e){const t=this._cast(e,s),{valid:i,value:n}=t;if(ct.release(t),!i)return;s=n}const n=i.metadata.set;n?n.call(this.host,s):this._internalSet(i,s)}setDefaultOrigin(t){this._origin=function(t){switch(t){case"defaults":return K.DEFAULTS;case"service":return K.SERVICE;case"portal-item":return K.PORTAL_ITEM;case"web-scene":return K.WEB_SCENE;case"web-map":return K.WEB_MAP;case"link-chart":return K.LINK_CHART;case"user":return K.USER;default:return null}}(t)}getDefaultOrigin(){return tt(this._origin)}notifyChange(t){const s=this.propertiesByName.get(t);void 0!==s&&s.notifyChange()}invalidate(t){const s=this.propertiesByName.get(t);void 0!==s&&s.invalidate()}commit(t){const s=this.propertiesByName.get(t);void 0!==s&&s.commit()}_internalSet(t,s){this._setAtOrigin(t,s,this.lifecycle!==o.INITIALIZING?this._origin:K.DEFAULTS)}_setAtOrigin(t,s,i){const e=this.store,n=t.propertyName;e.has(n,i)&&m(s,e.get(n))&&~t.flags&v.Overridden&&i===e.originOf(n)||(t.invalidate(),e.set(n,s,i),t.commit(),w(this.host,t))}_cast(t,s){const i=ct.acquire();return i.valid=!0,i.value=s,t&&(i.value=t.call(this.host,s,i)),i}},ct=new k(class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}});function ut(t){t.length=0}(ht=rt||(rt={}))[ht.Ignore=0]="Ignore",ht[ht.Destroy=1]="Destroy",ht[ht.ThrowError=2]="ThrowError";var lt=class{constructor(t=50,s=50){this._pool=new k(Array,void 0,ut,s,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return at.acquire()}static release(t){return at.release(t)}static prune(){at.prune()}},at=new lt(100),ft=0;function dt(){return++ft}var vt=class{constructor(t){this._accessed=[],this._handles=[],this._observerObject=new pt(t),mt.register(this,new WeakRef(this._observerObject),this)}destroy(){mt.unregister(this._observerObject),this._accessed.length=0,this._observerObject?.destroy(),this.clear()}onObservableAccessed(t){const s=this._accessed;s.includes(t)||s.push(t)}onTrackingEnd(){const t=this._handles,s=this._accessed,i=this._observerObject;for(let e=0;e<s.length;++e)t.push(s[e].observe(i));s.length=0}clear(){const t=this._handles;for(let s=0;s<t.length;++s)t[s].remove();t.length=0}},pt=class{constructor(t){this._notify=t,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;const t=this._invalidCount;if(1===t)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}destroy(){this.destroyed=!0,this._notify=wt}},mt=new FinalizationRegistry((t=>{t.deref()?.destroy()}));function wt(){}var yt,gt=!1,bt=[];!function(t){t[t.Untracked=0]="Untracked",t[t.Tracked=1]="Tracked"}(yt||(yt={}));var At=class{constructor(){this.uid=dt(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(t,s,i,e,n){return this.pool.acquire(yt.Untracked,t,s,i,e,n,m)}static acquireTracked(t,s,i,e){return this.pool.acquire(yt.Tracked,t,s,i,null,null,e)}notify(t,s){this.type===yt.Untracked?this.callback.call(this.target,t,s,this.path,this.target):this.callback.call(null,t,s,void 0,void 0)}acquire(t,s,i,e,n,r,h){this.uid=dt(),this.removed=!1,this.type=t,this.oldValue=s,this.callback=i,this.getValue=e,this.target=n,this.path=r,this.equals=h}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=dt(),this.removed=!0}};At.pool=new class extends k{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...t){const s=super.acquire(...t);return this._set.delete(s),s}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}(At);var _t,Ot=new lt,kt=new Set;function Et(t){kt.delete(t),kt.add(t),_t||(_t=function(t){const s=new I(t);return U.push(s),x.willDispatch||(x.willDispatch=!0,S.push(F),1===S.length&&queueMicrotask((()=>{const t=S.slice();S.length=0;for(const s of t)s()}))),s}(Tt))}function St(t){if(t.removed)return;const s=t.oldValue,i=t.getValue();t.equals(s,i)||(t.oldValue=i,t.notify(i,s))}function Tt(){let t=10;for(;_t&&t--;){_t=null;const t=Mt(),s=Ot.acquire();for(const i of t){const t=i.uid;St(i),t===i.uid&&i.removed&&s.push(i)}for(const t of kt)t.removed&&(s.push(t),kt.delete(t));for(const t of s)At.pool.release(t);Ot.release(s),Ot.release(t),It.forEach((t=>t()))}}function Mt(){const t=Ot.acquire();t.length=kt.size;let s=0;for(const i of kt)t[s]=i,++s;return kt.clear(),t}var Ct,Dt,It=new Set;function Rt(t,s,i,e=!1){return t.__accessor__&&t.__accessor__.lifecycle!==o.DESTROYED?e?function(t,s,i){const e=y(t,s,i,((t,s,i)=>{let n=!1;return function(t,s){let i=new vt((function r(){if(!i||n)return;if(gt)return void function(t){bt.includes(t)||bt.unshift(t)}(r);const h=e;i.clear(),gt=!0,n=!0,e=p(i,t),n=!1,gt=!1,s(e,h),function(){for(;bt.length;)bt.pop()()}()})),e=null,n=!1;return n=!0,e=p(i,t),n=!1,a((function(){i&&(i.destroy(),i=null,e=null)}))}((()=>_(t,s)),((r,h)=>{t.__accessor__.lifecycle!==o.DESTROYED?n||(n=!0,m(h,r)||i.call(t,r,h,s,t),n=!1):e.remove()}))}));return e}(t,s,i):function(t,s,i){let e=y(t,s,i,((t,s,i)=>{let n,r,h=function(t,s){let i=new vt((function(){s(e,n)})),e=null;function n(){return i?(i.clear(),e=p(i,t),e):null}return n(),a((function(){i&&(i.destroy(),i=null),e=null}))}((()=>_(t,s)),((h,c)=>{t.__accessor__?.lifecycle===o.DESTROYED||n&&n.uid!==r?e.remove():(n||(n=At.acquireUntracked(h,i,c,t,s),r=n.uid),Et(n))}));return a((()=>{h.remove(),n&&(n.uid!==r||n.removed||(n.removed=!0,Et(n)),n=null),e=h=null}))}));return e}(t,s,i):a()}function $t(t){if(null==t)return{value:t};if(Array.isArray(t))return{type:[t[0]],value:null};switch(typeof t){case"object":return t.constructor?.__accessorMetadata__||t instanceof Date?{type:t.constructor,value:t}:t;case"boolean":return{type:Boolean,value:t};case"string":return{type:String,value:t};case"number":return{type:Number,value:t};case"function":return{type:t,value:null};default:return}}var qt=Symbol("Accessor-Handles"),Ut=Symbol("Accessor-Initialized"),zt=class t{static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:s,declaredClass:i,constructor:h}=t;delete t.declaredClass,delete t.properties,delete t.constructor;const o=this;class c extends o{constructor(...t){super(...t),this.inherited=null,h&&h.apply(this,t)}}e(c.prototype);for(const s in t){const i=t[s];c.prototype[s]="function"==typeof i?function(...t){const e=this.inherited;let n;this.inherited=function(...t){if(o.prototype[s])return o.prototype[s].apply(this,t)};try{n=i.apply(this,t)}catch(t){throw this.inherited=e,t}return this.inherited=e,n}:t[s]}for(const t in s){const i=$t(s[t]);n(i)(c.prototype,t)}return r(i)(c)}constructor(...s){if(this[Ct]=null,this[Dt]=!1,this.constructor===t)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");const i=new ot(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:i}),s.length>0&&this.normalizeCtorArgs&&(i.ctorArgs=this.normalizeCtorArgs.apply(this,s))}postscript(t){const s=this.__accessor__,i=s.ctorArgs||t;s.initialize(),i&&(this.set(i),s.ctorArgs=null),s.constructed(),this.initialize(),this[Ut]=!0}initialize(){}[h](){var t;this[qt]=(t=this[qt],t?.destroy(),null)}destroy(){this.destroyed||(function(t){for(const s of kt.values())s.target===t&&(s.removed=!0)}(this),this.__accessor__.destroy())}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[Ut]}get destroyed(){return this.__accessor__?.lifecycle===o.DESTROYED||!1}commitProperty(t){c(this,t)}get(t){return function(t,s,i={}){if(f("esri-deprecation-warnings")){const{moduleName:e}=i;!function(t,s,i={}){if(f("esri-deprecation-warnings")){const{replacement:e,version:n,see:r,warnOnce:h}=i;let o=s;e&&(o+=`\n\t🛠️ Replacement: ${e}`),n&&(o+=`\n\t⚙️ Version: ${n}`),r&&(o+=`\n\t🔗 See ${r} for more details.`),function(t,s,i=!1){const e=`🛑 DEPRECATED - ${s}`;if(!i)return void t.warn(e);let n=J.get(t);n||(n=new Set,J.set(t,n)),n.has(s)||(n.add(s),t.warn(e))}(t,o,h)}}(t,"Function: "+(e?e+"::":"")+s+"()",i)}}(u.getLogger(this),"`Accessor.get` is deprecated in favor of using optional chaining",{version:"4.28",see:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining"}),c(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,s){return l(this,t,s),this}watch(t,s,i){return Rt(this,t,s,i)}addHandles(t,s){if(this.destroyed){const s=Array.isArray(t)?t:[t];for(const t of s)t.remove();return}let i=this[qt];null==i&&(i=this[qt]=new B),i.add(t,s)}removeHandles(t){const s=this[qt];null!=s&&s.remove(t)}removeAllHandles(){const t=this[qt];null!=t&&t.removeAll()}hasHandles(t){const s=this[qt];return null!=s&&s.has(t)}_override(t,s){void 0===s?this.__accessor__.clearOverride(t):this.__accessor__.override(t,s)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_overrideIfSome(t,s){null==s?this.__accessor__.clearOverride(t):this.__accessor__.override(t,s)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,s){return this.__accessor__.internalSet(t,s),this}};Ct=qt,Dt=Ut;export default zt;
|
|
6
|
+
import{v as t,S as s,j as i,r as e,y as n,a as r,o as h,I as o,b as c,n as u,t as l,e as a,h as f,s as d,i as v,f as p,c as m,m as w,p as y,k as g,g as b,d as A,u as _,O}from"./p-62e5bb1a.js";var k=class t{constructor(t,s,i,e=1,n=0){if(this._ctor=t,this._acquireFunction=s,this._releaseFunction=i,this.allocationSize=e,this._pool=new Array(n),this._initialSize=n,this._ctor)for(let t=0;t<n;t++)this._pool[t]=new this._ctor;this.allocationSize=Math.max(e,1)}destroy(){this.prune(0)}acquire(...s){let i;if(t.test.disabled)i=new this._ctor;else{if(0===this._pool.length){const t=this.allocationSize;for(let s=0;s<t;s++)this._pool[s]=new this._ctor}i=this._pool.pop()}return this._acquireFunction?this._acquireFunction(i,...s):function(t){return t?.acquire&&"function"==typeof t.acquire}(i)&&i.acquire(...s),i}release(s){s&&!t.test.disabled&&(this._releaseFunction?this._releaseFunction(s):function(t){return t?.release&&"function"==typeof t.release}(s)&&s.release(),this._pool.push(s))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let s=t;s<this._pool.length;++s)this._dispose(this._pool[s]);this._pool.length=t}}_dispose(t){t.dispose&&"function"==typeof t.dispose&&t.dispose()}};k.test={disabled:!1};var E,S=[];!function(t){const s=(t,s,i,e)=>{let n=s,r=s;const h=i>>>1,o=t[n-1];for(;r<=h;){r=n<<1,r<i&&e(t[r-1],t[r])<0&&++r;const s=t[r-1];if(e(s,o)<=0)break;t[n-1]=s,n=r}t[n-1]=o},i=(t,s)=>t<s?-1:t>s?1:0;t.sort=function(t,e,n,r){void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===r&&(r=i);for(let i=n>>>1;i>e;i--)s(t,i,n,r);const h=e+1;for(let i=n-1;i>e;i--){const n=t[e];t[e]=t[i],t[i]=n,s(t,h,i,r)}},t.iterableSort=function*(t,e,n,r){void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===r&&(r=i);for(let i=n>>>1;i>e;i--)s(t,i,n,r),yield;const h=e+1;for(let i=n-1;i>e;i--){const n=t[e];t[e]=t[i],t[i]=n,s(t,h,i,r),yield}}}(E||(E={}));var T=E,M=class{constructor(s){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new t,s&&(s.initialSize&&(this.data=new Array(s.initialSize)),s.allocator&&(this._allocator=s.allocator),void 0!==s.deallocator&&(this._deallocator=s.deallocator),s.shrink&&(this._shrink=()=>C(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const s=new Array;for(let i=0;i<this._length;i++){const e=this.data[i];t(e)&&s.push(e)}return s}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,s){const i=this.data.indexOf(t,s);return-1!==i&&i<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let s=t;s<this._length;++s)this.data[s]=this._deallocator(this.data[s]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,s=t.length){for(let i=0;i<s;i++)this.data[this._length++]=t[i]}fill(t,s){for(let i=0;i<s;i++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,C(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const i=s(this.data,t,this.length,this._hint);if(-1!==i)return this.data.splice(i,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex(s(this.data,t,this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,s=t.length,e){this.length=i(this.data,t,this.length,s,this._hint,e),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,s){if(t>=this.length||s>=this.length||t===s)return;const i=this.data[t];this.data[t]=this.data[s],this.data[s]=i}sort(t){T.sort(this.data,0,this.length,t)}iterableSort(t){return T.iterableSort(this.data,0,this.length,t)}some(t,s){for(let i=0;i<this.length;++i)if(t.call(s,this.data[i],i,this.data))return!0;return!1}find(t,s){for(let i=0;i<this.length;++i){const e=this.data[i];if(t.call(s,e,i))return e}}filterInPlace(t,s){let i=0;for(let e=0;e<this._length;++e){const n=this.data[e];t.call(s,n,e,this.data)&&(this.data[e]=this.data[i],this.data[i]=n,i++)}if(this._deallocator)for(let t=i;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=i,this._shrink(),this}forAll(t,s){const{data:i,length:e}=this;for(let n=0;n<e;++n)t.call(s,i[n],n,i)}forEach(t,s){this.data.slice(0,this.length).forEach(t,s)}map(t,s){const i=new Array(this.length);for(let e=0;e<this.length;++e)i[e]=t.call(s,this.data[e],e,this.data);return i}reduce(t,s){let i=s;for(let s=0;s<this.length;++s)i=t(i,this.data[s],s,this.data);return i}has(t){const s=this.length,i=this.data;for(let e=0;e<s;++e)if(i[e]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}};function C(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}var D=class{constructor(t,s=30){this.name=t,this._counter=0,this._samples=new Array(s)}record(t){null!=t&&(this._samples[++this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort(((t,s)=>t-s))[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce(((t,s)=>t+s),0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}},I=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},R=0,$={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},q=["prepare","preRender","render","postRender","update","finish"],U=[],z=new M,x={frameTasks:z,willDispatch:!1,clearFrameTasks:function(t=!1){z.forAll((t=>{t.removed=!0})),t&&P()},dispatch:F,executeFrameTasks:function(t){const s=t-R;R=t;const i=1e3/60,e=Math.max(0,s-i);$.time=t,$.frameDuration=i-e;for(let i=0;i<q.length;i++){const e=performance.now(),n=q[i];z.forAll((e=>{e.paused||e.removed||(0===i&&e.ticks++,e.phases[n]&&($.elapsedFrameTime=performance.now()-t,$.deltaTime=0===e.ticks?0:s,e.phases[n]?.call(e,$)))})),N[i].record(performance.now()-e)}P(),W.record(performance.now()-t)},reschedule:function(){}};var H=new M;function P(){z.forAll((t=>{t.removed&&H.push(t)})),z.removeUnorderedMany(H.data,H.length),H.clear()}function F(){for(;U.length;){const t=U.shift();t.isActive&&t.callback()}x.willDispatch=!1}var N=q.map((t=>new D(t))),W=new D("total");function j(t){return null!=t&&"function"==typeof t[Symbol.iterator]}var B=class{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let t=0;return this._groups.forEach((s=>{t+=s.length})),t}add(t,s){if(j(t)){const i=this._getOrCreateGroup(s);for(const s of t)V(s)&&i.push(s)}else V(t)&&this._getOrCreateGroup(s).push(t);return this}forEach(t,s){if("function"==typeof t)this._groups.forEach((s=>s.forEach(t)));else{const i=this._getGroup(t);i&&s&&i.forEach(s)}}has(t){return this._groups.has(G(t))}remove(t){if("string"!=typeof t&&j(t)){for(const s of t)this.remove(s);return this}return this.has(t)?(L(this._getGroup(t)),this._groups.delete(G(t)),this):this}removeAll(){return this._groups.forEach(L),this._groups.clear(),this}_getOrCreateGroup(t){if(this.has(t))return this._getGroup(t);const s=[];return this._groups.set(G(t),s),s}_getGroup(t){return this._groups.get(G(t))}};function G(t){return t||"_default_"}function L(t){for(const s of t)s instanceof B?s.removeAll():s.remove()}function V(t){return null!=t&&(!!t.remove||t instanceof B)}var J=new WeakMap;var K,Q,X=class{constructor(t,s){this._observers=t,this._observer=s}remove(){O(this._observers,this._observer)}},Y=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return Z;null==this._observers&&(this._observers=[]);const s=this._observers;let i=!1,e=!1;const n=s.length;for(let r=0;r<n;++r){const n=s[r];if(n.destroyed)e=!0;else if(n===t){i=!0;break}}return i||(s.push(t),e&&this._removeDestroyedObservers()),new X(s,t)}_removeDestroyedObservers(){const t=this._observers;if(!t||0===t.length)return;const s=t.length;let i=0;for(let e=0;e<s;++e){for(;e+i<s&&t[e+i].destroyed;)++i;if(i>0){if(!(e+i<s))break;t[e]=t[e+i]}}t.length=s-i}destroy(){if(this.destroyed)return;this.destroyed=!0;const t=this._observers;if(null!=t){for(const s of t)s.onCommitted();this._observers=null}}},Z=a();function tt(t){switch(t){case K.DEFAULTS:return"defaults";case K.SERVICE:return"service";case K.PORTAL_ITEM:return"portal-item";case K.WEB_SCENE:return"web-scene";case K.WEB_MAP:return"web-map";case K.LINK_CHART:return"link-chart";case K.USER:return"user"}}(Q=K||(K={}))[Q.DEFAULTS=0]="DEFAULTS",Q[Q.COMPUTED=1]="COMPUTED",Q[Q.SERVICE=2]="SERVICE",Q[Q.PORTAL_ITEM=3]="PORTAL_ITEM",Q[Q.WEB_SCENE=4]="WEB_SCENE",Q[Q.WEB_MAP=5]="WEB_MAP",Q[Q.LINK_CHART=6]="LINK_CHART",Q[Q.USER=7]="USER";var st=class extends Y{constructor(t,s){super(),this.propertyName=t,this.metadata=s,this._accessed=null,this._handles=null,this.flags=0,this.flags=v.Dirty|(s.nonNullable?v.NonNullable:0)|(s.hasOwnProperty("value")?v.HasDefaultValue:0)|(void 0===s.get?v.DepTrackingInitialized:0)|(void 0===s.dependsOn?v.AutoTracked:0)}destroy(){this.flags&v.Dirty&&this.onCommitted(),super.destroy(),this._accessed=null,this._clearObservationHandles()}getComputed(t){d(this);const s=t.store,i=this.propertyName,e=this.flags,n=s.get(i);if(e&v.Computing)return n;if(~e&v.Dirty&&s.has(i))return n;this.flags|=v.Computing;const r=t.host;let h;e&v.AutoTracked?h=p(this,this.metadata.get,r):(g(r,this),h=this.metadata.get.call(r)),s.set(i,h,K.COMPUTED);const o=s.get(i);return o===n?this.flags&=~v.Dirty:b(this.commit,this),this.flags&=~v.Computing,o}onObservableAccessed(t){if(t===this)return;let s=this._accessed;if(null==s)s=[],this._accessed=s;else if(s.includes(t))return;s.push(t)}onTrackingEnd(){this._clearObservationHandles(),this.flags|=v.DepTrackingInitialized;const t=this._accessed;if(null==t||0===t.length)return;let s=this._handles;null==s&&(s=[],this._handles=s);for(let i=0;i<t.length;++i)s.push(t[i].observe(this));t.length=0}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~v.Dirty,this.onCommitted()}_clearObservationHandles(){const t=this._handles;if(null!==t){for(let s=0;s<t.length;++s)t[s].remove();t.length=0}}onInvalidated(){~this.flags&v.Overridden&&(this.flags|=v.Dirty);const t=this._observers;if(t&&t.length>0)for(const s of t)s.onInvalidated()}onCommitted(){const t=this._observers;if(t&&t.length>0){const s=t.slice();for(const t of s)t.onCommitted()}}},it=class t{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(s){const i=new t;return this._values.forEach(((t,e)=>{s&&s.has(e)||i.set(e,A(t))})),i}get(t){return this._values.get(t)}originOf(){return K.USER}keys(){return[...this._values.keys()]}set(t,s){this._values.set(t,s)}delete(t){this._values.delete(t)}has(t){return this._values.has(t)}forEach(t){this._values.forEach(t)}};function et(t){return void 0!==t}function nt(t,s,i){return!(void 0===t||null==i&&t.flags&v.NonNullable)}var rt,ht,ot=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=o.INITIALIZING,this.store=new it,this._origin=K.USER;const s=this.host.constructor.__accessorMetadata__;for(const t in s){const i=new st(t,s[t]);this.propertiesByName.set(t,i)}this.metadata=s}initialize(){this.lifecycle=o.CONSTRUCTING}constructed(){this.lifecycle=o.CONSTRUCTED}destroy(){this.lifecycle=o.DESTROYED,this.propertiesByName.forEach((t=>t.destroy()))}get initialized(){return this.lifecycle!==o.INITIALIZING}get(t){const s=this.propertiesByName.get(t);if(s.metadata.get)return s.getComputed(this);d(s);const i=this.store;return i.has(t)?i.get(t):s.metadata.value}originOf(t){const s=this.store.originOf(t);if(void 0===s){const s=this.propertiesByName.get(t);if(void 0!==s&&s.flags&v.HasDefaultValue)return"defaults"}return tt(s)}has(t){return this.propertiesByName.has(t)&&this.store.has(t)}keys(){return[...this.propertiesByName.keys()]}internalGet(t){const s=this.propertiesByName.get(t);if(et(s))return this.store.has(t)?this.store.get(t):s.metadata.value}internalSet(t,s){const i=this.propertiesByName.get(t);et(i)&&this._internalSet(i,s)}getDependsInfo(t,s,i){const e=this.propertiesByName.get(s);if(!et(e))return"";const n=new Set,r=p({onObservableAccessed:t=>n.add(t),onTrackingEnd:()=>{}},(()=>e.metadata.get?.call(t)));let h=`${i}${t.declaredClass.split(".").pop()}.${s}: ${r}\n`;if(0===n.size)return h;i+=" ";for(const t of n)t instanceof st&&(h+=`${i}${t.propertyName}: undefined\n`);return h}setAtOrigin(t,s,i){const e=this.propertiesByName.get(t);if(et(e))return this._setAtOrigin(e,s,i)}isOverridden(t){const s=this.propertiesByName.get(t);return void 0!==s&&!!(s.flags&v.Overridden)}clearOverride(t){const s=this.propertiesByName.get(t);s&&s.flags&v.Overridden&&(s.flags&=~v.Overridden,s.notifyChange())}override(t,s){const i=this.propertiesByName.get(t);if(!nt(i,0,s))return;const e=i.metadata.cast;if(e){const t=this._cast(e,s),{valid:i,value:n}=t;if(ct.release(t),!i)return;s=n}i.flags|=v.Overridden,this._internalSet(i,s)}set(t,s){const i=this.propertiesByName.get(t);if(!nt(i,0,s))return;const e=i.metadata.cast;if(e){const t=this._cast(e,s),{valid:i,value:n}=t;if(ct.release(t),!i)return;s=n}const n=i.metadata.set;n?n.call(this.host,s):this._internalSet(i,s)}setDefaultOrigin(t){this._origin=function(t){switch(t){case"defaults":return K.DEFAULTS;case"service":return K.SERVICE;case"portal-item":return K.PORTAL_ITEM;case"web-scene":return K.WEB_SCENE;case"web-map":return K.WEB_MAP;case"link-chart":return K.LINK_CHART;case"user":return K.USER;default:return null}}(t)}getDefaultOrigin(){return tt(this._origin)}notifyChange(t){const s=this.propertiesByName.get(t);void 0!==s&&s.notifyChange()}invalidate(t){const s=this.propertiesByName.get(t);void 0!==s&&s.invalidate()}commit(t){const s=this.propertiesByName.get(t);void 0!==s&&s.commit()}_internalSet(t,s){this._setAtOrigin(t,s,this.lifecycle!==o.INITIALIZING?this._origin:K.DEFAULTS)}_setAtOrigin(t,s,i){const e=this.store,n=t.propertyName;e.has(n,i)&&m(s,e.get(n))&&~t.flags&v.Overridden&&i===e.originOf(n)||(t.invalidate(),e.set(n,s,i),t.commit(),w(this.host,t))}_cast(t,s){const i=ct.acquire();return i.valid=!0,i.value=s,t&&(i.value=t.call(this.host,s,i)),i}},ct=new k(class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}});function ut(t){t.length=0}(ht=rt||(rt={}))[ht.Ignore=0]="Ignore",ht[ht.Destroy=1]="Destroy",ht[ht.ThrowError=2]="ThrowError";var lt=class{constructor(t=50,s=50){this._pool=new k(Array,void 0,ut,s,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return at.acquire()}static release(t){return at.release(t)}static prune(){at.prune()}},at=new lt(100),ft=0;function dt(){return++ft}var vt=class{constructor(t){this._accessed=[],this._handles=[],this._observerObject=new pt(t),mt.register(this,new WeakRef(this._observerObject),this)}destroy(){mt.unregister(this._observerObject),this._accessed.length=0,this._observerObject?.destroy(),this.clear()}onObservableAccessed(t){const s=this._accessed;s.includes(t)||s.push(t)}onTrackingEnd(){const t=this._handles,s=this._accessed,i=this._observerObject;for(let e=0;e<s.length;++e)t.push(s[e].observe(i));s.length=0}clear(){const t=this._handles;for(let s=0;s<t.length;++s)t[s].remove();t.length=0}},pt=class{constructor(t){this._notify=t,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;const t=this._invalidCount;if(1===t)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}destroy(){this.destroyed=!0,this._notify=wt}},mt=new FinalizationRegistry((t=>{t.deref()?.destroy()}));function wt(){}var yt,gt=!1,bt=[];!function(t){t[t.Untracked=0]="Untracked",t[t.Tracked=1]="Tracked"}(yt||(yt={}));var At=class{constructor(){this.uid=dt(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(t,s,i,e,n){return this.pool.acquire(yt.Untracked,t,s,i,e,n,m)}static acquireTracked(t,s,i,e){return this.pool.acquire(yt.Tracked,t,s,i,null,null,e)}notify(t,s){this.type===yt.Untracked?this.callback.call(this.target,t,s,this.path,this.target):this.callback.call(null,t,s,void 0,void 0)}acquire(t,s,i,e,n,r,h){this.uid=dt(),this.removed=!1,this.type=t,this.oldValue=s,this.callback=i,this.getValue=e,this.target=n,this.path=r,this.equals=h}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=dt(),this.removed=!0}};At.pool=new class extends k{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...t){const s=super.acquire(...t);return this._set.delete(s),s}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}(At);var _t,Ot=new lt,kt=new Set;function Et(t){kt.delete(t),kt.add(t),_t||(_t=function(t){const s=new I(t);return U.push(s),x.willDispatch||(x.willDispatch=!0,S.push(F),1===S.length&&queueMicrotask((()=>{const t=S.slice();S.length=0;for(const s of t)s()}))),s}(Tt))}function St(t){if(t.removed)return;const s=t.oldValue,i=t.getValue();t.equals(s,i)||(t.oldValue=i,t.notify(i,s))}function Tt(){let t=10;for(;_t&&t--;){_t=null;const t=Mt(),s=Ot.acquire();for(const i of t){const t=i.uid;St(i),t===i.uid&&i.removed&&s.push(i)}for(const t of kt)t.removed&&(s.push(t),kt.delete(t));for(const t of s)At.pool.release(t);Ot.release(s),Ot.release(t),It.forEach((t=>t()))}}function Mt(){const t=Ot.acquire();t.length=kt.size;let s=0;for(const i of kt)t[s]=i,++s;return kt.clear(),t}var Ct,Dt,It=new Set;function Rt(t,s,i,e=!1){return t.__accessor__&&t.__accessor__.lifecycle!==o.DESTROYED?e?function(t,s,i){const e=y(t,s,i,((t,s,i)=>{let n=!1;return function(t,s){let i=new vt((function r(){if(!i||n)return;if(gt)return void function(t){bt.includes(t)||bt.unshift(t)}(r);const h=e;i.clear(),gt=!0,n=!0,e=p(i,t),n=!1,gt=!1,s(e,h),function(){for(;bt.length;)bt.pop()()}()})),e=null,n=!1;return n=!0,e=p(i,t),n=!1,a((function(){i&&(i.destroy(),i=null,e=null)}))}((()=>_(t,s)),((r,h)=>{t.__accessor__.lifecycle!==o.DESTROYED?n||(n=!0,m(h,r)||i.call(t,r,h,s,t),n=!1):e.remove()}))}));return e}(t,s,i):function(t,s,i){let e=y(t,s,i,((t,s,i)=>{let n,r,h=function(t,s){let i=new vt((function(){s(e,n)})),e=null;function n(){return i?(i.clear(),e=p(i,t),e):null}return n(),a((function(){i&&(i.destroy(),i=null),e=null}))}((()=>_(t,s)),((h,c)=>{t.__accessor__?.lifecycle===o.DESTROYED||n&&n.uid!==r?e.remove():(n||(n=At.acquireUntracked(h,i,c,t,s),r=n.uid),Et(n))}));return a((()=>{h.remove(),n&&(n.uid!==r||n.removed||(n.removed=!0,Et(n)),n=null),e=h=null}))}));return e}(t,s,i):a()}function $t(t){if(null==t)return{value:t};if(Array.isArray(t))return{type:[t[0]],value:null};switch(typeof t){case"object":return t.constructor?.__accessorMetadata__||t instanceof Date?{type:t.constructor,value:t}:t;case"boolean":return{type:Boolean,value:t};case"string":return{type:String,value:t};case"number":return{type:Number,value:t};case"function":return{type:t,value:null};default:return}}var qt=Symbol("Accessor-Handles"),Ut=Symbol("Accessor-Initialized"),zt=class t{static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:s,declaredClass:i,constructor:h}=t;delete t.declaredClass,delete t.properties,delete t.constructor;const o=this;class c extends o{constructor(...t){super(...t),this.inherited=null,h&&h.apply(this,t)}}e(c.prototype);for(const s in t){const i=t[s];c.prototype[s]="function"==typeof i?function(...t){const e=this.inherited;let n;this.inherited=function(...t){if(o.prototype[s])return o.prototype[s].apply(this,t)};try{n=i.apply(this,t)}catch(t){throw this.inherited=e,t}return this.inherited=e,n}:t[s]}for(const t in s){const i=$t(s[t]);n(i)(c.prototype,t)}return r(i)(c)}constructor(...s){if(this[Ct]=null,this[Dt]=!1,this.constructor===t)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");const i=new ot(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:i}),s.length>0&&this.normalizeCtorArgs&&(i.ctorArgs=this.normalizeCtorArgs.apply(this,s))}postscript(t){const s=this.__accessor__,i=s.ctorArgs||t;s.initialize(),i&&(this.set(i),s.ctorArgs=null),s.constructed(),this.initialize(),this[Ut]=!0}initialize(){}[h](){var t;this[qt]=(t=this[qt],t?.destroy(),null)}destroy(){this.destroyed||(function(t){for(const s of kt.values())s.target===t&&(s.removed=!0)}(this),this.__accessor__.destroy())}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[Ut]}get destroyed(){return this.__accessor__?.lifecycle===o.DESTROYED||!1}commitProperty(t){c(this,t)}get(t){return function(t,s,i={}){if(f("esri-deprecation-warnings")){const{moduleName:e}=i;!function(t,s,i={}){if(f("esri-deprecation-warnings")){const{replacement:e,version:n,see:r,warnOnce:h}=i;let o=s;e&&(o+=`\n\t🛠️ Replacement: ${e}`),n&&(o+=`\n\t⚙️ Version: ${n}`),r&&(o+=`\n\t🔗 See ${r} for more details.`),function(t,s,i=!1){const e=`🛑 DEPRECATED - ${s}`;if(!i)return void t.warn(e);let n=J.get(t);n||(n=new Set,J.set(t,n)),n.has(s)||(n.add(s),t.warn(e))}(t,o,h)}}(t,"Function: "+(e?e+"::":"")+s+"()",i)}}(u.getLogger(this),"`Accessor.get` is deprecated in favor of using optional chaining",{version:"4.28",see:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining"}),c(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,s){return l(this,t,s),this}watch(t,s,i){return Rt(this,t,s,i)}addHandles(t,s){if(this.destroyed){const s=Array.isArray(t)?t:[t];for(const t of s)t.remove();return}let i=this[qt];null==i&&(i=this[qt]=new B),i.add(t,s)}removeHandles(t){const s=this[qt];null!=s&&s.remove(t)}removeAllHandles(){const t=this[qt];null!=t&&t.removeAll()}hasHandles(t){const s=this[qt];return null!=s&&s.has(t)}_override(t,s){void 0===s?this.__accessor__.clearOverride(t):this.__accessor__.override(t,s)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_overrideIfSome(t,s){null==s?this.__accessor__.clearOverride(t):this.__accessor__.override(t,s)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,s){return this.__accessor__.internalSet(t,s),this}};Ct=qt,Dt=Ut;export default zt;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.29
|
|
5
5
|
*/
|
|
6
|
-
import{l as t,y as n,q as r,w as s,x as o}from"./p-
|
|
6
|
+
import{l as t,y as n,q as r,w as s,x as o}from"./p-62e5bb1a.js";export{z as ensureRange,A as finalizeClass,y as property,q as propertyJSONMeta,a as subclass}from"./p-62e5bb1a.js";var i=class{constructor(n,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=n,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(t){const n={};for(const r in t)n[t[r]]=r;return n}(n),this.apiValues=e(this._apiToJSON),this.jsonValues=e(this._jsonToAPI),this.read=t=>this.fromJSON(t),this.write=(n,r,s)=>{const o=this.toJSON(n);void 0!==o&&t(s,o,r)},this.write.isJSONMapWriter=!0}toJSON(t){if(null==t)return null;if(this._apiToJSON.hasOwnProperty(t)){const n=this._apiToJSON[t];return this._options.useNumericKeys?+n:n}return this._options.ignoreUnknown?void 0:t}fromJSON(t){return null!=t&&this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}};function e(t){const n=[];for(const r in t)n.push(r);return n.sort(),n}function c(t,r={}){const s=t instanceof i?t:new i(t,r),o={type:r?.ignoreUnknown??1?s.apiValues:String,json:{type:s.jsonValues,read:!r?.readOnly&&{reader:s.read},write:{writer:s.write}}};return void 0!==r?.readOnly&&(o.readOnly=!!r.readOnly),void 0!==r?.default&&(o.json.default=r.default),void 0!==r?.name&&(o.json.name=r.name),void 0!==r?.nonNullable&&(o.nonNullable=r.nonNullable),n(o)}function u(t,n,s){let o,i;return void 0===n||Array.isArray(n)?(i=t,s=n,o=[void 0]):(i=n,o=Array.isArray(t)?t:[t]),(t,n)=>{const e=t.constructor.prototype;o.forEach((o=>{const a=r(t,o,i);a.read&&"object"==typeof a.read||(a.read={}),a.read.reader=e[n],s&&(a.read.source=(a.read.source||[]).concat(s))}))}}function f(t,n,s){let o,i;return void 0===n?(i=t,o=[void 0]):"string"!=typeof n?(i=t,o=[void 0],s=n):(i=n,o=Array.isArray(t)?t:[t]),(t,n)=>{const e=t.constructor.prototype;for(const a of o){const o=r(t,a,i);o.write&&"object"==typeof o.write||(o.write={}),s&&(o.write.target=s),o.write.writer=e[n]}}}var h=Object.prototype.toString;function d(t){const n="__accessorMetadata__"in t?o(t):t;return function(...t){if(t.push(n),"number"==typeof t[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return p.apply(this,t)}}function p(t,n,r,o){s(t,n).cast=o}function l(...t){if(3!==t.length||"string"!=typeof t[1])return 1===t.length&&"[object Function]"===h.call(t[0])?d(t[0]):1===t.length&&"string"==typeof t[0]?function(t){return(n,r)=>{s(n,t).cast=n[r]}}(t[0]):void 0}function v(t){return(n,r)=>{n[r]=t}}function b(t,r){const s=r?{...r,source:t}:t;return n({aliasOf:s})}export{b as aliasOf,l as cast,c as enumeration,u as reader,v as shared,f as writer}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.29
|
|
5
5
|
*/
|
|
6
|
-
import{v as t,u as e}from"./p-
|
|
6
|
+
import{v as t,u as e}from"./p-e2200653.js";import"./p-9a6e0c8c.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.29
|
|
5
5
|
*/
|
|
6
|
-
import{u as e}from"./p-
|
|
6
|
+
import{u as e}from"./p-e2200653.js";import"./p-9a6e0c8c.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.29
|
|
5
5
|
*/
|
|
6
|
-
import{u as t}from"./p-
|
|
6
|
+
import{u as t}from"./p-e2200653.js";import"./p-9a6e0c8c.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
10
10
|
* Released under the MIT license
|
|
11
11
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
12
|
-
*-----------------------------------------------------------------------------*/var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,e=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o=(t,o,u,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let a of e(o))i.call(t,a)||a===u||r(t,a,{get:()=>o[a],enumerable:!(s=n(o,a))||s.enumerable});return t},u={};o(u,t,"default");var s,a,c,f,h,v,d,l,g,b,m,w,k,p,j,x,S,I,y,T,E,O,C,_,D,R,N,L,W,A,M,z,F,P,q,U,H,V,$,B,G,J,K,Q,X,Y,Z,tt,rt,nt=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(t){this._defaults=t,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=u.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...t){let r;return this._getClient().then((t=>{r=t})).then((()=>{if(this._worker)return this._worker.withSyncedResources(t)})).then((()=>r))}};(a=s||(s={})).MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647,(f=c||(c={})).MIN_VALUE=0,f.MAX_VALUE=2147483647,(v=h||(h={})).create=function(t,r){return t===Number.MAX_VALUE&&(t=c.MAX_VALUE),r===Number.MAX_VALUE&&(r=c.MAX_VALUE),{line:t,character:r}},v.is=function(t){var r=t;return nr.objectLiteral(r)&&nr.uinteger(r.line)&&nr.uinteger(r.character)},(l=d||(d={})).create=function(t,r,n,e){if(nr.uinteger(t)&&nr.uinteger(r)&&nr.uinteger(n)&&nr.uinteger(e))return{start:h.create(t,r),end:h.create(n,e)};if(h.is(t)&&h.is(r))return{start:t,end:r};throw new Error("Range#create called with invalid arguments["+t+", "+r+", "+n+", "+e+"]")},l.is=function(t){var r=t;return nr.objectLiteral(r)&&h.is(r.start)&&h.is(r.end)},(b=g||(g={})).create=function(t,r){return{uri:t,range:r}},b.is=function(t){var r=t;return nr.defined(r)&&d.is(r.range)&&(nr.string(r.uri)||nr.undefined(r.uri))},(w=m||(m={})).create=function(t,r,n,e){return{targetUri:t,targetRange:r,targetSelectionRange:n,originSelectionRange:e}},w.is=function(t){var r=t;return nr.defined(r)&&d.is(r.targetRange)&&nr.string(r.targetUri)&&(d.is(r.targetSelectionRange)||nr.undefined(r.targetSelectionRange))&&(d.is(r.originSelectionRange)||nr.undefined(r.originSelectionRange))},(p=k||(k={})).create=function(t,r,n,e){return{red:t,green:r,blue:n,alpha:e}},p.is=function(t){var r=t;return nr.numberRange(r.red,0,1)&&nr.numberRange(r.green,0,1)&&nr.numberRange(r.blue,0,1)&&nr.numberRange(r.alpha,0,1)},(x=j||(j={})).create=function(t,r){return{range:t,color:r}},x.is=function(t){var r=t;return d.is(r.range)&&k.is(r.color)},(I=S||(S={})).create=function(t,r,n){return{label:t,textEdit:r,additionalTextEdits:n}},I.is=function(t){var r=t;return nr.string(r.label)&&(nr.undefined(r.textEdit)||P.is(r))&&(nr.undefined(r.additionalTextEdits)||nr.typedArray(r.additionalTextEdits,P.is))},(T=y||(y={})).Comment="comment",T.Imports="imports",T.Region="region",(O=E||(E={})).create=function(t,r,n,e,i){var o={startLine:t,endLine:r};return nr.defined(n)&&(o.startCharacter=n),nr.defined(e)&&(o.endCharacter=e),nr.defined(i)&&(o.kind=i),o},O.is=function(t){var r=t;return nr.uinteger(r.startLine)&&nr.uinteger(r.startLine)&&(nr.undefined(r.startCharacter)||nr.uinteger(r.startCharacter))&&(nr.undefined(r.endCharacter)||nr.uinteger(r.endCharacter))&&(nr.undefined(r.kind)||nr.string(r.kind))},(_=C||(C={})).create=function(t,r){return{location:t,message:r}},_.is=function(t){var r=t;return nr.defined(r)&&g.is(r.location)&&nr.string(r.message)},(R=D||(D={})).Error=1,R.Warning=2,R.Information=3,R.Hint=4,(L=N||(N={})).Unnecessary=1,L.Deprecated=2,(W||(W={})).is=function(t){return null!=t&&nr.string(t.href)},(M=A||(A={})).create=function(t,r,n,e,i,o){var u={range:t,message:r};return nr.defined(n)&&(u.severity=n),nr.defined(e)&&(u.code=e),nr.defined(i)&&(u.source=i),nr.defined(o)&&(u.relatedInformation=o),u},M.is=function(t){var r,n=t;return nr.defined(n)&&d.is(n.range)&&nr.string(n.message)&&(nr.number(n.severity)||nr.undefined(n.severity))&&(nr.integer(n.code)||nr.string(n.code)||nr.undefined(n.code))&&(nr.undefined(n.codeDescription)||nr.string(null===(r=n.codeDescription)||void 0===r?void 0:r.href))&&(nr.string(n.source)||nr.undefined(n.source))&&(nr.undefined(n.relatedInformation)||nr.typedArray(n.relatedInformation,C.is))},(F=z||(z={})).create=function(t,r){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];var i={title:t,command:r};return nr.defined(n)&&n.length>0&&(i.arguments=n),i},F.is=function(t){var r=t;return nr.defined(r)&&nr.string(r.title)&&nr.string(r.command)},(q=P||(P={})).replace=function(t,r){return{range:t,newText:r}},q.insert=function(t,r){return{range:{start:t,end:t},newText:r}},q.del=function(t){return{range:t,newText:""}},q.is=function(t){var r=t;return nr.objectLiteral(r)&&nr.string(r.newText)&&d.is(r.range)},(H=U||(U={})).create=function(t,r,n){var e={label:t};return void 0!==r&&(e.needsConfirmation=r),void 0!==n&&(e.description=n),e},H.is=function(t){var r=t;return void 0!==r&&nr.objectLiteral(r)&&nr.string(r.label)&&(nr.boolean(r.needsConfirmation)||void 0===r.needsConfirmation)&&(nr.string(r.description)||void 0===r.description)},(V||(V={})).is=function(t){return"string"==typeof t},(B=$||($={})).replace=function(t,r,n){return{range:t,newText:r,annotationId:n}},B.insert=function(t,r,n){return{range:{start:t,end:t},newText:r,annotationId:n}},B.del=function(t,r){return{range:t,newText:"",annotationId:r}},B.is=function(t){var r=t;return P.is(r)&&(U.is(r.annotationId)||V.is(r.annotationId))},(J=G||(G={})).create=function(t,r){return{textDocument:t,edits:r}},J.is=function(t){var r=t;return nr.defined(r)&&st.is(r.textDocument)&&Array.isArray(r.edits)},(Q=K||(K={})).create=function(t,r,n){var e={kind:"create",uri:t};return void 0===r||void 0===r.overwrite&&void 0===r.ignoreIfExists||(e.options=r),void 0!==n&&(e.annotationId=n),e},Q.is=function(t){var r=t;return r&&"create"===r.kind&&nr.string(r.uri)&&(void 0===r.options||(void 0===r.options.overwrite||nr.boolean(r.options.overwrite))&&(void 0===r.options.ignoreIfExists||nr.boolean(r.options.ignoreIfExists)))&&(void 0===r.annotationId||V.is(r.annotationId))},(Y=X||(X={})).create=function(t,r,n,e){var i={kind:"rename",oldUri:t,newUri:r};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==e&&(i.annotationId=e),i},Y.is=function(t){var r=t;return r&&"rename"===r.kind&&nr.string(r.oldUri)&&nr.string(r.newUri)&&(void 0===r.options||(void 0===r.options.overwrite||nr.boolean(r.options.overwrite))&&(void 0===r.options.ignoreIfExists||nr.boolean(r.options.ignoreIfExists)))&&(void 0===r.annotationId||V.is(r.annotationId))},(tt=Z||(Z={})).create=function(t,r,n){var e={kind:"delete",uri:t};return void 0===r||void 0===r.recursive&&void 0===r.ignoreIfNotExists||(e.options=r),void 0!==n&&(e.annotationId=n),e},tt.is=function(t){var r=t;return r&&"delete"===r.kind&&nr.string(r.uri)&&(void 0===r.options||(void 0===r.options.recursive||nr.boolean(r.options.recursive))&&(void 0===r.options.ignoreIfNotExists||nr.boolean(r.options.ignoreIfNotExists)))&&(void 0===r.annotationId||V.is(r.annotationId))},(rt||(rt={})).is=function(t){return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(t){return nr.string(t.kind)?K.is(t)||X.is(t)||Z.is(t):G.is(t)})))};var et,it,ot,ut,st,at,ct,ft,ht,vt,dt,lt,gt,bt,mt,wt,kt,pt,jt,xt,St,It,yt,Tt,Et,Ot,Ct,_t,Dt,Rt,Nt,Lt,Wt,At,Mt,zt,Ft,Pt,qt,Ut,Ht,Vt,$t,Bt,Gt,Jt,Kt,Qt,Xt,Yt,Zt,tr=function(){function t(t,r){this.edits=t,this.changeAnnotations=r}return t.prototype.insert=function(t,r,n){var e,i;if(void 0===n?e=P.insert(t,r):V.is(n)?(i=n,e=$.insert(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),e=$.insert(t,r,i)),this.edits.push(e),void 0!==i)return i},t.prototype.replace=function(t,r,n){var e,i;if(void 0===n?e=P.replace(t,r):V.is(n)?(i=n,e=$.replace(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),e=$.replace(t,r,i)),this.edits.push(e),void 0!==i)return i},t.prototype.delete=function(t,r){var n,e;if(void 0===r?n=P.del(t):V.is(r)?(e=r,n=$.del(t,r)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(r),n=$.del(t,e)),this.edits.push(n),void 0!==e)return e},t.prototype.add=function(t){this.edits.push(t)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(t){if(void 0===t)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),rr=function(){function t(t){this._annotations=void 0===t?Object.create(null):t,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(t,r){var n;if(V.is(t)?n=t:(n=this.nextId(),r=t),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===r)throw new Error("No annotation provided for id "+n);return this._annotations[n]=r,this._size++,n},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}();!function(){function t(t){var r=this;this._textEditChanges=Object.create(null),void 0!==t?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new rr(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach((function(t){if(G.is(t)){var n=new tr(t.edits,r._changeAnnotations);r._textEditChanges[t.textDocument.uri]=n}}))):t.changes&&Object.keys(t.changes).forEach((function(n){var e=new tr(t.changes[n]);r._textEditChanges[n]=e}))):this._workspaceEdit={}}Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(this._workspaceEdit.changeAnnotations=0===this._changeAnnotations.size?void 0:this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(t){if(st.is(t)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r={uri:t.uri,version:t.version};return(n=this._textEditChanges[r.uri])||(this._workspaceEdit.documentChanges.push({textDocument:r,edits:e=[]}),n=new tr(e,this._changeAnnotations),this._textEditChanges[r.uri]=n),n}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var n,e;return(n=this._textEditChanges[t])||(this._workspaceEdit.changes[t]=e=[],n=new tr(e),this._textEditChanges[t]=n),n},t.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new rr,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(t,r,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var e,i,o;if(U.is(r)||V.is(r)?e=r:n=r,void 0===e?i=K.create(t,n):(o=V.is(e)?e:this._changeAnnotations.manage(e),i=K.create(t,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},t.prototype.renameFile=function(t,r,n,e){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,u;if(U.is(n)||V.is(n)?i=n:e=n,void 0===i?o=X.create(t,r,e):(u=V.is(i)?i:this._changeAnnotations.manage(i),o=X.create(t,r,e,u)),this._workspaceEdit.documentChanges.push(o),void 0!==u)return u},t.prototype.deleteFile=function(t,r,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var e,i,o;if(U.is(r)||V.is(r)?e=r:n=r,void 0===e?i=Z.create(t,n):(o=V.is(e)?e:this._changeAnnotations.manage(e),i=Z.create(t,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),(it=et||(et={})).create=function(t){return{uri:t}},it.is=function(t){var r=t;return nr.defined(r)&&nr.string(r.uri)},(ut=ot||(ot={})).create=function(t,r){return{uri:t,version:r}},ut.is=function(t){var r=t;return nr.defined(r)&&nr.string(r.uri)&&nr.integer(r.version)},(at=st||(st={})).create=function(t,r){return{uri:t,version:r}},at.is=function(t){var r=t;return nr.defined(r)&&nr.string(r.uri)&&(null===r.version||nr.integer(r.version))},(ft=ct||(ct={})).create=function(t,r,n,e){return{uri:t,languageId:r,version:n,text:e}},ft.is=function(t){var r=t;return nr.defined(r)&&nr.string(r.uri)&&nr.string(r.languageId)&&nr.integer(r.version)&&nr.string(r.text)},(vt=ht||(ht={})).PlainText="plaintext",vt.Markdown="markdown",function(t){t.is=function(r){return r===t.PlainText||r===t.Markdown}}(ht||(ht={})),(dt||(dt={})).is=function(t){var r=t;return nr.objectLiteral(t)&&ht.is(r.kind)&&nr.string(r.value)},(gt=lt||(lt={})).Text=1,gt.Method=2,gt.Function=3,gt.Constructor=4,gt.Field=5,gt.Variable=6,gt.Class=7,gt.Interface=8,gt.Module=9,gt.Property=10,gt.Unit=11,gt.Value=12,gt.Enum=13,gt.Keyword=14,gt.Snippet=15,gt.Color=16,gt.File=17,gt.Reference=18,gt.Folder=19,gt.EnumMember=20,gt.Constant=21,gt.Struct=22,gt.Event=23,gt.Operator=24,gt.TypeParameter=25,(mt=bt||(bt={})).PlainText=1,mt.Snippet=2,(wt||(wt={})).Deprecated=1,(pt=kt||(kt={})).create=function(t,r,n){return{newText:t,insert:r,replace:n}},pt.is=function(t){var r=t;return r&&nr.string(r.newText)&&d.is(r.insert)&&d.is(r.replace)},(xt=jt||(jt={})).asIs=1,xt.adjustIndentation=2,(St||(St={})).create=function(t){return{label:t}},(It||(It={})).create=function(t,r){return{items:t||[],isIncomplete:!!r}},(Tt=yt||(yt={})).fromPlainText=function(t){return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Tt.is=function(t){var r=t;return nr.string(r)||nr.objectLiteral(r)&&nr.string(r.language)&&nr.string(r.value)},(Et||(Et={})).is=function(t){var r=t;return!!r&&nr.objectLiteral(r)&&(dt.is(r.contents)||yt.is(r.contents)||nr.typedArray(r.contents,yt.is))&&(void 0===t.range||d.is(t.range))},(Ot||(Ot={})).create=function(t,r){return r?{label:t,documentation:r}:{label:t}},(Ct||(Ct={})).create=function(t,r){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];var i={label:t};return nr.defined(r)&&(i.documentation=r),i.parameters=nr.defined(n)?n:[],i},(Dt=_t||(_t={})).Text=1,Dt.Read=2,Dt.Write=3,(Rt||(Rt={})).create=function(t,r){var n={range:t};return nr.number(r)&&(n.kind=r),n},(Lt=Nt||(Nt={})).File=1,Lt.Module=2,Lt.Namespace=3,Lt.Package=4,Lt.Class=5,Lt.Method=6,Lt.Property=7,Lt.Field=8,Lt.Constructor=9,Lt.Enum=10,Lt.Interface=11,Lt.Function=12,Lt.Variable=13,Lt.Constant=14,Lt.String=15,Lt.Number=16,Lt.Boolean=17,Lt.Array=18,Lt.Object=19,Lt.Key=20,Lt.Null=21,Lt.EnumMember=22,Lt.Struct=23,Lt.Event=24,Lt.Operator=25,Lt.TypeParameter=26,(Wt||(Wt={})).Deprecated=1,(At||(At={})).create=function(t,r,n,e,i){var o={name:t,kind:r,location:{uri:e,range:n}};return i&&(o.containerName=i),o},(zt=Mt||(Mt={})).create=function(t,r,n,e,i,o){var u={name:t,detail:r,kind:n,range:e,selectionRange:i};return void 0!==o&&(u.children=o),u},zt.is=function(t){var r=t;return r&&nr.string(r.name)&&nr.number(r.kind)&&d.is(r.range)&&d.is(r.selectionRange)&&(void 0===r.detail||nr.string(r.detail))&&(void 0===r.deprecated||nr.boolean(r.deprecated))&&(void 0===r.children||Array.isArray(r.children))&&(void 0===r.tags||Array.isArray(r.tags))},(Pt=Ft||(Ft={})).Empty="",Pt.QuickFix="quickfix",Pt.Refactor="refactor",Pt.RefactorExtract="refactor.extract",Pt.RefactorInline="refactor.inline",Pt.RefactorRewrite="refactor.rewrite",Pt.Source="source",Pt.SourceOrganizeImports="source.organizeImports",Pt.SourceFixAll="source.fixAll",(Ut=qt||(qt={})).create=function(t,r){var n={diagnostics:t};return null!=r&&(n.only=r),n},Ut.is=function(t){var r=t;return nr.defined(r)&&nr.typedArray(r.diagnostics,A.is)&&(void 0===r.only||nr.typedArray(r.only,nr.string))},(Vt=Ht||(Ht={})).create=function(t,r,n){var e={title:t},i=!0;return"string"==typeof r?(i=!1,e.kind=r):z.is(r)?e.command=r:e.edit=r,i&&void 0!==n&&(e.kind=n),e},Vt.is=function(t){var r=t;return r&&nr.string(r.title)&&(void 0===r.diagnostics||nr.typedArray(r.diagnostics,A.is))&&(void 0===r.kind||nr.string(r.kind))&&(void 0!==r.edit||void 0!==r.command)&&(void 0===r.command||z.is(r.command))&&(void 0===r.isPreferred||nr.boolean(r.isPreferred))&&(void 0===r.edit||rt.is(r.edit))},(Bt=$t||($t={})).create=function(t,r){var n={range:t};return nr.defined(r)&&(n.data=r),n},Bt.is=function(t){var r=t;return nr.defined(r)&&d.is(r.range)&&(nr.undefined(r.command)||z.is(r.command))},(Jt=Gt||(Gt={})).create=function(t,r){return{tabSize:t,insertSpaces:r}},Jt.is=function(t){var r=t;return nr.defined(r)&&nr.uinteger(r.tabSize)&&nr.boolean(r.insertSpaces)},(Qt=Kt||(Kt={})).create=function(t,r,n){return{range:t,target:r,data:n}},Qt.is=function(t){var r=t;return nr.defined(r)&&d.is(r.range)&&(nr.undefined(r.target)||nr.string(r.target))},(Yt=Xt||(Xt={})).create=function(t,r){return{range:t,parent:r}},Yt.is=function(t){var r=t;return void 0!==r&&d.is(r.range)&&(void 0===r.parent||Yt.is(r.parent))},function(t){function r(t,n){if(t.length<=1)return t;var e=t.length/2|0,i=t.slice(0,e),o=t.slice(e);r(i,n),r(o,n);for(var u=0,s=0,a=0;u<i.length&&s<o.length;){var c=n(i[u],o[s]);t[a++]=c<=0?i[u++]:o[s++]}for(;u<i.length;)t[a++]=i[u++];for(;s<o.length;)t[a++]=o[s++];return t}t.create=function(t,r,n,e){return new or(t,r,n,e)},t.is=function(t){var r=t;return!!(nr.defined(r)&&nr.string(r.uri)&&(nr.undefined(r.languageId)||nr.string(r.languageId))&&nr.uinteger(r.lineCount)&&nr.func(r.getText)&&nr.func(r.positionAt)&&nr.func(r.offsetAt))},t.applyEdits=function(t,n){for(var e=t.getText(),i=r(n,(function(t,r){var n=t.range.start.line-r.range.start.line;return 0===n?t.range.start.character-r.range.start.character:n})),o=e.length,u=i.length-1;u>=0;u--){var s=i[u],a=t.offsetAt(s.range.start),c=t.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");e=e.substring(0,a)+s.newText+e.substring(c,e.length),o=a}return e}}(Zt||(Zt={}));var nr,er,ir,or=function(){function t(t,r,n,e){this._uri=t,this._languageId=r,this._version=n,this._content=e,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(t){if(t){var r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content},t.prototype.update=function(t,r){this._content=t.text,this._version=r,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var t=[],r=this._content,n=!0,e=0;e<r.length;e++){n&&(t.push(e),n=!1);var i=r.charAt(e);n="\r"===i||"\n"===i,"\r"===i&&e+1<r.length&&"\n"===r.charAt(e+1)&&e++}n&&r.length>0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets},t.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var r=this.getLineOffsets(),n=0,e=r.length;if(0===e)return h.create(0,t);for(;n<e;){var i=Math.floor((n+e)/2);r[i]>t?e=i:n=i+1}var o=n-1;return h.create(o,t-r[o])},t.prototype.offsetAt=function(t){var r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;var n=r[t.line];return Math.max(Math.min(n+t.character,t.line+1<r.length?r[t.line+1]:this._content.length),n)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}();er=nr||(nr={}),ir=Object.prototype.toString,er.defined=function(t){return void 0!==t},er.undefined=function(t){return void 0===t},er.boolean=function(t){return!0===t||!1===t},er.string=function(t){return"[object String]"===ir.call(t)},er.number=function(t){return"[object Number]"===ir.call(t)},er.numberRange=function(t,r,n){return"[object Number]"===ir.call(t)&&r<=t&&t<=n},er.integer=function(t){return"[object Number]"===ir.call(t)&&-2147483648<=t&&t<=2147483647},er.uinteger=function(t){return"[object Number]"===ir.call(t)&&0<=t&&t<=2147483647},er.func=function(t){return"[object Function]"===ir.call(t)},er.objectLiteral=function(t){return null!==t&&"object"==typeof t},er.typedArray=function(t,r){return Array.isArray(t)&&t.every(r)};var ur=class{constructor(t,r,n){this._languageId=t,this._worker=r;const e=t=>{let r,n=t.getLanguageId();n===this._languageId&&(this._listener[t.uri.toString()]=t.onDidChangeContent((()=>{window.clearTimeout(r),r=window.setTimeout((()=>this._doValidate(t.uri,n)),500)})),this._doValidate(t.uri,n))},i=t=>{u.editor.setModelMarkers(t,this._languageId,[]);let r=t.uri.toString(),n=this._listener[r];n&&(n.dispose(),delete this._listener[r])};this._disposables.push(u.editor.onDidCreateModel(e)),this._disposables.push(u.editor.onWillDisposeModel(i)),this._disposables.push(u.editor.onDidChangeModelLanguage((t=>{i(t.model),e(t.model)}))),this._disposables.push(n((()=>{u.editor.getModels().forEach((t=>{t.getLanguageId()===this._languageId&&(i(t),e(t))}))}))),this._disposables.push({dispose:()=>{u.editor.getModels().forEach(i);for(let t in this._listener)this._listener[t].dispose()}}),u.editor.getModels().forEach(e)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach((t=>t&&t.dispose())),this._disposables.length=0}_doValidate(t,r){this._worker(t).then((r=>r.doValidation(t.toString()))).then((n=>{const e=n.map((t=>function(t,r){let n="number"==typeof r.code?String(r.code):r.code;return{severity:sr(r.severity),startLineNumber:r.range.start.line+1,startColumn:r.range.start.character+1,endLineNumber:r.range.end.line+1,endColumn:r.range.end.character+1,message:r.message,code:n,source:r.source}}(0,t)));let i=u.editor.getModel(t);i&&i.getLanguageId()===r&&u.editor.setModelMarkers(i,r,e)})).then(void 0,(t=>{console.error(t)}))}};function sr(t){switch(t){case D.Error:return u.MarkerSeverity.Error;case D.Warning:return u.MarkerSeverity.Warning;case D.Information:return u.MarkerSeverity.Info;case D.Hint:return u.MarkerSeverity.Hint;default:return u.MarkerSeverity.Info}}var ar=class{constructor(t,r){this._worker=t,this._triggerCharacters=r}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(t,r,n,e){const i=t.uri;return this._worker(i).then((t=>t.doComplete(i.toString(),cr(r)))).then((n=>{if(!n)return;const e=t.getWordUntilPosition(r),i=new u.Range(r.lineNumber,e.startColumn,r.lineNumber,e.endColumn),o=n.items.map((t=>{const r={label:t.label,insertText:t.insertText||t.label,sortText:t.sortText,filterText:t.filterText,documentation:t.documentation,detail:t.detail,command:(n=t.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:vr(t.kind)};var n,e;return t.textEdit&&(r.range=void 0!==(e=t.textEdit).insert&&void 0!==e.replace?{insert:hr(t.textEdit.insert),replace:hr(t.textEdit.replace)}:hr(t.textEdit.range),r.insertText=t.textEdit.newText),t.additionalTextEdits&&(r.additionalTextEdits=t.additionalTextEdits.map(dr)),t.insertTextFormat===bt.Snippet&&(r.insertTextRules=u.languages.CompletionItemInsertTextRule.InsertAsSnippet),r}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function cr(t){if(t)return{character:t.column-1,line:t.lineNumber-1}}function fr(t){if(t)return{start:{line:t.startLineNumber-1,character:t.startColumn-1},end:{line:t.endLineNumber-1,character:t.endColumn-1}}}function hr(t){if(t)return new u.Range(t.start.line+1,t.start.character+1,t.end.line+1,t.end.character+1)}function vr(t){const r=u.languages.CompletionItemKind;switch(t){case lt.Text:return r.Text;case lt.Method:return r.Method;case lt.Function:return r.Function;case lt.Constructor:return r.Constructor;case lt.Field:return r.Field;case lt.Variable:return r.Variable;case lt.Class:return r.Class;case lt.Interface:return r.Interface;case lt.Module:return r.Module;case lt.Property:return r.Property;case lt.Unit:return r.Unit;case lt.Value:return r.Value;case lt.Enum:return r.Enum;case lt.Keyword:return r.Keyword;case lt.Snippet:return r.Snippet;case lt.Color:return r.Color;case lt.File:return r.File;case lt.Reference:return r.Reference}return r.Property}function dr(t){if(t)return{range:hr(t.range),text:t.newText}}var lr=class{constructor(t){this._worker=t}provideHover(t,r,n){let e=t.uri;return this._worker(e).then((t=>t.doHover(e.toString(),cr(r)))).then((t=>{if(t)return{range:hr(t.range),contents:br(t.contents)}}))}};function gr(t){return"string"==typeof t?{value:t}:(r=t)&&"object"==typeof r&&"string"==typeof r.kind?"plaintext"===t.kind?{value:t.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:t.value}:{value:"```"+t.language+"\n"+t.value+"\n```\n"};var r}function br(t){if(t)return Array.isArray(t)?t.map(gr):[gr(t)]}var mr=class{constructor(t){this._worker=t}provideDocumentHighlights(t,r,n){const e=t.uri;return this._worker(e).then((t=>t.findDocumentHighlights(e.toString(),cr(r)))).then((t=>{if(t)return t.map((t=>({range:hr(t.range),kind:wr(t.kind)})))}))}};function wr(t){switch(t){case _t.Read:return u.languages.DocumentHighlightKind.Read;case _t.Write:return u.languages.DocumentHighlightKind.Write;case _t.Text:return u.languages.DocumentHighlightKind.Text}return u.languages.DocumentHighlightKind.Text}var kr=class{constructor(t){this._worker=t}provideDefinition(t,r,n){const e=t.uri;return this._worker(e).then((t=>t.findDefinition(e.toString(),cr(r)))).then((t=>{if(t)return[pr(t)]}))}};function pr(t){return{uri:u.Uri.parse(t.uri),range:hr(t.range)}}var jr=class{constructor(t){this._worker=t}provideReferences(t,r,n,e){const i=t.uri;return this._worker(i).then((t=>t.findReferences(i.toString(),cr(r)))).then((t=>{if(t)return t.map(pr)}))}},xr=class{constructor(t){this._worker=t}provideRenameEdits(t,r,n,e){const i=t.uri;return this._worker(i).then((t=>t.doRename(i.toString(),cr(r),n))).then((t=>function(t){if(!t||!t.changes)return;let r=[];for(let n in t.changes){const e=u.Uri.parse(n);for(let i of t.changes[n])r.push({resource:e,versionId:void 0,textEdit:{range:hr(i.range),text:i.newText}})}return{edits:r}}(t)))}},Sr=class{constructor(t){this._worker=t}provideDocumentSymbols(t,r){const n=t.uri;return this._worker(n).then((t=>t.findDocumentSymbols(n.toString()))).then((t=>{if(t)return t.map((t=>({name:t.name,detail:"",containerName:t.containerName,kind:Ir(t.kind),range:hr(t.location.range),selectionRange:hr(t.location.range),tags:[]})))}))}};function Ir(t){let r=u.languages.SymbolKind;switch(t){case Nt.File:return r.Array;case Nt.Module:return r.Module;case Nt.Namespace:return r.Namespace;case Nt.Package:return r.Package;case Nt.Class:return r.Class;case Nt.Method:return r.Method;case Nt.Property:return r.Property;case Nt.Field:return r.Field;case Nt.Constructor:return r.Constructor;case Nt.Enum:return r.Enum;case Nt.Interface:return r.Interface;case Nt.Function:return r.Function;case Nt.Variable:return r.Variable;case Nt.Constant:return r.Constant;case Nt.String:return r.String;case Nt.Number:return r.Number;case Nt.Boolean:return r.Boolean;case Nt.Array:return r.Array}return r.Function}var yr=class{constructor(t){this._worker=t}provideLinks(t,r){const n=t.uri;return this._worker(n).then((t=>t.findDocumentLinks(n.toString()))).then((t=>{if(t)return{links:t.map((t=>({range:hr(t.range),url:t.target})))}}))}},Tr=class{constructor(t){this._worker=t}provideDocumentFormattingEdits(t,r,n){const e=t.uri;return this._worker(e).then((t=>t.format(e.toString(),null,Or(r)).then((t=>{if(t&&0!==t.length)return t.map(dr)}))))}},Er=class{constructor(t){this._worker=t}canFormatMultipleRanges=!1;provideDocumentRangeFormattingEdits(t,r,n,e){const i=t.uri;return this._worker(i).then((t=>t.format(i.toString(),fr(r),Or(n)).then((t=>{if(t&&0!==t.length)return t.map(dr)}))))}};function Or(t){return{tabSize:t.tabSize,insertSpaces:t.insertSpaces}}var Cr,_r=class{constructor(t){this._worker=t}provideDocumentColors(t,r){const n=t.uri;return this._worker(n).then((t=>t.findDocumentColors(n.toString()))).then((t=>{if(t)return t.map((t=>({color:t.color,range:hr(t.range)})))}))}provideColorPresentations(t,r,n){const e=t.uri;return this._worker(e).then((t=>t.getColorPresentations(e.toString(),r.color,fr(r.range)))).then((t=>{if(t)return t.map((t=>{let r={label:t.label};return t.textEdit&&(r.textEdit=dr(t.textEdit)),t.additionalTextEdits&&(r.additionalTextEdits=t.additionalTextEdits.map(dr)),r}))}))}},Dr=class{constructor(t){this._worker=t}provideFoldingRanges(t,r,n){const e=t.uri;return this._worker(e).then((t=>t.getFoldingRanges(e.toString(),r))).then((t=>{if(t)return t.map((t=>{const r={start:t.startLine+1,end:t.endLine+1};return void 0!==t.kind&&(r.kind=function(t){switch(t){case y.Comment:return u.languages.FoldingRangeKind.Comment;case y.Imports:return u.languages.FoldingRangeKind.Imports;case y.Region:return u.languages.FoldingRangeKind.Region}}(t.kind)),r}))}))}},Rr=class{constructor(t){this._worker=t}provideSelectionRanges(t,r,n){const e=t.uri;return this._worker(e).then((t=>t.getSelectionRanges(e.toString(),r.map(cr)))).then((t=>{if(t)return t.map((t=>{const r=[];for(;t;)r.push({range:hr(t.range)}),t=t.parent;return r}))}))}};function Nr(t){return 32===t||9===t||11===t||12===t||160===t||5760===t||t>=8192&&t<=8203||8239===t||8287===t||12288===t||65279===t}function Lr(t){return 10===t||13===t||8232===t||8233===t}function Wr(t){return t>=48&&t<=57}(Cr||(Cr={})).DEFAULT={allowTrailingComma:!1};var Ar=function(t,r){void 0===r&&(r=!1);var n=t.length,e=0,i="",o=0,u=16,s=0,a=0,c=0,f=0,h=0;function v(r,n){for(var i=0,o=0;i<r||!n;){var u=t.charCodeAt(e);if(u>=48&&u<=57)o=16*o+u-48;else if(u>=65&&u<=70)o=16*o+u-65+10;else{if(!(u>=97&&u<=102))break;o=16*o+u-97+10}e++,i++}return i<r&&(o=-1),o}function d(){if(i="",h=0,o=e,a=s,f=c,e>=n)return o=n,u=17;var r=t.charCodeAt(e);if(Nr(r)){do{e++,i+=String.fromCharCode(r),r=t.charCodeAt(e)}while(Nr(r));return u=15}if(Lr(r))return e++,i+=String.fromCharCode(r),13===r&&10===t.charCodeAt(e)&&(e++,i+="\n"),s++,c=e,u=14;switch(r){case 123:return e++,u=1;case 125:return e++,u=2;case 91:return e++,u=3;case 93:return e++,u=4;case 58:return e++,u=6;case 44:return e++,u=5;case 34:return e++,i=function(){for(var r="",i=e;;){if(e>=n){r+=t.substring(i,e),h=2;break}var o=t.charCodeAt(e);if(34===o){r+=t.substring(i,e),e++;break}if(92!==o){if(o>=0&&o<=31){if(Lr(o)){r+=t.substring(i,e),h=2;break}h=6}e++}else{if(r+=t.substring(i,e),++e>=n){h=2;break}switch(t.charCodeAt(e++)){case 34:r+='"';break;case 92:r+="\\";break;case 47:r+="/";break;case 98:r+="\b";break;case 102:r+="\f";break;case 110:r+="\n";break;case 114:r+="\r";break;case 116:r+="\t";break;case 117:var u=v(4,!0);u>=0?r+=String.fromCharCode(u):h=4;break;default:h=5}i=e}}return r}(),u=10;case 47:var d=e-1;if(47===t.charCodeAt(e+1)){for(e+=2;e<n&&!Lr(t.charCodeAt(e));)e++;return i=t.substring(d,e),u=12}if(42===t.charCodeAt(e+1)){e+=2;for(var g=n-1,b=!1;e<g;){var m=t.charCodeAt(e);if(42===m&&47===t.charCodeAt(e+1)){e+=2,b=!0;break}e++,Lr(m)&&(13===m&&10===t.charCodeAt(e)&&e++,s++,c=e)}return b||(e++,h=1),i=t.substring(d,e),u=13}return i+=String.fromCharCode(r),e++,u=16;case 45:if(i+=String.fromCharCode(r),++e===n||!Wr(t.charCodeAt(e)))return u=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){var r=e;if(48===t.charCodeAt(e))e++;else for(e++;e<t.length&&Wr(t.charCodeAt(e));)e++;if(e<t.length&&46===t.charCodeAt(e)){if(!(++e<t.length&&Wr(t.charCodeAt(e))))return h=3,t.substring(r,e);for(e++;e<t.length&&Wr(t.charCodeAt(e));)e++}var n=e;if(e<t.length&&(69===t.charCodeAt(e)||101===t.charCodeAt(e)))if((++e<t.length&&43===t.charCodeAt(e)||45===t.charCodeAt(e))&&e++,e<t.length&&Wr(t.charCodeAt(e))){for(e++;e<t.length&&Wr(t.charCodeAt(e));)e++;n=e}else h=3;return t.substring(r,n)}(),u=11;default:for(;e<n&&l(r);)e++,r=t.charCodeAt(e);if(o!==e){switch(i=t.substring(o,e)){case"true":return u=8;case"false":return u=9;case"null":return u=7}return u=16}return i+=String.fromCharCode(r),e++,u=16}}function l(t){if(Nr(t)||Lr(t))return!1;switch(t){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(t){e=t,i="",o=0,u=16,h=0},getPosition:function(){return e},scan:r?function(){var t;do{t=d()}while(t>=12&&t<=15);return t}:d,getToken:function(){return u},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return e-o},getTokenStartLine:function(){return a},getTokenStartCharacter:function(){return o-f},getTokenError:function(){return h}}};var Mr="delimiter.bracket.json",zr="delimiter.array.json",Fr="delimiter.colon.json",Pr="delimiter.comma.json",qr="keyword.json",Ur="keyword.json",Hr="string.value.json",Vr="number.json",$r="string.key.json",Br="comment.block.json",Gr="comment.line.json",Jr=class{constructor(t,r){this.parent=t,this.type=r}static pop(t){return t?t.parent:null}static push(t,r){return new Jr(t,r)}static equals(t,r){if(!t&&!r)return!0;if(!t||!r)return!1;for(;t&&r;){if(t===r)return!0;if(t.type!==r.type)return!1;t=t.parent,r=r.parent}return!0}},Kr=class{_state;scanError;lastWasColon;parents;constructor(t,r,n,e){this._state=t,this.scanError=r,this.lastWasColon=n,this.parents=e}clone(){return new Kr(this._state,this.scanError,this.lastWasColon,this.parents)}equals(t){return t===this||!!(t&&t instanceof Kr)&&this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon&&Jr.equals(this.parents,t.parents)}getStateData(){return this._state}setStateData(t){this._state=t}},Qr=class extends ur{constructor(t,r,n){super(t,r,n.onDidChange),this._disposables.push(u.editor.onWillDisposeModel((t=>{this._resetSchema(t.uri)}))),this._disposables.push(u.editor.onDidChangeModelLanguage((t=>{this._resetSchema(t.model.uri)})))}_resetSchema(t){this._worker().then((r=>{r.resetSchema(t.toString())}))}};function Xr(t){const r=[],n=[],e=new nt(t);r.push(e);const i=(...t)=>e.getLanguageServiceWorker(...t);function o(){const{languageId:r,modeConfiguration:e}=t;var o;Zr(n),e.documentFormattingEdits&&n.push(u.languages.registerDocumentFormattingEditProvider(r,new Tr(i))),e.documentRangeFormattingEdits&&n.push(u.languages.registerDocumentRangeFormattingEditProvider(r,new Er(i))),e.completionItems&&n.push(u.languages.registerCompletionItemProvider(r,new ar(i,[" ",":",'"']))),e.hovers&&n.push(u.languages.registerHoverProvider(r,new lr(i))),e.documentSymbols&&n.push(u.languages.registerDocumentSymbolProvider(r,new Sr(i))),e.tokens&&n.push(u.languages.setTokensProvider(r,(o=!0,{getInitialState:()=>new Kr(null,null,!1,null),tokenize:(t,r)=>function(t,r,n,e=0){let i=0,o=!1;switch(n.scanError){case 2:r='"'+r,i=1;break;case 1:r="/*"+r,i=2}const u=Ar(r);let s=n.lastWasColon,a=n.parents;const c={tokens:[],endState:n.clone()};for(;;){let f=e+u.getPosition(),h="";const v=u.scan();if(17===v)break;if(f===e+u.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+r.substr(u.getPosition(),3));switch(o&&(f-=i),o=i>0,v){case 1:a=Jr.push(a,0),h=Mr,s=!1;break;case 2:a=Jr.pop(a),h=Mr,s=!1;break;case 3:a=Jr.push(a,1),h=zr,s=!1;break;case 4:a=Jr.pop(a),h=zr,s=!1;break;case 6:h=Fr,s=!0;break;case 5:h=Pr,s=!1;break;case 8:case 9:h=qr,s=!1;break;case 7:h=Ur,s=!1;break;case 10:h=s||1===(a?a.type:0)?Hr:$r,s=!1;break;case 11:h=Vr,s=!1}if(t)switch(v){case 12:h=Gr;break;case 13:h=Br}c.endState=new Kr(n.getStateData(),u.getTokenError(),s,a),c.tokens.push({startIndex:f,scopes:h})}return c}(o,t,r)}))),e.colors&&n.push(u.languages.registerColorProvider(r,new _r(i))),e.foldingRanges&&n.push(u.languages.registerFoldingRangeProvider(r,new Dr(i))),e.diagnostics&&n.push(new Qr(r,i,t)),e.selectionRanges&&n.push(u.languages.registerSelectionRangeProvider(r,new Rr(i)))}o(),r.push(u.languages.setLanguageConfiguration(t.languageId,tn));let s=t.modeConfiguration;return t.onDidChange((t=>{t.modeConfiguration!==s&&(s=t.modeConfiguration,o())})),r.push(Yr(n)),Yr(r)}function Yr(t){return{dispose:()=>Zr(t)}}function Zr(t){for(;t.length;)t.pop().dispose()}var tn={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};export{ar as CompletionAdapter,kr as DefinitionAdapter,ur as DiagnosticsAdapter,_r as DocumentColorAdapter,Tr as DocumentFormattingEditProvider,mr as DocumentHighlightAdapter,yr as DocumentLinkAdapter,Er as DocumentRangeFormattingEditProvider,Sr as DocumentSymbolAdapter,Dr as FoldingRangeAdapter,lr as HoverAdapter,jr as ReferenceAdapter,xr as RenameAdapter,Rr as SelectionRangeAdapter,nt as WorkerManager,cr as fromPosition,fr as fromRange,Xr as setupMode,hr as toRange,dr as toTextEdit}
|
|
12
|
+
*-----------------------------------------------------------------------------*/var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,e=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,o=(t,o,u,s)=>{if(o&&"object"==typeof o||"function"==typeof o)for(let c of e(o))i.call(t,c)||c===u||r(t,c,{get:()=>o[c],enumerable:!(s=n(o,c))||s.enumerable});return t},u={};o(u,t,"default");var s,c,a,f,h,v,d,l,g,b,m,w,k,p,j,x,S,I,y,T,E,O,C,_,D,R,N,L,W,A,M,z,F,P,q,U,H,V,$,B,G,J,K,Q,X,Y,Z,tt,rt,nt=class{_defaults;_idleCheckInterval;_lastUsedTime;_configChangeListener;_worker;_client;constructor(t){this._defaults=t,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((()=>this._checkIfIdle()),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((()=>this._stopWorker()))}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>12e4&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=u.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...t){let r;return this._getClient().then((t=>{r=t})).then((()=>{if(this._worker)return this._worker.withSyncedResources(t)})).then((()=>r))}};(c=s||(s={})).MIN_VALUE=-2147483648,c.MAX_VALUE=2147483647,(f=a||(a={})).MIN_VALUE=0,f.MAX_VALUE=2147483647,(v=h||(h={})).create=function(t,r){return t===Number.MAX_VALUE&&(t=a.MAX_VALUE),r===Number.MAX_VALUE&&(r=a.MAX_VALUE),{line:t,character:r}},v.is=function(t){var r=t;return nr.objectLiteral(r)&&nr.uinteger(r.line)&&nr.uinteger(r.character)},(l=d||(d={})).create=function(t,r,n,e){if(nr.uinteger(t)&&nr.uinteger(r)&&nr.uinteger(n)&&nr.uinteger(e))return{start:h.create(t,r),end:h.create(n,e)};if(h.is(t)&&h.is(r))return{start:t,end:r};throw new Error("Range#create called with invalid arguments["+t+", "+r+", "+n+", "+e+"]")},l.is=function(t){var r=t;return nr.objectLiteral(r)&&h.is(r.start)&&h.is(r.end)},(b=g||(g={})).create=function(t,r){return{uri:t,range:r}},b.is=function(t){var r=t;return nr.defined(r)&&d.is(r.range)&&(nr.string(r.uri)||nr.undefined(r.uri))},(w=m||(m={})).create=function(t,r,n,e){return{targetUri:t,targetRange:r,targetSelectionRange:n,originSelectionRange:e}},w.is=function(t){var r=t;return nr.defined(r)&&d.is(r.targetRange)&&nr.string(r.targetUri)&&(d.is(r.targetSelectionRange)||nr.undefined(r.targetSelectionRange))&&(d.is(r.originSelectionRange)||nr.undefined(r.originSelectionRange))},(p=k||(k={})).create=function(t,r,n,e){return{red:t,green:r,blue:n,alpha:e}},p.is=function(t){var r=t;return nr.numberRange(r.red,0,1)&&nr.numberRange(r.green,0,1)&&nr.numberRange(r.blue,0,1)&&nr.numberRange(r.alpha,0,1)},(x=j||(j={})).create=function(t,r){return{range:t,color:r}},x.is=function(t){var r=t;return d.is(r.range)&&k.is(r.color)},(I=S||(S={})).create=function(t,r,n){return{label:t,textEdit:r,additionalTextEdits:n}},I.is=function(t){var r=t;return nr.string(r.label)&&(nr.undefined(r.textEdit)||P.is(r))&&(nr.undefined(r.additionalTextEdits)||nr.typedArray(r.additionalTextEdits,P.is))},(T=y||(y={})).Comment="comment",T.Imports="imports",T.Region="region",(O=E||(E={})).create=function(t,r,n,e,i){var o={startLine:t,endLine:r};return nr.defined(n)&&(o.startCharacter=n),nr.defined(e)&&(o.endCharacter=e),nr.defined(i)&&(o.kind=i),o},O.is=function(t){var r=t;return nr.uinteger(r.startLine)&&nr.uinteger(r.startLine)&&(nr.undefined(r.startCharacter)||nr.uinteger(r.startCharacter))&&(nr.undefined(r.endCharacter)||nr.uinteger(r.endCharacter))&&(nr.undefined(r.kind)||nr.string(r.kind))},(_=C||(C={})).create=function(t,r){return{location:t,message:r}},_.is=function(t){var r=t;return nr.defined(r)&&g.is(r.location)&&nr.string(r.message)},(R=D||(D={})).Error=1,R.Warning=2,R.Information=3,R.Hint=4,(L=N||(N={})).Unnecessary=1,L.Deprecated=2,(W||(W={})).is=function(t){return null!=t&&nr.string(t.href)},(M=A||(A={})).create=function(t,r,n,e,i,o){var u={range:t,message:r};return nr.defined(n)&&(u.severity=n),nr.defined(e)&&(u.code=e),nr.defined(i)&&(u.source=i),nr.defined(o)&&(u.relatedInformation=o),u},M.is=function(t){var r,n=t;return nr.defined(n)&&d.is(n.range)&&nr.string(n.message)&&(nr.number(n.severity)||nr.undefined(n.severity))&&(nr.integer(n.code)||nr.string(n.code)||nr.undefined(n.code))&&(nr.undefined(n.codeDescription)||nr.string(null===(r=n.codeDescription)||void 0===r?void 0:r.href))&&(nr.string(n.source)||nr.undefined(n.source))&&(nr.undefined(n.relatedInformation)||nr.typedArray(n.relatedInformation,C.is))},(F=z||(z={})).create=function(t,r){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];var i={title:t,command:r};return nr.defined(n)&&n.length>0&&(i.arguments=n),i},F.is=function(t){var r=t;return nr.defined(r)&&nr.string(r.title)&&nr.string(r.command)},(q=P||(P={})).replace=function(t,r){return{range:t,newText:r}},q.insert=function(t,r){return{range:{start:t,end:t},newText:r}},q.del=function(t){return{range:t,newText:""}},q.is=function(t){var r=t;return nr.objectLiteral(r)&&nr.string(r.newText)&&d.is(r.range)},(H=U||(U={})).create=function(t,r,n){var e={label:t};return void 0!==r&&(e.needsConfirmation=r),void 0!==n&&(e.description=n),e},H.is=function(t){var r=t;return void 0!==r&&nr.objectLiteral(r)&&nr.string(r.label)&&(nr.boolean(r.needsConfirmation)||void 0===r.needsConfirmation)&&(nr.string(r.description)||void 0===r.description)},(V||(V={})).is=function(t){return"string"==typeof t},(B=$||($={})).replace=function(t,r,n){return{range:t,newText:r,annotationId:n}},B.insert=function(t,r,n){return{range:{start:t,end:t},newText:r,annotationId:n}},B.del=function(t,r){return{range:t,newText:"",annotationId:r}},B.is=function(t){var r=t;return P.is(r)&&(U.is(r.annotationId)||V.is(r.annotationId))},(J=G||(G={})).create=function(t,r){return{textDocument:t,edits:r}},J.is=function(t){var r=t;return nr.defined(r)&&st.is(r.textDocument)&&Array.isArray(r.edits)},(Q=K||(K={})).create=function(t,r,n){var e={kind:"create",uri:t};return void 0===r||void 0===r.overwrite&&void 0===r.ignoreIfExists||(e.options=r),void 0!==n&&(e.annotationId=n),e},Q.is=function(t){var r=t;return r&&"create"===r.kind&&nr.string(r.uri)&&(void 0===r.options||(void 0===r.options.overwrite||nr.boolean(r.options.overwrite))&&(void 0===r.options.ignoreIfExists||nr.boolean(r.options.ignoreIfExists)))&&(void 0===r.annotationId||V.is(r.annotationId))},(Y=X||(X={})).create=function(t,r,n,e){var i={kind:"rename",oldUri:t,newUri:r};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==e&&(i.annotationId=e),i},Y.is=function(t){var r=t;return r&&"rename"===r.kind&&nr.string(r.oldUri)&&nr.string(r.newUri)&&(void 0===r.options||(void 0===r.options.overwrite||nr.boolean(r.options.overwrite))&&(void 0===r.options.ignoreIfExists||nr.boolean(r.options.ignoreIfExists)))&&(void 0===r.annotationId||V.is(r.annotationId))},(tt=Z||(Z={})).create=function(t,r,n){var e={kind:"delete",uri:t};return void 0===r||void 0===r.recursive&&void 0===r.ignoreIfNotExists||(e.options=r),void 0!==n&&(e.annotationId=n),e},tt.is=function(t){var r=t;return r&&"delete"===r.kind&&nr.string(r.uri)&&(void 0===r.options||(void 0===r.options.recursive||nr.boolean(r.options.recursive))&&(void 0===r.options.ignoreIfNotExists||nr.boolean(r.options.ignoreIfNotExists)))&&(void 0===r.annotationId||V.is(r.annotationId))},(rt||(rt={})).is=function(t){return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(t){return nr.string(t.kind)?K.is(t)||X.is(t)||Z.is(t):G.is(t)})))};var et,it,ot,ut,st,ct,at,ft,ht,vt,dt,lt,gt,bt,mt,wt,kt,pt,jt,xt,St,It,yt,Tt,Et,Ot,Ct,_t,Dt,Rt,Nt,Lt,Wt,At,Mt,zt,Ft,Pt,qt,Ut,Ht,Vt,$t,Bt,Gt,Jt,Kt,Qt,Xt,Yt,Zt,tr=function(){function t(t,r){this.edits=t,this.changeAnnotations=r}return t.prototype.insert=function(t,r,n){var e,i;if(void 0===n?e=P.insert(t,r):V.is(n)?(i=n,e=$.insert(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),e=$.insert(t,r,i)),this.edits.push(e),void 0!==i)return i},t.prototype.replace=function(t,r,n){var e,i;if(void 0===n?e=P.replace(t,r):V.is(n)?(i=n,e=$.replace(t,r,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),e=$.replace(t,r,i)),this.edits.push(e),void 0!==i)return i},t.prototype.delete=function(t,r){var n,e;if(void 0===r?n=P.del(t):V.is(r)?(e=r,n=$.del(t,r)):(this.assertChangeAnnotations(this.changeAnnotations),e=this.changeAnnotations.manage(r),n=$.del(t,e)),this.edits.push(n),void 0!==e)return e},t.prototype.add=function(t){this.edits.push(t)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(t){if(void 0===t)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),rr=function(){function t(t){this._annotations=void 0===t?Object.create(null):t,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(t,r){var n;if(V.is(t)?n=t:(n=this.nextId(),r=t),void 0!==this._annotations[n])throw new Error("Id "+n+" is already in use.");if(void 0===r)throw new Error("No annotation provided for id "+n);return this._annotations[n]=r,this._size++,n},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}();!function(){function t(t){var r=this;this._textEditChanges=Object.create(null),void 0!==t?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new rr(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach((function(t){if(G.is(t)){var n=new tr(t.edits,r._changeAnnotations);r._textEditChanges[t.textDocument.uri]=n}}))):t.changes&&Object.keys(t.changes).forEach((function(n){var e=new tr(t.changes[n]);r._textEditChanges[n]=e}))):this._workspaceEdit={}}Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(this._workspaceEdit.changeAnnotations=0===this._changeAnnotations.size?void 0:this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(t){if(st.is(t)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r={uri:t.uri,version:t.version};return(n=this._textEditChanges[r.uri])||(this._workspaceEdit.documentChanges.push({textDocument:r,edits:e=[]}),n=new tr(e,this._changeAnnotations),this._textEditChanges[r.uri]=n),n}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var n,e;return(n=this._textEditChanges[t])||(this._workspaceEdit.changes[t]=e=[],n=new tr(e),this._textEditChanges[t]=n),n},t.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new rr,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(t,r,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var e,i,o;if(U.is(r)||V.is(r)?e=r:n=r,void 0===e?i=K.create(t,n):(o=V.is(e)?e:this._changeAnnotations.manage(e),i=K.create(t,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},t.prototype.renameFile=function(t,r,n,e){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,u;if(U.is(n)||V.is(n)?i=n:e=n,void 0===i?o=X.create(t,r,e):(u=V.is(i)?i:this._changeAnnotations.manage(i),o=X.create(t,r,e,u)),this._workspaceEdit.documentChanges.push(o),void 0!==u)return u},t.prototype.deleteFile=function(t,r,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var e,i,o;if(U.is(r)||V.is(r)?e=r:n=r,void 0===e?i=Z.create(t,n):(o=V.is(e)?e:this._changeAnnotations.manage(e),i=Z.create(t,n,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}(),(it=et||(et={})).create=function(t){return{uri:t}},it.is=function(t){var r=t;return nr.defined(r)&&nr.string(r.uri)},(ut=ot||(ot={})).create=function(t,r){return{uri:t,version:r}},ut.is=function(t){var r=t;return nr.defined(r)&&nr.string(r.uri)&&nr.integer(r.version)},(ct=st||(st={})).create=function(t,r){return{uri:t,version:r}},ct.is=function(t){var r=t;return nr.defined(r)&&nr.string(r.uri)&&(null===r.version||nr.integer(r.version))},(ft=at||(at={})).create=function(t,r,n,e){return{uri:t,languageId:r,version:n,text:e}},ft.is=function(t){var r=t;return nr.defined(r)&&nr.string(r.uri)&&nr.string(r.languageId)&&nr.integer(r.version)&&nr.string(r.text)},(vt=ht||(ht={})).PlainText="plaintext",vt.Markdown="markdown",function(t){t.is=function(r){return r===t.PlainText||r===t.Markdown}}(ht||(ht={})),(dt||(dt={})).is=function(t){var r=t;return nr.objectLiteral(t)&&ht.is(r.kind)&&nr.string(r.value)},(gt=lt||(lt={})).Text=1,gt.Method=2,gt.Function=3,gt.Constructor=4,gt.Field=5,gt.Variable=6,gt.Class=7,gt.Interface=8,gt.Module=9,gt.Property=10,gt.Unit=11,gt.Value=12,gt.Enum=13,gt.Keyword=14,gt.Snippet=15,gt.Color=16,gt.File=17,gt.Reference=18,gt.Folder=19,gt.EnumMember=20,gt.Constant=21,gt.Struct=22,gt.Event=23,gt.Operator=24,gt.TypeParameter=25,(mt=bt||(bt={})).PlainText=1,mt.Snippet=2,(wt||(wt={})).Deprecated=1,(pt=kt||(kt={})).create=function(t,r,n){return{newText:t,insert:r,replace:n}},pt.is=function(t){var r=t;return r&&nr.string(r.newText)&&d.is(r.insert)&&d.is(r.replace)},(xt=jt||(jt={})).asIs=1,xt.adjustIndentation=2,(St||(St={})).create=function(t){return{label:t}},(It||(It={})).create=function(t,r){return{items:t||[],isIncomplete:!!r}},(Tt=yt||(yt={})).fromPlainText=function(t){return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Tt.is=function(t){var r=t;return nr.string(r)||nr.objectLiteral(r)&&nr.string(r.language)&&nr.string(r.value)},(Et||(Et={})).is=function(t){var r=t;return!!r&&nr.objectLiteral(r)&&(dt.is(r.contents)||yt.is(r.contents)||nr.typedArray(r.contents,yt.is))&&(void 0===t.range||d.is(t.range))},(Ot||(Ot={})).create=function(t,r){return r?{label:t,documentation:r}:{label:t}},(Ct||(Ct={})).create=function(t,r){for(var n=[],e=2;e<arguments.length;e++)n[e-2]=arguments[e];var i={label:t};return nr.defined(r)&&(i.documentation=r),i.parameters=nr.defined(n)?n:[],i},(Dt=_t||(_t={})).Text=1,Dt.Read=2,Dt.Write=3,(Rt||(Rt={})).create=function(t,r){var n={range:t};return nr.number(r)&&(n.kind=r),n},(Lt=Nt||(Nt={})).File=1,Lt.Module=2,Lt.Namespace=3,Lt.Package=4,Lt.Class=5,Lt.Method=6,Lt.Property=7,Lt.Field=8,Lt.Constructor=9,Lt.Enum=10,Lt.Interface=11,Lt.Function=12,Lt.Variable=13,Lt.Constant=14,Lt.String=15,Lt.Number=16,Lt.Boolean=17,Lt.Array=18,Lt.Object=19,Lt.Key=20,Lt.Null=21,Lt.EnumMember=22,Lt.Struct=23,Lt.Event=24,Lt.Operator=25,Lt.TypeParameter=26,(Wt||(Wt={})).Deprecated=1,(At||(At={})).create=function(t,r,n,e,i){var o={name:t,kind:r,location:{uri:e,range:n}};return i&&(o.containerName=i),o},(zt=Mt||(Mt={})).create=function(t,r,n,e,i,o){var u={name:t,detail:r,kind:n,range:e,selectionRange:i};return void 0!==o&&(u.children=o),u},zt.is=function(t){var r=t;return r&&nr.string(r.name)&&nr.number(r.kind)&&d.is(r.range)&&d.is(r.selectionRange)&&(void 0===r.detail||nr.string(r.detail))&&(void 0===r.deprecated||nr.boolean(r.deprecated))&&(void 0===r.children||Array.isArray(r.children))&&(void 0===r.tags||Array.isArray(r.tags))},(Pt=Ft||(Ft={})).Empty="",Pt.QuickFix="quickfix",Pt.Refactor="refactor",Pt.RefactorExtract="refactor.extract",Pt.RefactorInline="refactor.inline",Pt.RefactorRewrite="refactor.rewrite",Pt.Source="source",Pt.SourceOrganizeImports="source.organizeImports",Pt.SourceFixAll="source.fixAll",(Ut=qt||(qt={})).create=function(t,r){var n={diagnostics:t};return null!=r&&(n.only=r),n},Ut.is=function(t){var r=t;return nr.defined(r)&&nr.typedArray(r.diagnostics,A.is)&&(void 0===r.only||nr.typedArray(r.only,nr.string))},(Vt=Ht||(Ht={})).create=function(t,r,n){var e={title:t},i=!0;return"string"==typeof r?(i=!1,e.kind=r):z.is(r)?e.command=r:e.edit=r,i&&void 0!==n&&(e.kind=n),e},Vt.is=function(t){var r=t;return r&&nr.string(r.title)&&(void 0===r.diagnostics||nr.typedArray(r.diagnostics,A.is))&&(void 0===r.kind||nr.string(r.kind))&&(void 0!==r.edit||void 0!==r.command)&&(void 0===r.command||z.is(r.command))&&(void 0===r.isPreferred||nr.boolean(r.isPreferred))&&(void 0===r.edit||rt.is(r.edit))},(Bt=$t||($t={})).create=function(t,r){var n={range:t};return nr.defined(r)&&(n.data=r),n},Bt.is=function(t){var r=t;return nr.defined(r)&&d.is(r.range)&&(nr.undefined(r.command)||z.is(r.command))},(Jt=Gt||(Gt={})).create=function(t,r){return{tabSize:t,insertSpaces:r}},Jt.is=function(t){var r=t;return nr.defined(r)&&nr.uinteger(r.tabSize)&&nr.boolean(r.insertSpaces)},(Qt=Kt||(Kt={})).create=function(t,r,n){return{range:t,target:r,data:n}},Qt.is=function(t){var r=t;return nr.defined(r)&&d.is(r.range)&&(nr.undefined(r.target)||nr.string(r.target))},(Yt=Xt||(Xt={})).create=function(t,r){return{range:t,parent:r}},Yt.is=function(t){var r=t;return void 0!==r&&d.is(r.range)&&(void 0===r.parent||Yt.is(r.parent))},function(t){function r(t,n){if(t.length<=1)return t;var e=t.length/2|0,i=t.slice(0,e),o=t.slice(e);r(i,n),r(o,n);for(var u=0,s=0,c=0;u<i.length&&s<o.length;){var a=n(i[u],o[s]);t[c++]=a<=0?i[u++]:o[s++]}for(;u<i.length;)t[c++]=i[u++];for(;s<o.length;)t[c++]=o[s++];return t}t.create=function(t,r,n,e){return new or(t,r,n,e)},t.is=function(t){var r=t;return!!(nr.defined(r)&&nr.string(r.uri)&&(nr.undefined(r.languageId)||nr.string(r.languageId))&&nr.uinteger(r.lineCount)&&nr.func(r.getText)&&nr.func(r.positionAt)&&nr.func(r.offsetAt))},t.applyEdits=function(t,n){for(var e=t.getText(),i=r(n,(function(t,r){var n=t.range.start.line-r.range.start.line;return 0===n?t.range.start.character-r.range.start.character:n})),o=e.length,u=i.length-1;u>=0;u--){var s=i[u],c=t.offsetAt(s.range.start),a=t.offsetAt(s.range.end);if(!(a<=o))throw new Error("Overlapping edit");e=e.substring(0,c)+s.newText+e.substring(a,e.length),o=c}return e}}(Zt||(Zt={}));var nr,er,ir,or=function(){function t(t,r,n,e){this._uri=t,this._languageId=r,this._version=n,this._content=e,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(t){if(t){var r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content},t.prototype.update=function(t,r){this._content=t.text,this._version=r,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var t=[],r=this._content,n=!0,e=0;e<r.length;e++){n&&(t.push(e),n=!1);var i=r.charAt(e);n="\r"===i||"\n"===i,"\r"===i&&e+1<r.length&&"\n"===r.charAt(e+1)&&e++}n&&r.length>0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets},t.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var r=this.getLineOffsets(),n=0,e=r.length;if(0===e)return h.create(0,t);for(;n<e;){var i=Math.floor((n+e)/2);r[i]>t?e=i:n=i+1}var o=n-1;return h.create(o,t-r[o])},t.prototype.offsetAt=function(t){var r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;var n=r[t.line];return Math.max(Math.min(n+t.character,t.line+1<r.length?r[t.line+1]:this._content.length),n)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}();er=nr||(nr={}),ir=Object.prototype.toString,er.defined=function(t){return void 0!==t},er.undefined=function(t){return void 0===t},er.boolean=function(t){return!0===t||!1===t},er.string=function(t){return"[object String]"===ir.call(t)},er.number=function(t){return"[object Number]"===ir.call(t)},er.numberRange=function(t,r,n){return"[object Number]"===ir.call(t)&&r<=t&&t<=n},er.integer=function(t){return"[object Number]"===ir.call(t)&&-2147483648<=t&&t<=2147483647},er.uinteger=function(t){return"[object Number]"===ir.call(t)&&0<=t&&t<=2147483647},er.func=function(t){return"[object Function]"===ir.call(t)},er.objectLiteral=function(t){return null!==t&&"object"==typeof t},er.typedArray=function(t,r){return Array.isArray(t)&&t.every(r)};var ur=class{constructor(t,r,n){this._languageId=t,this._worker=r;const e=t=>{let r,n=t.getLanguageId();n===this._languageId&&(this._listener[t.uri.toString()]=t.onDidChangeContent((()=>{window.clearTimeout(r),r=window.setTimeout((()=>this._doValidate(t.uri,n)),500)})),this._doValidate(t.uri,n))},i=t=>{u.editor.setModelMarkers(t,this._languageId,[]);let r=t.uri.toString(),n=this._listener[r];n&&(n.dispose(),delete this._listener[r])};this._disposables.push(u.editor.onDidCreateModel(e)),this._disposables.push(u.editor.onWillDisposeModel(i)),this._disposables.push(u.editor.onDidChangeModelLanguage((t=>{i(t.model),e(t.model)}))),this._disposables.push(n((()=>{u.editor.getModels().forEach((t=>{t.getLanguageId()===this._languageId&&(i(t),e(t))}))}))),this._disposables.push({dispose:()=>{u.editor.getModels().forEach(i);for(let t in this._listener)this._listener[t].dispose()}}),u.editor.getModels().forEach(e)}_disposables=[];_listener=Object.create(null);dispose(){this._disposables.forEach((t=>t&&t.dispose())),this._disposables.length=0}_doValidate(t,r){this._worker(t).then((r=>r.doValidation(t.toString()))).then((n=>{const e=n.map((t=>function(t,r){let n="number"==typeof r.code?String(r.code):r.code;return{severity:sr(r.severity),startLineNumber:r.range.start.line+1,startColumn:r.range.start.character+1,endLineNumber:r.range.end.line+1,endColumn:r.range.end.character+1,message:r.message,code:n,source:r.source}}(0,t)));let i=u.editor.getModel(t);i&&i.getLanguageId()===r&&u.editor.setModelMarkers(i,r,e)})).then(void 0,(t=>{console.error(t)}))}};function sr(t){switch(t){case D.Error:return u.MarkerSeverity.Error;case D.Warning:return u.MarkerSeverity.Warning;case D.Information:return u.MarkerSeverity.Info;case D.Hint:return u.MarkerSeverity.Hint;default:return u.MarkerSeverity.Info}}var cr=class{constructor(t,r){this._worker=t,this._triggerCharacters=r}get triggerCharacters(){return this._triggerCharacters}provideCompletionItems(t,r,n,e){const i=t.uri;return this._worker(i).then((t=>t.doComplete(i.toString(),ar(r)))).then((n=>{if(!n)return;const e=t.getWordUntilPosition(r),i=new u.Range(r.lineNumber,e.startColumn,r.lineNumber,e.endColumn),o=n.items.map((t=>{const r={label:t.label,insertText:t.insertText||t.label,sortText:t.sortText,filterText:t.filterText,documentation:t.documentation,detail:t.detail,command:(n=t.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:vr(t.kind)};var n,e;return t.textEdit&&(r.range=void 0!==(e=t.textEdit).insert&&void 0!==e.replace?{insert:hr(t.textEdit.insert),replace:hr(t.textEdit.replace)}:hr(t.textEdit.range),r.insertText=t.textEdit.newText),t.additionalTextEdits&&(r.additionalTextEdits=t.additionalTextEdits.map(dr)),t.insertTextFormat===bt.Snippet&&(r.insertTextRules=u.languages.CompletionItemInsertTextRule.InsertAsSnippet),r}));return{isIncomplete:n.isIncomplete,suggestions:o}}))}};function ar(t){if(t)return{character:t.column-1,line:t.lineNumber-1}}function fr(t){if(t)return{start:{line:t.startLineNumber-1,character:t.startColumn-1},end:{line:t.endLineNumber-1,character:t.endColumn-1}}}function hr(t){if(t)return new u.Range(t.start.line+1,t.start.character+1,t.end.line+1,t.end.character+1)}function vr(t){const r=u.languages.CompletionItemKind;switch(t){case lt.Text:return r.Text;case lt.Method:return r.Method;case lt.Function:return r.Function;case lt.Constructor:return r.Constructor;case lt.Field:return r.Field;case lt.Variable:return r.Variable;case lt.Class:return r.Class;case lt.Interface:return r.Interface;case lt.Module:return r.Module;case lt.Property:return r.Property;case lt.Unit:return r.Unit;case lt.Value:return r.Value;case lt.Enum:return r.Enum;case lt.Keyword:return r.Keyword;case lt.Snippet:return r.Snippet;case lt.Color:return r.Color;case lt.File:return r.File;case lt.Reference:return r.Reference}return r.Property}function dr(t){if(t)return{range:hr(t.range),text:t.newText}}var lr=class{constructor(t){this._worker=t}provideHover(t,r,n){let e=t.uri;return this._worker(e).then((t=>t.doHover(e.toString(),ar(r)))).then((t=>{if(t)return{range:hr(t.range),contents:br(t.contents)}}))}};function gr(t){return"string"==typeof t?{value:t}:(r=t)&&"object"==typeof r&&"string"==typeof r.kind?"plaintext"===t.kind?{value:t.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:t.value}:{value:"```"+t.language+"\n"+t.value+"\n```\n"};var r}function br(t){if(t)return Array.isArray(t)?t.map(gr):[gr(t)]}var mr=class{constructor(t){this._worker=t}provideDocumentHighlights(t,r,n){const e=t.uri;return this._worker(e).then((t=>t.findDocumentHighlights(e.toString(),ar(r)))).then((t=>{if(t)return t.map((t=>({range:hr(t.range),kind:wr(t.kind)})))}))}};function wr(t){switch(t){case _t.Read:return u.languages.DocumentHighlightKind.Read;case _t.Write:return u.languages.DocumentHighlightKind.Write;case _t.Text:return u.languages.DocumentHighlightKind.Text}return u.languages.DocumentHighlightKind.Text}var kr=class{constructor(t){this._worker=t}provideDefinition(t,r,n){const e=t.uri;return this._worker(e).then((t=>t.findDefinition(e.toString(),ar(r)))).then((t=>{if(t)return[pr(t)]}))}};function pr(t){return{uri:u.Uri.parse(t.uri),range:hr(t.range)}}var jr=class{constructor(t){this._worker=t}provideReferences(t,r,n,e){const i=t.uri;return this._worker(i).then((t=>t.findReferences(i.toString(),ar(r)))).then((t=>{if(t)return t.map(pr)}))}},xr=class{constructor(t){this._worker=t}provideRenameEdits(t,r,n,e){const i=t.uri;return this._worker(i).then((t=>t.doRename(i.toString(),ar(r),n))).then((t=>function(t){if(!t||!t.changes)return;let r=[];for(let n in t.changes){const e=u.Uri.parse(n);for(let i of t.changes[n])r.push({resource:e,versionId:void 0,textEdit:{range:hr(i.range),text:i.newText}})}return{edits:r}}(t)))}},Sr=class{constructor(t){this._worker=t}provideDocumentSymbols(t,r){const n=t.uri;return this._worker(n).then((t=>t.findDocumentSymbols(n.toString()))).then((t=>{if(t)return t.map((t=>({name:t.name,detail:"",containerName:t.containerName,kind:Ir(t.kind),range:hr(t.location.range),selectionRange:hr(t.location.range),tags:[]})))}))}};function Ir(t){let r=u.languages.SymbolKind;switch(t){case Nt.File:return r.Array;case Nt.Module:return r.Module;case Nt.Namespace:return r.Namespace;case Nt.Package:return r.Package;case Nt.Class:return r.Class;case Nt.Method:return r.Method;case Nt.Property:return r.Property;case Nt.Field:return r.Field;case Nt.Constructor:return r.Constructor;case Nt.Enum:return r.Enum;case Nt.Interface:return r.Interface;case Nt.Function:return r.Function;case Nt.Variable:return r.Variable;case Nt.Constant:return r.Constant;case Nt.String:return r.String;case Nt.Number:return r.Number;case Nt.Boolean:return r.Boolean;case Nt.Array:return r.Array}return r.Function}var yr=class{constructor(t){this._worker=t}provideLinks(t,r){const n=t.uri;return this._worker(n).then((t=>t.findDocumentLinks(n.toString()))).then((t=>{if(t)return{links:t.map((t=>({range:hr(t.range),url:t.target})))}}))}},Tr=class{constructor(t){this._worker=t}provideDocumentFormattingEdits(t,r,n){const e=t.uri;return this._worker(e).then((t=>t.format(e.toString(),null,Or(r)).then((t=>{if(t&&0!==t.length)return t.map(dr)}))))}},Er=class{constructor(t){this._worker=t}canFormatMultipleRanges=!1;provideDocumentRangeFormattingEdits(t,r,n,e){const i=t.uri;return this._worker(i).then((t=>t.format(i.toString(),fr(r),Or(n)).then((t=>{if(t&&0!==t.length)return t.map(dr)}))))}};function Or(t){return{tabSize:t.tabSize,insertSpaces:t.insertSpaces}}var Cr,_r=class{constructor(t){this._worker=t}provideDocumentColors(t,r){const n=t.uri;return this._worker(n).then((t=>t.findDocumentColors(n.toString()))).then((t=>{if(t)return t.map((t=>({color:t.color,range:hr(t.range)})))}))}provideColorPresentations(t,r,n){const e=t.uri;return this._worker(e).then((t=>t.getColorPresentations(e.toString(),r.color,fr(r.range)))).then((t=>{if(t)return t.map((t=>{let r={label:t.label};return t.textEdit&&(r.textEdit=dr(t.textEdit)),t.additionalTextEdits&&(r.additionalTextEdits=t.additionalTextEdits.map(dr)),r}))}))}},Dr=class{constructor(t){this._worker=t}provideFoldingRanges(t,r,n){const e=t.uri;return this._worker(e).then((t=>t.getFoldingRanges(e.toString(),r))).then((t=>{if(t)return t.map((t=>{const r={start:t.startLine+1,end:t.endLine+1};return void 0!==t.kind&&(r.kind=function(t){switch(t){case y.Comment:return u.languages.FoldingRangeKind.Comment;case y.Imports:return u.languages.FoldingRangeKind.Imports;case y.Region:return u.languages.FoldingRangeKind.Region}}(t.kind)),r}))}))}},Rr=class{constructor(t){this._worker=t}provideSelectionRanges(t,r,n){const e=t.uri;return this._worker(e).then((t=>t.getSelectionRanges(e.toString(),r.map(ar)))).then((t=>{if(t)return t.map((t=>{const r=[];for(;t;)r.push({range:hr(t.range)}),t=t.parent;return r}))}))}};function Nr(t){return 32===t||9===t||11===t||12===t||160===t||5760===t||t>=8192&&t<=8203||8239===t||8287===t||12288===t||65279===t}function Lr(t){return 10===t||13===t||8232===t||8233===t}function Wr(t){return t>=48&&t<=57}(Cr||(Cr={})).DEFAULT={allowTrailingComma:!1};var Ar=function(t,r){void 0===r&&(r=!1);var n=t.length,e=0,i="",o=0,u=16,s=0,c=0,a=0,f=0,h=0;function v(r,n){for(var i=0,o=0;i<r||!n;){var u=t.charCodeAt(e);if(u>=48&&u<=57)o=16*o+u-48;else if(u>=65&&u<=70)o=16*o+u-65+10;else{if(!(u>=97&&u<=102))break;o=16*o+u-97+10}e++,i++}return i<r&&(o=-1),o}function d(){if(i="",h=0,o=e,c=s,f=a,e>=n)return o=n,u=17;var r=t.charCodeAt(e);if(Nr(r)){do{e++,i+=String.fromCharCode(r),r=t.charCodeAt(e)}while(Nr(r));return u=15}if(Lr(r))return e++,i+=String.fromCharCode(r),13===r&&10===t.charCodeAt(e)&&(e++,i+="\n"),s++,a=e,u=14;switch(r){case 123:return e++,u=1;case 125:return e++,u=2;case 91:return e++,u=3;case 93:return e++,u=4;case 58:return e++,u=6;case 44:return e++,u=5;case 34:return e++,i=function(){for(var r="",i=e;;){if(e>=n){r+=t.substring(i,e),h=2;break}var o=t.charCodeAt(e);if(34===o){r+=t.substring(i,e),e++;break}if(92!==o){if(o>=0&&o<=31){if(Lr(o)){r+=t.substring(i,e),h=2;break}h=6}e++}else{if(r+=t.substring(i,e),++e>=n){h=2;break}switch(t.charCodeAt(e++)){case 34:r+='"';break;case 92:r+="\\";break;case 47:r+="/";break;case 98:r+="\b";break;case 102:r+="\f";break;case 110:r+="\n";break;case 114:r+="\r";break;case 116:r+="\t";break;case 117:var u=v(4,!0);u>=0?r+=String.fromCharCode(u):h=4;break;default:h=5}i=e}}return r}(),u=10;case 47:var d=e-1;if(47===t.charCodeAt(e+1)){for(e+=2;e<n&&!Lr(t.charCodeAt(e));)e++;return i=t.substring(d,e),u=12}if(42===t.charCodeAt(e+1)){e+=2;for(var g=n-1,b=!1;e<g;){var m=t.charCodeAt(e);if(42===m&&47===t.charCodeAt(e+1)){e+=2,b=!0;break}e++,Lr(m)&&(13===m&&10===t.charCodeAt(e)&&e++,s++,a=e)}return b||(e++,h=1),i=t.substring(d,e),u=13}return i+=String.fromCharCode(r),e++,u=16;case 45:if(i+=String.fromCharCode(r),++e===n||!Wr(t.charCodeAt(e)))return u=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){var r=e;if(48===t.charCodeAt(e))e++;else for(e++;e<t.length&&Wr(t.charCodeAt(e));)e++;if(e<t.length&&46===t.charCodeAt(e)){if(!(++e<t.length&&Wr(t.charCodeAt(e))))return h=3,t.substring(r,e);for(e++;e<t.length&&Wr(t.charCodeAt(e));)e++}var n=e;if(e<t.length&&(69===t.charCodeAt(e)||101===t.charCodeAt(e)))if((++e<t.length&&43===t.charCodeAt(e)||45===t.charCodeAt(e))&&e++,e<t.length&&Wr(t.charCodeAt(e))){for(e++;e<t.length&&Wr(t.charCodeAt(e));)e++;n=e}else h=3;return t.substring(r,n)}(),u=11;default:for(;e<n&&l(r);)e++,r=t.charCodeAt(e);if(o!==e){switch(i=t.substring(o,e)){case"true":return u=8;case"false":return u=9;case"null":return u=7}return u=16}return i+=String.fromCharCode(r),e++,u=16}}function l(t){if(Nr(t)||Lr(t))return!1;switch(t){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(t){e=t,i="",o=0,u=16,h=0},getPosition:function(){return e},scan:r?function(){var t;do{t=d()}while(t>=12&&t<=15);return t}:d,getToken:function(){return u},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return e-o},getTokenStartLine:function(){return c},getTokenStartCharacter:function(){return o-f},getTokenError:function(){return h}}};var Mr="delimiter.bracket.json",zr="delimiter.array.json",Fr="delimiter.colon.json",Pr="delimiter.comma.json",qr="keyword.json",Ur="keyword.json",Hr="string.value.json",Vr="number.json",$r="string.key.json",Br="comment.block.json",Gr="comment.line.json",Jr=class{constructor(t,r){this.parent=t,this.type=r}static pop(t){return t?t.parent:null}static push(t,r){return new Jr(t,r)}static equals(t,r){if(!t&&!r)return!0;if(!t||!r)return!1;for(;t&&r;){if(t===r)return!0;if(t.type!==r.type)return!1;t=t.parent,r=r.parent}return!0}},Kr=class{_state;scanError;lastWasColon;parents;constructor(t,r,n,e){this._state=t,this.scanError=r,this.lastWasColon=n,this.parents=e}clone(){return new Kr(this._state,this.scanError,this.lastWasColon,this.parents)}equals(t){return t===this||!!(t&&t instanceof Kr)&&this.scanError===t.scanError&&this.lastWasColon===t.lastWasColon&&Jr.equals(this.parents,t.parents)}getStateData(){return this._state}setStateData(t){this._state=t}},Qr=class extends ur{constructor(t,r,n){super(t,r,n.onDidChange),this._disposables.push(u.editor.onWillDisposeModel((t=>{this._resetSchema(t.uri)}))),this._disposables.push(u.editor.onDidChangeModelLanguage((t=>{this._resetSchema(t.model.uri)})))}_resetSchema(t){this._worker().then((r=>{r.resetSchema(t.toString())}))}};function Xr(t){const r=[],n=[],e=new nt(t);r.push(e);const i=(...t)=>e.getLanguageServiceWorker(...t);function o(){const{languageId:r,modeConfiguration:e}=t;var o;Zr(n),e.documentFormattingEdits&&n.push(u.languages.registerDocumentFormattingEditProvider(r,new Tr(i))),e.documentRangeFormattingEdits&&n.push(u.languages.registerDocumentRangeFormattingEditProvider(r,new Er(i))),e.completionItems&&n.push(u.languages.registerCompletionItemProvider(r,new cr(i,[" ",":",'"']))),e.hovers&&n.push(u.languages.registerHoverProvider(r,new lr(i))),e.documentSymbols&&n.push(u.languages.registerDocumentSymbolProvider(r,new Sr(i))),e.tokens&&n.push(u.languages.setTokensProvider(r,(o=!0,{getInitialState:()=>new Kr(null,null,!1,null),tokenize:(t,r)=>function(t,r,n,e=0){let i=0,o=!1;switch(n.scanError){case 2:r='"'+r,i=1;break;case 1:r="/*"+r,i=2}const u=Ar(r);let s=n.lastWasColon,c=n.parents;const a={tokens:[],endState:n.clone()};for(;;){let f=e+u.getPosition(),h="";const v=u.scan();if(17===v)break;if(f===e+u.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+r.substr(u.getPosition(),3));switch(o&&(f-=i),o=i>0,v){case 1:c=Jr.push(c,0),h=Mr,s=!1;break;case 2:c=Jr.pop(c),h=Mr,s=!1;break;case 3:c=Jr.push(c,1),h=zr,s=!1;break;case 4:c=Jr.pop(c),h=zr,s=!1;break;case 6:h=Fr,s=!0;break;case 5:h=Pr,s=!1;break;case 8:case 9:h=qr,s=!1;break;case 7:h=Ur,s=!1;break;case 10:h=s||1===(c?c.type:0)?Hr:$r,s=!1;break;case 11:h=Vr,s=!1}if(t)switch(v){case 12:h=Gr;break;case 13:h=Br}a.endState=new Kr(n.getStateData(),u.getTokenError(),s,c),a.tokens.push({startIndex:f,scopes:h})}return a}(o,t,r)}))),e.colors&&n.push(u.languages.registerColorProvider(r,new _r(i))),e.foldingRanges&&n.push(u.languages.registerFoldingRangeProvider(r,new Dr(i))),e.diagnostics&&n.push(new Qr(r,i,t)),e.selectionRanges&&n.push(u.languages.registerSelectionRangeProvider(r,new Rr(i)))}o(),r.push(u.languages.setLanguageConfiguration(t.languageId,tn));let s=t.modeConfiguration;return t.onDidChange((t=>{t.modeConfiguration!==s&&(s=t.modeConfiguration,o())})),r.push(Yr(n)),Yr(r)}function Yr(t){return{dispose:()=>Zr(t)}}function Zr(t){for(;t.length;)t.pop().dispose()}var tn={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]};export{cr as CompletionAdapter,kr as DefinitionAdapter,ur as DiagnosticsAdapter,_r as DocumentColorAdapter,Tr as DocumentFormattingEditProvider,mr as DocumentHighlightAdapter,yr as DocumentLinkAdapter,Er as DocumentRangeFormattingEditProvider,Sr as DocumentSymbolAdapter,Dr as FoldingRangeAdapter,lr as HoverAdapter,jr as ReferenceAdapter,xr as RenameAdapter,Rr as SelectionRangeAdapter,nt as WorkerManager,ar as fromPosition,fr as fromRange,Xr as setupMode,hr as toRange,dr as toTextEdit}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.29
|
|
5
5
|
*/
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.29
|
|
5
5
|
*/
|
|
6
6
|
var e;function t(t){return"function"==typeof e[t]?e[t]=e[t](globalThis):e[t]}e=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},t.add=(n,r,o,i)=>((i||void 0===e[n])&&(e[n]=r),o&&t(n)),t.cache=e,t.add("big-integer-warning-enabled",!0),t.add("esri-deprecation-warnings",!0),t.add("esri-tests-disable-screenshots",!1),t.add("esri-tests-use-full-window",!1),t.add("esri-tests-post-to-influx",!0),(()=>{t.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(t.add("host-browser",e),t.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),t.add("dom",e),t("host-browser")){const e=navigator,n=e.userAgent,r=e.appVersion,o=parseFloat(r);if(t.add("wp",parseFloat(n.split("Windows Phone")[1])||void 0),t.add("msapp",parseFloat(n.split("MSAppHost/")[1])||void 0),t.add("khtml",r.includes("Konqueror")?o:void 0),t.add("edge",parseFloat(n.split("Edge/")[1])||void 0),t.add("opr",parseFloat(n.split("OPR/")[1])||void 0),t.add("webkit",!t("wp")&&!t("edge")&&parseFloat(n.split("WebKit/")[1])||void 0),t.add("chrome",!t("edge")&&!t("opr")&&parseFloat(n.split("Chrome/")[1])||void 0),t.add("android",!t("wp")&&parseFloat(n.split("Android ")[1])||void 0),t.add("safari",!r.includes("Safari")||t("wp")||t("chrome")||t("android")||t("edge")||t("opr")?void 0:parseFloat(r.split("Version/")[1])),t.add("mac",r.includes("Macintosh")),!t("wp")&&/(iPhone|iPod|iPad)/.test(n)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(n)?RegExp.$1:"1",o=parseFloat(r.replace(/_/,".").replaceAll("_",""));t.add(e,o),t.add("ios",o)}t("webkit")||(!n.includes("Gecko")||t("wp")||t("khtml")||t("edge")||t.add("mozilla",o),t("mozilla")&&t.add("ff",parseFloat(n.split("Firefox/")[1]||n.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,n=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);n&&t.add("esri-mobile",n),r&&t.add("esri-iPhone",r),t.add("esri-geolocation",!!navigator.geolocation)}t.add("esri-wasm","WebAssembly"in globalThis),t.add("esri-performance-mode-frames-between-render",20),t.add("esri-force-performance-mode",!1),t.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),t.add("wasm-simd",(()=>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])))),t.add("esri-atomics","Atomics"in globalThis),t.add("esri-workers","Worker"in globalThis),t.add("web-feat:cache","caches"in globalThis),t.add("esri-workers-arraybuffer-transfer",!t("safari")||Number(t("safari"))>=12),t.add("workers-pool-size",8),t.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),t.add("featurelayer-simplify-payload-size-factors",[1,1,4]),t.add("featurelayer-fast-triangulation-enabled",!0),t.add("featurelayer-animation-enabled",!0),t.add("featurelayer-snapshot-enabled",!0),t.add("featurelayer-snapshot-point-min-threshold",8e4),t.add("featurelayer-snapshot-point-max-threshold",4e5),t.add("featurelayer-snapshot-point-coverage",.1),t.add("featurelayer-query-max-depth",4),t.add("featurelayer-query-pausing-enabled",!1),t.add("hittest-2d-mobile-tolerance",3),t.add("hittest-2d-desktop-tolerance",1),t.add("hittest-2d-small-symbol-tolerance",3),t.add("hittest-2d-small-symbol-tolerance-threshold",3),t.add("featurelayer-advanced-symbols",!1),t.add("featurelayer-pbf",!0),t.add("featurelayer-pbf-statistics",!1),t.add("feature-layers-workers",!0),t.add("feature-polyline-generalization-factor",1),t.add("mapview-transitions-duration",200),t.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),t.add("mapserver-pbf-version-support",10.81),t.add("mapservice-popup-identify-max-tolerance",20),t("host-webworker")||t("host-browser")&&(t.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),t.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{t.add("esri-image-decode",!0,!0,!0)})).catch((()=>{t.add("esri-image-decode",!1,!0,!0)}))}return!1})),t.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})();var n=class{constructor(){this.last=0}},r=new n;function o(e,t,n,o){o=o||r;const i=Math.max(0,o.last-10);for(let r=i;r<n;++r)if(e[r]===t)return o.last=r,r;const s=Math.min(i,n);for(let n=0;n<s;++n)if(e[n]===t)return o.last=n,n;return-1}var i=new Set;function s(e,t,n=e.length,o=t.length,s,u){if(0===o||0===n)return n;i.clear();for(let e=0;e<o;++e)i.add(t[e]);s=s||r;const c=Math.max(0,s.last-10);for(let t=c;t<n;++t)if(i.has(e[t])&&(u?.push(e[t]),i.delete(e[t]),e[t]=e[n-1],--n,--t,0===i.size||0===n))return i.clear(),n;for(let t=0;t<c;++t)if(i.has(e[t])&&(u?.push(e[t]),i.delete(e[t]),e[t]=e[n-1],--n,--t,0===i.size||0===n))return i.clear(),n;return i.clear(),n}function u(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}function c(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=function(e){if(t=e,"Int8Array"===t?.constructor?.name||function(e){return"Uint8Array"===e?.constructor?.name}(e)||function(e){return"Uint8ClampedArray"===e?.constructor?.name}(e)||function(e){return"Int16Array"===e?.constructor?.name}(e)||function(e){return"Uint16Array"===e?.constructor?.name}(e)||function(e){return"Int32Array"===e?.constructor?.name}(e)||function(e){return"Uint32Array"===e?.constructor?.name}(e)||function(e){return"Float32Array"===e?.constructor?.name}(e)||function(e){return"Float64Array"===e?.constructor?.name}(e))return e.slice();var t;if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[n,r]of e)t.set(n,c(r));return t}if(e instanceof Set){const t=new Set;for(const n of e)t.add(c(n));return t}return null}(e);if(null!=t)return t;if(function(e){return"function"==typeof e.clone}(e))return e.clone();if(function(e){return"function"==typeof e.map&&"function"==typeof e.forEach}(e))return e.map(c);if(function(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}(e))return e.clone();const n={};for(const t of Object.getOwnPropertyNames(e))n[t]=c(e[t]);return n}function a(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function f(e,t,n){const r=e.split("."),o=r.pop(),i=l(r,!0,n);i&&o&&(i[o]=t)}function l(e,t,n){let r=n;for(const n of e){if(null==r)return;if(!(n in r)){if(!t)return;r[n]={}}r=r[n]}return r}function p(e,t,n){return t?Object.keys(t).reduce(((e,r)=>{let o=e[r],i=t[r];return o===i?e:void 0===o?(e[r]=c(i),e):(Array.isArray(i)||Array.isArray(e)?(o=e[r]=o?Array.isArray(o)?o.concat():[o]:[],i&&(Array.isArray(i)||(i=[i]),n?i.forEach((e=>{o.includes(e)||o.push(e)})):e[r]=i.concat())):i&&"object"==typeof i?e[r]=p(o,i,n):e.hasOwnProperty(r)&&!t.hasOwnProperty(r)||(e[r]=i),e)}),e||{}):e}var y={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&(function(e,t,n=!1){p(y,t,n)}(0,globalThis.esriConfig,!0),delete y.has),y.assetsPath||(y.assetsPath="https://cdn.jsdelivr.net/npm/@arcgis/core@4.30.0-next.20240408/assets",y.defaultAssetsPath=y.assetsPath);var d={info:0,warn:1,error:2,none:3},h=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=t.level&&(this.level=t.level),null!=t.writer&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);const n=this.module.lastIndexOf(".");-1!==n&&(this._parent=e.getLogger(this.module.slice(0,n)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get test(){return{resetLoggers(t=new Map){const n=e._loggers;return e._loggers=t,n},set throttlingDisabled(t){e._throttlingDisabled=t}}}static getLogger(t){return e._loggers.get(t="string"!=typeof t?t.declaredClass:t)||new e({module:t})}_log(t,n,...r){if(this._matchLevel(t)){if("always"!==n&&!e._throttlingDisabled){const o=function(...e){return function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}(r),i=this._loggedMessages[t].get(o);if("once"===n&&null!=i||"oncePerTick"===n&&i&&i>=e._tickCounter)return;this._loggedMessages[t].set(o,e._tickCounter),e._scheduleTickCounterIncrement()}for(const e of y.log.interceptors)if(e(t,this.module,...r))return;this._inheritedWriter()(t,this.module,...r)}}_parentWithMember(e,t){let n=this;for(;null!=n;){const t=n[e];if(null!=t)return t;n=n.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",b)}_matchLevel(e){return d[this._parentWithMember("level",y.log.level||"warn")]<=d[e]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then((()=>{e._tickCounter++,e._tickCounterScheduled=!1})))}};function b(e,t,...n){console[e](`[${t}]`,...n)}h._loggers=new Map,h._tickCounter=0,h._tickCounterScheduled=!1,h._throttlingDisabled=!1;var g=()=>h.getLogger("esri.core.accessorSupport.ensureTypes");function v(e){return null==e?e:new Date(e)}function m(e){return null==e?e:!!e}function w(e){return null==e?e:e.toString()}function A(e){return null==e?e:(e=parseFloat(e),isNaN(e)?0:e)}function S(e){return null==e?e:Math.round(parseFloat(e))}function j(e){return e?.constructor&&void 0!==e.constructor.__accessorMetadata__}function k(e,t){return null!=t&&e&&!(t instanceof e)}function O(e){return e&&"isCollection"in e}function T(e){return e?.Type?"function"==typeof e.Type?e.Type:e.Type.base:null}function N(e,t){return!!j(t)&&(g().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+x(e)+"'"),!0)}function $(e,t){return null==t?t:O(e)?function(e,t){if(!t?.constructor||!O(t.constructor))return N(e,t)?t:new e(t);const n=T(e.prototype.itemType),r=T(t.constructor.prototype.itemType);return n?r?n===r?t:n.prototype.isPrototypeOf(r.prototype)?new e(t):(N(e,t),t):new e(t):t}(e,t):k(e,t)?N(e,t)?t:new e(t):t}function x(e){return e?.prototype?.declaredClass||"unknown"}var M=new WeakMap;function P(e,t){const n=function(e){switch(e){case Number:return A;case E:return S;case Boolean:return m;case String:return w;case Date:return v;default:return function(e,t,n){const r=e.get(t);if(void 0!==r)return r;const o=n();return e.set(t,o),o}(M,e,(()=>$.bind(null,e)))}}(e);return 1===arguments.length?n:n(t)}function _(e,t,n){return 1===arguments.length?_.bind(null,e):t?Array.isArray(t)?t.map((t=>e(t,n))):[e(t,n)]:t}function I(e,t,n){return 0!==t&&Array.isArray(n)?n.map((n=>I(e,t-1,n))):e(n)}function F(e,t,n){if(2===arguments.length)return n=>F(e,t,n);if(!n)return n;n=I(e,t,n);let r=t,o=n;for(;r>0&&Array.isArray(o);)r--,o=o[0];if(void 0!==o)for(let e=0;e<r;e++)n=[n];return n}function U(e){return!!Array.isArray(e)&&!e.some((t=>{const n=typeof t;return!("string"===n||"number"===n||"function"===n&&e.length>1)}))}function D(e,t){if(2===arguments.length)return D(e).call(null,t);const n=new Set,r=e.filter((e=>"function"!=typeof e)),o=e.filter((e=>"function"==typeof e));for(const t of e)"string"!=typeof t&&"number"!=typeof t||n.add(t);let i=null,s=null;return(e,t)=>{if(null==e)return e;const u=typeof e,c="string"===u||"number"===u;return c&&(n.has(e)||o.some((e=>"string"===u&&e===String||"number"===u&&e===Number)))||"object"===u&&o.some((t=>!k(e,t)))?e:(c&&r.length?(i||(i=r.map((e=>"string"==typeof e?`'${e}'`:`${e}`)).join(", ")),g().error("Accessor#set",`'${e}' is not a valid value for this property, only the following values are valid: ${i}`)):"object"==typeof e&&o.length?(s||(s=o.map((e=>x(e))).join(", ")),g().error("Accessor#set",`'${e}' is not a valid value for this property, value must be one of ${s}`)):g().error("Accessor#set",`'${e}' is not a valid value for this property`),t&&(t.valid=!1),null)}}function z(e,t){if(2===arguments.length)return z(e).call(null,t);const n={},r=[],o=[];for(const t in e.typeMap){const i=e.typeMap[t];n[t]=P(i),r.push(x(i)),o.push(t)}const i="string"==typeof e.key?t=>t[e.key]:e.key;return t=>{if(e.base&&!k(e.base,t))return t;if(null==t)return t;const s=i(t)||e.defaultKeyValue,u=n[s];if(!u)return g().error("Accessor#set",`Invalid property value, value needs to be one of '${r.join("', '")}', or a plain object that can autocast (having .type = '${o.join("', '")}')`),null;if(!k(e.typeMap[s],t))return t;if("string"==typeof e.key&&!j(t)){const n={};for(const r in t)r!==e.key&&(n[r]=t[r]);return u(n)}return u(t)}}var E=class{};function C(e){switch(e.type){case"native":return P(e.value);case"array":return _(C(e.value));case"one-of":return function(e){let t=null;return(n,r)=>R(n,e)?n:(null==t&&(t=W(e)),g().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),r&&(r.valid=!1),null)}(e);default:return null}}function W(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case E:return"integer";case Date:return"date";default:return x(e.value)}case"array":return`array of ${W(e.value)}`;case"one-of":{const t=e.values.map((e=>W(e)));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function R(e,t){if(null==e)return!0;switch(t.type){case"native":switch(t.value){case Number:case E:return"number"==typeof e;case Boolean:return"boolean"==typeof e;case String:return"string"==typeof e}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some((e=>!R(e,t.value)));case"one-of":return t.values.some((t=>R(e,t)))}}var J={remove:()=>{}};function B(e){return e?{remove(){e&&(e(),e=void 0)}}:J}var L=class{constructor(e,t,n){this.name=e,this.details=n,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,n)=>{if(""===n)return"$";const r=function(e,t){if(null!=t)return t[e]||l(e.split("."),!1,t)}(n,t);return(r??"").toString()}))}(t,n))??""}toString(){return"["+this.name+"]: "+this.message}},q=class e extends L{constructor(e,t,n){super(e,t,n)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return c(t)}catch(e){return"[object]"}})))}}catch(e){throw h.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};q.prototype.type="error";var G,K,V=Symbol("Accessor-beforeDestroy");function H(e){return e.__accessor__??null}function Y(e,t,n){return t?Object.keys(t).reduce(((e,r)=>{const o=r;let i=null,s="merge";if(n&&(i=n.path?`${n.path}.${r}`:r,s=n.policy(i)),"replace"===s)return e[o]=t[o],e;if("replace-arrays"===s&&Array.isArray(e[o]))return e[o]=t[o],e;if(void 0===e[o])return e[o]=c(t[o]),e;let u=e[o],a=t[o];if(u===a)return e;if(Array.isArray(a)||Array.isArray(e))u=e[o]=u?Array.isArray(u)?u.concat():[u]:[],a&&(Array.isArray(a)||(a=[a]),a.forEach((e=>{u.includes(e)||u.push(e)})));else if(a&&"object"==typeof a)if(n){const t=n.path;n.path=i,e[o]=Y(u,a,n),n.path=t}else e[o]=Y(u,a,null);else e.hasOwnProperty(r)&&!t.hasOwnProperty(r)||(e[o]=a);return e}),e||{}):e}function Z(e){return Array.isArray(e)?e:e.split(".")}function Q(e){return e.includes(",")?e.split(",").map((e=>e.trim())):[e.trim()]}function X(e,t,n,r){const o=function(e){if(Array.isArray(e)){const t=[];for(const n of e)t.push(...Q(n));return t}return Q(e)}(t);if(1!==o.length){const t=o.map((t=>r(e,t,n)));return i=t,B((()=>function(e){e.forEach((e=>e?.remove()))}(i)))}var i;return r(e,o[0],n)}function ee(e){let t=e.constructor.__accessorMetadata__;const n=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!n){t=Object.create(t);for(const e in t)t[e]=c(t[e]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function te(e,t){const n=ee(e);let r=n[t];return r||(r=n[t]={}),r}function ne(e,t){return function(e,t){return Y(e,t,se?{policy:se,path:""}:null)}(e,t)}(K=G||(G={}))[K.INITIALIZING=0]="INITIALIZING",K[K.CONSTRUCTING=1]="CONSTRUCTING",K[K.CONSTRUCTED=2]="CONSTRUCTED",K[K.DESTROYED=3]="DESTROYED";var re,oe,ie=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function se(e){return ie.test(e)?"replace":"merge"}(oe=re||(re={}))[oe.Dirty=1]="Dirty",oe[oe.Overridden=2]="Overridden",oe[oe.Computing=4]="Computing",oe[oe.NonNullable=8]="NonNullable",oe[oe.HasDefaultValue=16]="HasDefaultValue",oe[oe.DepTrackingInitialized=32]="DepTrackingInitialized",oe[oe.AutoTracked=64]="AutoTracked",oe[oe.ExplicitlyTracking=128]="ExplicitlyTracking";var ue={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},ce=[],ae=ue;function fe(e){ae.onObservableAccessed(e)}var le=!1,pe=!1;function ye(e,t,n){if(le)return he(e,t,n);be(e);const r=t.call(n);return ge(),r}function de(e,t){return ye(ue,e,t)}function he(e,t,n){const r=le;le=!0,be(e);let o=null;try{o=t.call(n)}catch(e){pe&&h.getLogger("esri.core.accessorSupport.tracking").error(e)}return ge(),le=r,o}function be(e){ae=e,ce.push(e)}function ge(){const e=ce.length;if(e>1){const t=ce.pop();ae=ce[e-2],t.onTrackingEnd()}else if(1===e){const e=ce.pop();ae=ue,e.onTrackingEnd()}else ae=ue}function ve(e,t){if(t.flags&re.DepTrackingInitialized)return;const n=pe;pe=!1,t.flags&re.AutoTracked?he(t,t.metadata.get,e):we(e,t),pe=n}var me=[];function we(e,t){t.flags&re.ExplicitlyTracking||(t.flags|=re.ExplicitlyTracking,he(t,(()=>{const n=t.metadata.dependsOn||me;for(const t of n)if("string"!=typeof t||t.includes(".")){const n=Z(t);for(let t=0,r=e;t<n.length&&null!=r&&"object"==typeof r;++t)r=Ae(r,n[t],t!==n.length-1)}else Ae(e,t,!1)})),t.flags&=~re.ExplicitlyTracking)}function Ae(e,t,n){const r="?"===t[t.length-1]?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){const t=parseInt(r,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}const o=H(e);if(o){const t=o.propertiesByName.get(r);t&&(fe(t),ve(e,t))}return n?e[r]:void 0}var Se=class extends L{constructor(e,t,n){super(e,t,n)}};function je(e){return!!e&&e.prototype?.declaredClass&&0===e.prototype.declaredClass.indexOf("esri.core.Collection")}Se.prototype.type="warning";var ke=()=>h.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function Oe(e,t,n){e&&(!n&&!t.read||t.read?.reader||!1===t.read?.enabled||function(e){return"types"in e?Pe(e.types):Me(e.type)}(e)&&f("read.reader",function(e){const t=e.ndimArray??0;if(t>1)return function(e){const t=Te(e),n=Ne.bind(null,t),r=e.ndimArray??0;return(e,t,o)=>{if(null==e)return e;e=n(e,o,r);let i=r,s=e;for(;i>0&&Array.isArray(s);)i--,s=s[0];if(void 0!==s)for(let t=0;t<i;t++)e=[e];return e}}(e);if(1===t)return $e(e);if("type"in e&&xe(e.type)){const t=e.type.prototype?.itemType?.Type,n=$e("function"==typeof t?{type:t}:{types:t});return(t,r,o)=>{const i=n(t,r,o);return i?new e.type(i):i}}return Te(e)}(e),t))}function Te(e){return"type"in e?function(e){return e.prototype.read?(t,n,r)=>{if(null==t)return t;const o=typeof t;if("object"!==o)return void ke().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${o}'`);const i=new e;return i.read(t,r),i}:e.fromJSON}(e.type):function(e){let t=null;const n=e.errorContext??"type",r=e.validate;return(o,i,s)=>{if(null==o)return o;const u=typeof o;if("object"!==u)return void ke().error(`Expected JSON value of type 'object' to deserialize, but got '${u}'`);t||(t=function(e){const t={};for(const n in e.typeMap){const r=e.typeMap[n],o=ee(r.prototype);if("function"==typeof e.key)continue;const i=o[e.key];if(!i)continue;if(i.json?.type&&Array.isArray(i.json.type)&&1===i.json.type.length&&"string"==typeof i.json.type[0]){t[i.json.type[0]]=r;continue}const s=i.json?.write;if(!s?.writer){t[n]=r;continue}const u=s.target,c="string"==typeof u?u:e.key,a={};s.writer(n,a,c),a[c]&&(t[a[c]]=r)}return t}(e));const c=e.key;if("string"!=typeof c)return;const a=o[c],f=a?t[a]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!f){const e=`Type '${a||"unknown"}' is not supported`;return s?.messages&&o&&s.messages.push(new Se(`${n}:unsupported`,e,{definition:o,context:s})),void ke().error(e)}const l=new f;return l.read(o,s),r?r(l):l}}(e.types)}function Ne(e,t,n,r){return 0!==r&&Array.isArray(t)?t.map((t=>Ne(e,t,n,r-1))):e(t,void 0,n)}function $e(e){const t=Te(e);return(e,n,r)=>{if(null==e)return e;if(Array.isArray(e)){const n=[];for(const o of e){const e=t(o,void 0,r);void 0!==e&&n.push(e)}return n}const o=t(e,void 0,r);return void 0!==o?[o]:void 0}}function xe(e){if(!je(e))return!1;const t=e.prototype.itemType;return!(!t||!t.Type)&&("function"==typeof t.Type?Me(t.Type):Pe(t.Type))}function Me(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||xe(e))}function Pe(e){for(const t in e.typeMap)if(!Me(e.typeMap[t]))return!1;return!0}function _e(e){e.name&&(e.read&&"object"==typeof e.read?void 0===e.read.source&&(e.read.source=e.name):e.read={source:e.name},e.write&&"object"==typeof e.write?void 0===e.write.target&&(e.write.target=e.name):e.write={target:e.name})}function Ie(e){"boolean"==typeof e.read?e.read={enabled:e.read}:"function"==typeof e.read?e.read={enabled:!0,reader:e.read}:e.read&&"object"==typeof e.read&&void 0===e.read.enabled&&(e.read.enabled=!0)}function Fe(e){"boolean"==typeof e.write?e.write={enabled:e.write}:"function"==typeof e.write?e.write={enabled:!0,writer:e.write}:e.write&&"object"==typeof e.write&&void 0===e.write.enabled&&(e.write.enabled=!0)}function Ue(e,t){if(!t.write||t.write.writer||!1===t.write.enabled&&!t.write.overridePolicy)return;const n=e?.ndimArray??0;t.write.writer=e&&(1===n||"type"in e&&je(e.type))?Ce:n>1?function(e){return(t,n,r,o)=>{let i;if(null===t)i=null;else{i=We(t,o,e);let n=e,r=i;for(;n>0&&Array.isArray(r);)n--,r=r[0];if(void 0!==r)for(let e=0;e<n;e++)i=[i]}f(r,i,n)}}(n):t.types?Array.isArray(t.types)?function(e){return(t,n,r,o)=>t&&Array.isArray(t)?ze(t.filter((t=>De(t,e,o))),n,r,o):ze(t,n,r,o)}(t.types[0]):function(e){return(t,n,r,o)=>t?De(t,e,o)?ze(t,n,r,o):void 0:ze(t,n,r,o)}(t.types):ze}function De(e,t,n){for(const n in t.typeMap)if(e instanceof t.typeMap[n])return!0;if(n?.messages){const r=`Values of type '${("function"!=typeof t.key?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;n&&n.messages&&e&&n.messages.push(new q(`${t.errorContext??"type"}:unsupported`,r,{definition:e,context:n})),h.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(r)}return!1}function ze(e,t,n,r){f(n,Ee(e,r),t)}function Ee(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON():"number"==typeof e?function(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}(e):e}function Ce(e,t,n,r){let o;null===e?o=null:e&&"function"==typeof e.map?(o=e.map((e=>Ee(e,r))),"function"==typeof o.toArray&&(o=o.toArray())):o=[Ee(e,r)],f(n,o,t)}function We(e,t,n){return 0!==n&&Array.isArray(e)?e.map((e=>We(e,t,n-1))):Ee(e,t)}function Re(e){return e.type?Je(e):Be(e)}function Je(e){if(!e.type)return;let t=0,n=e.type;for(;Array.isArray(n)&&!U(n);)n=n[0],t++;return{type:n,ndimArray:t}}function Be(e){if(!e.types)return;let t=0,n=e.types;for(;Array.isArray(n);)n=n[0],t++;return{types:n,ndimArray:t}}function Le(e){(function(e){if(e.json||(e.json={}),Ie(e.json),Fe(e.json),_e(e.json),e.json.origins)for(const t in e.json.origins)Ie(e.json.origins[t]),Fe(e.json.origins[t]),_e(e.json.origins[t]);return!0})(e)&&(function(e){if(e.json&&e.json.origins){const t=e.json.origins,n={"web-document":["web-scene","web-map"]};for(const e in n)if(t[e]){const r=t[e];n[e].forEach((e=>{t[e]=r})),delete t[e]}}}(e),function(e){const t=function(e){return e.json.types?Be(e.json):e.type?Je(e):Be(e)}(e);if(e.json.origins)for(const n in e.json.origins){const r=e.json.origins[n],o=r.types?Re(r):t;Oe(o,r,!1),r.types&&!r.write&&e.json.write?.enabled&&(r.write={...e.json.write}),Ue(o,r)}Oe(t,e.json,!0),Ue(t,e.json)}(e))}var qe=new Set,Ge=new Set;function Ke(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,He(t);const n=[],r=[];let o=t.prototype;for(;o;)o.hasOwnProperty("initialize")&&!qe.has(o.initialize)&&(qe.add(o.initialize),n.push(o.initialize)),o.hasOwnProperty("destroy")&&!Ge.has(o.destroy)&&(Ge.add(o.destroy),r.push(o.destroy)),o=Object.getPrototypeOf(o);qe.clear(),Ge.clear();const i=class extends t{constructor(...e){if(super(...e),this.constructor===i&&"function"==typeof this.postscript){if(n.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let e=n.length-1;e>=0;e--)n[e].call(this)}}),r.length){let e=!1;const t=this[V];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){e=!0,t.call(this);for(let e=0;e<r.length;e++)r[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript(...e)}}};i.__accessorMetadata__=ee(t.prototype),i.prototype.declaredClass=e;const s=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(i,"name",{value:s,configurable:!0}),i}}function Ve(e,t){return null==t.get?function(){const t=this.__accessor__,n=t.propertiesByName.get(e);if(void 0===n)return;fe(n);const r=t.store;return r.has(e)?r.get(e):n.metadata.value}:function(){const t=this.__accessor__,n=t.propertiesByName.get(e);if(void 0!==n)return n.getComputed(t)}}function He(e){const t=ee(e.prototype),n={};for(const e of Object.getOwnPropertyNames(t)){const r=t[e];Le(r),n[e]={enumerable:!0,configurable:!0,get:Ve(e,r),set(t){const n=this.__accessor__;if(void 0!==n){if(!Object.isFrozen(this))return n.initialized&&r.readOnly?Ye("read-only",e):n.lifecycle===G.CONSTRUCTED&&r.constructOnly?Ye("construct-only",e):void n.set(e,t)}else Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}}}Object.defineProperties(e.prototype,n)}var Ye=(e,t)=>{h.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)};function Ze(e,t){const n="?"===e[e.length-1]?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(n,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}const r=H(t);return function(e,t){return null!=e?.metadata?.[t]}(r,n)?r.get(n):t[n]}function Qe(e,t,n){if(null==e)return e;const r=Ze(t[n],e);return!r&&n<t.length-1?void 0:n===t.length-1?r:Qe(r,t,n+1)}function Xe(e,t,n=0){return"string"!=typeof t||t.includes(".")?Qe(e,Z(t),n):Ze(t,e)}function et(e,t){return Xe(e,t)}function tt(e,n,r){if(e&&n)if("object"==typeof n)for(const t of Object.getOwnPropertyNames(n))tt(e,t,n[t]);else{if(n.includes(".")){const t=n.split("."),o=t.splice(-1,1)[0];return void tt(et(e,t),o,r)}const o=e.__accessor__;null!=o&&function(e,n){if(t("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadata[e]}(e,n))throw new q("set:unknown-property",function(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}(e,n))}(n,o),e[n]=r}}function nt(e={}){return(t,n)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${n}. Accessor does not support static properties.`);const r=Object.getOwnPropertyDescriptor(t,n),o=te(t,n);r&&(r.get||r.set?(o.get=r.get||o.get,o.set=r.set||o.set):"value"in r&&("value"in e&&h.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${n}" on "${t.constructor.name}" already defined in the metadata`,e),o.value=e.value=r.value)),null!=e.readOnly&&(o.readOnly=e.readOnly);const i=e.aliasOf;if(i){const e="string"==typeof i?i:i.source,t="string"==typeof i?null:!0===i.overridable;let r;o.dependsOn=[e],o.get=function(){let t=et(this,e);if("function"==typeof t){r||(r=e.split(".").slice(0,-1).join("."));const n=et(this,r);n&&(t=t.bind(n))}return t},o.readOnly||(o.set=t?function(e){this._override(n,e)}:function(t){tt(this,e,t)})}const s=e.type,u=e.types;o.cast||(s?o.cast=function(e){let t=0,n=e;if(function(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}(e))return C(e);for(;Array.isArray(n)&&1===n.length&&"string"!=typeof n[0]&&"number"!=typeof n[0];)n=n[0],t++;const r=n;if(U(r))return 0===t?D(r):F(D(r),t);if(1===t)return function(e,t){return 1===arguments.length?_((t=>P(e,t))):_((t=>P(e,t)),t)}(r);if(t>1)return function(e,t,n){return 2===arguments.length?F((t=>P(e,t)),t):F((t=>P(e,t)),t,n)}(r,t);return e.from?e.from:P(e)}(s):u&&(o.cast=Array.isArray(u)?_(z(u[0])):z(u))),ne(o,e),e.range&&(o.cast=ot(o.cast,e.range))}}function rt(e,t,n){const r=te(e,n);r.json||(r.json={});let o=r.json;return void 0!==t&&(o.origins||(o.origins={}),o.origins[t]||(o.origins[t]={}),o=o.origins[t]),o}function ot(e,t){return n=>{let r=+e(n);return null!=t.step&&(r=Math.round(r/t.step)*t.step),null!=t.min&&(r=Math.max(t.min,r)),null!=t.max&&(r=Math.min(t.max,r)),r}}export{He as A,G as I,u as O,o as S,Ke as a,et as b,a as c,c as d,B as e,ye as f,de as g,t as h,re as i,s as j,we as k,f as l,ve as m,h as n,V as o,X as p,rt as q,ee as r,fe as s,tt as t,Xe as u,n as v,te as w,P as x,nt as y,ot as z}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.29
|
|
5
5
|
*/
|
|
6
|
-
import{u as e}from"./p-
|
|
6
|
+
import{u as e}from"./p-e2200653.js";import"./p-9a6e0c8c.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.29
|
|
5
5
|
*/
|
|
6
|
-
import{u as t}from"./p-
|
|
6
|
+
import{u as t}from"./p-e2200653.js";import"./p-9a6e0c8c.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.29
|
|
5
5
|
*/
|
|
6
|
-
import{conf as e,language as t}from"./p-
|
|
6
|
+
import{conf as e,language as t}from"./p-23baf361.js";import"./p-e2200653.js";import"./p-9a6e0c8c.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.29
|
|
5
5
|
*/
|
|
6
6
|
let n,e,t=!1;const l=n=>{const e=new URL(n,rn.t);return e.origin!==sn.location.origin?e.href:e.pathname},o="slot-fb{display:contents}slot-fb[hidden]{display:none}",s="http://www.w3.org/1999/xlink",i={},c=n=>"object"==(n=typeof n)||"function"===n;function r(n){var e,t,l;return null!==(l=null===(t=null===(e=n.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const u=(n,e,...t)=>{let l=null,o=null,s=!1,i=!1;const r=[],u=e=>{for(let t=0;t<e.length;t++)l=e[t],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof n&&!c(l))&&(l+=""),s&&i?r[r.length-1].l+=l:r.push(s?a(null,l):l),i=s)};if(u(t),e){e.key&&(o=e.key);{const n=e.className||e.class;n&&(e.class="object"!=typeof n?n:Object.keys(n).filter((e=>n[e])).join(" "))}}if("function"==typeof n)return n(null===e?{}:e,r,d);const f=a(n,null);return f.o=e,r.length>0&&(f.i=r),f.u=o,f},a=(n,e)=>({v:0,p:n,l:e,m:null,i:null,o:null,u:null}),f={},d={forEach:(n,e)=>n.map(v).forEach(e),map:(n,e)=>n.map(v).map(e).map(p)},v=n=>({vattrs:n.o,vchildren:n.i,vkey:n.u,vname:n.h,vtag:n.p,vtext:n.l}),p=n=>{if("function"==typeof n.vtag){const e=Object.assign({},n.vattrs);return n.vkey&&(e.key=n.vkey),n.vname&&(e.name=n.vname),u(n.vtag,e,...n.vchildren||[])}const e=a(n.vtag,n.vtext);return e.o=n.vattrs,e.i=n.vchildren,e.u=n.vkey,e.h=n.vname,e},y=n=>X(n).$hostElement$,m=(n,e,t)=>{const l=y(n);return{emit:n=>h(l,e,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:n})}},h=(n,e,t)=>{const l=rn.ce(e,t);return n.dispatchEvent(l),l},$=new WeakMap,b=n=>"sc-"+n.$,w=(n,e,t,l,o,i)=>{if(t!==l){let r=nn(n,e),u=e.toLowerCase();if("class"===e){const e=n.classList,o=k(t),s=k(l);e.remove(...o.filter((n=>n&&!s.includes(n)))),e.add(...s.filter((n=>n&&!o.includes(n))))}else if("style"===e){for(const e in t)l&&null!=l[e]||(e.includes("-")?n.style.removeProperty(e):n.style[e]="");for(const e in l)t&&l[e]===t[e]||(e.includes("-")?n.style.setProperty(e,l[e]):n.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&l(n);else if(r||"o"!==e[0]||"n"!==e[1]){const a=c(l);if((r||a&&null!==l)&&!o)try{if(n.tagName.includes("-"))n[e]=l;else{const o=null==l?"":l;"list"===e?r=!1:null!=t&&n[e]==o||(n[e]=o)}}catch(n){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(e=u,f=!0),null==l||!1===l?!1===l&&""!==n.getAttribute(e)||(f?n.removeAttributeNS(s,e):n.removeAttribute(e)):(!r||4&i||o)&&!a&&(l=!0===l?"":l,f?n.setAttributeNS(s,e,l):n.setAttribute(e,l))}else if(e="-"===e[2]?e.slice(3):nn(sn,u)?u.slice(2):u[2]+e.slice(3),t||l){const o=e.endsWith(S);e=e.replace(j,""),t&&rn.rel(n,e,t,o),l&&rn.ael(n,e,l,o)}}},g=/\s/,k=n=>n?n.split(g):[],S="Capture",j=RegExp(S+"$"),O=(n,e,t,l)=>{const o=11===e.m.nodeType&&e.m.host?e.m.host:e.m,s=n&&n.o||i,c=e.o||i;for(l in s)l in c||w(o,l,s[l],void 0,t,e.v);for(l in c)w(o,l,s[l],c[l],t,e.v)},C=(t,l,o)=>{const s=l.i[o];let i,c,r=0;if(null!==s.l)i=s.m=cn.createTextNode(s.l);else if(i=s.m=cn.createElement(s.p),O(null,s,!1),null!=n&&i["s-si"]!==n&&i.classList.add(i["s-si"]=n),s.i)for(r=0;r<s.i.length;++r)c=C(t,s,r),c&&i.appendChild(c);return i["s-hn"]=e,i},M=(n,t,l,o,s,i)=>{let c,r=n;for(r.shadowRoot&&r.tagName===e&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=C(null,l,s),c&&(o[s].m=c,r.insertBefore(c,t)))},x=(n,e,t)=>{for(let l=e;l<=t;++l){const e=n[l];if(e){const n=e.m;E(e),n&&n.remove()}}},P=(n,e,t=!1)=>n.p===e.p&&(!!t||n.u===e.u),R=(n,e,t=!1)=>{const l=e.m=n.m,o=n.i,s=e.i,i=e.l;null===i?(O(n,e,!1),null!==o&&null!==s?((n,e,t,l,o=!1)=>{let s,i,c=0,r=0,u=0,a=0,f=e.length-1,d=e[0],v=e[f],p=l.length-1,y=l[0],m=l[p];for(;c<=f&&r<=p;)if(null==d)d=e[++c];else if(null==v)v=e[--f];else if(null==y)y=l[++r];else if(null==m)m=l[--p];else if(P(d,y,o))R(d,y,o),d=e[++c],y=l[++r];else if(P(v,m,o))R(v,m,o),v=e[--f],m=l[--p];else if(P(d,m,o))R(d,m,o),n.insertBefore(d.m,v.m.nextSibling),d=e[++c],m=l[--p];else if(P(v,y,o))R(v,y,o),n.insertBefore(v.m,d.m),v=e[--f],y=l[++r];else{for(u=-1,a=c;a<=f;++a)if(e[a]&&null!==e[a].u&&e[a].u===y.u){u=a;break}u>=0?(i=e[u],i.p!==y.p?s=C(e&&e[r],t,u):(R(i,y,o),e[u]=void 0,s=i.m),y=l[++r]):(s=C(e&&e[r],t,r),y=l[++r]),s&&d.m.parentNode.insertBefore(s,d.m)}c>f?M(n,null==l[p+1]?null:l[p+1].m,t,l,r,p):r>p&&x(e,c,f)})(l,o,e,s,t):null!==s?(null!==n.l&&(l.textContent=""),M(l,null,e,s,0,s.length-1)):null!==o&&x(o,0,o.length-1)):n.l!==i&&(l.data=i)},E=n=>{n.o&&n.o.ref&&n.o.ref(null),n.i&&n.i.map(E)},L=(n,e)=>{e&&!n.k&&e["s-p"]&&e["s-p"].push(new Promise((e=>n.k=e)))},U=(n,e)=>{if(n.v|=16,!(4&n.v))return L(n,n.S),hn((()=>W(n,e)));n.v|=512},W=(n,e)=>{const t=n.j;let l;return l=V(t,e?"componentWillLoad":"componentWillUpdate"),l=A(l,(()=>V(t,"componentWillRender"))),A(l,(()=>N(n,t,e)))},A=(n,e)=>D(n)?n.then(e):e(),D=n=>n instanceof Promise||n&&n.then&&"function"==typeof n.then,N=async(n,e,t)=>{var l;const s=n.$hostElement$,i=s["s-rc"];t&&(n=>{const e=n.O,t=n.$hostElement$,l=e.v,s=((n,e)=>{var t;const l=b(e),s=on.get(l);if(n=11===n.nodeType?n:cn,s)if("string"==typeof s){let i,c=$.get(n=n.head||n);if(c||$.set(n,c=new Set),!c.has(l)){{i=cn.createElement("style"),i.innerHTML=s;const e=null!==(t=rn.C)&&void 0!==t?t:r(cn);null!=e&&i.setAttribute("nonce",e),n.insertBefore(i,n.querySelector("link"))}4&e.v&&(i.innerHTML+=o),c&&c.add(l)}}else n.adoptedStyleSheets.includes(s)||(n.adoptedStyleSheets=[...n.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),e);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(n);T(n,e,s,t),i&&(i.map((n=>n())),s["s-rc"]=void 0);{const e=null!==(l=s["s-p"])&&void 0!==l?l:[],t=()=>F(n);0===e.length?t():(Promise.all(e).then(t),n.v|=4,e.length=0)}},T=(t,l,o,s)=>{try{l=l.render(),t.v&=-17,t.v|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.O,c=t.M||a(null,null),r=(n=>n&&n.p===f)(l)?l:u(null,null,l);if(e=s.tagName,i.P&&(r.o=r.o||{},i.P.map((([n,e])=>r.o[e]=s[n]))),o&&r.o)for(const n of Object.keys(r.o))s.hasAttribute(n)&&!["key","ref","style","class"].includes(n)&&(r.o[n]=s[n]);r.p=null,r.v|=4,t.M=r,r.m=c.m=s.shadowRoot||s,n=s["s-sc"],R(c,r,o)})(t,l,s)}catch(n){en(n,t.$hostElement$)}return null},F=n=>{const e=n.$hostElement$,t=n.j,l=n.S;V(t,"componentDidRender"),64&n.v?V(t,"componentDidUpdate"):(n.v|=64,_(e),V(t,"componentDidLoad"),n.R(e),l||q()),n.L(e),n.k&&(n.k(),n.k=void 0),512&n.v&&mn((()=>U(n,!1))),n.v&=-517},H=n=>{{const e=X(n),t=e.$hostElement$.isConnected;return t&&2==(18&e.v)&&U(e,!1),t}},q=()=>{_(cn.documentElement),mn((()=>h(sn,"appload",{detail:{namespace:"arcgis-coding-components"}})))},V=(n,e,t)=>{if(n&&n[e])try{return n[e](t)}catch(n){en(n)}},_=n=>n.setAttribute("hydrated",""),z=(n,e,t)=>{var l;const o=n.prototype;if(e.U){n.watchers&&(e.W=n.watchers);const s=Object.entries(e.U);if(s.map((([n,[l]])=>{31&l||2&t&&32&l?Object.defineProperty(o,n,{get(){return((n,e)=>X(this).A.get(e))(0,n)},set(t){((n,e,t,l)=>{const o=X(n),s=o.$hostElement$,i=o.A.get(e),r=o.v,u=o.j;if(t=((n,e)=>null==n||c(n)?n:4&e?"false"!==n&&(""===n||!!n):1&e?n+"":n)(t,l.U[e][0]),(!(8&r)||void 0===i)&&t!==i&&(!Number.isNaN(i)||!Number.isNaN(t))&&(o.A.set(e,t),u)){if(l.W&&128&r){const n=l.W[e];n&&n.map((n=>{try{u[n](t,i,e)}catch(n){en(n,s)}}))}2==(18&r)&&U(o,!1)}})(this,n,t,e)},configurable:!0,enumerable:!0}):1&t&&64&l&&Object.defineProperty(o,n,{value(...e){var t;const l=X(this);return null===(t=null==l?void 0:l.D)||void 0===t?void 0:t.then((()=>{var t;return null===(t=l.j)||void 0===t?void 0:t[n](...e)}))}})})),1&t){const t=new Map;o.attributeChangedCallback=function(n,l,s){rn.jmp((()=>{var i;const c=t.get(n);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=X(this),o=null==t?void 0:t.v;if(o&&!(8&o)&&128&o&&s!==l){const o=t.j,c=null===(i=e.W)||void 0===i?void 0:i[n];null==c||c.forEach((e=>{null!=o[e]&&o[e].call(o,s,l,n)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},n.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=e.W)&&void 0!==l?l:{}),...s.filter((([n,e])=>15&e[0])).map((([n,l])=>{var o;const s=l[1]||n;return t.set(s,n),512&l[0]&&(null===(o=e.P)||void 0===o||o.push([n,s])),s}))]))}}return n},B=n=>{V(n,"connectedCallback")},G=n=>{V(n,"disconnectedCallback")},I=(n,e={})=>{var t;const l=[],s=e.exclude||[],i=sn.customElements,c=cn.head,u=c.querySelector("meta[charset]"),a=cn.createElement("style"),f=[];let d,v=!0;Object.assign(rn,e),rn.t=new URL(e.resourcesUrl||"./",cn.baseURI).href;let p=!1;if(n.map((n=>{n[1].map((e=>{var t;const o={v:e[0],$:e[1],U:e[2],N:e[3]};4&o.v&&(p=!0),o.U=e[2],o.P=[],o.W=null!==(t=e[4])&&void 0!==t?t:{};const c=o.$,r=class extends HTMLElement{constructor(n){super(n),Z(n=this,o),1&o.v&&n.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),v?f.push(this):rn.jmp((()=>(n=>{if(0==(1&rn.v)){const e=X(n),t=e.O,l=()=>{};if(1&e.v)(null==e?void 0:e.j)?B(e.j):(null==e?void 0:e.T)&&e.T.then((()=>B(e.j)));else{e.v|=1;{let t=n;for(;t=t.parentNode||t.host;)if(t["s-p"]){L(e,e.S=t);break}}t.U&&Object.entries(t.U).map((([e,[t]])=>{if(31&t&&n.hasOwnProperty(e)){const t=n[e];delete n[e],n[e]=t}})),(async(n,e,t)=>{let l;if(0==(32&e.v)){e.v|=32;{if(l=ln(t),l.then){const n=()=>{};l=await l,n()}l.isProxied||(t.W=l.watchers,z(l,t,2),l.isProxied=!0);const n=()=>{};e.v|=8;try{l.__registerControllers=n=>(Y(n,e),[e.O.U,e.O.W??={}]),new l(e),l.__registerControllers=void 0}catch(n){en(n)}e.v&=-9,e.v|=128,n(),B(e.j)}if(l.style){let n=l.style;const e=b(t);if(!on.has(e)){const l=()=>{};((n,e,t)=>{let l=on.get(n);an&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,on.set(n,l)})(e,n,!!(1&t.v)),l()}}}const o=e.S,s=()=>U(e,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()})(0,e,t)}l()}})(this)))}disconnectedCallback(){rn.jmp((()=>(async()=>{if(0==(1&rn.v)){const n=X(this);(null==n?void 0:n.j)?G(n.j):(null==n?void 0:n.T)&&n.T.then((()=>G(n.j)))}})()))}componentOnReady(){return X(this).T}};o.F=n[0],s.includes(c)||i.get(c)||(l.push(c),i.define(c,z(r,o,1)))}))})),p&&(a.innerHTML+=o),a.innerHTML+=l+"{visibility:hidden}[hydrated]{visibility:inherit}",a.innerHTML.length){a.setAttribute("data-styles","");const n=null!==(t=rn.C)&&void 0!==t?t:r(cn);null!=n&&a.setAttribute("nonce",n),c.insertBefore(a,u?u.nextSibling:c.firstChild)}v=!1,f.length?f.map((n=>n.connectedCallback())):rn.jmp((()=>d=setTimeout(q,30)))},J=(n,e)=>e,K=n=>rn.C=n,Q=new WeakMap,X=n=>Q.get(n),Y=(n,e)=>Q.set(e.j=n,e),Z=(n,e)=>{const t={v:0,$hostElement$:n,O:e,A:new Map};return t.D=new Promise((n=>t.L=n)),t.T=new Promise((n=>t.R=n)),n["s-p"]=[],n["s-rc"]=[],Q.set(n,t)},nn=(n,e)=>e in n,en=(n,e)=>(0,console.error)(n,e),tn=new Map,ln=n=>{const e=n.$.replace(/-/g,"_"),t=n.F,l=tn.get(t);return l?l[e]:import(`./${t}.entry.js`).then((n=>(tn.set(t,n),n[e])),en)
|
|
7
7
|
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},on=new Map,sn="undefined"!=typeof window?window:{},cn=sn.document||{head:{}},rn={v:0,t:"",jmp:n=>n(),raf:n=>requestAnimationFrame(n),ael:(n,e,t,l)=>n.addEventListener(e,t,l),rel:(n,e,t,l)=>n.removeEventListener(e,t,l),ce:(n,e)=>new CustomEvent(n,e)},un=n=>Promise.resolve(n),an=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(n){}return!1})(),fn=[],dn=[],vn=(n,e)=>l=>{n.push(l),t||(t=!0,e&&4&rn.v?mn(yn):rn.raf(yn))},pn=n=>{for(let e=0;e<n.length;e++)try{n[e](performance.now())}catch(n){en(n)}n.length=0},yn=()=>{pn(fn),pn(dn),(t=fn.length>0)&&rn.raf(yn)},mn=n=>un().then(n),hn=vn(dn,!0);export{J as F,f as H,y as a,I as b,m as c,H as f,l as g,u as h,un as p,Y as r,K as s}
|