@arcgis/coding-components 4.30.0-next.25 → 4.30.0-next.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/index.esm.js +2 -2
  3. package/dist/arcgis-coding-components/{p-ff18eae5.js → p-0968b99a.js} +1 -1
  4. package/dist/arcgis-coding-components/{p-739a390e.js → p-0997c147.js} +2 -2
  5. package/dist/arcgis-coding-components/{p-a6e0408e.js → p-176fbe3a.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-c7e83e19.js → p-36409c26.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-9a06d91e.js → p-3ecfbe64.js} +2 -2
  8. package/dist/arcgis-coding-components/{p-74c134b2.js → p-5ee7a335.js} +3 -3
  9. package/dist/arcgis-coding-components/{p-4e4ccb22.js → p-7557110d.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-17d15cb9.js → p-7832d4e3.js} +10 -10
  11. package/dist/arcgis-coding-components/{p-921150b1.js → p-8f28b055.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-05243ae4.js → p-9510179f.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-904f5ed9.js → p-9f624a31.js} +1 -1
  14. package/dist/arcgis-coding-components/p-d21d9b5f.entry.js +6 -0
  15. package/dist/arcgis-coding-components/{p-ffcc7148.js → p-d9820705.js} +2 -2
  16. package/dist/arcgis-coding-components/{p-3580fa60.js → p-eaa0bf5b.js} +2 -2
  17. package/dist/arcgis-coding-components/{p-289b8437.js → p-f7149a66.js} +2 -2
  18. package/dist/cjs/{Accessor-K5EEI5WT-b88fc2a4.js → Accessor-WJXOYV5M-e2997df4.js} +57 -57
  19. package/dist/cjs/{arcade-defaults-c2ec41d1.js → arcade-defaults-babb1084.js} +10 -10
  20. package/dist/cjs/{arcade-mode-40fb726f.js → arcade-mode-4917ff5e.js} +3 -3
  21. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +13 -15
  22. package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
  23. package/dist/cjs/{chunk-K5OO3GAM-c5c3bfaa.js → chunk-5SWTJIOL-f951a532.js} +17 -17
  24. package/dist/cjs/{css-ab107194.js → css-ea659b5a.js} +1 -1
  25. package/dist/cjs/{cssMode-bb08e5bd.js → cssMode-d4112185.js} +3 -3
  26. package/dist/cjs/{decorators-ROXODUND-78fa07c2.js → decorators-DEHOP47G-97336336.js} +15 -15
  27. package/dist/cjs/{html-46ea7730.js → html-1c3f7a48.js} +3 -3
  28. package/dist/cjs/{htmlMode-d7b93ee9.js → htmlMode-60f261d2.js} +3 -3
  29. package/dist/cjs/{index-4c8629ad.js → index-155894a5.js} +1 -1
  30. package/dist/cjs/index.cjs.js +3 -3
  31. package/dist/cjs/{javascript-5c13b787.js → javascript-b38865a5.js} +4 -4
  32. package/dist/cjs/{jsonMode-15e0e9ae.js → jsonMode-8e0c8101.js} +3 -3
  33. package/dist/cjs/loader.cjs.js +2 -2
  34. package/dist/cjs/{tsMode-8d8f7ea4.js → tsMode-94bb36a0.js} +3 -3
  35. package/dist/cjs/{typescript-36035fea.js → typescript-01a1b140.js} +3 -3
  36. package/dist/components/{Accessor-K5EEI5WT.js → Accessor-WJXOYV5M.js} +2 -2
  37. package/dist/components/arcade-api.js +2 -2
  38. package/dist/components/arcade-contribution.js +1 -1
  39. package/dist/components/arcade-defaults.js +1 -1
  40. package/dist/components/arcade-mode.js +1 -1
  41. package/dist/components/arcade-results.js +2 -2
  42. package/dist/components/arcade-suggestions.js +2 -2
  43. package/dist/components/arcade-variables.js +2 -2
  44. package/dist/components/arcgis-arcade-api.js +1 -1
  45. package/dist/components/arcgis-arcade-editor.js +3 -3
  46. package/dist/components/arcgis-arcade-results.js +1 -1
  47. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  48. package/dist/components/arcgis-arcade-variables.js +1 -1
  49. package/dist/components/arcgis-assets.d.ts +1 -1
  50. package/dist/components/arcgis-assets.js +1 -1
  51. package/dist/components/arcgis-code-editor.js +1 -1
  52. package/dist/components/{chunk-CUKUHPDJ.js → chunk-544ZT4QT.js} +3 -3
  53. package/dist/{esm/chunk-K5OO3GAM-75615e96.js → components/chunk-5SWTJIOL.js} +17 -17
  54. package/dist/components/code-editor.js +1 -1
  55. package/dist/components/{decorators-ROXODUND.js → decorators-DEHOP47G.js} +3 -3
  56. package/dist/components/fields.js +1 -1
  57. package/dist/components/index.js +1 -1
  58. package/dist/components/index2.js +1 -1
  59. package/dist/components/markdown.js +7 -9
  60. package/dist/components/utilities.js +1 -1
  61. package/dist/esm/{Accessor-K5EEI5WT-0598ef2e.js → Accessor-WJXOYV5M-ef61336a.js} +2 -2
  62. package/dist/esm/{arcade-defaults-f6090fed.js → arcade-defaults-203e2665.js} +10 -10
  63. package/dist/esm/{arcade-mode-0ad4cb23.js → arcade-mode-c9190d33.js} +3 -3
  64. package/dist/esm/arcgis-arcade-api_6.entry.js +13 -15
  65. package/dist/esm/arcgis-coding-components.js +3 -3
  66. package/dist/{components/chunk-K5OO3GAM.js → esm/chunk-5SWTJIOL-19f3e69a.js} +17 -17
  67. package/dist/esm/{css-93582172.js → css-4d290703.js} +1 -1
  68. package/dist/esm/{cssMode-2c7cb3f0.js → cssMode-0a1227f2.js} +3 -3
  69. package/dist/esm/{decorators-ROXODUND-72a4f40b.js → decorators-DEHOP47G-8805d39d.js} +3 -3
  70. package/dist/esm/{html-f45b866f.js → html-6fce09a6.js} +3 -3
  71. package/dist/esm/{htmlMode-1f7f702f.js → htmlMode-573fff22.js} +3 -3
  72. package/dist/esm/{index-04501a90.js → index-7268f84b.js} +1 -1
  73. package/dist/esm/index.js +3 -3
  74. package/dist/esm/{javascript-6d22b317.js → javascript-c77dc5f3.js} +4 -4
  75. package/dist/esm/{jsonMode-8d42c2c3.js → jsonMode-834c0690.js} +3 -3
  76. package/dist/esm/loader.js +3 -3
  77. package/dist/esm/{tsMode-5603cacf.js → tsMode-deb4f257.js} +3 -3
  78. package/dist/esm/{typescript-6dbe886a.js → typescript-ee9c3d05.js} +3 -3
  79. package/dist/loader/cdn.js +1 -1
  80. package/dist/loader/index.cjs.js +1 -1
  81. package/dist/loader/index.es2017.js +1 -1
  82. package/dist/loader/index.js +1 -1
  83. package/package.json +11 -11
  84. package/dist/arcgis-coding-components/p-df9c7278.entry.js +0 -6
  85. /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
  86. /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
  87. /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.25
4
+ * v4.30.0-next.27
5
5
  */
6
- import{p as e,b as t}from"./p-ff18eae5.js";export{s as setNonce}from"./p-ff18eae5.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-df9c7278",[[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)));
6
+ import{p as e,b as t}from"./p-0968b99a.js";export{s as setNonce}from"./p-0968b99a.js";(()=>{const t=import.meta.url,o={};return""!==t&&(o.resourcesUrl=new URL(".",t).href),e(o)})().then((e=>t([["p-d21d9b5f",[[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.25
4
+ * v4.30.0-next.27
5
5
  */
6
- export{a as arcade}from"./p-17d15cb9.js";import"./p-ff18eae5.js";
6
+ export{a as arcade}from"./p-7832d4e3.js";import"./p-0968b99a.js";
@@ -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.25
4
+ * v4.30.0-next.27
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.25
4
+ * v4.30.0-next.27
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-36409c26.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.25
4
+ * v4.30.0-next.27
5
5
  */
6
- import{u as t}from"./p-17d15cb9.js";import"./p-ff18eae5.js";
6
+ import{u as t}from"./p-7832d4e3.js";import"./p-0968b99a.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.25
4
+ * v4.30.0-next.27
5
5
  */
6
- var e;function t(t){return"function"==typeof e[t]?e[t]=e[t](globalThis):e[t]}e=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},t.add=(n,r,o,i)=>((i||void 0===e[n])&&(e[n]=r),o&&t(n)),t.cache=e,t.add("big-integer-warning-enabled",!0),t.add("esri-deprecation-warnings",!0),t.add("esri-tests-disable-screenshots",!1),t.add("esri-tests-use-full-window",!1),t.add("esri-tests-post-to-influx",!0),(()=>{t.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(t.add("host-browser",e),t.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),t.add("dom",e),t("host-browser")){const e=navigator,n=e.userAgent,r=e.appVersion,o=parseFloat(r);if(t.add("wp",parseFloat(n.split("Windows Phone")[1])||void 0),t.add("msapp",parseFloat(n.split("MSAppHost/")[1])||void 0),t.add("khtml",r.includes("Konqueror")?o:void 0),t.add("edge",parseFloat(n.split("Edge/")[1])||void 0),t.add("opr",parseFloat(n.split("OPR/")[1])||void 0),t.add("webkit",!t("wp")&&!t("edge")&&parseFloat(n.split("WebKit/")[1])||void 0),t.add("chrome",!t("edge")&&!t("opr")&&parseFloat(n.split("Chrome/")[1])||void 0),t.add("android",!t("wp")&&parseFloat(n.split("Android ")[1])||void 0),t.add("safari",!r.includes("Safari")||t("wp")||t("chrome")||t("android")||t("edge")||t("opr")?void 0:parseFloat(r.split("Version/")[1])),t.add("mac",r.includes("Macintosh")),!t("wp")&&/(iPhone|iPod|iPad)/.test(n)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(n)?RegExp.$1:"1",o=parseFloat(r.replace(/_/,".").replaceAll("_",""));t.add(e,o),t.add("ios",o)}t("webkit")||(!n.includes("Gecko")||t("wp")||t("khtml")||t("edge")||t.add("mozilla",o),t("mozilla")&&t.add("ff",parseFloat(n.split("Firefox/")[1]||n.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,n=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);n&&t.add("esri-mobile",n),r&&t.add("esri-iPhone",r),t.add("esri-geolocation",!!navigator.geolocation)}t.add("esri-wasm","WebAssembly"in globalThis),t.add("esri-performance-mode-frames-between-render",20),t.add("esri-force-performance-mode",!1),t.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),t.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),t.add("esri-atomics","Atomics"in globalThis),t.add("esri-workers","Worker"in globalThis),t.add("web-feat:cache","caches"in globalThis),t.add("esri-workers-arraybuffer-transfer",!t("safari")||Number(t("safari"))>=12),t.add("workers-pool-size",8),t.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),t.add("featurelayer-simplify-payload-size-factors",[1,1,4]),t.add("featurelayer-fast-triangulation-enabled",!0),t.add("featurelayer-animation-enabled",!0),t.add("featurelayer-snapshot-enabled",!0),t.add("featurelayer-snapshot-point-min-threshold",8e4),t.add("featurelayer-snapshot-point-max-threshold",4e5),t.add("featurelayer-snapshot-point-coverage",.1),t.add("featurelayer-query-max-depth",4),t.add("featurelayer-query-pausing-enabled",!1),t.add("hittest-2d-mobile-tolerance",3),t.add("hittest-2d-desktop-tolerance",1),t.add("hittest-2d-small-symbol-tolerance",3),t.add("hittest-2d-small-symbol-tolerance-threshold",3),t.add("featurelayer-advanced-symbols",!1),t.add("featurelayer-pbf",!0),t.add("featurelayer-pbf-statistics",!1),t.add("feature-layers-workers",!0),t.add("feature-polyline-generalization-factor",1),t.add("mapview-transitions-duration",200),t.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),t.add("mapserver-pbf-version-support",10.81),t.add("mapservice-popup-identify-max-tolerance",20),t("host-webworker")||t("host-browser")&&(t.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),t.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{t.add("esri-image-decode",!0,!0,!0)})).catch((()=>{t.add("esri-image-decode",!1,!0,!0)}))}return!1})),t.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})();var n=class{constructor(){this.last=0}},r=new n;function o(e,t,n,o){o=o||r;const i=Math.max(0,o.last-10);for(let r=i;r<n;++r)if(e[r]===t)return o.last=r,r;const s=Math.min(i,n);for(let n=0;n<s;++n)if(e[n]===t)return o.last=n,n;return-1}var i=new Set;function s(e,t,n=e.length,o=t.length,s,u){if(0===o||0===n)return n;i.clear();for(let e=0;e<o;++e)i.add(t[e]);s=s||r;const c=Math.max(0,s.last-10);for(let t=c;t<n;++t)if(i.has(e[t])&&(u?.push(e[t]),i.delete(e[t]),e[t]=e[n-1],--n,--t,0===i.size||0===n))return i.clear(),n;for(let t=0;t<c;++t)if(i.has(e[t])&&(u?.push(e[t]),i.delete(e[t]),e[t]=e[n-1],--n,--t,0===i.size||0===n))return i.clear(),n;return i.clear(),n}function u(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}function c(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=function(e){if(t=e,"Int8Array"===t?.constructor?.name||function(e){return"Uint8Array"===e?.constructor?.name}(e)||function(e){return"Uint8ClampedArray"===e?.constructor?.name}(e)||function(e){return"Int16Array"===e?.constructor?.name}(e)||function(e){return"Uint16Array"===e?.constructor?.name}(e)||function(e){return"Int32Array"===e?.constructor?.name}(e)||function(e){return"Uint32Array"===e?.constructor?.name}(e)||function(e){return"Float32Array"===e?.constructor?.name}(e)||function(e){return"Float64Array"===e?.constructor?.name}(e))return e.slice();var t;if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[n,r]of e)t.set(n,c(r));return t}if(e instanceof Set){const t=new Set;for(const n of e)t.add(c(n));return t}return null}(e);if(null!=t)return t;if(function(e){return"function"==typeof e.clone}(e))return e.clone();if(function(e){return"function"==typeof e.map&&"function"==typeof e.forEach}(e))return e.map(c);if(function(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}(e))return e.clone();const n={};for(const t of Object.getOwnPropertyNames(e))n[t]=c(e[t]);return n}function a(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function f(e,t,n){const r=e.split("."),o=r.pop(),i=l(r,!0,n);i&&o&&(i[o]=t)}function l(e,t,n){let r=n;for(const n of e){if(null==r)return;if(!(n in r)){if(!t)return;r[n]={}}r=r[n]}return r}function p(e,t,n){return t?Object.keys(t).reduce(((e,r)=>{let o=e[r],i=t[r];return o===i?e:void 0===o?(e[r]=c(i),e):(Array.isArray(i)||Array.isArray(e)?(o=e[r]=o?Array.isArray(o)?o.concat():[o]:[],i&&(Array.isArray(i)||(i=[i]),n?i.forEach((e=>{o.includes(e)||o.push(e)})):e[r]=i.concat())):i&&"object"==typeof i?e[r]=p(o,i,n):e.hasOwnProperty(r)&&!t.hasOwnProperty(r)||(e[r]=i),e)}),e||{}):e}var y={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&(function(e,t,n=!1){p(y,t,n)}(0,globalThis.esriConfig,!0),delete y.has),y.assetsPath||(y.assetsPath="https://cdn.jsdelivr.net/npm/@arcgis/core@4.30.0-next.20240405/assets",y.defaultAssetsPath=y.assetsPath);var d={info:0,warn:1,error:2,none:3},h=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=t.level&&(this.level=t.level),null!=t.writer&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);const n=this.module.lastIndexOf(".");-1!==n&&(this._parent=e.getLogger(this.module.slice(0,n)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get test(){return{resetLoggers(t=new Map){const n=e._loggers;return e._loggers=t,n},set throttlingDisabled(t){e._throttlingDisabled=t}}}static getLogger(t){return e._loggers.get(t="string"!=typeof t?t.declaredClass:t)||new e({module:t})}_log(t,n,...r){if(this._matchLevel(t)){if("always"!==n&&!e._throttlingDisabled){const o=function(...e){return function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}(r),i=this._loggedMessages[t].get(o);if("once"===n&&null!=i||"oncePerTick"===n&&i&&i>=e._tickCounter)return;this._loggedMessages[t].set(o,e._tickCounter),e._scheduleTickCounterIncrement()}for(const e of y.log.interceptors)if(e(t,this.module,...r))return;this._inheritedWriter()(t,this.module,...r)}}_parentWithMember(e,t){let n=this;for(;null!=n;){const t=n[e];if(null!=t)return t;n=n.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",b)}_matchLevel(e){return d[this._parentWithMember("level",y.log.level||"warn")]<=d[e]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then((()=>{e._tickCounter++,e._tickCounterScheduled=!1})))}};function b(e,t,...n){console[e](`[${t}]`,...n)}h._loggers=new Map,h._tickCounter=0,h._tickCounterScheduled=!1,h._throttlingDisabled=!1;var g=()=>h.getLogger("esri.core.accessorSupport.ensureTypes");function v(e){return null==e?e:new Date(e)}function m(e){return null==e?e:!!e}function w(e){return null==e?e:e.toString()}function A(e){return null==e?e:(e=parseFloat(e),isNaN(e)?0:e)}function S(e){return null==e?e:Math.round(parseFloat(e))}function j(e){return e?.constructor&&void 0!==e.constructor.__accessorMetadata__}function k(e,t){return null!=t&&e&&!(t instanceof e)}function O(e){return e&&"isCollection"in e}function T(e){return e?.Type?"function"==typeof e.Type?e.Type:e.Type.base:null}function N(e,t){return!!j(t)&&(g().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+x(e)+"'"),!0)}function $(e,t){return null==t?t:O(e)?function(e,t){if(!t?.constructor||!O(t.constructor))return N(e,t)?t:new e(t);const n=T(e.prototype.itemType),r=T(t.constructor.prototype.itemType);return n?r?n===r?t:n.prototype.isPrototypeOf(r.prototype)?new e(t):(N(e,t),t):new e(t):t}(e,t):k(e,t)?N(e,t)?t:new e(t):t}function x(e){return e?.prototype?.declaredClass||"unknown"}var M=new WeakMap;function P(e,t){const n=function(e){switch(e){case Number:return A;case E:return S;case Boolean:return m;case String:return w;case Date:return v;default:return function(e,t,n){const r=e.get(t);if(void 0!==r)return r;const o=n();return e.set(t,o),o}(M,e,(()=>$.bind(null,e)))}}(e);return 1===arguments.length?n:n(t)}function _(e,t,n){return 1===arguments.length?_.bind(null,e):t?Array.isArray(t)?t.map((t=>e(t,n))):[e(t,n)]:t}function I(e,t,n){return 0!==t&&Array.isArray(n)?n.map((n=>I(e,t-1,n))):e(n)}function F(e,t,n){if(2===arguments.length)return n=>F(e,t,n);if(!n)return n;n=I(e,t,n);let r=t,o=n;for(;r>0&&Array.isArray(o);)r--,o=o[0];if(void 0!==o)for(let e=0;e<r;e++)n=[n];return n}function U(e){return!!Array.isArray(e)&&!e.some((t=>{const n=typeof t;return!("string"===n||"number"===n||"function"===n&&e.length>1)}))}function D(e,t){if(2===arguments.length)return D(e).call(null,t);const n=new Set,r=e.filter((e=>"function"!=typeof e)),o=e.filter((e=>"function"==typeof e));for(const t of e)"string"!=typeof t&&"number"!=typeof t||n.add(t);let i=null,s=null;return(e,t)=>{if(null==e)return e;const u=typeof e,c="string"===u||"number"===u;return c&&(n.has(e)||o.some((e=>"string"===u&&e===String||"number"===u&&e===Number)))||"object"===u&&o.some((t=>!k(e,t)))?e:(c&&r.length?(i||(i=r.map((e=>"string"==typeof e?`'${e}'`:`${e}`)).join(", ")),g().error("Accessor#set",`'${e}' is not a valid value for this property, only the following values are valid: ${i}`)):"object"==typeof e&&o.length?(s||(s=o.map((e=>x(e))).join(", ")),g().error("Accessor#set",`'${e}' is not a valid value for this property, value must be one of ${s}`)):g().error("Accessor#set",`'${e}' is not a valid value for this property`),t&&(t.valid=!1),null)}}function z(e,t){if(2===arguments.length)return z(e).call(null,t);const n={},r=[],o=[];for(const t in e.typeMap){const i=e.typeMap[t];n[t]=P(i),r.push(x(i)),o.push(t)}const i="string"==typeof e.key?t=>t[e.key]:e.key;return t=>{if(e.base&&!k(e.base,t))return t;if(null==t)return t;const s=i(t)||e.defaultKeyValue,u=n[s];if(!u)return g().error("Accessor#set",`Invalid property value, value needs to be one of '${r.join("', '")}', or a plain object that can autocast (having .type = '${o.join("', '")}')`),null;if(!k(e.typeMap[s],t))return t;if("string"==typeof e.key&&!j(t)){const n={};for(const r in t)r!==e.key&&(n[r]=t[r]);return u(n)}return u(t)}}var E=class{};function C(e){switch(e.type){case"native":return P(e.value);case"array":return _(C(e.value));case"one-of":return function(e){let t=null;return(n,r)=>R(n,e)?n:(null==t&&(t=W(e)),g().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),r&&(r.valid=!1),null)}(e);default:return null}}function W(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case E:return"integer";case Date:return"date";default:return x(e.value)}case"array":return`array of ${W(e.value)}`;case"one-of":{const t=e.values.map((e=>W(e)));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function R(e,t){if(null==e)return!0;switch(t.type){case"native":switch(t.value){case Number:case E:return"number"==typeof e;case Boolean:return"boolean"==typeof e;case String:return"string"==typeof e}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some((e=>!R(e,t.value)));case"one-of":return t.values.some((t=>R(e,t)))}}var J={remove:()=>{}};function B(e){return e?{remove(){e&&(e(),e=void 0)}}:J}var L=class{constructor(e,t,n){this.name=e,this.details=n,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,n)=>{if(""===n)return"$";const r=function(e,t){if(null!=t)return t[e]||l(e.split("."),!1,t)}(n,t);return(r??"").toString()}))}(t,n))??""}toString(){return"["+this.name+"]: "+this.message}},q=class e extends L{constructor(e,t,n){super(e,t,n)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return c(t)}catch(e){return"[object]"}})))}}catch(e){throw h.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};q.prototype.type="error";var G,K,V=Symbol("Accessor-beforeDestroy");function H(e){return e.__accessor__??null}function Y(e,t,n){return t?Object.keys(t).reduce(((e,r)=>{const o=r;let i=null,s="merge";if(n&&(i=n.path?`${n.path}.${r}`:r,s=n.policy(i)),"replace"===s)return e[o]=t[o],e;if("replace-arrays"===s&&Array.isArray(e[o]))return e[o]=t[o],e;if(void 0===e[o])return e[o]=c(t[o]),e;let u=e[o],a=t[o];if(u===a)return e;if(Array.isArray(a)||Array.isArray(e))u=e[o]=u?Array.isArray(u)?u.concat():[u]:[],a&&(Array.isArray(a)||(a=[a]),a.forEach((e=>{u.includes(e)||u.push(e)})));else if(a&&"object"==typeof a)if(n){const t=n.path;n.path=i,e[o]=Y(u,a,n),n.path=t}else e[o]=Y(u,a,null);else e.hasOwnProperty(r)&&!t.hasOwnProperty(r)||(e[o]=a);return e}),e||{}):e}function Z(e){return Array.isArray(e)?e:e.split(".")}function Q(e){return e.includes(",")?e.split(",").map((e=>e.trim())):[e.trim()]}function X(e,t,n,r){const o=function(e){if(Array.isArray(e)){const t=[];for(const n of e)t.push(...Q(n));return t}return Q(e)}(t);if(1!==o.length){const t=o.map((t=>r(e,t,n)));return i=t,B((()=>function(e){e.forEach((e=>e?.remove()))}(i)))}var i;return r(e,o[0],n)}function ee(e){let t=e.constructor.__accessorMetadata__;const n=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!n){t=Object.create(t);for(const e in t)t[e]=c(t[e]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function te(e,t){const n=ee(e);let r=n[t];return r||(r=n[t]={}),r}function ne(e,t){return function(e,t){return Y(e,t,se?{policy:se,path:""}:null)}(e,t)}(K=G||(G={}))[K.INITIALIZING=0]="INITIALIZING",K[K.CONSTRUCTING=1]="CONSTRUCTING",K[K.CONSTRUCTED=2]="CONSTRUCTED",K[K.DESTROYED=3]="DESTROYED";var re,oe,ie=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function se(e){return ie.test(e)?"replace":"merge"}(oe=re||(re={}))[oe.Dirty=1]="Dirty",oe[oe.Overridden=2]="Overridden",oe[oe.Computing=4]="Computing",oe[oe.NonNullable=8]="NonNullable",oe[oe.HasDefaultValue=16]="HasDefaultValue",oe[oe.DepTrackingInitialized=32]="DepTrackingInitialized",oe[oe.AutoTracked=64]="AutoTracked",oe[oe.ExplicitlyTracking=128]="ExplicitlyTracking";var ue={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},ce=[],ae=ue;function fe(e){ae.onObservableAccessed(e)}var le=!1,pe=!1;function ye(e,t,n){if(le)return he(e,t,n);be(e);const r=t.call(n);return ge(),r}function de(e,t){return ye(ue,e,t)}function he(e,t,n){const r=le;le=!0,be(e);let o=null;try{o=t.call(n)}catch(e){pe&&h.getLogger("esri.core.accessorSupport.tracking").error(e)}return ge(),le=r,o}function be(e){ae=e,ce.push(e)}function ge(){const e=ce.length;if(e>1){const t=ce.pop();ae=ce[e-2],t.onTrackingEnd()}else if(1===e){const e=ce.pop();ae=ue,e.onTrackingEnd()}else ae=ue}function ve(e,t){if(t.flags&re.DepTrackingInitialized)return;const n=pe;pe=!1,t.flags&re.AutoTracked?he(t,t.metadata.get,e):we(e,t),pe=n}var me=[];function we(e,t){t.flags&re.ExplicitlyTracking||(t.flags|=re.ExplicitlyTracking,he(t,(()=>{const n=t.metadata.dependsOn||me;for(const t of n)if("string"!=typeof t||t.includes(".")){const n=Z(t);for(let t=0,r=e;t<n.length&&null!=r&&"object"==typeof r;++t)r=Ae(r,n[t],t!==n.length-1)}else Ae(e,t,!1)})),t.flags&=~re.ExplicitlyTracking)}function Ae(e,t,n){const r="?"===t[t.length-1]?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){const t=parseInt(r,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}const o=H(e);if(o){const t=o.propertiesByName.get(r);t&&(fe(t),ve(e,t))}return n?e[r]:void 0}var Se=class extends L{constructor(e,t,n){super(e,t,n)}};function je(e){return!!e&&e.prototype?.declaredClass&&0===e.prototype.declaredClass.indexOf("esri.core.Collection")}Se.prototype.type="warning";var ke=()=>h.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function Oe(e,t,n){e&&(!n&&!t.read||t.read?.reader||!1===t.read?.enabled||function(e){return"types"in e?Pe(e.types):Me(e.type)}(e)&&f("read.reader",function(e){const t=e.ndimArray??0;if(t>1)return function(e){const t=Te(e),n=Ne.bind(null,t),r=e.ndimArray??0;return(e,t,o)=>{if(null==e)return e;e=n(e,o,r);let i=r,s=e;for(;i>0&&Array.isArray(s);)i--,s=s[0];if(void 0!==s)for(let t=0;t<i;t++)e=[e];return e}}(e);if(1===t)return $e(e);if("type"in e&&xe(e.type)){const t=e.type.prototype?.itemType?.Type,n=$e("function"==typeof t?{type:t}:{types:t});return(t,r,o)=>{const i=n(t,r,o);return i?new e.type(i):i}}return Te(e)}(e),t))}function Te(e){return"type"in e?function(e){return e.prototype.read?(t,n,r)=>{if(null==t)return t;const o=typeof t;if("object"!==o)return void ke().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${o}'`);const i=new e;return i.read(t,r),i}:e.fromJSON}(e.type):function(e){let t=null;const n=e.errorContext??"type",r=e.validate;return(o,i,s)=>{if(null==o)return o;const u=typeof o;if("object"!==u)return void ke().error(`Expected JSON value of type 'object' to deserialize, but got '${u}'`);t||(t=function(e){const t={};for(const n in e.typeMap){const r=e.typeMap[n],o=ee(r.prototype);if("function"==typeof e.key)continue;const i=o[e.key];if(!i)continue;if(i.json?.type&&Array.isArray(i.json.type)&&1===i.json.type.length&&"string"==typeof i.json.type[0]){t[i.json.type[0]]=r;continue}const s=i.json?.write;if(!s?.writer){t[n]=r;continue}const u=s.target,c="string"==typeof u?u:e.key,a={};s.writer(n,a,c),a[c]&&(t[a[c]]=r)}return t}(e));const c=e.key;if("string"!=typeof c)return;const a=o[c],f=a?t[a]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!f){const e=`Type '${a||"unknown"}' is not supported`;return s?.messages&&o&&s.messages.push(new Se(`${n}:unsupported`,e,{definition:o,context:s})),void ke().error(e)}const l=new f;return l.read(o,s),r?r(l):l}}(e.types)}function Ne(e,t,n,r){return 0!==r&&Array.isArray(t)?t.map((t=>Ne(e,t,n,r-1))):e(t,void 0,n)}function $e(e){const t=Te(e);return(e,n,r)=>{if(null==e)return e;if(Array.isArray(e)){const n=[];for(const o of e){const e=t(o,void 0,r);void 0!==e&&n.push(e)}return n}const o=t(e,void 0,r);return void 0!==o?[o]:void 0}}function xe(e){if(!je(e))return!1;const t=e.prototype.itemType;return!(!t||!t.Type)&&("function"==typeof t.Type?Me(t.Type):Pe(t.Type))}function Me(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||xe(e))}function Pe(e){for(const t in e.typeMap)if(!Me(e.typeMap[t]))return!1;return!0}function _e(e){e.name&&(e.read&&"object"==typeof e.read?void 0===e.read.source&&(e.read.source=e.name):e.read={source:e.name},e.write&&"object"==typeof e.write?void 0===e.write.target&&(e.write.target=e.name):e.write={target:e.name})}function Ie(e){"boolean"==typeof e.read?e.read={enabled:e.read}:"function"==typeof e.read?e.read={enabled:!0,reader:e.read}:e.read&&"object"==typeof e.read&&void 0===e.read.enabled&&(e.read.enabled=!0)}function Fe(e){"boolean"==typeof e.write?e.write={enabled:e.write}:"function"==typeof e.write?e.write={enabled:!0,writer:e.write}:e.write&&"object"==typeof e.write&&void 0===e.write.enabled&&(e.write.enabled=!0)}function Ue(e,t){if(!t.write||t.write.writer||!1===t.write.enabled&&!t.write.overridePolicy)return;const n=e?.ndimArray??0;t.write.writer=e&&(1===n||"type"in e&&je(e.type))?Ce:n>1?function(e){return(t,n,r,o)=>{let i;if(null===t)i=null;else{i=We(t,o,e);let n=e,r=i;for(;n>0&&Array.isArray(r);)n--,r=r[0];if(void 0!==r)for(let e=0;e<n;e++)i=[i]}f(r,i,n)}}(n):t.types?Array.isArray(t.types)?function(e){return(t,n,r,o)=>t&&Array.isArray(t)?ze(t.filter((t=>De(t,e,o))),n,r,o):ze(t,n,r,o)}(t.types[0]):function(e){return(t,n,r,o)=>t?De(t,e,o)?ze(t,n,r,o):void 0:ze(t,n,r,o)}(t.types):ze}function De(e,t,n){for(const n in t.typeMap)if(e instanceof t.typeMap[n])return!0;if(n?.messages){const r=`Values of type '${("function"!=typeof t.key?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;n&&n.messages&&e&&n.messages.push(new q(`${t.errorContext??"type"}:unsupported`,r,{definition:e,context:n})),h.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(r)}return!1}function ze(e,t,n,r){f(n,Ee(e,r),t)}function Ee(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON():"number"==typeof e?function(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}(e):e}function Ce(e,t,n,r){let o;null===e?o=null:e&&"function"==typeof e.map?(o=e.map((e=>Ee(e,r))),"function"==typeof o.toArray&&(o=o.toArray())):o=[Ee(e,r)],f(n,o,t)}function We(e,t,n){return 0!==n&&Array.isArray(e)?e.map((e=>We(e,t,n-1))):Ee(e,t)}function Re(e){return e.type?Je(e):Be(e)}function Je(e){if(!e.type)return;let t=0,n=e.type;for(;Array.isArray(n)&&!U(n);)n=n[0],t++;return{type:n,ndimArray:t}}function Be(e){if(!e.types)return;let t=0,n=e.types;for(;Array.isArray(n);)n=n[0],t++;return{types:n,ndimArray:t}}function Le(e){(function(e){if(e.json||(e.json={}),Ie(e.json),Fe(e.json),_e(e.json),e.json.origins)for(const t in e.json.origins)Ie(e.json.origins[t]),Fe(e.json.origins[t]),_e(e.json.origins[t]);return!0})(e)&&(function(e){if(e.json&&e.json.origins){const t=e.json.origins,n={"web-document":["web-scene","web-map"]};for(const e in n)if(t[e]){const r=t[e];n[e].forEach((e=>{t[e]=r})),delete t[e]}}}(e),function(e){const t=function(e){return e.json.types?Be(e.json):e.type?Je(e):Be(e)}(e);if(e.json.origins)for(const n in e.json.origins){const r=e.json.origins[n],o=r.types?Re(r):t;Oe(o,r,!1),r.types&&!r.write&&e.json.write?.enabled&&(r.write={...e.json.write}),Ue(o,r)}Oe(t,e.json,!0),Ue(t,e.json)}(e))}var qe=new Set,Ge=new Set;function Ke(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,He(t);const n=[],r=[];let o=t.prototype;for(;o;)o.hasOwnProperty("initialize")&&!qe.has(o.initialize)&&(qe.add(o.initialize),n.push(o.initialize)),o.hasOwnProperty("destroy")&&!Ge.has(o.destroy)&&(Ge.add(o.destroy),r.push(o.destroy)),o=Object.getPrototypeOf(o);qe.clear(),Ge.clear();const i=class extends t{constructor(...e){if(super(...e),this.constructor===i&&"function"==typeof this.postscript){if(n.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let e=n.length-1;e>=0;e--)n[e].call(this)}}),r.length){let e=!1;const t=this[V];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){e=!0,t.call(this);for(let e=0;e<r.length;e++)r[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript(...e)}}};i.__accessorMetadata__=ee(t.prototype),i.prototype.declaredClass=e;const s=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(i,"name",{value:s,configurable:!0}),i}}function Ve(e,t){return null==t.get?function(){const t=this.__accessor__,n=t.propertiesByName.get(e);if(void 0===n)return;fe(n);const r=t.store;return r.has(e)?r.get(e):n.metadata.value}:function(){const t=this.__accessor__,n=t.propertiesByName.get(e);if(void 0!==n)return n.getComputed(t)}}function He(e){const t=ee(e.prototype),n={};for(const e of Object.getOwnPropertyNames(t)){const r=t[e];Le(r),n[e]={enumerable:!0,configurable:!0,get:Ve(e,r),set(t){const n=this.__accessor__;if(void 0!==n){if(!Object.isFrozen(this))return n.initialized&&r.readOnly?Ye("read-only",e):n.lifecycle===G.CONSTRUCTED&&r.constructOnly?Ye("construct-only",e):void n.set(e,t)}else Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}}}Object.defineProperties(e.prototype,n)}var Ye=(e,t)=>{h.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)};function Ze(e,t){const n="?"===e[e.length-1]?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(n,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}const r=H(t);return function(e,t){return null!=e?.metadata?.[t]}(r,n)?r.get(n):t[n]}function Qe(e,t,n){if(null==e)return e;const r=Ze(t[n],e);return!r&&n<t.length-1?void 0:n===t.length-1?r:Qe(r,t,n+1)}function Xe(e,t,n=0){return"string"!=typeof t||t.includes(".")?Qe(e,Z(t),n):Ze(t,e)}function et(e,t){return Xe(e,t)}function tt(e,n,r){if(e&&n)if("object"==typeof n)for(const t of Object.getOwnPropertyNames(n))tt(e,t,n[t]);else{if(n.includes(".")){const t=n.split("."),o=t.splice(-1,1)[0];return void tt(et(e,t),o,r)}const o=e.__accessor__;null!=o&&function(e,n){if(t("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadata[e]}(e,n))throw new q("set:unknown-property",function(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}(e,n))}(n,o),e[n]=r}}function nt(e={}){return(t,n)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${n}. Accessor does not support static properties.`);const r=Object.getOwnPropertyDescriptor(t,n),o=te(t,n);r&&(r.get||r.set?(o.get=r.get||o.get,o.set=r.set||o.set):"value"in r&&("value"in e&&h.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${n}" on "${t.constructor.name}" already defined in the metadata`,e),o.value=e.value=r.value)),null!=e.readOnly&&(o.readOnly=e.readOnly);const i=e.aliasOf;if(i){const e="string"==typeof i?i:i.source,t="string"==typeof i?null:!0===i.overridable;let r;o.dependsOn=[e],o.get=function(){let t=et(this,e);if("function"==typeof t){r||(r=e.split(".").slice(0,-1).join("."));const n=et(this,r);n&&(t=t.bind(n))}return t},o.readOnly||(o.set=t?function(e){this._override(n,e)}:function(t){tt(this,e,t)})}const s=e.type,u=e.types;o.cast||(s?o.cast=function(e){let t=0,n=e;if(function(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}(e))return C(e);for(;Array.isArray(n)&&1===n.length&&"string"!=typeof n[0]&&"number"!=typeof n[0];)n=n[0],t++;const r=n;if(U(r))return 0===t?D(r):F(D(r),t);if(1===t)return function(e,t){return 1===arguments.length?_((t=>P(e,t))):_((t=>P(e,t)),t)}(r);if(t>1)return function(e,t,n){return 2===arguments.length?F((t=>P(e,t)),t):F((t=>P(e,t)),t,n)}(r,t);return e.from?e.from:P(e)}(s):u&&(o.cast=Array.isArray(u)?_(z(u[0])):z(u))),ne(o,e),e.range&&(o.cast=ot(o.cast,e.range))}}function rt(e,t,n){const r=te(e,n);r.json||(r.json={});let o=r.json;return void 0!==t&&(o.origins||(o.origins={}),o.origins[t]||(o.origins[t]={}),o=o.origins[t]),o}function ot(e,t){return n=>{let r=+e(n);return null!=t.step&&(r=Math.round(r/t.step)*t.step),null!=t.min&&(r=Math.max(t.min,r)),null!=t.max&&(r=Math.min(t.max,r)),r}}export{He as A,G as I,u as O,o as S,Ke as a,et as b,a as c,c as d,B as e,ye as f,de as g,t as h,re as i,s as j,we as k,f as l,ve as m,h as n,V as o,X as p,rt as q,ee as r,fe as s,tt as t,Xe as u,n as v,te as w,P as x,nt as y,ot as z}
6
+ var e;function t(t){return"function"==typeof e[t]?e[t]=e[t](globalThis):e[t]}e=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},t.add=(n,r,o,i)=>((i||void 0===e[n])&&(e[n]=r),o&&t(n)),t.cache=e,t.add("big-integer-warning-enabled",!0),t.add("esri-deprecation-warnings",!0),t.add("esri-tests-disable-screenshots",!1),t.add("esri-tests-use-full-window",!1),t.add("esri-tests-post-to-influx",!0),(()=>{t.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(t.add("host-browser",e),t.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),t.add("dom",e),t("host-browser")){const e=navigator,n=e.userAgent,r=e.appVersion,o=parseFloat(r);if(t.add("wp",parseFloat(n.split("Windows Phone")[1])||void 0),t.add("msapp",parseFloat(n.split("MSAppHost/")[1])||void 0),t.add("khtml",r.includes("Konqueror")?o:void 0),t.add("edge",parseFloat(n.split("Edge/")[1])||void 0),t.add("opr",parseFloat(n.split("OPR/")[1])||void 0),t.add("webkit",!t("wp")&&!t("edge")&&parseFloat(n.split("WebKit/")[1])||void 0),t.add("chrome",!t("edge")&&!t("opr")&&parseFloat(n.split("Chrome/")[1])||void 0),t.add("android",!t("wp")&&parseFloat(n.split("Android ")[1])||void 0),t.add("safari",!r.includes("Safari")||t("wp")||t("chrome")||t("android")||t("edge")||t("opr")?void 0:parseFloat(r.split("Version/")[1])),t.add("mac",r.includes("Macintosh")),!t("wp")&&/(iPhone|iPod|iPad)/.test(n)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(n)?RegExp.$1:"1",o=parseFloat(r.replace(/_/,".").replaceAll("_",""));t.add(e,o),t.add("ios",o)}t("webkit")||(!n.includes("Gecko")||t("wp")||t("khtml")||t("edge")||t.add("mozilla",o),t("mozilla")&&t.add("ff",parseFloat(n.split("Firefox/")[1]||n.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,n=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);n&&t.add("esri-mobile",n),r&&t.add("esri-iPhone",r),t.add("esri-geolocation",!!navigator.geolocation)}t.add("esri-wasm","WebAssembly"in globalThis),t.add("esri-performance-mode-frames-between-render",20),t.add("esri-force-performance-mode",!1),t.add("esri-shared-array-buffer",(()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t})),t.add("wasm-simd",(()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))),t.add("esri-atomics","Atomics"in globalThis),t.add("esri-workers","Worker"in globalThis),t.add("web-feat:cache","caches"in globalThis),t.add("esri-workers-arraybuffer-transfer",!t("safari")||Number(t("safari"))>=12),t.add("workers-pool-size",8),t.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),t.add("featurelayer-simplify-payload-size-factors",[1,1,4]),t.add("featurelayer-fast-triangulation-enabled",!0),t.add("featurelayer-animation-enabled",!0),t.add("featurelayer-snapshot-enabled",!0),t.add("featurelayer-snapshot-point-min-threshold",8e4),t.add("featurelayer-snapshot-point-max-threshold",4e5),t.add("featurelayer-snapshot-point-coverage",.1),t.add("featurelayer-query-max-depth",4),t.add("featurelayer-query-pausing-enabled",!1),t.add("hittest-2d-mobile-tolerance",3),t.add("hittest-2d-desktop-tolerance",1),t.add("hittest-2d-small-symbol-tolerance",3),t.add("hittest-2d-small-symbol-tolerance-threshold",3),t.add("featurelayer-advanced-symbols",!1),t.add("featurelayer-pbf",!0),t.add("featurelayer-pbf-statistics",!1),t.add("feature-layers-workers",!0),t.add("feature-polyline-generalization-factor",1),t.add("mapview-transitions-duration",200),t.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),t.add("mapserver-pbf-version-support",10.81),t.add("mapservice-popup-identify-max-tolerance",20),t("host-webworker")||t("host-browser")&&(t.add("esri-csp-restrictions",(()=>{try{new Function}catch{return!0}return!1})),t.add("esri-image-decode",(()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then((()=>{t.add("esri-image-decode",!0,!0,!0)})).catch((()=>{t.add("esri-image-decode",!1,!0,!0)}))}return!1})),t.add("esri-url-encodes-apostrophe",(()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")})))})();var n=class{constructor(){this.last=0}},r=new n;function o(e,t,n,o){o=o||r;const i=Math.max(0,o.last-10);for(let r=i;r<n;++r)if(e[r]===t)return o.last=r,r;const s=Math.min(i,n);for(let n=0;n<s;++n)if(e[n]===t)return o.last=n,n;return-1}var i=new Set;function s(e,t,n=e.length,o=t.length,s,u){if(0===o||0===n)return n;i.clear();for(let e=0;e<o;++e)i.add(t[e]);s=s||r;const c=Math.max(0,s.last-10);for(let t=c;t<n;++t)if(i.has(e[t])&&(u?.push(e[t]),i.delete(e[t]),e[t]=e[n-1],--n,--t,0===i.size||0===n))return i.clear(),n;for(let t=0;t<c;++t)if(i.has(e[t])&&(u?.push(e[t]),i.delete(e[t]),e[t]=e[n-1],--n,--t,0===i.size||0===n))return i.clear(),n;return i.clear(),n}function u(e,t){const n=e.indexOf(t);return-1!==n?(e.splice(n,1),t):null}function c(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=function(e){if(t=e,"Int8Array"===t?.constructor?.name||function(e){return"Uint8Array"===e?.constructor?.name}(e)||function(e){return"Uint8ClampedArray"===e?.constructor?.name}(e)||function(e){return"Int16Array"===e?.constructor?.name}(e)||function(e){return"Uint16Array"===e?.constructor?.name}(e)||function(e){return"Int32Array"===e?.constructor?.name}(e)||function(e){return"Uint32Array"===e?.constructor?.name}(e)||function(e){return"Float32Array"===e?.constructor?.name}(e)||function(e){return"Float64Array"===e?.constructor?.name}(e))return e.slice();var t;if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[n,r]of e)t.set(n,c(r));return t}if(e instanceof Set){const t=new Set;for(const n of e)t.add(c(n));return t}return null}(e);if(null!=t)return t;if(function(e){return"function"==typeof e.clone}(e))return e.clone();if(function(e){return"function"==typeof e.map&&"function"==typeof e.forEach}(e))return e.map(c);if(function(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}(e))return e.clone();const n={};for(const t of Object.getOwnPropertyNames(e))n[t]=c(e[t]);return n}function a(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function f(e,t,n){const r=e.split("."),o=r.pop(),i=l(r,!0,n);i&&o&&(i[o]=t)}function l(e,t,n){let r=n;for(const n of e){if(null==r)return;if(!(n in r)){if(!t)return;r[n]={}}r=r[n]}return r}function p(e,t,n){return t?Object.keys(t).reduce(((e,r)=>{let o=e[r],i=t[r];return o===i?e:void 0===o?(e[r]=c(i),e):(Array.isArray(i)||Array.isArray(e)?(o=e[r]=o?Array.isArray(o)?o.concat():[o]:[],i&&(Array.isArray(i)||(i=[i]),n?i.forEach((e=>{o.includes(e)||o.push(e)})):e[r]=i.concat())):i&&"object"==typeof i?e[r]=p(o,i,n):e.hasOwnProperty(r)&&!t.hasOwnProperty(r)||(e[r]=i),e)}),e||{}):e}var y={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};globalThis.esriConfig&&(function(e,t,n=!1){p(y,t,n)}(0,globalThis.esriConfig,!0),delete y.has),y.assetsPath||(y.assetsPath="https://cdn.jsdelivr.net/npm/@arcgis/core@4.30.0-next.20240406/assets",y.defaultAssetsPath=y.assetsPath);var d={info:0,warn:1,error:2,none:3},h=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=t.level&&(this.level=t.level),null!=t.writer&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);const n=this.module.lastIndexOf(".");-1!==n&&(this._parent=e.getLogger(this.module.slice(0,n)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){const e=this;return{loggedMessages:e._loggedMessages,clearLoggedWarnings:()=>e._loggedMessages.warn.clear()}}static get test(){return{resetLoggers(t=new Map){const n=e._loggers;return e._loggers=t,n},set throttlingDisabled(t){e._throttlingDisabled=t}}}static getLogger(t){return e._loggers.get(t="string"!=typeof t?t.declaredClass:t)||new e({module:t})}_log(t,n,...r){if(this._matchLevel(t)){if("always"!==n&&!e._throttlingDisabled){const o=function(...e){return function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}(JSON.stringify(e,((e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]")))}(r),i=this._loggedMessages[t].get(o);if("once"===n&&null!=i||"oncePerTick"===n&&i&&i>=e._tickCounter)return;this._loggedMessages[t].set(o,e._tickCounter),e._scheduleTickCounterIncrement()}for(const e of y.log.interceptors)if(e(t,this.module,...r))return;this._inheritedWriter()(t,this.module,...r)}}_parentWithMember(e,t){let n=this;for(;null!=n;){const t=n[e];if(null!=t)return t;n=n.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",b)}_matchLevel(e){return d[this._parentWithMember("level",y.log.level||"warn")]<=d[e]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then((()=>{e._tickCounter++,e._tickCounterScheduled=!1})))}};function b(e,t,...n){console[e](`[${t}]`,...n)}h._loggers=new Map,h._tickCounter=0,h._tickCounterScheduled=!1,h._throttlingDisabled=!1;var g=()=>h.getLogger("esri.core.accessorSupport.ensureTypes");function v(e){return null==e?e:new Date(e)}function m(e){return null==e?e:!!e}function w(e){return null==e?e:e.toString()}function A(e){return null==e?e:(e=parseFloat(e),isNaN(e)?0:e)}function S(e){return null==e?e:Math.round(parseFloat(e))}function j(e){return e?.constructor&&void 0!==e.constructor.__accessorMetadata__}function k(e,t){return null!=t&&e&&!(t instanceof e)}function O(e){return e&&"isCollection"in e}function T(e){return e?.Type?"function"==typeof e.Type?e.Type:e.Type.base:null}function N(e,t){return!!j(t)&&(g().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+x(e)+"'"),!0)}function $(e,t){return null==t?t:O(e)?function(e,t){if(!t?.constructor||!O(t.constructor))return N(e,t)?t:new e(t);const n=T(e.prototype.itemType),r=T(t.constructor.prototype.itemType);return n?r?n===r?t:n.prototype.isPrototypeOf(r.prototype)?new e(t):(N(e,t),t):new e(t):t}(e,t):k(e,t)?N(e,t)?t:new e(t):t}function x(e){return e?.prototype?.declaredClass||"unknown"}var M=new WeakMap;function P(e,t){const n=function(e){switch(e){case Number:return A;case E:return S;case Boolean:return m;case String:return w;case Date:return v;default:return function(e,t,n){const r=e.get(t);if(void 0!==r)return r;const o=n();return e.set(t,o),o}(M,e,(()=>$.bind(null,e)))}}(e);return 1===arguments.length?n:n(t)}function _(e,t,n){return 1===arguments.length?_.bind(null,e):t?Array.isArray(t)?t.map((t=>e(t,n))):[e(t,n)]:t}function I(e,t,n){return 0!==t&&Array.isArray(n)?n.map((n=>I(e,t-1,n))):e(n)}function F(e,t,n){if(2===arguments.length)return n=>F(e,t,n);if(!n)return n;n=I(e,t,n);let r=t,o=n;for(;r>0&&Array.isArray(o);)r--,o=o[0];if(void 0!==o)for(let e=0;e<r;e++)n=[n];return n}function U(e){return!!Array.isArray(e)&&!e.some((t=>{const n=typeof t;return!("string"===n||"number"===n||"function"===n&&e.length>1)}))}function D(e,t){if(2===arguments.length)return D(e).call(null,t);const n=new Set,r=e.filter((e=>"function"!=typeof e)),o=e.filter((e=>"function"==typeof e));for(const t of e)"string"!=typeof t&&"number"!=typeof t||n.add(t);let i=null,s=null;return(e,t)=>{if(null==e)return e;const u=typeof e,c="string"===u||"number"===u;return c&&(n.has(e)||o.some((e=>"string"===u&&e===String||"number"===u&&e===Number)))||"object"===u&&o.some((t=>!k(e,t)))?e:(c&&r.length?(i||(i=r.map((e=>"string"==typeof e?`'${e}'`:`${e}`)).join(", ")),g().error("Accessor#set",`'${e}' is not a valid value for this property, only the following values are valid: ${i}`)):"object"==typeof e&&o.length?(s||(s=o.map((e=>x(e))).join(", ")),g().error("Accessor#set",`'${e}' is not a valid value for this property, value must be one of ${s}`)):g().error("Accessor#set",`'${e}' is not a valid value for this property`),t&&(t.valid=!1),null)}}function z(e,t){if(2===arguments.length)return z(e).call(null,t);const n={},r=[],o=[];for(const t in e.typeMap){const i=e.typeMap[t];n[t]=P(i),r.push(x(i)),o.push(t)}const i="string"==typeof e.key?t=>t[e.key]:e.key;return t=>{if(e.base&&!k(e.base,t))return t;if(null==t)return t;const s=i(t)||e.defaultKeyValue,u=n[s];if(!u)return g().error("Accessor#set",`Invalid property value, value needs to be one of '${r.join("', '")}', or a plain object that can autocast (having .type = '${o.join("', '")}')`),null;if(!k(e.typeMap[s],t))return t;if("string"==typeof e.key&&!j(t)){const n={};for(const r in t)r!==e.key&&(n[r]=t[r]);return u(n)}return u(t)}}var E=class{};function C(e){switch(e.type){case"native":return P(e.value);case"array":return _(C(e.value));case"one-of":return function(e){let t=null;return(n,r)=>R(n,e)?n:(null==t&&(t=W(e)),g().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),r&&(r.valid=!1),null)}(e);default:return null}}function W(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case E:return"integer";case Date:return"date";default:return x(e.value)}case"array":return`array of ${W(e.value)}`;case"one-of":{const t=e.values.map((e=>W(e)));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function R(e,t){if(null==e)return!0;switch(t.type){case"native":switch(t.value){case Number:case E:return"number"==typeof e;case Boolean:return"boolean"==typeof e;case String:return"string"==typeof e}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some((e=>!R(e,t.value)));case"one-of":return t.values.some((t=>R(e,t)))}}var J={remove:()=>{}};function B(e){return e?{remove(){e&&(e(),e=void 0)}}:J}var L=class{constructor(e,t,n){this.name=e,this.details=n,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s\:\}]*)(?:\:([^\s\:\}]+))?\}/g,((e,n)=>{if(""===n)return"$";const r=function(e,t){if(null!=t)return t[e]||l(e.split("."),!1,t)}(n,t);return(r??"").toString()}))}(t,n))??""}toString(){return"["+this.name+"]: "+this.message}},q=class e extends L{constructor(e,t,n){super(e,t,n)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,((e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return c(t)}catch(e){return"[object]"}})))}}catch(e){throw h.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};q.prototype.type="error";var G,K,V=Symbol("Accessor-beforeDestroy");function H(e){return e.__accessor__??null}function Y(e,t,n){return t?Object.keys(t).reduce(((e,r)=>{const o=r;let i=null,s="merge";if(n&&(i=n.path?`${n.path}.${r}`:r,s=n.policy(i)),"replace"===s)return e[o]=t[o],e;if("replace-arrays"===s&&Array.isArray(e[o]))return e[o]=t[o],e;if(void 0===e[o])return e[o]=c(t[o]),e;let u=e[o],a=t[o];if(u===a)return e;if(Array.isArray(a)||Array.isArray(e))u=e[o]=u?Array.isArray(u)?u.concat():[u]:[],a&&(Array.isArray(a)||(a=[a]),a.forEach((e=>{u.includes(e)||u.push(e)})));else if(a&&"object"==typeof a)if(n){const t=n.path;n.path=i,e[o]=Y(u,a,n),n.path=t}else e[o]=Y(u,a,null);else e.hasOwnProperty(r)&&!t.hasOwnProperty(r)||(e[o]=a);return e}),e||{}):e}function Z(e){return Array.isArray(e)?e:e.split(".")}function Q(e){return e.includes(",")?e.split(",").map((e=>e.trim())):[e.trim()]}function X(e,t,n,r){const o=function(e){if(Array.isArray(e)){const t=[];for(const n of e)t.push(...Q(n));return t}return Q(e)}(t);if(1!==o.length){const t=o.map((t=>r(e,t,n)));return i=t,B((()=>function(e){e.forEach((e=>e?.remove()))}(i)))}var i;return r(e,o[0],n)}function ee(e){let t=e.constructor.__accessorMetadata__;const n=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!n){t=Object.create(t);for(const e in t)t[e]=c(t[e]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function te(e,t){const n=ee(e);let r=n[t];return r||(r=n[t]={}),r}function ne(e,t){return function(e,t){return Y(e,t,se?{policy:se,path:""}:null)}(e,t)}(K=G||(G={}))[K.INITIALIZING=0]="INITIALIZING",K[K.CONSTRUCTING=1]="CONSTRUCTING",K[K.CONSTRUCTED=2]="CONSTRUCTED",K[K.DESTROYED=3]="DESTROYED";var re,oe,ie=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function se(e){return ie.test(e)?"replace":"merge"}(oe=re||(re={}))[oe.Dirty=1]="Dirty",oe[oe.Overridden=2]="Overridden",oe[oe.Computing=4]="Computing",oe[oe.NonNullable=8]="NonNullable",oe[oe.HasDefaultValue=16]="HasDefaultValue",oe[oe.DepTrackingInitialized=32]="DepTrackingInitialized",oe[oe.AutoTracked=64]="AutoTracked",oe[oe.ExplicitlyTracking=128]="ExplicitlyTracking";var ue={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},ce=[],ae=ue;function fe(e){ae.onObservableAccessed(e)}var le=!1,pe=!1;function ye(e,t,n){if(le)return he(e,t,n);be(e);const r=t.call(n);return ge(),r}function de(e,t){return ye(ue,e,t)}function he(e,t,n){const r=le;le=!0,be(e);let o=null;try{o=t.call(n)}catch(e){pe&&h.getLogger("esri.core.accessorSupport.tracking").error(e)}return ge(),le=r,o}function be(e){ae=e,ce.push(e)}function ge(){const e=ce.length;if(e>1){const t=ce.pop();ae=ce[e-2],t.onTrackingEnd()}else if(1===e){const e=ce.pop();ae=ue,e.onTrackingEnd()}else ae=ue}function ve(e,t){if(t.flags&re.DepTrackingInitialized)return;const n=pe;pe=!1,t.flags&re.AutoTracked?he(t,t.metadata.get,e):we(e,t),pe=n}var me=[];function we(e,t){t.flags&re.ExplicitlyTracking||(t.flags|=re.ExplicitlyTracking,he(t,(()=>{const n=t.metadata.dependsOn||me;for(const t of n)if("string"!=typeof t||t.includes(".")){const n=Z(t);for(let t=0,r=e;t<n.length&&null!=r&&"object"==typeof r;++t)r=Ae(r,n[t],t!==n.length-1)}else Ae(e,t,!1)})),t.flags&=~re.ExplicitlyTracking)}function Ae(e,t,n){const r="?"===t[t.length-1]?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){const t=parseInt(r,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.at(t)}const o=H(e);if(o){const t=o.propertiesByName.get(r);t&&(fe(t),ve(e,t))}return n?e[r]:void 0}var Se=class extends L{constructor(e,t,n){super(e,t,n)}};function je(e){return!!e&&e.prototype?.declaredClass&&0===e.prototype.declaredClass.indexOf("esri.core.Collection")}Se.prototype.type="warning";var ke=()=>h.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function Oe(e,t,n){e&&(!n&&!t.read||t.read?.reader||!1===t.read?.enabled||function(e){return"types"in e?Pe(e.types):Me(e.type)}(e)&&f("read.reader",function(e){const t=e.ndimArray??0;if(t>1)return function(e){const t=Te(e),n=Ne.bind(null,t),r=e.ndimArray??0;return(e,t,o)=>{if(null==e)return e;e=n(e,o,r);let i=r,s=e;for(;i>0&&Array.isArray(s);)i--,s=s[0];if(void 0!==s)for(let t=0;t<i;t++)e=[e];return e}}(e);if(1===t)return $e(e);if("type"in e&&xe(e.type)){const t=e.type.prototype?.itemType?.Type,n=$e("function"==typeof t?{type:t}:{types:t});return(t,r,o)=>{const i=n(t,r,o);return i?new e.type(i):i}}return Te(e)}(e),t))}function Te(e){return"type"in e?function(e){return e.prototype.read?(t,n,r)=>{if(null==t)return t;const o=typeof t;if("object"!==o)return void ke().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${o}'`);const i=new e;return i.read(t,r),i}:e.fromJSON}(e.type):function(e){let t=null;const n=e.errorContext??"type",r=e.validate;return(o,i,s)=>{if(null==o)return o;const u=typeof o;if("object"!==u)return void ke().error(`Expected JSON value of type 'object' to deserialize, but got '${u}'`);t||(t=function(e){const t={};for(const n in e.typeMap){const r=e.typeMap[n],o=ee(r.prototype);if("function"==typeof e.key)continue;const i=o[e.key];if(!i)continue;if(i.json?.type&&Array.isArray(i.json.type)&&1===i.json.type.length&&"string"==typeof i.json.type[0]){t[i.json.type[0]]=r;continue}const s=i.json?.write;if(!s?.writer){t[n]=r;continue}const u=s.target,c="string"==typeof u?u:e.key,a={};s.writer(n,a,c),a[c]&&(t[a[c]]=r)}return t}(e));const c=e.key;if("string"!=typeof c)return;const a=o[c],f=a?t[a]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!f){const e=`Type '${a||"unknown"}' is not supported`;return s?.messages&&o&&s.messages.push(new Se(`${n}:unsupported`,e,{definition:o,context:s})),void ke().error(e)}const l=new f;return l.read(o,s),r?r(l):l}}(e.types)}function Ne(e,t,n,r){return 0!==r&&Array.isArray(t)?t.map((t=>Ne(e,t,n,r-1))):e(t,void 0,n)}function $e(e){const t=Te(e);return(e,n,r)=>{if(null==e)return e;if(Array.isArray(e)){const n=[];for(const o of e){const e=t(o,void 0,r);void 0!==e&&n.push(e)}return n}const o=t(e,void 0,r);return void 0!==o?[o]:void 0}}function xe(e){if(!je(e))return!1;const t=e.prototype.itemType;return!(!t||!t.Type)&&("function"==typeof t.Type?Me(t.Type):Pe(t.Type))}function Me(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||xe(e))}function Pe(e){for(const t in e.typeMap)if(!Me(e.typeMap[t]))return!1;return!0}function _e(e){e.name&&(e.read&&"object"==typeof e.read?void 0===e.read.source&&(e.read.source=e.name):e.read={source:e.name},e.write&&"object"==typeof e.write?void 0===e.write.target&&(e.write.target=e.name):e.write={target:e.name})}function Ie(e){"boolean"==typeof e.read?e.read={enabled:e.read}:"function"==typeof e.read?e.read={enabled:!0,reader:e.read}:e.read&&"object"==typeof e.read&&void 0===e.read.enabled&&(e.read.enabled=!0)}function Fe(e){"boolean"==typeof e.write?e.write={enabled:e.write}:"function"==typeof e.write?e.write={enabled:!0,writer:e.write}:e.write&&"object"==typeof e.write&&void 0===e.write.enabled&&(e.write.enabled=!0)}function Ue(e,t){if(!t.write||t.write.writer||!1===t.write.enabled&&!t.write.overridePolicy)return;const n=e?.ndimArray??0;t.write.writer=e&&(1===n||"type"in e&&je(e.type))?Ce:n>1?function(e){return(t,n,r,o)=>{let i;if(null===t)i=null;else{i=We(t,o,e);let n=e,r=i;for(;n>0&&Array.isArray(r);)n--,r=r[0];if(void 0!==r)for(let e=0;e<n;e++)i=[i]}f(r,i,n)}}(n):t.types?Array.isArray(t.types)?function(e){return(t,n,r,o)=>t&&Array.isArray(t)?ze(t.filter((t=>De(t,e,o))),n,r,o):ze(t,n,r,o)}(t.types[0]):function(e){return(t,n,r,o)=>t?De(t,e,o)?ze(t,n,r,o):void 0:ze(t,n,r,o)}(t.types):ze}function De(e,t,n){for(const n in t.typeMap)if(e instanceof t.typeMap[n])return!0;if(n?.messages){const r=`Values of type '${("function"!=typeof t.key?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;n&&n.messages&&e&&n.messages.push(new q(`${t.errorContext??"type"}:unsupported`,r,{definition:e,context:n})),h.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(r)}return!1}function ze(e,t,n,r){f(n,Ee(e,r),t)}function Ee(e,t){return e&&"function"==typeof e.write?e.write({},t):e&&"function"==typeof e.toJSON?e.toJSON():"number"==typeof e?function(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}(e):e}function Ce(e,t,n,r){let o;null===e?o=null:e&&"function"==typeof e.map?(o=e.map((e=>Ee(e,r))),"function"==typeof o.toArray&&(o=o.toArray())):o=[Ee(e,r)],f(n,o,t)}function We(e,t,n){return 0!==n&&Array.isArray(e)?e.map((e=>We(e,t,n-1))):Ee(e,t)}function Re(e){return e.type?Je(e):Be(e)}function Je(e){if(!e.type)return;let t=0,n=e.type;for(;Array.isArray(n)&&!U(n);)n=n[0],t++;return{type:n,ndimArray:t}}function Be(e){if(!e.types)return;let t=0,n=e.types;for(;Array.isArray(n);)n=n[0],t++;return{types:n,ndimArray:t}}function Le(e){(function(e){if(e.json||(e.json={}),Ie(e.json),Fe(e.json),_e(e.json),e.json.origins)for(const t in e.json.origins)Ie(e.json.origins[t]),Fe(e.json.origins[t]),_e(e.json.origins[t]);return!0})(e)&&(function(e){if(e.json&&e.json.origins){const t=e.json.origins,n={"web-document":["web-scene","web-map"]};for(const e in n)if(t[e]){const r=t[e];n[e].forEach((e=>{t[e]=r})),delete t[e]}}}(e),function(e){const t=function(e){return e.json.types?Be(e.json):e.type?Je(e):Be(e)}(e);if(e.json.origins)for(const n in e.json.origins){const r=e.json.origins[n],o=r.types?Re(r):t;Oe(o,r,!1),r.types&&!r.write&&e.json.write?.enabled&&(r.write={...e.json.write}),Ue(o,r)}Oe(t,e.json,!0),Ue(t,e.json)}(e))}var qe=new Set,Ge=new Set;function Ke(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,He(t);const n=[],r=[];let o=t.prototype;for(;o;)o.hasOwnProperty("initialize")&&!qe.has(o.initialize)&&(qe.add(o.initialize),n.push(o.initialize)),o.hasOwnProperty("destroy")&&!Ge.has(o.destroy)&&(Ge.add(o.destroy),r.push(o.destroy)),o=Object.getPrototypeOf(o);qe.clear(),Ge.clear();const i=class extends t{constructor(...e){if(super(...e),this.constructor===i&&"function"==typeof this.postscript){if(n.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let e=n.length-1;e>=0;e--)n[e].call(this)}}),r.length){let e=!1;const t=this[V];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!e){e=!0,t.call(this);for(let e=0;e<r.length;e++)r[e].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript(...e)}}};i.__accessorMetadata__=ee(t.prototype),i.prototype.declaredClass=e;const s=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(i,"name",{value:s,configurable:!0}),i}}function Ve(e,t){return null==t.get?function(){const t=this.__accessor__,n=t.propertiesByName.get(e);if(void 0===n)return;fe(n);const r=t.store;return r.has(e)?r.get(e):n.metadata.value}:function(){const t=this.__accessor__,n=t.propertiesByName.get(e);if(void 0!==n)return n.getComputed(t)}}function He(e){const t=ee(e.prototype),n={};for(const e of Object.getOwnPropertyNames(t)){const r=t[e];Le(r),n[e]={enumerable:!0,configurable:!0,get:Ve(e,r),set(t){const n=this.__accessor__;if(void 0!==n){if(!Object.isFrozen(this))return n.initialized&&r.readOnly?Ye("read-only",e):n.lifecycle===G.CONSTRUCTED&&r.constructOnly?Ye("construct-only",e):void n.set(e,t)}else Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}}}Object.defineProperties(e.prototype,n)}var Ye=(e,t)=>{h.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)};function Ze(e,t){const n="?"===e[e.length-1]?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(n,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.at(e)}const r=H(t);return function(e,t){return null!=e?.metadata?.[t]}(r,n)?r.get(n):t[n]}function Qe(e,t,n){if(null==e)return e;const r=Ze(t[n],e);return!r&&n<t.length-1?void 0:n===t.length-1?r:Qe(r,t,n+1)}function Xe(e,t,n=0){return"string"!=typeof t||t.includes(".")?Qe(e,Z(t),n):Ze(t,e)}function et(e,t){return Xe(e,t)}function tt(e,n,r){if(e&&n)if("object"==typeof n)for(const t of Object.getOwnPropertyNames(n))tt(e,t,n[t]);else{if(n.includes(".")){const t=n.split("."),o=t.splice(-1,1)[0];return void tt(et(e,t),o,r)}const o=e.__accessor__;null!=o&&function(e,n){if(t("esri-unknown-property-errors")&&!function(e,t){return null!=t.metadata[e]}(e,n))throw new q("set:unknown-property",function(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}(e,n))}(n,o),e[n]=r}}function nt(e={}){return(t,n)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${n}. Accessor does not support static properties.`);const r=Object.getOwnPropertyDescriptor(t,n),o=te(t,n);r&&(r.get||r.set?(o.get=r.get||o.get,o.set=r.set||o.set):"value"in r&&("value"in e&&h.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${n}" on "${t.constructor.name}" already defined in the metadata`,e),o.value=e.value=r.value)),null!=e.readOnly&&(o.readOnly=e.readOnly);const i=e.aliasOf;if(i){const e="string"==typeof i?i:i.source,t="string"==typeof i?null:!0===i.overridable;let r;o.dependsOn=[e],o.get=function(){let t=et(this,e);if("function"==typeof t){r||(r=e.split(".").slice(0,-1).join("."));const n=et(this,r);n&&(t=t.bind(n))}return t},o.readOnly||(o.set=t?function(e){this._override(n,e)}:function(t){tt(this,e,t)})}const s=e.type,u=e.types;o.cast||(s?o.cast=function(e){let t=0,n=e;if(function(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}(e))return C(e);for(;Array.isArray(n)&&1===n.length&&"string"!=typeof n[0]&&"number"!=typeof n[0];)n=n[0],t++;const r=n;if(U(r))return 0===t?D(r):F(D(r),t);if(1===t)return function(e,t){return 1===arguments.length?_((t=>P(e,t))):_((t=>P(e,t)),t)}(r);if(t>1)return function(e,t,n){return 2===arguments.length?F((t=>P(e,t)),t):F((t=>P(e,t)),t,n)}(r,t);return e.from?e.from:P(e)}(s):u&&(o.cast=Array.isArray(u)?_(z(u[0])):z(u))),ne(o,e),e.range&&(o.cast=ot(o.cast,e.range))}}function rt(e,t,n){const r=te(e,n);r.json||(r.json={});let o=r.json;return void 0!==t&&(o.origins||(o.origins={}),o.origins[t]||(o.origins[t]={}),o=o.origins[t]),o}function ot(e,t){return n=>{let r=+e(n);return null!=t.step&&(r=Math.round(r/t.step)*t.step),null!=t.min&&(r=Math.max(t.min,r)),null!=t.max&&(r=Math.min(t.max,r)),r}}export{He as A,G as I,u as O,o as S,Ke as a,et as b,a as c,c as d,B as e,ye as f,de as g,t as h,re as i,s as j,we as k,f as l,ve as m,h as n,V as o,X as p,rt as q,ee as r,fe as s,tt as t,Xe as u,n as v,te as w,P as x,nt as y,ot as z}
@@ -1,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.25
4
+ * v4.30.0-next.27
5
5
  */
6
- import{l as t,y as n,q as r,w as s,x as o}from"./p-c7e83e19.js";export{z as ensureRange,A as finalizeClass,y as property,q as propertyJSONMeta,a as subclass}from"./p-c7e83e19.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}
6
+ import{l as t,y as n,q as r,w as s,x as o}from"./p-36409c26.js";export{z as ensureRange,A as finalizeClass,y as property,q as propertyJSONMeta,a as subclass}from"./p-36409c26.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}