@arcgis/coding-components 4.30.0-next.25 → 4.30.0-next.26
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-ffcc7148.js → p-0a671ac3.js} +2 -2
- package/dist/arcgis-coding-components/{p-289b8437.js → p-190aa4ea.js} +2 -2
- package/dist/arcgis-coding-components/{p-ff18eae5.js → p-1cc63cc7.js} +1 -1
- package/dist/arcgis-coding-components/{p-739a390e.js → p-43eff9a2.js} +2 -2
- package/dist/arcgis-coding-components/{p-4e4ccb22.js → p-4f81a500.js} +2 -2
- package/dist/arcgis-coding-components/{p-9a06d91e.js → p-53245e8c.js} +2 -2
- package/dist/arcgis-coding-components/p-69c17a08.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-904f5ed9.js → p-81e1c8b5.js} +1 -1
- package/dist/arcgis-coding-components/{p-a6e0408e.js → p-ae628996.js} +2 -2
- package/dist/arcgis-coding-components/{p-05243ae4.js → p-b2977846.js} +2 -2
- package/dist/arcgis-coding-components/{p-3580fa60.js → p-b4035a11.js} +2 -2
- package/dist/arcgis-coding-components/{p-c7e83e19.js → p-d14881d1.js} +2 -2
- package/dist/arcgis-coding-components/{p-921150b1.js → p-f827ec92.js} +2 -2
- package/dist/arcgis-coding-components/{p-74c134b2.js → p-f931faf6.js} +2 -2
- package/dist/arcgis-coding-components/{p-17d15cb9.js → p-fecca284.js} +10 -10
- package/dist/cjs/{Accessor-K5EEI5WT-b88fc2a4.js → Accessor-WJXOYV5M-61f2cf3a.js} +57 -57
- package/dist/cjs/{arcade-defaults-c2ec41d1.js → arcade-defaults-03bac64a.js} +10 -10
- package/dist/cjs/{arcade-mode-40fb726f.js → arcade-mode-08b2f3a3.js} +3 -3
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +13 -15
- package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
- package/dist/cjs/{chunk-K5OO3GAM-c5c3bfaa.js → chunk-5SWTJIOL-f26856a4.js} +17 -17
- package/dist/cjs/{css-ab107194.js → css-c6584af0.js} +1 -1
- package/dist/cjs/{cssMode-bb08e5bd.js → cssMode-8faecfa0.js} +3 -3
- package/dist/cjs/{decorators-ROXODUND-78fa07c2.js → decorators-DEHOP47G-2881c807.js} +15 -15
- package/dist/cjs/{html-46ea7730.js → html-e581edb7.js} +3 -3
- package/dist/cjs/{htmlMode-d7b93ee9.js → htmlMode-bd069509.js} +3 -3
- package/dist/cjs/{index-4c8629ad.js → index-c81c71e1.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-5c13b787.js → javascript-8013b5c8.js} +4 -4
- package/dist/cjs/{jsonMode-15e0e9ae.js → jsonMode-3adab6e6.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tsMode-8d8f7ea4.js → tsMode-a462eade.js} +3 -3
- package/dist/cjs/{typescript-36035fea.js → typescript-4050c7d6.js} +3 -3
- package/dist/components/{Accessor-K5EEI5WT.js → Accessor-WJXOYV5M.js} +2 -2
- package/dist/components/arcade-api.js +2 -2
- 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 +2 -2
- package/dist/components/arcade-suggestions.js +2 -2
- package/dist/components/arcade-variables.js +2 -2
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +3 -3
- 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-CUKUHPDJ.js → chunk-544ZT4QT.js} +3 -3
- package/dist/{esm/chunk-K5OO3GAM-75615e96.js → components/chunk-5SWTJIOL.js} +17 -17
- package/dist/components/code-editor.js +1 -1
- package/dist/components/{decorators-ROXODUND.js → decorators-DEHOP47G.js} +3 -3
- 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 +7 -9
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{Accessor-K5EEI5WT-0598ef2e.js → Accessor-WJXOYV5M-146a72ed.js} +2 -2
- package/dist/esm/{arcade-defaults-f6090fed.js → arcade-defaults-162b5644.js} +10 -10
- package/dist/esm/{arcade-mode-0ad4cb23.js → arcade-mode-e87493b0.js} +3 -3
- package/dist/esm/arcgis-arcade-api_6.entry.js +13 -15
- package/dist/esm/arcgis-coding-components.js +3 -3
- package/dist/{components/chunk-K5OO3GAM.js → esm/chunk-5SWTJIOL-994a2aa2.js} +17 -17
- package/dist/esm/{css-93582172.js → css-d0aad069.js} +1 -1
- package/dist/esm/{cssMode-2c7cb3f0.js → cssMode-ce01c47e.js} +3 -3
- package/dist/esm/{decorators-ROXODUND-72a4f40b.js → decorators-DEHOP47G-82b8c3cd.js} +3 -3
- package/dist/esm/{html-f45b866f.js → html-5b52e070.js} +3 -3
- package/dist/esm/{htmlMode-1f7f702f.js → htmlMode-56889730.js} +3 -3
- package/dist/esm/{index-04501a90.js → index-1903dda2.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-6d22b317.js → javascript-643257f2.js} +4 -4
- package/dist/esm/{jsonMode-8d42c2c3.js → jsonMode-83a8ff18.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tsMode-5603cacf.js → tsMode-c3de69bc.js} +3 -3
- package/dist/esm/{typescript-6dbe886a.js → typescript-fb25b99e.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 +11 -11
- package/dist/arcgis-coding-components/p-df9c7278.entry.js +0 -6
- /package/dist/types/data/{arcgis-web-compoments/actions-runner-1 → actions-runner-1}/_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/{arcgis-web-compoments/actions-runner-1 → actions-runner-1}/_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/{arcgis-web-compoments/actions-runner-1 → actions-runner-1}/_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.26
|
|
5
5
|
*/
|
|
6
|
-
import{p as e,b as t}from"./p-
|
|
6
|
+
import{p as e,b as t}from"./p-1cc63cc7.js";export{s as setNonce}from"./p-1cc63cc7.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-69c17a08",[[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.26
|
|
5
5
|
*/
|
|
6
|
-
export{a as arcade}from"./p-
|
|
6
|
+
export{a as arcade}from"./p-fecca284.js";import"./p-1cc63cc7.js";
|
|
@@ -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.26
|
|
5
5
|
*/
|
|
6
|
-
import{conf as e,language as t}from"./p-
|
|
6
|
+
import{conf as e,language as t}from"./p-f827ec92.js";import"./p-fecca284.js";import"./p-1cc63cc7.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -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.26
|
|
5
5
|
*/
|
|
6
|
-
import{w as e,e as t,M as s,R as n,l as r,x as i,E as o}from"./p-17d15cb9.js";import"./p-ff18eae5.js";var a=[[],[],[]];["++","--"].forEach((e=>a[e.length-1]?.push(e))),["-","+","!","~"].forEach((e=>a[e.length-1]?.push(e))),["||","&&"].forEach((e=>a[e.length-1]?.push(e))),["=","/=","*=","%=","+=","-="].forEach((e=>a[e.length-1]?.push(e))),["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"].forEach((e=>a[e.length-1]?.push(e)));var c=Object.values({Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"});Object.values({False:"false",Null:"null",True:"true"}).map((t=>({label:t,kind:e.CompletionItemKind.Constant}))),c.map((t=>({label:t,kind:e.CompletionItemKind.Keyword})));const u={wordPattern:/(-?\d*\.\d\w*)|([^`~!#%\^&\*\(\)\-=\+\[\{\]\}\\\|;:'",\.<>\/\?\s]+)/gu,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],autoCloseBefore:";:.,=}])` \n\t",folding:{markers:{start:/^\s*\/\/\s*#?region\b/u,end:/^\s*\/\/\s*#?endregion\b/u}},indentationRules:{decreaseIndentPattern:/^((?!.*?\/\*).*\*\/)?\s*[\}\]\)].*$/u,increaseIndentPattern:/^((?!\/\/).)*(\{[^}"'`]*|\([^)"'`]*|\[[^\]"'`]*)$/u}},l={defaultToken:"invalid",tokenPostfix:".arc",ignoreCase:!0,keywords:c.filter((e=>"from"!==e)),operators:["<=",">=","==","!=","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","=","+=","-=","*=","**=","/=","%="],constants:["true","false","null"],symbols:/[=><!~?:&|+\-*\/\^%]+/u,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/u,digits:/\d+(_+\d+)*/u,octaldigits:/[0-7]+(_+[0-7]+)*/u,binarydigits:/[0-1]+(_+[0-1]+)*/u,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/u,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/u,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/u,tokenizer:{root:[[/[{}]/u,"delimiter.bracket"],{include:"common"}],common:[[/import(?=\s)/u,{token:"keyword",next:"@import"}],[/[a-z_$][\w$]*/u,{cases:{"@constants":"constant","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/u,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/u,"@brackets"],[/[<>](?!@symbols)/u,"@brackets"],[/@symbols/u,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/u,"number"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/u,"number"],[/0[xX](@hexdigits)/u,"number"],[/0[oO]?(@octaldigits)/u,"number"],[/0[bB](@binarydigits)/u,"number"],[/(@digits)/u,"number"],[/[;,.]/u,"delimiter"],[/"([^"\\]|\\.)*$/u,"string.invalid"],[/'([^'\\]|\\.)*$/u,"string.invalid"],[/"/u,"string","@string_double"],[/'/u,"string","@string_single"],[/`/u,"string","@string_backtick"]],import:[[/import(?=\s)/u,{token:"keyword"}],{include:"@whitespace"},[/[a-z_$][\w$]*/u,"identifier"],{include:"@whitespace"},[/from/u,{token:"keyword",next:"@popall"}]],whitespace:[[/[ \t\r\n]+/u,""],[/\/\*/u,"comment","@comment"],[/\/\/.*$/u,"comment"]],comment:[[/[^\/*]+/u,"comment"],[/\*\//u,"comment","@pop"],[/[\/*]/u,"comment"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/u,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/u,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/u,["regexp.escape.control","regexp.escape.control"]],[/[()]/u,"regexp.escape.control"],[/@regexpctl/u,"regexp.escape.control"],[/[^\\\/]/u,"regexp"],[/@regexpesc/u,"regexp.escape"],[/\\\./u,"regexp.invalid"],[/(\/)([gimsuy]*)/u,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/u,"regexp.escape.control"],[/\^/u,"regexp.invalid"],[/@regexpesc/u,"regexp.escape"],[/[^\]]/u,"regexp"],[/\]/u,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/"/u,"string","@pop"]],string_single:[[/[^\\']+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/'/u,"string","@pop"]],string_backtick:[[/\$\{/u,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/`/u,"string","@pop"]],bracketCounting:[[/\{/u,"delimiter.bracket","@bracketCounting"],[/\}/u,"delimiter.bracket","@pop"],{include:"common"}]}};class g{constructor(e,s,{defaults:n,diagnosticsService:r}){this._languageId=e,this._worker=s,this._disposables=[],this._listener=new Map,this._diagnosticsService=r,this._defaults=n;const o=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const s=i((()=>{this._doValidate(e,t).catch((e=>{throw e}))}));this._listener.set(e.uri.toString(),e.onDidChangeContent(s)),this._doValidate(e,t).catch(console.error)},a=e=>{const s=e.uri.toString();t.setModelMarkers(e,this._languageId,[]);const n=this._listener.get(s);n&&(n.dispose(),this._listener.delete(s))};this._disposables.push(t.onDidCreateModel(o)),this._disposables.push(t.onWillDisposeModel((e=>{a(e)}))),this._disposables.push(t.onDidChangeModelLanguage((e=>{a(e.model),o(e.model)}))),this._disposables.push(n.onDidChange((()=>{t.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(a(e),o(e))}))}))),this._disposables.push(n.onModelContextDidChange((e=>{t.getModels().forEach((t=>{t.getLanguageId()===this._languageId&&t.uri.toString()===e&&this._doValidate(t,this._languageId).catch(console.error)}))}))),this._disposables.push({dispose:()=>{this._listener.forEach((e=>e.dispose())),this._listener.clear()}}),t.getModels().forEach(o)}dispose(){this._disposables.forEach((e=>e.dispose())),this._disposables=[]}async _doValidate(e,s){if(e.isAttachedToEditor())try{const n=await this._worker(e.uri),r=this._defaults.getApiContextForModel(e.uri),i=await n.doValidation(e.uri.toString(),r),o=i.map((e=>{return{severity:p((t=e).severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message};var t}));this._diagnosticsService.fireDiagnosticsChange(e.uri,i),t.setModelMarkers(e,s,o)}catch(e){console.error(e)}}}function p(t){switch(t){case e.DiagnosticSeverity.Error:return s.Error;case e.DiagnosticSeverity.Warning:return s.Warning;case e.DiagnosticSeverity.Information:return s.Info;case e.DiagnosticSeverity.Hint:return s.Hint;default:return s.Info}}function d(e){return new n(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function h(e){return{range:d(e.range),text:e.newText}}function m(t){const s=r.CompletionItemKind;switch(t){case e.CompletionItemKind.Text:return s.Text;case e.CompletionItemKind.Method:return s.Method;case e.CompletionItemKind.Function:return s.Function;case e.CompletionItemKind.Constructor:return s.Constructor;case e.CompletionItemKind.Field:return s.Field;case e.CompletionItemKind.Variable:return s.Variable;case e.CompletionItemKind.Class:return s.Class;case e.CompletionItemKind.Interface:return s.Interface;case e.CompletionItemKind.Module:return s.Module;case e.CompletionItemKind.Property:return s.Property;case e.CompletionItemKind.Unit:return s.Unit;case e.CompletionItemKind.Value:return s.Value;case e.CompletionItemKind.Enum:return s.Enum;case e.CompletionItemKind.Keyword:return s.Keyword;case e.CompletionItemKind.Snippet:return s.Snippet;case e.CompletionItemKind.Color:return s.Color;case e.CompletionItemKind.File:return s.File;case e.CompletionItemKind.Reference:return s.Reference;case e.CompletionItemKind.Folder:return s.Folder;case e.CompletionItemKind.EnumMember:return s.EnumMember;case e.CompletionItemKind.Constant:return s.Constant;case e.CompletionItemKind.Struct:return s.Struct;case e.CompletionItemKind.Event:return s.Event;case e.CompletionItemKind.Operator:return s.Operator;case e.CompletionItemKind.TypeParameter:return s.TypeParameter;default:return s.Property}}class x{constructor(e,t){this._worker=e,this._defaults=t,this.triggerCharacters=[".","("]}async provideCompletionItems(t,s){const i=await this._worker(t.uri),o=this._defaults.getApiContextForModel(t.uri),a=await i.doComplete(t.uri.toString(),function(e){return{character:e.column-1,line:e.lineNumber-1}}(s),o),c=t.getWordUntilPosition(s),u=new n(s.lineNumber,c.startColumn,s.lineNumber,c.endColumn),l=a.items.map((t=>{const s={label:t.label,insertText:t.insertText||t.label,sortText:t.sortText,filterText:t.filterText,detail:t.detail,range:u,kind:m(t.kind)};var n;return t.textEdit&&(s.range=void 0!==(n=t.textEdit).insert&&void 0!==n.replace?{insert:d(t.textEdit.insert),replace:d(t.textEdit.replace)}:d(t.textEdit.range),s.insertText=t.textEdit.newText),t.additionalTextEdits&&(s.additionalTextEdits=t.additionalTextEdits.map(h)),t.insertTextFormat===e.InsertTextFormat.Snippet&&(s.insertTextRules=r.CompletionItemInsertTextRule.InsertAsSnippet),t.documentation&&(s.documentation="string"==typeof t.documentation?t.documentation:{supportThemeIcons:!1,value:t.documentation.value,supportHtml:!0}),s}));return{incomplete:a.isIncomplete,suggestions:l}}}class f{constructor(e,t){this._worker=e,this._defaults=t}async provideDocumentFormattingEdits(e){const t=await this._worker(e.uri),s=this._defaults.getApiContextForModel(e.uri.toString());return(await t.doFormat(e.uri.toString(),s)).map((e=>({range:d(e.range),text:e.newText})))}}class k{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _getClientProxy(){if(!this._client){const{languageId:e,languageOptions:s}=this._defaults;this._worker=t.createWebWorker({moduleId:"ArcadeWorker",label:e,createData:{languageId:e,languageOptions:s}}),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}let b;async function w(...e){return await new Promise(((t,s)=>{b?t(b(...e)):s(new Error("TypeScript not registered!"))}))}const y=new class{constructor(){this._onDiagnosticsChange=new o}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function v(){return y}function C(e){const t=new k(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);b=s,r.setMonarchTokensProvider(e.languageId,l),r.setLanguageConfiguration(e.languageId,u),r.registerCompletionItemProvider(e.languageId,new x(s,e)),r.registerDocumentFormattingEditProvider(e.languageId,new f(s,e)),new g(e.languageId,s,{defaults:e,diagnosticsService:y})}export{v as getArcadeDiagnosticService,w as getArcadeWorker,C as setupMode}
|
|
6
|
+
import{w as e,e as t,M as s,R as n,l as r,x as i,E as o}from"./p-fecca284.js";import"./p-1cc63cc7.js";var a=[[],[],[]];["++","--"].forEach((e=>a[e.length-1]?.push(e))),["-","+","!","~"].forEach((e=>a[e.length-1]?.push(e))),["||","&&"].forEach((e=>a[e.length-1]?.push(e))),["=","/=","*=","%=","+=","-="].forEach((e=>a[e.length-1]?.push(e))),["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"].forEach((e=>a[e.length-1]?.push(e)));var c=Object.values({Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"});Object.values({False:"false",Null:"null",True:"true"}).map((t=>({label:t,kind:e.CompletionItemKind.Constant}))),c.map((t=>({label:t,kind:e.CompletionItemKind.Keyword})));const u={wordPattern:/(-?\d*\.\d\w*)|([^`~!#%\^&\*\(\)\-=\+\[\{\]\}\\\|;:'",\.<>\/\?\s]+)/gu,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]}],autoCloseBefore:";:.,=}])` \n\t",folding:{markers:{start:/^\s*\/\/\s*#?region\b/u,end:/^\s*\/\/\s*#?endregion\b/u}},indentationRules:{decreaseIndentPattern:/^((?!.*?\/\*).*\*\/)?\s*[\}\]\)].*$/u,increaseIndentPattern:/^((?!\/\/).)*(\{[^}"'`]*|\([^)"'`]*|\[[^\]"'`]*)$/u}},l={defaultToken:"invalid",tokenPostfix:".arc",ignoreCase:!0,keywords:c.filter((e=>"from"!==e)),operators:["<=",">=","==","!=","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","=","+=","-=","*=","**=","/=","%="],constants:["true","false","null"],symbols:/[=><!~?:&|+\-*\/\^%]+/u,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/u,digits:/\d+(_+\d+)*/u,octaldigits:/[0-7]+(_+[0-7]+)*/u,binarydigits:/[0-1]+(_+[0-1]+)*/u,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/u,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/u,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/u,tokenizer:{root:[[/[{}]/u,"delimiter.bracket"],{include:"common"}],common:[[/import(?=\s)/u,{token:"keyword",next:"@import"}],[/[a-z_$][\w$]*/u,{cases:{"@constants":"constant","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/u,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/u,"@brackets"],[/[<>](?!@symbols)/u,"@brackets"],[/@symbols/u,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/u,"number"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/u,"number"],[/0[xX](@hexdigits)/u,"number"],[/0[oO]?(@octaldigits)/u,"number"],[/0[bB](@binarydigits)/u,"number"],[/(@digits)/u,"number"],[/[;,.]/u,"delimiter"],[/"([^"\\]|\\.)*$/u,"string.invalid"],[/'([^'\\]|\\.)*$/u,"string.invalid"],[/"/u,"string","@string_double"],[/'/u,"string","@string_single"],[/`/u,"string","@string_backtick"]],import:[[/import(?=\s)/u,{token:"keyword"}],{include:"@whitespace"},[/[a-z_$][\w$]*/u,"identifier"],{include:"@whitespace"},[/from/u,{token:"keyword",next:"@popall"}]],whitespace:[[/[ \t\r\n]+/u,""],[/\/\*/u,"comment","@comment"],[/\/\/.*$/u,"comment"]],comment:[[/[^\/*]+/u,"comment"],[/\*\//u,"comment","@pop"],[/[\/*]/u,"comment"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/u,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/u,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/u,["regexp.escape.control","regexp.escape.control"]],[/[()]/u,"regexp.escape.control"],[/@regexpctl/u,"regexp.escape.control"],[/[^\\\/]/u,"regexp"],[/@regexpesc/u,"regexp.escape"],[/\\\./u,"regexp.invalid"],[/(\/)([gimsuy]*)/u,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/u,"regexp.escape.control"],[/\^/u,"regexp.invalid"],[/@regexpesc/u,"regexp.escape"],[/[^\]]/u,"regexp"],[/\]/u,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/"/u,"string","@pop"]],string_single:[[/[^\\']+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/'/u,"string","@pop"]],string_backtick:[[/\$\{/u,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/u,"string"],[/@escapes/u,"string.escape"],[/\\./u,"string.escape.invalid"],[/`/u,"string","@pop"]],bracketCounting:[[/\{/u,"delimiter.bracket","@bracketCounting"],[/\}/u,"delimiter.bracket","@pop"],{include:"common"}]}};class g{constructor(e,s,{defaults:n,diagnosticsService:r}){this._languageId=e,this._worker=s,this._disposables=[],this._listener=new Map,this._diagnosticsService=r,this._defaults=n;const o=e=>{const t=e.getLanguageId();if(t!==this._languageId)return;const s=i((()=>{this._doValidate(e,t).catch((e=>{throw e}))}));this._listener.set(e.uri.toString(),e.onDidChangeContent(s)),this._doValidate(e,t).catch(console.error)},a=e=>{const s=e.uri.toString();t.setModelMarkers(e,this._languageId,[]);const n=this._listener.get(s);n&&(n.dispose(),this._listener.delete(s))};this._disposables.push(t.onDidCreateModel(o)),this._disposables.push(t.onWillDisposeModel((e=>{a(e)}))),this._disposables.push(t.onDidChangeModelLanguage((e=>{a(e.model),o(e.model)}))),this._disposables.push(n.onDidChange((()=>{t.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(a(e),o(e))}))}))),this._disposables.push(n.onModelContextDidChange((e=>{t.getModels().forEach((t=>{t.getLanguageId()===this._languageId&&t.uri.toString()===e&&this._doValidate(t,this._languageId).catch(console.error)}))}))),this._disposables.push({dispose:()=>{this._listener.forEach((e=>e.dispose())),this._listener.clear()}}),t.getModels().forEach(o)}dispose(){this._disposables.forEach((e=>e.dispose())),this._disposables=[]}async _doValidate(e,s){if(e.isAttachedToEditor())try{const n=await this._worker(e.uri),r=this._defaults.getApiContextForModel(e.uri),i=await n.doValidation(e.uri.toString(),r),o=i.map((e=>{return{severity:p((t=e).severity),startLineNumber:t.range.start.line+1,startColumn:t.range.start.character+1,endLineNumber:t.range.end.line+1,endColumn:t.range.end.character+1,message:t.message};var t}));this._diagnosticsService.fireDiagnosticsChange(e.uri,i),t.setModelMarkers(e,s,o)}catch(e){console.error(e)}}}function p(t){switch(t){case e.DiagnosticSeverity.Error:return s.Error;case e.DiagnosticSeverity.Warning:return s.Warning;case e.DiagnosticSeverity.Information:return s.Info;case e.DiagnosticSeverity.Hint:return s.Hint;default:return s.Info}}function d(e){return new n(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function h(e){return{range:d(e.range),text:e.newText}}function m(t){const s=r.CompletionItemKind;switch(t){case e.CompletionItemKind.Text:return s.Text;case e.CompletionItemKind.Method:return s.Method;case e.CompletionItemKind.Function:return s.Function;case e.CompletionItemKind.Constructor:return s.Constructor;case e.CompletionItemKind.Field:return s.Field;case e.CompletionItemKind.Variable:return s.Variable;case e.CompletionItemKind.Class:return s.Class;case e.CompletionItemKind.Interface:return s.Interface;case e.CompletionItemKind.Module:return s.Module;case e.CompletionItemKind.Property:return s.Property;case e.CompletionItemKind.Unit:return s.Unit;case e.CompletionItemKind.Value:return s.Value;case e.CompletionItemKind.Enum:return s.Enum;case e.CompletionItemKind.Keyword:return s.Keyword;case e.CompletionItemKind.Snippet:return s.Snippet;case e.CompletionItemKind.Color:return s.Color;case e.CompletionItemKind.File:return s.File;case e.CompletionItemKind.Reference:return s.Reference;case e.CompletionItemKind.Folder:return s.Folder;case e.CompletionItemKind.EnumMember:return s.EnumMember;case e.CompletionItemKind.Constant:return s.Constant;case e.CompletionItemKind.Struct:return s.Struct;case e.CompletionItemKind.Event:return s.Event;case e.CompletionItemKind.Operator:return s.Operator;case e.CompletionItemKind.TypeParameter:return s.TypeParameter;default:return s.Property}}class x{constructor(e,t){this._worker=e,this._defaults=t,this.triggerCharacters=[".","("]}async provideCompletionItems(t,s){const i=await this._worker(t.uri),o=this._defaults.getApiContextForModel(t.uri),a=await i.doComplete(t.uri.toString(),function(e){return{character:e.column-1,line:e.lineNumber-1}}(s),o),c=t.getWordUntilPosition(s),u=new n(s.lineNumber,c.startColumn,s.lineNumber,c.endColumn),l=a.items.map((t=>{const s={label:t.label,insertText:t.insertText||t.label,sortText:t.sortText,filterText:t.filterText,detail:t.detail,range:u,kind:m(t.kind)};var n;return t.textEdit&&(s.range=void 0!==(n=t.textEdit).insert&&void 0!==n.replace?{insert:d(t.textEdit.insert),replace:d(t.textEdit.replace)}:d(t.textEdit.range),s.insertText=t.textEdit.newText),t.additionalTextEdits&&(s.additionalTextEdits=t.additionalTextEdits.map(h)),t.insertTextFormat===e.InsertTextFormat.Snippet&&(s.insertTextRules=r.CompletionItemInsertTextRule.InsertAsSnippet),t.documentation&&(s.documentation="string"==typeof t.documentation?t.documentation:{supportThemeIcons:!1,value:t.documentation.value,supportHtml:!0}),s}));return{incomplete:a.isIncomplete,suggestions:l}}}class f{constructor(e,t){this._worker=e,this._defaults=t}async provideDocumentFormattingEdits(e){const t=await this._worker(e.uri),s=this._defaults.getApiContextForModel(e.uri.toString());return(await t.doFormat(e.uri.toString(),s)).map((e=>({range:d(e.range),text:e.newText})))}}class k{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((()=>this.stopWorker()))}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}async _getClientProxy(){if(!this._client){const{languageId:e,languageOptions:s}=this._defaults;this._worker=t.createWebWorker({moduleId:"ArcadeWorker",label:e,createData:{languageId:e,languageOptions:s}}),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}let b;async function w(...e){return await new Promise(((t,s)=>{b?t(b(...e)):s(new Error("TypeScript not registered!"))}))}const y=new class{constructor(){this._onDiagnosticsChange=new o}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function v(){return y}function C(e){const t=new k(e),s=async(...e)=>await t.getLanguageServiceWorker(...e);b=s,r.setMonarchTokensProvider(e.languageId,l),r.setLanguageConfiguration(e.languageId,u),r.registerCompletionItemProvider(e.languageId,new x(s,e)),r.registerDocumentFormattingEditProvider(e.languageId,new f(s,e)),new g(e.languageId,s,{defaults:e,diagnosticsService:y})}export{v as getArcadeDiagnosticService,w as getArcadeWorker,C as setupMode}
|
|
@@ -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.26
|
|
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}
|
|
@@ -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.26
|
|
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-c7e83e19.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-d14881d1.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,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.26
|
|
5
5
|
*/
|
|
6
|
-
import{v as t,u as e}from"./p-
|
|
6
|
+
import{v as t,u as e}from"./p-fecca284.js";import"./p-1cc63cc7.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -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.26
|
|
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-d14881d1.js";export{z as ensureRange,A as finalizeClass,y as property,q as propertyJSONMeta,a as subclass}from"./p-d14881d1.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 m(t,r){const s=r?{...r,source:t}:t;return n({aliasOf:s})}export{m as aliasOf,l as cast,c as enumeration,u as reader,v as shared,f as writer}
|