@arcgis/core 4.30.0-next.20240403 → 4.30.0-next.20240404

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 (97) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/187d13558c818042dce2.js +2 -0
  3. package/assets/esri/core/workers/chunks/192b4783c7bd392f4095.js +2 -0
  4. package/assets/esri/core/workers/chunks/19ad69a889bf06d30f0f.js +1 -0
  5. package/assets/esri/core/workers/chunks/{608770e42d7ca5798545.js → 3fb75cfe3bf6261438c1.js} +1 -1
  6. package/assets/esri/core/workers/chunks/445736c106994e792cdd.js +1 -0
  7. package/assets/esri/core/workers/chunks/{6443e784d4b1df548e3a.js → 4516017b51153599364f.js} +1 -1
  8. package/assets/esri/core/workers/chunks/4b7641b1c6c9d7bdb1b0.js +1 -0
  9. package/assets/esri/core/workers/chunks/52c72913758d0a87fb5e.js +1 -0
  10. package/assets/esri/core/workers/chunks/572bcf3f4b326c2fb4a6.js +1 -0
  11. package/assets/esri/core/workers/chunks/5810a48ef774bfaafb3e.js +1 -0
  12. package/assets/esri/core/workers/chunks/{57c7c2c5885b46a951e1.js → 5a074e8ca7c657419c46.js} +1 -1
  13. package/assets/esri/core/workers/chunks/6c7ec73e329218395132.js +2 -0
  14. package/assets/esri/core/workers/chunks/{2707b8ef8ca636e184ba.js → 838f7bd33be5a2e16553.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{25370810357cb045c23b.js → 940ac9bd8ca35559380a.js} +1 -1
  16. package/assets/esri/core/workers/chunks/a36c566ea7a650765c2e.js +1 -0
  17. package/assets/esri/core/workers/chunks/a6ef33c6f7d2063fd8af.js +1 -0
  18. package/assets/esri/core/workers/chunks/c7ef165d3ef7993ae929.js +2 -0
  19. package/assets/esri/core/workers/chunks/f585a368008de26b54b6.js +1 -0
  20. package/assets/esri/themes/base/_mixins.scss +11 -0
  21. package/assets/esri/themes/base/widgets/_BasemapLayerList.scss +4 -0
  22. package/assets/esri/themes/base/widgets/_FeatureTable.scss +1 -54
  23. package/assets/esri/themes/base/widgets/_Grid.scss +4 -0
  24. package/assets/esri/themes/base/widgets/_LayerList.scss +4 -0
  25. package/assets/esri/themes/base/widgets/_TableList.scss +4 -0
  26. package/assets/esri/themes/dark/main.css +1 -1
  27. package/assets/esri/themes/light/main.css +1 -1
  28. package/assets/esri/themes/light/view.css +1 -1
  29. package/chunks/i3s.js +1 -1
  30. package/chunks/lclayout.js +1 -1
  31. package/chunks/lyr3DMain.js +1 -1
  32. package/chunks/lyr3DWorker.js +1 -1
  33. package/chunks/vxlLayer.js +1 -1
  34. package/geometry/SpatialReference.js +1 -1
  35. package/interfaces.d.ts +21 -23
  36. package/layers/WMSLayer.js +1 -1
  37. package/layers/support/MediaElementBase.js +1 -1
  38. package/layers/support/TileInfo.js +1 -1
  39. package/layers/support/mediaUtils.js +1 -1
  40. package/package.json +2 -2
  41. package/support/revision.js +1 -1
  42. package/views/2d/layers/features/schema/processor/SubtypeProcessorSchema.js +1 -1
  43. package/views/2d/viewpointUtils.js +1 -1
  44. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  45. package/views/3d/interactive/editingTools/reshape/ReshapeTool3D.js +1 -1
  46. package/views/3d/layers/I3SMeshView3D.js +1 -1
  47. package/views/3d/layers/SceneLayerWorker.js +1 -1
  48. package/views/3d/layers/graphics/Graphics3DTextSymbolLayer.js +1 -1
  49. package/views/3d/layers/i3s/I3SProjectionUtil.js +1 -1
  50. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  51. package/views/3d/layers/support/MediaLayerInteraction.js +1 -1
  52. package/views/3d/webgl-engine/collections/Component/ComponentIntersectionData.js +1 -1
  53. package/views/3d/webgl-engine/collections/Component/ComponentObjectCollection.js +1 -1
  54. package/views/3d/webgl-engine/collections/Component/ComponentObjectElevationAgnosticComponentBVH.js +5 -0
  55. package/views/3d/webgl-engine/collections/Component/ComponentObjectElevationAgnosticComponentGeometryBVH.js +5 -0
  56. package/views/3d/webgl-engine/collections/Component/ElevationAgnosticBVH.js +5 -0
  57. package/views/3d/webgl-engine/collections/Component/IntersectionGeometry.js +1 -1
  58. package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
  59. package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
  60. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  61. package/views/3d/webgl-engine/lib/RayIntersections.js +1 -1
  62. package/views/3d/webgl-engine/lib/RenderPluginInput.js +5 -0
  63. package/views/3d/webgl-engine/lib/Renderer.js +1 -1
  64. package/views/3d/webgl-engine/lib/Viewshed.js +1 -1
  65. package/views/3d/webgl-engine/lib/triangleIntersectionUtils.js +5 -0
  66. package/views/3d/webgl-engine/materials/renderers/MergedRenderer.js +1 -1
  67. package/widgets/BasemapLayerList.js +1 -1
  68. package/widgets/Bookmarks/BookmarksViewModel.js +1 -1
  69. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  70. package/widgets/FeatureTable/FieldColumn.js +1 -1
  71. package/widgets/FeatureTable/Grid/Column.js +1 -1
  72. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  73. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  74. package/widgets/FeatureTable.js +1 -1
  75. package/widgets/LayerList.js +1 -1
  76. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  77. package/widgets/ScaleBar/ScaleBarViewModel.js +1 -1
  78. package/widgets/ScaleBar.js +1 -1
  79. package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
  80. package/widgets/TableList.js +1 -1
  81. package/assets/esri/core/workers/chunks/052005514ce006ce0027.js +0 -1
  82. package/assets/esri/core/workers/chunks/078397f7c17a9bbbf8c0.js +0 -1
  83. package/assets/esri/core/workers/chunks/4a561d50115868d129db.js +0 -2
  84. package/assets/esri/core/workers/chunks/4e5e76b028022728c594.js +0 -1
  85. package/assets/esri/core/workers/chunks/6204698fb1f20f1b41fe.js +0 -1
  86. package/assets/esri/core/workers/chunks/757b3cfb82ca1eebab48.js +0 -1
  87. package/assets/esri/core/workers/chunks/7ce30bf0770b2b8c6f82.js +0 -1
  88. package/assets/esri/core/workers/chunks/81405b2bfb52dd7668c7.js +0 -1
  89. package/assets/esri/core/workers/chunks/c379c12ceca66cd5adc1.js +0 -2
  90. package/assets/esri/core/workers/chunks/d187b93d67d730621474.js +0 -1
  91. package/assets/esri/core/workers/chunks/e8c2ae67995f5ed46898.js +0 -2
  92. package/assets/esri/core/workers/chunks/ec3c06632caf9c61230e.js +0 -2
  93. package/assets/esri/core/workers/chunks/f9e331890bd3576e2448.js +0 -1
  94. /package/assets/esri/core/workers/chunks/{c379c12ceca66cd5adc1.js.LICENSE.txt → 187d13558c818042dce2.js.LICENSE.txt} +0 -0
  95. /package/assets/esri/core/workers/chunks/{4a561d50115868d129db.js.LICENSE.txt → 192b4783c7bd392f4095.js.LICENSE.txt} +0 -0
  96. /package/assets/esri/core/workers/chunks/{e8c2ae67995f5ed46898.js.LICENSE.txt → 6c7ec73e329218395132.js.LICENSE.txt} +0 -0
  97. /package/assets/esri/core/workers/chunks/{ec3c06632caf9c61230e.js.LICENSE.txt → c7ef165d3ef7993ae929.js.LICENSE.txt} +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 192b4783c7bd392f4095.js.LICENSE.txt */
2
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5588],{65588:(e,t,i)=>{i.r(t),i.d(t,{CalciteModal:()=>Y,defineCustomElement:()=>J});var n=i(62902),a=i(26786),o=i(72006);function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function r(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach((function(t){var n,a,o;n=e,a=t,o=i[t],(a=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(a))in n?Object.defineProperty(n,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[a]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var l=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},c=function(e){return l(e)&&!e.shiftKey},d=function(e){return l(e)&&e.shiftKey},h=function(e){return setTimeout(e,0)},u=function(e,t){var i=-1;return e.every((function(e,n){return!t(e)||(i=n,!1)})),i},m=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return"function"==typeof e?e.apply(void 0,i):e},v=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},p=[];const f=globalThis.calciteConfig,b=f?.focusTrapStack||[];function g(e,t){e.focusTrapDisabled||e.focusTrap?.activate(t)}function k(e,t){e.focusTrap?.deactivate(t)}var y=i(832),x=i(40313),w=i(79107),z=i(32282),C=i(27053),E=i(90589),O=i(74697),T=i(48131);const F=(0,n.w$)(class extends n.wt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.resizeObserver=(0,x.c)("resize",(()=>this.handleResize())),this.handleDefaultSlotChange=e=>{this.hasContent=(0,o.r)(e)},this.storeLoaderEl=e=>{this.loaderEl=e,this.handleResize()},this.loading=!1,this.messages=void 0,this.messageOverrides=void 0,this.loaderScale=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.hasContent=!1}onMessagesChange(){}effectiveLocaleChange(){(0,C.u)(this,this.effectiveLocale)}connectedCallback(){(0,z.c)(this),(0,C.c)(this),this.resizeObserver?.observe(this.el)}async componentWillLoad(){await(0,C.s)(this)}disconnectedCallback(){(0,z.d)(this),(0,C.d)(this),this.resizeObserver?.disconnect()}render(){const{hasContent:e,loading:t,messages:i}=this;return(0,n.h)("div",{class:"scrim"},t?(0,n.h)("calcite-loader",{label:i.loading,scale:this.loaderScale,ref:this.storeLoaderEl}):null,(0,n.h)("div",{class:"content",hidden:!e},(0,n.h)("slot",{onSlotchange:this.handleDefaultSlotChange})))}getScale(e){return e<72?"s":e>=480?"l":"m"}handleResize(){const{loaderEl:e,el:t}=this;e&&(this.loaderScale=this.getScale(Math.min(t.clientHeight,t.clientWidth)??0))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return":host{--calcite-scrim-background:var(--calcite-color-transparent-scrim);position:absolute;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}.scrim{position:absolute;inset:0px;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}"}},[1,"calcite-scrim",{loading:[516],messages:[1040],messageOverrides:[1040],loaderScale:[32],defaultMessages:[32],effectiveLocale:[32],hasContent:[32]},void 0,{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);function _(){"undefined"!=typeof customElements&&["calcite-scrim","calcite-loader"].forEach((e=>{switch(e){case"calcite-scrim":customElements.get(e)||customElements.define(e,F);break;case"calcite-loader":customElements.get(e)||(0,T.d)()}}))}_();const D="modal",L="header",S="container",N="container--open",B="content",P="content--no-footer",M="slotted-in-shell",R="modal--opening-idle",I="modal--opening-active",$="modal--closing-idle",G="modal--closing-active",j="content",H="back",W="secondary",A="primary";let V=0,K="";const q=(0,n.w$)(class extends n.wt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteModalBeforeClose=(0,n.lh)(this,"calciteModalBeforeClose",6),this.calciteModalClose=(0,n.lh)(this,"calciteModalClose",6),this.calciteModalBeforeOpen=(0,n.lh)(this,"calciteModalBeforeOpen",6),this.calciteModalOpen=(0,n.lh)(this,"calciteModalOpen",6),this.ignoreOpenChange=!1,this.mutationObserver=(0,x.c)("mutation",(()=>this.handleMutationObserver())),this.cssVarObserver=(0,x.c)("mutation",(()=>{this.updateSizeCssVars()})),this.openTransitionProp="opacity",this.setTransitionEl=e=>{this.transitionEl=e},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd)},this.handleCloseClick=()=>{this.open=!1},this.handleOutsideClose=()=>{this.outsideCloseDisabled||(this.open=!1)},this.closeModal=async()=>{if(this.beforeClose)try{await this.beforeClose(this.el)}catch(e){return void requestAnimationFrame((()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1}))}V--,this.opened=!1,this.removeOverflowHiddenClass()},this.handleMutationObserver=()=>{this.updateFooterVisibility(),this.updateFocusTrapElements()},this.updateFooterVisibility=()=>{this.hasFooter=!!(0,o.g)(this.el,[H,A,W])},this.updateSizeCssVars=()=>{this.cssWidth=getComputedStyle(this.el).getPropertyValue("--calcite-modal-width"),this.cssHeight=getComputedStyle(this.el).getPropertyValue("--calcite-modal-height")},this.contentTopSlotChangeHandler=e=>{this.hasContentTop=(0,o.d)(e)},this.contentBottomSlotChangeHandler=e=>{this.hasContentBottom=(0,o.d)(e)},this.open=!1,this.opened=!1,this.beforeClose=void 0,this.closeButtonDisabled=!1,this.focusTrapDisabled=!1,this.outsideCloseDisabled=!1,this.docked=void 0,this.escapeDisabled=!1,this.scale="m",this.widthScale="m",this.fullscreen=void 0,this.kind=void 0,this.messages=void 0,this.messageOverrides=void 0,this.slottedInShell=void 0,this.cssWidth=void 0,this.cssHeight=void 0,this.hasFooter=!0,this.hasContentTop=!1,this.hasContentBottom=!1,this.effectiveLocale=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(e){this.open&&(e?k(this):g(this))}onMessagesChange(){}async componentWillLoad(){await(0,C.s)(this),(0,y.s)(this),this.open&&this.openModal()}componentDidLoad(){(0,y.a)(this)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.cssVarObserver?.observe(this.el,{attributeFilter:["style"]}),this.updateSizeCssVars(),this.updateFooterVisibility(),(0,a.c)(this),(0,z.c)(this),(0,C.c)(this),function(e,t){const{el:i}=e,n=i;if(!n)return;const a={clickOutsideDeactivates:!0,escapeDeactivates:!1,fallbackFocus:n,setReturnFocus:e=>((0,o.e)(e),!1),...t?.focusTrapOptions,document:i.ownerDocument,tabbableOptions:o.n,trapStack:b};var s,f,g,k,y,x,w,z,C,E,O,T,F,_,D,L,S,N,B,P,M,R,I,$;e.focusTrap=(s=n,k=(null==(f=a)?void 0:f.document)||document,y=(null==f?void 0:f.trapStack)||p,x=r({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:c,isKeyBackward:d},f),w={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},z=function(e,t,i){return e&&void 0!==e[t]?e[t]:x[i||t]},C=function(e,t){var i="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return w.containerGroups.findIndex((function(t){var n=t.container,a=t.tabbableNodes;return n.contains(e)||(null==i?void 0:i.includes(n))||a.find((function(t){return t===e}))}))},E=function(e){var t=x[e];if("function"==typeof t){for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];t=t.apply(void 0,n)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var o=t;if("string"==typeof t&&!(o=k.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return o},O=function(){var e=E("initialFocus");if(!1===e)return!1;if(void 0===e||!(0,o.m)(e,x.tabbableOptions))if(C(k.activeElement)>=0)e=k.activeElement;else{var t=w.tabbableGroups[0];e=t&&t.firstTabbableNode||E("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},T=function(){if(w.containerGroups=w.containers.map((function(e){var t=(0,o.h)(e,x.tabbableOptions),i=(0,o.j)(e,x.tabbableOptions),n=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,s=i.find((function(e){return(0,o.k)(e)})),r=i.slice().reverse().find((function(e){return(0,o.k)(e)})),l=!!t.find((function(e){return(0,o.l)(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:i,posTabIndexesFound:l,firstTabbableNode:n,lastTabbableNode:a,firstDomTabbableNode:s,lastDomTabbableNode:r,nextTabbableNode:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=t.indexOf(e);return a<0?n?i.slice(i.indexOf(e)+1).find((function(e){return(0,o.k)(e)})):i.slice(0,i.indexOf(e)).reverse().find((function(e){return(0,o.k)(e)})):t[a+(n?1:-1)]}}})),w.tabbableGroups=w.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),w.tabbableGroups.length<=0&&!E("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(w.containerGroups.find((function(e){return e.posTabIndexesFound}))&&w.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},F=function e(t){var i=t.activeElement;if(i)return i.shadowRoot&&null!==i.shadowRoot.activeElement?e(i.shadowRoot):i},_=function e(t){!1!==t&&t!==F(document)&&(t&&t.focus?(t.focus({preventScroll:!!x.preventScroll}),w.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(O()))},D=function(e){var t=E("setReturnFocus",e);return t||!1!==t&&e},L=function(e){var t=e.target,i=e.event,n=e.isBackward,a=void 0!==n&&n;t=t||v(i),T();var s=null;if(w.tabbableGroups.length>0){var r=C(t,i),c=r>=0?w.containerGroups[r]:void 0;if(r<0)s=a?w.tabbableGroups[w.tabbableGroups.length-1].lastTabbableNode:w.tabbableGroups[0].firstTabbableNode;else if(a){var d=u(w.tabbableGroups,(function(e){var i=e.firstTabbableNode;return t===i}));if(d<0&&(c.container===t||(0,o.m)(t,x.tabbableOptions)&&!(0,o.k)(t,x.tabbableOptions)&&!c.nextTabbableNode(t,!1))&&(d=r),d>=0){var h=0===d?w.tabbableGroups.length-1:d-1,m=w.tabbableGroups[h];s=(0,o.l)(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else l(i)||(s=c.nextTabbableNode(t,!1))}else{var p=u(w.tabbableGroups,(function(e){var i=e.lastTabbableNode;return t===i}));if(p<0&&(c.container===t||(0,o.m)(t,x.tabbableOptions)&&!(0,o.k)(t,x.tabbableOptions)&&!c.nextTabbableNode(t))&&(p=r),p>=0){var f=p===w.tabbableGroups.length-1?0:p+1,b=w.tabbableGroups[f];s=(0,o.l)(t)>=0?b.firstTabbableNode:b.firstDomTabbableNode}else l(i)||(s=c.nextTabbableNode(t))}}else s=E("fallbackFocus");return s},S=function(e){var t=v(e);C(t,e)>=0||(m(x.clickOutsideDeactivates,e)?g.deactivate({returnFocus:x.returnFocusOnDeactivate}):m(x.allowOutsideClick,e)||e.preventDefault())},N=function(e){var t=v(e),i=C(t,e)>=0;if(i||t instanceof Document)i&&(w.mostRecentlyFocusedNode=t);else{var n;e.stopImmediatePropagation();var a=!0;if(w.mostRecentlyFocusedNode)if((0,o.l)(w.mostRecentlyFocusedNode)>0){var s=C(w.mostRecentlyFocusedNode),r=w.containerGroups[s].tabbableNodes;if(r.length>0){var l=r.findIndex((function(e){return e===w.mostRecentlyFocusedNode}));l>=0&&(x.isKeyForward(w.recentNavEvent)?l+1<r.length&&(n=r[l+1],a=!1):l-1>=0&&(n=r[l-1],a=!1))}}else w.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return(0,o.l)(e)>0}))}))||(a=!1);else a=!1;a&&(n=L({target:w.mostRecentlyFocusedNode,isBackward:x.isKeyBackward(w.recentNavEvent)})),_(n||w.mostRecentlyFocusedNode||O())}w.recentNavEvent=void 0},B=function(e){if(("Escape"===(null==(t=e)?void 0:t.key)||"Esc"===(null==t?void 0:t.key)||27===(null==t?void 0:t.keyCode))&&!1!==m(x.escapeDeactivates,e))return e.preventDefault(),void g.deactivate();var t;(x.isKeyForward(e)||x.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w.recentNavEvent=e;var i=L({event:e,isBackward:t});i&&(l(e)&&e.preventDefault(),_(i))}(e,x.isKeyBackward(e))},P=function(e){var t=v(e);C(t,e)>=0||m(x.clickOutsideDeactivates,e)||m(x.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},M=function(){if(w.active)return function(e,t){if(e.length>0){var i=e[e.length-1];i!==t&&i.pause()}var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)}(y,g),w.delayInitialFocusTimer=x.delayInitialFocus?h((function(){_(O())})):_(O()),k.addEventListener("focusin",N,!0),k.addEventListener("mousedown",S,{capture:!0,passive:!1}),k.addEventListener("touchstart",S,{capture:!0,passive:!1}),k.addEventListener("click",P,{capture:!0,passive:!1}),k.addEventListener("keydown",B,{capture:!0,passive:!1}),g},R=function(){if(w.active)return k.removeEventListener("focusin",N,!0),k.removeEventListener("mousedown",S,!0),k.removeEventListener("touchstart",S,!0),k.removeEventListener("click",P,!0),k.removeEventListener("keydown",B,!0),g},I="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===w.mostRecentlyFocusedNode}))}))&&_(O())})):void 0,$=function(){I&&(I.disconnect(),w.active&&!w.paused&&w.containers.map((function(e){I.observe(e,{subtree:!0,childList:!0})})))},(g={get active(){return w.active},get paused(){return w.paused},activate:function(e){if(w.active)return this;var t=z(e,"onActivate"),i=z(e,"onPostActivate"),n=z(e,"checkCanFocusTrap");n||T(),w.active=!0,w.paused=!1,w.nodeFocusedBeforeActivation=k.activeElement,null==t||t();var a=function(){n&&T(),M(),$(),null==i||i()};return n?(n(w.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!w.active)return this;var t=r({onDeactivate:x.onDeactivate,onPostDeactivate:x.onPostDeactivate,checkCanReturnFocus:x.checkCanReturnFocus},e);clearTimeout(w.delayInitialFocusTimer),w.delayInitialFocusTimer=void 0,R(),w.active=!1,w.paused=!1,$(),function(e,t){var i=e.indexOf(t);-1!==i&&e.splice(i,1),e.length>0&&e[e.length-1].unpause()}(y,g);var i=z(t,"onDeactivate"),n=z(t,"onPostDeactivate"),a=z(t,"checkCanReturnFocus"),o=z(t,"returnFocus","returnFocusOnDeactivate");null==i||i();var s=function(){h((function(){o&&_(D(w.nodeFocusedBeforeActivation)),null==n||n()}))};return o&&a?(a(D(w.nodeFocusedBeforeActivation)).then(s,s),this):(s(),this)},pause:function(e){if(w.paused||!w.active)return this;var t=z(e,"onPause"),i=z(e,"onPostPause");return w.paused=!0,null==t||t(),R(),$(),null==i||i(),this},unpause:function(e){if(!w.paused||!w.active)return this;var t=z(e,"onUnpause"),i=z(e,"onPostUnpause");return w.paused=!1,null==t||t(),T(),M(),$(),null==i||i(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return w.containers=t.map((function(e){return"string"==typeof e?k.querySelector(e):e})),w.active&&T(),$(),this}}).updateContainerElements(s),g)}(this)}disconnectedCallback(){this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),this.cssVarObserver?.disconnect(),(0,a.d)(this),k(this),(0,z.d)(this),(0,C.d)(this),this.slottedInShell=!1}render(){return(0,n.h)(n.xr,{"aria-describedby":this.contentId,"aria-labelledby":this.titleId,"aria-modal":"true",role:"dialog"},(0,n.h)("div",{class:{[S]:!0,[N]:this.opened,[M]:this.slottedInShell}},(0,n.h)("calcite-scrim",{class:"scrim",onClick:this.handleOutsideClose}),this.renderStyle(),(0,n.h)("div",{class:{[D]:!0},ref:this.setTransitionEl},(0,n.h)("div",{class:L},this.renderCloseButton(),(0,n.h)("header",{class:"title"},(0,n.h)("slot",{name:L}))),this.renderContentTop(),(0,n.h)("div",{class:{[B]:!0,[P]:!this.hasFooter},ref:e=>this.modalContent=e},(0,n.h)("slot",{name:j})),this.renderContentBottom(),this.renderFooter())))}renderFooter(){return this.hasFooter?(0,n.h)("div",{class:"footer",key:"footer"},(0,n.h)("span",{class:"back"},(0,n.h)("slot",{name:H})),(0,n.h)("span",{class:"secondary"},(0,n.h)("slot",{name:W})),(0,n.h)("span",{class:"primary"},(0,n.h)("slot",{name:A}))):null}renderContentTop(){return(0,n.h)("div",{class:"content-top",hidden:!this.hasContentTop},(0,n.h)("slot",{name:"content-top",onSlotchange:this.contentTopSlotChangeHandler}))}renderContentBottom(){return(0,n.h)("div",{class:"content-bottom",hidden:!this.hasContentBottom},(0,n.h)("slot",{name:"content-bottom",onSlotchange:this.contentBottomSlotChangeHandler}))}renderCloseButton(){return this.closeButtonDisabled?null:(0,n.h)("button",{"aria-label":this.messages.close,class:"close",key:"button",onClick:this.handleCloseClick,title:this.messages.close,ref:e=>this.closeButtonEl=e},(0,n.h)("calcite-icon",{icon:"x",scale:(0,E.g)(this.scale)}))}renderStyle(){if(!this.fullscreen&&(this.cssWidth||this.cssHeight))return(0,n.h)("style",null,`.${S} {\n ${this.docked&&this.cssWidth?"align-items: center !important;":""}\n }\n .${D} {\n block-size: ${this.cssHeight?this.cssHeight:"auto"} !important;\n ${this.cssWidth?`inline-size: ${this.cssWidth} !important;`:""}\n ${this.cssWidth?`max-inline-size: ${this.cssWidth} !important;`:""}\n ${this.docked?"border-radius: var(--calcite-border-radius) !important;":""}\n }\n @media screen and (max-width: ${this.cssWidth}) {\n .${S} {\n ${this.docked?"align-items: flex-end !important;":""}\n }\n .${D} {\n max-block-size: 100% !important;\n inline-size: 100% !important;\n max-inline-size: 100% !important;\n min-inline-size: 100% !important;\n margin: 0 !important;\n ${this.docked?"":"block-size: 100% !important;"}\n ${this.docked?"":"border-radius: 0 !important;"}\n ${this.docked?"border-radius: var(--calcite-border-radius) var(--calcite-border-radius) 0 0 !important;":""}\n }\n }\n `)}effectiveLocaleChange(){(0,C.u)(this,this.effectiveLocale)}handleEscape(e){!this.open||this.escapeDisabled||"Escape"!==e.key||e.defaultPrevented||(this.open=!1,e.preventDefault())}async setFocus(){await(0,y.c)(this),(0,o.f)(this.el)}async updateFocusTrapElements(){!function(e){e.focusTrap?.updateContainerElements(e.el)}(this)}async scrollContent(e=0,t=0){this.modalContent&&(this.modalContent.scrollTo?this.modalContent.scrollTo({top:e,left:t,behavior:"smooth"}):(this.modalContent.scrollTop=e,this.modalContent.scrollLeft=t))}onBeforeOpen(){this.transitionEl.classList.add(I),this.calciteModalBeforeOpen.emit()}onOpen(){this.transitionEl.classList.remove(R,I),this.calciteModalOpen.emit(),g(this)}onBeforeClose(){this.transitionEl.classList.add(G),this.calciteModalBeforeClose.emit()}onClose(){this.transitionEl.classList.remove($,G),this.calciteModalClose.emit(),k(this)}toggleModal(e){this.ignoreOpenChange||(e?this.openModal():this.closeModal())}handleOpenedChange(e){const t=e?R:$;this.transitionEl.classList.add(t),(0,w.o)(this)}async openModal(){await(0,E.c)(this.el),this.el.addEventListener("calciteModalOpen",this.openEnd),this.opened=!0;const e=(0,o.g)(this.el,"header"),t=(0,o.g)(this.el,j);this.titleId=(0,o.D)(e),this.contentId=(0,o.D)(t),this.slottedInShell||(0===V&&(K=document.documentElement.style.overflow),V++,document.documentElement.style.setProperty("overflow","hidden"))}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",K)}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"],open:["toggleModal"],opened:["handleOpenedChange"]}}static get style(){return":host{--calcite-modal-scrim-background:rgba(0, 0, 0, 0.85);position:absolute;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-scrim-background-internal:rgba(0, 0, 0, 0.85)}.content-top[hidden],.content-bottom[hidden]{display:none}.container{position:fixed;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([scale=s]){--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:var(--calcite-modal-scrim-background, var(--calcite-color-transparent-scrim));position:fixed;inset:0px;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:var(--calcite-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-color-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}.modal--opening-idle{transform:var(--calcite-modal-hidden-position)}.modal--opening-active{transform:var(--calcite-modal-shown-position)}.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([opened]){opacity:1;visibility:visible !important;transition-delay:0ms}.container--open{opacity:1;visibility:visible !important;transition-delay:0ms}.container--open .modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}.header{z-index:var(--calcite-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto}.close{order:2;margin:0px;cursor:pointer;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline-color:transparent;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand-hover, var(--calcite-color-brand)));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-offset-invert-focus),\n 1\n )\n )\n )}.close:hover,.close:focus,.close:active{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.title{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1);font-size:var(--calcite-modal-title-text-internal)}.content{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0px;background-color:var(--calcite-modal-content-background, var(--calcite-color-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}.content-top,.content-bottom{z-index:var(--calcite-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}.content-top{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}.content-bottom{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}.content-top:not(.header~.content-top){border-start-start-radius:0.25rem;border-start-end-radius:0.25rem}.content-bottom:not(.content-bottom~.footer),.content--no-footer{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-context-text-internal)}.footer{z-index:var(--calcite-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-inline-end:auto}.secondary{margin-inline:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width-scale=s]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){:host([width-scale=s]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=s][docked]) .container{align-items:flex-end}}:host([width-scale=m]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){:host([width-scale=m]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=m][docked]) .container{align-items:flex-end}}:host([width-scale=l]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){:host([width-scale=l]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=l][docked]) .container{align-items:flex-end}}:host([fullscreen]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;flex:1 1 auto}:host([opened][fullscreen]) .header,:host([opened][fullscreen]) .footer,:host([opened][fullscreen]) .content-top,:host([opened][fullscreen]) .content-bottom{border-radius:0}:host([docked]) .modal{block-size:var(--calcite-modal-height, auto)}:host([docked]) .content{block-size:auto;flex:1 1 auto}:host([kind=brand]) .modal{border-color:var(--calcite-color-brand)}:host([kind=danger]) .modal{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .modal{border-color:var(--calcite-color-status-info)}:host([kind=success]) .modal{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .modal{border-color:var(--calcite-color-status-warning)}:host([kind=brand]) .modal,:host([kind=danger]) .modal,:host([kind=info]) .modal,:host([kind=success]) .modal,:host([kind=warning]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([kind=brand]) .header,:host([kind=brand]) .content-top,:host([kind=danger]) .header,:host([kind=danger]) .content-top,:host([kind=info]) .header,:host([kind=info]) .content-top,:host([kind=success]) .header,:host([kind=success]) .content-top,:host([kind=warning]) .header,:host([kind=warning]) .content-top{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){* slot[name=header]::slotted(content-top),* content-top::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer,.content-bottom{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer,.content-bottom{flex-direction:column}.back,.secondary{margin:0px;margin-block-end:0.25rem}}.container.slotted-in-shell{position:absolute;pointer-events:auto}.container.slotted-in-shell calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}"}},[1,"calcite-modal",{open:[1540],opened:[1540],beforeClose:[16],closeButtonDisabled:[516,"close-button-disabled"],focusTrapDisabled:[516,"focus-trap-disabled"],outsideCloseDisabled:[516,"outside-close-disabled"],docked:[516],escapeDisabled:[516,"escape-disabled"],scale:[513],widthScale:[513,"width-scale"],fullscreen:[516],kind:[513],messages:[1040],messageOverrides:[1040],slottedInShell:[1028,"slotted-in-shell"],cssWidth:[32],cssHeight:[32],hasFooter:[32],hasContentTop:[32],hasContentBottom:[32],effectiveLocale:[32],defaultMessages:[32],setFocus:[64],updateFocusTrapElements:[64],scrollContent:[64]},[[8,"keydown","handleEscape"]],{focusTrapDisabled:["handleFocusTrapDisabled"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"],open:["toggleModal"],opened:["handleOpenedChange"]}]);function U(){"undefined"!=typeof customElements&&["calcite-modal","calcite-icon","calcite-loader","calcite-scrim"].forEach((e=>{switch(e){case"calcite-modal":customElements.get(e)||customElements.define(e,q);break;case"calcite-icon":customElements.get(e)||(0,O.d)();break;case"calcite-loader":customElements.get(e)||(0,T.d)();break;case"calcite-scrim":customElements.get(e)||_()}}))}U();const Y=q,J=U},26786:(e,t,i)=>{i.d(t,{c:()=>l,d:()=>c});var n=i(62902),a=i(40313);const o=new Set;let s;const r={childList:!0};function l(e){s||(s=(0,a.c)("mutation",d)),s.observe(e.el,r)}function c(e){o.delete(e.el),d(s.takeRecords()),s.disconnect();for(const[e]of o.entries())s.observe(e,r)}function d(e){e.forEach((({target:e})=>{(0,n.$x)(e)}))}},48131:(e,t,i)=>{i.d(t,{d:()=>s});var n=i(62902),a=i(60005);const o=(0,n.w$)(class extends n.wt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inline=!1,this.label=void 0,this.scale="m",this.type=void 0,this.value=0,this.text=""}render(){const{el:e,inline:t,label:i,scale:o,text:s,type:r,value:l}=this,c=e.id||(0,a.g)(),d=t?this.getInlineSize(o):this.getSize(o),h=.45*d,u=`0 0 ${d} ${d}`,m="determinate"===r,v=2*h*Math.PI,p=l/100*v,f=v-p,b=Math.floor(l),g={"aria-valuenow":b,"aria-valuemin":0,"aria-valuemax":100,complete:100===b},k={r:h,cx:d/2,cy:d/2},y={"stroke-dasharray":`${p} ${f}`};return(0,n.h)(n.xr,{"aria-label":i,id:c,role:"progressbar",...m?g:{}},(0,n.h)("div",{class:"loader__svgs"},(0,n.h)("svg",{"aria-hidden":"true",class:"loader__svg loader__svg--1",viewBox:u},(0,n.h)("circle",{...k})),(0,n.h)("svg",{"aria-hidden":"true",class:"loader__svg loader__svg--2",viewBox:u},(0,n.h)("circle",{...k})),(0,n.h)("svg",{"aria-hidden":"true",class:"loader__svg loader__svg--3",viewBox:u,...m?{style:y}:{}},(0,n.h)("circle",{...k}))),s&&(0,n.h)("div",{class:"loader__text"},s),m&&(0,n.h)("div",{class:"loader__percentage"},l))}getSize(e){return{s:32,m:56,l:80}[e]}getInlineSize(e){return{s:12,m:16,l:20}[e]}get el(){return this}static get style(){return'@charset "UTF-8";@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:host{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-color-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem);will-change:contents}:host([scale=s]){--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}:host([no-padding]){padding-block:0px}:host{display:flex}.loader__text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-color-text-1);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}.loader__percentage{position:absolute;display:block;text-align:center;color:var(--calcite-color-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}.loader__svgs{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);animation-iteration-count:infinite;animation-timing-function:linear;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.66 / var(--calcite-internal-duration-factor));animation-name:loader-clockwise}.loader__svg{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear}.loader__svg--1{animation-name:loader-offset-1}.loader__svg--2{animation-name:loader-offset-2}.loader__svg--3{animation-name:loader-offset-3}:host([type=determinate]){animation:none;stroke:var(--calcite-color-border-3)}:host([type=determinate]) .loader__svgs{animation:none}:host([type=determinate]) .loader__svg--3{animation:none;stroke:var(--calcite-color-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([inline]){position:relative;margin:0px;animation:none;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size-inline);min-block-size:var(--calcite-loader-size-inline);inline-size:var(--calcite-loader-size-inline);margin-inline-end:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2)}:host([inline]) .loader__svgs{inset-block-start:0px;margin:0px;inset-inline-start:0;inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([inline]) .loader__svg{inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([complete]){opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms}:host([complete]) .loader__svgs{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms}:host([complete]) .loader__percentage{color:var(--calcite-color-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear}.loader__svg--1{stroke-dasharray:27.9252444444 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 4.8 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-83.7757333333}100%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:-279.2524444444}}.loader__svg--2{stroke-dasharray:55.8504888889 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.4 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-97.7383555556}100%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:-279.2524444444}}.loader__svg--3{stroke-dasharray:13.9626222222 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 7.734 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-76.7944222222}100%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:-279.2524444444}}@keyframes loader-color-shift{0%{stroke:var(--calcite-color-brand)}33%{stroke:var(--calcite-color-brand-press)}66%{stroke:var(--calcite-color-brand-hover)}100%{stroke:var(--calcite-color-brand)}}@keyframes loader-clockwise{100%{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}'}},[1,"calcite-loader",{inline:[516],label:[1],scale:[513],type:[513],value:[2],text:[1]}]);function s(){"undefined"!=typeof customElements&&["calcite-loader"].forEach((e=>{"calcite-loader"===e&&(customElements.get(e)||customElements.define(e,o))}))}s()},79107:(e,t,i)=>{i.d(t,{o:()=>s});var n=i(62902);function a(e){return"opened"in e?e.opened:e.open}function o(e,t=!1){(t?e[e.transitionProp]:a(e))?e.onBeforeOpen():e.onBeforeClose(),(t?e[e.transitionProp]:a(e))?e.onOpen():e.onClose()}function s(e,t=!1){(0,n.gv)((()=>{if(e.transitionEl){const{transitionDuration:i,transitionProperty:n}=getComputedStyle(e.transitionEl),s=i.split(","),r=s[n.split(",").indexOf(e.openTransitionProp)]??s[0];if("0s"===r)return void o(e,t);const l=setTimeout((()=>{e.transitionEl.removeEventListener("transitionstart",c),e.transitionEl.removeEventListener("transitionend",d),e.transitionEl.removeEventListener("transitioncancel",d),o(e,t)}),1e3*parseFloat(r));function c(i){i.propertyName===e.openTransitionProp&&i.target===e.transitionEl&&(clearTimeout(l),e.transitionEl.removeEventListener("transitionstart",c),(t?e[e.transitionProp]:a(e))?e.onBeforeOpen():e.onBeforeClose())}function d(i){i.propertyName===e.openTransitionProp&&i.target===e.transitionEl&&((t?e[e.transitionProp]:a(e))?e.onOpen():e.onClose(),e.transitionEl.removeEventListener("transitionend",d),e.transitionEl.removeEventListener("transitioncancel",d))}e.transitionEl.addEventListener("transitionstart",c),e.transitionEl.addEventListener("transitionend",d),e.transitionEl.addEventListener("transitioncancel",d)}}))}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2980,1053],{11053:(e,n,r)=>{r.d(n,{c:()=>t,g:()=>i});var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},82980:(e,n,r)=>{r.r(n),r.d(n,{i:()=>f});var t,i,o,a=r(11053),u={exports:{}};t=u,i="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,o=function(e={}){var n,r,t=void 0!==e?e:{};t.ready=new Promise(((e,t)=>{n=e,r=t}));var o=Object.assign({},t),a="object"==typeof window,u="function"==typeof importScripts;"object"==typeof process&&"object"==typeof process.versions&&process.versions.node;var c,f="";(a||u)&&(u?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),i&&(f=i),f=0!==f.indexOf("blob:")?f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1):"",u&&(c=e=>{var n=new XMLHttpRequest;return n.open("GET",e,!1),n.responseType="arraybuffer",n.send(null),new Uint8Array(n.response)}));var s,l,d=t.print||console.log.bind(console),p=t.printErr||console.warn.bind(console);Object.assign(t,o),o=null,t.arguments&&t.arguments,t.thisProgram&&t.thisProgram,t.quit&&t.quit,t.wasmBinary&&(s=t.wasmBinary),t.noExitRuntime,"object"!=typeof WebAssembly&&S("no native wasm support detected");var h,v,m,g,y,_,w,b,A,T=!1;function C(){var e=l.buffer;t.HEAP8=h=new Int8Array(e),t.HEAP16=m=new Int16Array(e),t.HEAP32=y=new Int32Array(e),t.HEAPU8=v=new Uint8Array(e),t.HEAPU16=g=new Uint16Array(e),t.HEAPU32=_=new Uint32Array(e),t.HEAPF32=w=new Float32Array(e),t.HEAPF64=b=new Float64Array(e)}var P=[],k=[],E=[];function W(e){P.unshift(e)}function j(e){E.unshift(e)}var R=0,F=null;function S(e){t.onAbort&&t.onAbort(e),p(e="Aborted("+e+")"),T=!0,e+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(e);throw r(n),n}var x;function U(e){return e.startsWith("data:application/octet-stream;base64,")}function I(e){try{if(e==x&&s)return new Uint8Array(s);if(c)return c(e);throw"both async and sync fetching of the wasm failed"}catch(e){S(e)}}function O(e,n,r){return function(e){return s||!a&&!u||"function"!=typeof fetch?Promise.resolve().then((()=>I(e))):fetch(e,{credentials:"same-origin"}).then((n=>{if(!n.ok)throw"failed to load wasm binary file at '"+e+"'";return n.arrayBuffer()})).catch((()=>I(e)))}(e).then((e=>WebAssembly.instantiate(e,n))).then((e=>e)).then(r,(e=>{p("failed to asynchronously prepare wasm: "+e),S(e)}))}function z(e){for(;e.length>0;)e.shift()(t)}U(x="i3s.wasm")||(x=function(e){return t.locateFile?t.locateFile(e,f):f+e}(x));var D=[];function M(e){var n=D[e];return n||(e>=D.length&&(D.length=e+1),D[e]=n=A.get(e)),n}function V(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){_[this.ptr+4>>2]=e},this.get_type=function(){return _[this.ptr+4>>2]},this.set_destructor=function(e){_[this.ptr+8>>2]=e},this.get_destructor=function(){return _[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,h[this.ptr+12|0]=e},this.get_caught=function(){return 0!=h[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,h[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=h[this.ptr+13|0]},this.init=function(e,n){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(n)},this.set_adjusted_ptr=function(e){_[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return _[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Ue(this.get_type()))return _[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var H={};function B(e){for(;e.length;){var n=e.pop();e.pop()(n)}}function q(e){return this.fromWireType(y[e>>2])}var N={},L={},G={},X=48,Z=57;function $(e,n){var r=function(e,n){return e=function(e){if(void 0===e)return"_unknown";var n=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return n>=X&&n<=Z?"_"+e:e}(e),{[e]:function(){return n.apply(this,arguments)}}[e]}(n,(function(e){this.name=n,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var J=void 0;function K(e){throw new J(e)}function Q(e,n,r){function t(n){var t=r(n);t.length!==e.length&&K("Mismatched type converter count");for(var i=0;i<e.length;++i)ie(e[i],t[i])}e.forEach((function(e){G[e]=n}));var i=new Array(n.length),o=[],a=0;n.forEach(((e,n)=>{L.hasOwnProperty(e)?i[n]=L[e]:(o.push(e),N.hasOwnProperty(e)||(N[e]=[]),N[e].push((()=>{i[n]=L[e],++a===o.length&&t(i)})))})),0===o.length&&t(i)}function Y(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}var ee=void 0;function ne(e){for(var n="",r=e;v[r];)n+=ee[v[r++]];return n}var re=void 0;function te(e){throw new re(e)}function ie(e,n,r={}){if(!("argPackAdvance"in n))throw new TypeError("registerType registeredInstance requires argPackAdvance");var t=n.name;if(e||te('type "'+t+'" must have a positive integer typeid pointer'),L.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;te("Cannot register type '"+t+"' twice")}if(L[e]=n,delete G[e],N.hasOwnProperty(e)){var i=N[e];delete N[e],i.forEach((e=>e()))}}var oe=new function(){this.allocated=[void 0],this.freelist=[],this.get=function(e){return this.allocated[e]},this.allocate=function(e){let n=this.freelist.pop()||this.allocated.length;return this.allocated[n]=e,n},this.free=function(e){this.allocated[e]=void 0,this.freelist.push(e)}};function ae(e){e>=oe.reserved&&0==--oe.get(e).refcount&&oe.free(e)}var ue=e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return oe.allocate({refcount:1,value:e})}};function ce(e,n){switch(n){case 2:return function(e){return this.fromWireType(w[e>>2])};case 3:return function(e){return this.fromWireType(b[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function fe(e,n,r){t.hasOwnProperty(e)?((void 0===r||void 0!==t[e].overloadTable&&void 0!==t[e].overloadTable[r])&&te("Cannot register public name '"+e+"' twice"),function(e,n,r){if(void 0===e[n].overloadTable){var t=e[n];e[n]=function(){return e[n].overloadTable.hasOwnProperty(arguments.length)||te("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[n].overloadTable+")!"),e[n].overloadTable[arguments.length].apply(this,arguments)},e[n].overloadTable=[],e[n].overloadTable[t.argCount]=t}}(t,e,e),t.hasOwnProperty(r)&&te("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),t[e].overloadTable[r]=n):(t[e]=n,void 0!==r&&(t[e].numArguments=r))}function se(e,n,r){t.hasOwnProperty(e)||K("Replacing nonexistant public symbol"),void 0!==t[e].overloadTable&&void 0!==r?t[e].overloadTable[r]=n:(t[e]=n,t[e].argCount=r)}function le(e,n){var r=(e=ne(e)).includes("j")?function(e,n){var r=[];return function(){return r.length=0,Object.assign(r,arguments),function(e,n,r){return e.includes("j")?function(e,n,r){var i=t["dynCall_"+e];return r&&r.length?i.apply(null,[n].concat(r)):i.call(null,n)}(e,n,r):M(n).apply(null,r)}(e,n,r)}}(e,n):M(n);return"function"!=typeof r&&te("unknown function pointer with signature "+e+": "+n),r}var de=void 0;function pe(e){var n=Se(e),r=ne(n);return Fe(n),r}function he(e,n,r){switch(n){case 0:return r?function(e){return h[e]}:function(e){return v[e]};case 1:return r?function(e){return m[e>>1]}:function(e){return g[e>>1]};case 2:return r?function(e){return y[e>>2]}:function(e){return _[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var ve="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function me(e,n,r){for(var t=n+r,i=n;e[i]&&!(i>=t);)++i;if(i-n>16&&e.buffer&&ve)return ve.decode(e.subarray(n,i));for(var o="";n<i;){var a=e[n++];if(128&a){var u=63&e[n++];if(192!=(224&a)){var c=63&e[n++];if((a=224==(240&a)?(15&a)<<12|u<<6|c:(7&a)<<18|u<<12|c<<6|63&e[n++])<65536)o+=String.fromCharCode(a);else{var f=a-65536;o+=String.fromCharCode(55296|f>>10,56320|1023&f)}}else o+=String.fromCharCode((31&a)<<6|u)}else o+=String.fromCharCode(a)}return o}function ge(e,n){return e?me(v,e,n):""}var ye="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function _e(e,n){for(var r=e,t=r>>1,i=t+n/2;!(t>=i)&&g[t];)++t;if((r=t<<1)-e>32&&ye)return ye.decode(v.subarray(e,r));for(var o="",a=0;!(a>=n/2);++a){var u=m[e+2*a>>1];if(0==u)break;o+=String.fromCharCode(u)}return o}function we(e,n,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var t=n,i=(r-=2)<2*e.length?r/2:e.length,o=0;o<i;++o){var a=e.charCodeAt(o);m[n>>1]=a,n+=2}return m[n>>1]=0,n-t}function be(e){return 2*e.length}function Ae(e,n){for(var r=0,t="";!(r>=n/4);){var i=y[e+4*r>>2];if(0==i)break;if(++r,i>=65536){var o=i-65536;t+=String.fromCharCode(55296|o>>10,56320|1023&o)}else t+=String.fromCharCode(i)}return t}function Te(e,n,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var t=n,i=t+r-4,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),y[n>>2]=a,(n+=4)+4>i)break}return y[n>>2]=0,n-t}function Ce(e){for(var n=0,r=0;r<e.length;++r){var t=e.charCodeAt(r);t>=55296&&t<=57343&&++r,n+=4}return n}var Pe={};function ke(e){var n=l.buffer;try{return l.grow(e-n.byteLength+65535>>>16),C(),1}catch(e){}}var Ee=[null,[],[]];function We(e,n){var r=Ee[e];0===n||10===n?((1===e?d:p)(me(r,0)),r.length=0):r.push(n)}J=t.InternalError=$(Error,"InternalError"),function(){for(var e=new Array(256),n=0;n<256;++n)e[n]=String.fromCharCode(n);ee=e}(),re=t.BindingError=$(Error,"BindingError"),oe.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),oe.reserved=oe.allocated.length,t.count_emval_handles=function(){for(var e=0,n=oe.reserved;n<oe.allocated.length;++n)void 0!==oe.allocated[n]&&++e;return e},de=t.UnboundTypeError=$(Error,"UnboundTypeError");var je={__call_sighandler:function(e,n){M(e)(n)},__cxa_throw:function(e,n,r){throw new V(e).init(n,r),e},_embind_finalize_value_object:function(e){var n=H[e];delete H[e];var r=n.rawConstructor,t=n.rawDestructor,i=n.fields;Q([e],i.map((e=>e.getterReturnType)).concat(i.map((e=>e.setterArgumentType))),(e=>{var o={};return i.forEach(((n,r)=>{var t=n.fieldName,a=e[r],u=n.getter,c=n.getterContext,f=e[r+i.length],s=n.setter,l=n.setterContext;o[t]={read:e=>a.fromWireType(u(c,e)),write:(e,n)=>{var r=[];s(l,e,f.toWireType(r,n)),B(r)}}})),[{name:n.name,fromWireType:function(e){var n={};for(var r in o)n[r]=o[r].read(e);return t(e),n},toWireType:function(e,n){for(var i in o)if(!(i in n))throw new TypeError('Missing field: "'+i+'"');var a=r();for(i in o)o[i].write(a,n[i]);return null!==e&&e.push(t,a),a},argPackAdvance:8,readValueFromPointer:q,destructorFunction:t}]}))},_embind_register_bigint:function(e,n,r,t,i){},_embind_register_bool:function(e,n,r,t,i){var o=Y(r);ie(e,{name:n=ne(n),fromWireType:function(e){return!!e},toWireType:function(e,n){return n?t:i},argPackAdvance:8,readValueFromPointer:function(e){var t;if(1===r)t=h;else if(2===r)t=m;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+n);t=y}return this.fromWireType(t[e>>o])},destructorFunction:null})},_embind_register_emval:function(e,n){ie(e,{name:n=ne(n),fromWireType:function(e){var n=(e=>(e||te("Cannot use deleted val. handle = "+e),oe.get(e).value))(e);return ae(e),n},toWireType:function(e,n){return ue(n)},argPackAdvance:8,readValueFromPointer:q,destructorFunction:null})},_embind_register_float:function(e,n,r){var t=Y(r);ie(e,{name:n=ne(n),fromWireType:function(e){return e},toWireType:function(e,n){return n},argPackAdvance:8,readValueFromPointer:ce(n,t),destructorFunction:null})},_embind_register_function:function(e,n,r,t,i,o,a){var u=function(e,n){for(var r=[],t=0;t<e;t++)r.push(_[n+4*t>>2]);return r}(n,r);e=ne(e),i=le(t,i),fe(e,(function(){!function(e,n){var r=[],t={};throw n.forEach((function e(n){t[n]||L[n]||(G[n]?G[n].forEach(e):(r.push(n),t[n]=!0))})),new de(e+": "+r.map(pe).join([", "]))}("Cannot call "+e+" due to unbound types",u)}),n-1),Q([],u,(function(r){var t=[r[0],null].concat(r.slice(1));return se(e,function(e,n,r,t,i,o){var a=n.length;a<2&&te("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var u=null!==n[1]&&!1,c=!1,f=1;f<n.length;++f)if(null!==n[f]&&void 0===n[f].destructorFunction){c=!0;break}var s="void"!==n[0].name,l=a-2,d=new Array(l),p=[],h=[];return function(){var r;arguments.length!==l&&te("function "+e+" called with "+arguments.length+" arguments, expected "+l+" args!"),h.length=0,p.length=u?2:1,p[0]=i,u&&(r=n[1].toWireType(h,this),p[1]=r);for(var o=0;o<l;++o)d[o]=n[o+2].toWireType(h,arguments[o]),p.push(d[o]);return function(e){if(c)B(h);else for(var t=u?1:2;t<n.length;t++){var i=1===t?r:d[t-2];null!==n[t].destructorFunction&&n[t].destructorFunction(i)}if(s)return n[0].fromWireType(e)}(t.apply(null,p))}}(e,t,0,i,o),n-1),[]}))},_embind_register_integer:function(e,n,r,t,i){n=ne(n);var o=Y(r),a=e=>e;if(0===t){var u=32-8*r;a=e=>e<<u>>>u}var c=n.includes("unsigned");ie(e,{name:n,fromWireType:a,toWireType:c?function(e,n){return this.name,n>>>0}:function(e,n){return this.name,n},argPackAdvance:8,readValueFromPointer:he(n,o,0!==t),destructorFunction:null})},_embind_register_memory_view:function(e,n,r){var t=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][n];function i(e){var n=_,r=n[e>>=2],i=n[e+1];return new t(n.buffer,i,r)}ie(e,{name:r=ne(r),fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},_embind_register_std_string:function(e,n){var r="std::string"===(n=ne(n));ie(e,{name:n,fromWireType:function(e){var n,t=_[e>>2],i=e+4;if(r)for(var o=i,a=0;a<=t;++a){var u=i+a;if(a==t||0==v[u]){var c=ge(o,u-o);void 0===n?n=c:(n+=String.fromCharCode(0),n+=c),o=u+1}}else{var f=new Array(t);for(a=0;a<t;++a)f[a]=String.fromCharCode(v[i+a]);n=f.join("")}return Fe(e),n},toWireType:function(e,n){var t;n instanceof ArrayBuffer&&(n=new Uint8Array(n));var i="string"==typeof n;i||n instanceof Uint8Array||n instanceof Uint8ClampedArray||n instanceof Int8Array||te("Cannot pass non-string to std::string"),t=r&&i?function(e){for(var n=0,r=0;r<e.length;++r){var t=e.charCodeAt(r);t<=127?n++:t<=2047?n+=2:t>=55296&&t<=57343?(n+=4,++r):n+=3}return n}(n):n.length;var o=Re(4+t+1),a=o+4;if(_[o>>2]=t,r&&i)!function(e,n,r){!function(e,n,r,t){if(!(t>0))return 0;for(var i=r+t-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(r>=i)break;n[r++]=a}else if(a<=2047){if(r+1>=i)break;n[r++]=192|a>>6,n[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;n[r++]=224|a>>12,n[r++]=128|a>>6&63,n[r++]=128|63&a}else{if(r+3>=i)break;n[r++]=240|a>>18,n[r++]=128|a>>12&63,n[r++]=128|a>>6&63,n[r++]=128|63&a}}n[r]=0}(e,v,n,r)}(n,a,t+1);else if(i)for(var u=0;u<t;++u){var c=n.charCodeAt(u);c>255&&(Fe(a),te("String has UTF-16 code units that do not fit in 8 bits")),v[a+u]=c}else for(u=0;u<t;++u)v[a+u]=n[u];return null!==e&&e.push(Fe,o),o},argPackAdvance:8,readValueFromPointer:q,destructorFunction:function(e){Fe(e)}})},_embind_register_std_wstring:function(e,n,r){var t,i,o,a,u;r=ne(r),2===n?(t=_e,i=we,a=be,o=()=>g,u=1):4===n&&(t=Ae,i=Te,a=Ce,o=()=>_,u=2),ie(e,{name:r,fromWireType:function(e){for(var r,i=_[e>>2],a=o(),c=e+4,f=0;f<=i;++f){var s=e+4+f*n;if(f==i||0==a[s>>u]){var l=t(c,s-c);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),c=s+n}}return Fe(e),r},toWireType:function(e,t){"string"!=typeof t&&te("Cannot pass non-string to C++ string type "+r);var o=a(t),c=Re(4+o+n);return _[c>>2]=o>>u,i(t,c+4,o+n),null!==e&&e.push(Fe,c),c},argPackAdvance:8,readValueFromPointer:q,destructorFunction:function(e){Fe(e)}})},_embind_register_value_object:function(e,n,r,t,i,o){H[e]={name:ne(n),rawConstructor:le(r,t),rawDestructor:le(i,o),fields:[]}},_embind_register_value_object_field:function(e,n,r,t,i,o,a,u,c,f){H[e].fields.push({fieldName:ne(n),getterReturnType:r,getter:le(t,i),getterContext:o,setterArgumentType:a,setter:le(u,c),setterContext:f})},_embind_register_void:function(e,n){ie(e,{isVoid:!0,name:n=ne(n),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,n){}})},_emval_decref:ae,_emval_incref:function(e){e>4&&(oe.get(e).refcount+=1)},_emval_new_cstring:function(e){return ue(function(e){var n=Pe[e];return void 0===n?ne(e):n}(e))},_emval_take_value:function(e,n){var r=(e=function(e,n){var r=L[e];return void 0===r&&te("_emval_take_value has unknown type "+pe(e)),r}(e)).readValueFromPointer(n);return ue(r)},abort:function(){S("")},emscripten_memcpy_big:function(e,n,r){v.copyWithin(e,n,n+r)},emscripten_resize_heap:function(e){var n=v.length,r=2147483648;if((e>>>=0)>r)return!1;let t=(e,n)=>e+(n-e%n)%n;for(var i=1;i<=4;i*=2){var o=n*(1+.2/i);if(o=Math.min(o,e+100663296),ke(Math.min(r,t(Math.max(e,o),65536))))return!0}return!1},fd_close:function(e){return 52},fd_seek:function(e,n,r,t,i){return 70},fd_write:function(e,n,r,t){for(var i=0,o=0;o<r;o++){var a=_[n>>2],u=_[n+4>>2];n+=8;for(var c=0;c<u;c++)We(e,v[a+c]);i+=u}return _[t>>2]=i,0}};!function(){var e={env:je,wasi_snapshot_preview1:je};function n(e,n){var r=e.exports;return t.asm=r,l=t.asm.memory,C(),A=t.asm.__indirect_function_table,function(e){k.unshift(e)}(t.asm.__wasm_call_ctors),function(e){if(R--,t.monitorRunDependencies&&t.monitorRunDependencies(R),0==R&&F){var n=F;F=null,n()}}(),r}if(R++,t.monitorRunDependencies&&t.monitorRunDependencies(R),t.instantiateWasm)try{return t.instantiateWasm(e,n)}catch(e){p("Module.instantiateWasm callback failed with error: "+e),r(e)}(function(e,n,r,t){return e||"function"!=typeof WebAssembly.instantiateStreaming||U(n)||"function"!=typeof fetch?O(n,r,t):fetch(n,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(t,(function(e){return p("wasm streaming compile failed: "+e),p("falling back to ArrayBuffer instantiation"),O(n,r,t)}))))})(s,x,e,(function(e){n(e.instance)})).catch(r)}();var Re=function(){return(Re=t.asm.malloc).apply(null,arguments)},Fe=function(){return(Fe=t.asm.free).apply(null,arguments)},Se=function(){return(Se=t.asm.__getTypeName).apply(null,arguments)};t.__embind_initialize_bindings=function(){return(t.__embind_initialize_bindings=t.asm._embind_initialize_bindings).apply(null,arguments)};var xe,Ue=function(){return(Ue=t.asm.__cxa_is_pointer_type).apply(null,arguments)};function Ie(){function e(){xe||(xe=!0,t.calledRun=!0,T||(z(k),n(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),function(){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)j(t.postRun.shift());z(E)}()))}R>0||(function(){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)W(t.preRun.shift());z(P)}(),R>0||(t.setStatus?(t.setStatus("Running..."),setTimeout((function(){setTimeout((function(){t.setStatus("")}),1),e()}),1)):e()))}if(t.dynCall_vij=function(){return(t.dynCall_vij=t.asm.dynCall_vij).apply(null,arguments)},t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.dynCall_jiji).apply(null,arguments)},F=function e(){xe||Ie(),xe||(F=e)},t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();return Ie(),e.ready},t.exports=o;const c=(0,a.g)(u.exports),f=Object.freeze(Object.defineProperty({__proto__:null,default:c},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5181],{52106:(e,t,r)=>{r.d(t,{A:()=>g});var i,n=r(90237),s=r(59456),a=r(13874),o=r(61147),l=r(69540),u=r(25482),p=r(36708),c=r(24326),m=r(10107),d=(r(44208),r(53966),r(87811),r(40608)),h=r(65864);function y(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let f=i=class extends((0,l.O)(u.oY)){constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const r of[t,this.sourceLayer,this.layer])if(r){if("popupTemplate"in r&&r.popupTemplate)return r.popupTemplate;if(e&&"defaultPopupTemplate"in r&&null!=r.defaultPopupTemplate)return r.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:y(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,u.Wj)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)((()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0),(({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())})),(0,p.z7)((()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0),(()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)}),{equals:(e,t)=>e===t,sync:!0})])}};(0,n._)([(0,m.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,h.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],f.prototype,"aggregateGeometries",null),(0,n._)([(0,m.MZ)({value:null})],f.prototype,"attributes",null),(0,n._)([(0,m.MZ)({value:null,types:s.yR,json:{read:h.rS}})],f.prototype,"geometry",null),(0,n._)([(0,m.MZ)({type:Boolean})],f.prototype,"isAggregate",void 0),(0,n._)([(0,m.MZ)({clonable:"reference"})],f.prototype,"layer",void 0),(0,n._)([(0,m.MZ)({clonable:"reference"})],f.prototype,"origin",void 0),(0,n._)([(0,m.MZ)({type:a.A})],f.prototype,"popupTemplate",void 0),(0,n._)([(0,m.MZ)({clonable:"reference"})],f.prototype,"sourceLayer",void 0),(0,n._)([(0,m.MZ)({value:null,types:o.Es})],f.prototype,"symbol",null),(0,n._)([(0,m.MZ)({type:Boolean,value:!0})],f.prototype,"visible",null),f=i=(0,n._)([(0,d.$)("esri.Graphic")],f),(f||(f={})).generateUID=c.c;const g=f},70668:(e,t,r)=>{r.d(t,{A:()=>m});var i=r(90237),n=r(69540),s=r(25482),a=r(88930),o=r(10107),l=(r(44208),r(53966),r(87811),r(93223)),u=r(40608),p=r(73133);let c=class extends((0,n.O)(s.oY)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.e)(p.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,i._)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,i._)([(0,u.$)("esri.TimeInterval")],c);const m=c},38961:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(90237),n=r(5503),s=(r(60999),r(49186),r(53966),r(14012),r(80559)),a=r(10107),o=r(40608);let l=class extends n.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,s.fm)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new n.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i._)([(0,a.MZ)()],l.prototype,"getCollections",void 0),(0,i._)([(0,a.MZ)()],l.prototype,"getChildrenFunction",void 0),(0,i._)([(0,a.MZ)()],l.prototype,"itemFilterFunction",void 0),l=(0,i._)([(0,o.$)("esri.core.CollectionFlattener")],l);const u=l},70328:(e,t,r)=>{r.d(t,{BI:()=>f,Ej:()=>p,Hq:()=>u,Ie:()=>h,Jt:()=>y,Ne:()=>c,RF:()=>o,aI:()=>b,fA:()=>s,hZ:()=>d,iT:()=>l,is:()=>g,qv:()=>v,vI:()=>m,v_:()=>w,vt:()=>n,w1:()=>a});var i=r(5443);function n(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,r,i,s,a,o=n()){return o[0]=e,o[1]=t,o[2]=r,o[3]=i,o[4]=s,o[5]=a,o}function a(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function o(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],a=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),a=Math.min(a,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=a,e[3]=o,e[4]=l,e[5]=u}function p(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function c(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function m(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e){return e?d(e,v):n(v)}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function f(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function b(e,t,r){if(null==e||null==t)return e===t;if(!g(e)||!g(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(19419);const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];n()},83960:(e,t,r)=>{r.d(t,{X_:()=>a,zx:()=>o});var i=r(34727),n=r(83047);const s=96;function a(e,t){const r=t||e.extent,i=e.width,a=(0,n.GA)(r?.spatialReference);return r&&i?r.width/i*a*n.dy*s:0}function o(e,t,r){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,r)}},51904:(e,t,r)=>{r.r(t),r.d(t,{default:()=>xe});var i=r(90237),n=r(92602),s=r(52106),a=r(13874),o=r(78888),l=r(5503),u=r(38961),p=r(66552),c=r(4718),m=r(92071),d=r(74887),h=r(36708),y=r(84952),f=r(10107),g=r(56507),b=r(36005),v=r(40608),w=r(43937),_=r(49422),x=r(5443),M=r(16930),I=r(83960),S=r(21325),A=r(4146),E=r(63074),T=r(16131),N=r(8303),F=r(54310),O=r(25036),P=r(82935),Z=r(38458),U=r(60694),L=r(55785),R=r(69622);r(44208),r(53966),r(87811);const j={visible:"visibleSublayers"};let C=class extends R.A{constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.sublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("wms-sublayer-update",(e=>this.notifyChange(j[e.propertyName])))],"layer"))}get layers(){return this.visibleSublayers.filter((({name:e})=>e)).map((({name:e})=>e)).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,r=e?.sublayers,i=[],n=e=>{const{minScale:r,maxScale:s,sublayers:a,visible:o}=e;o&&(0===t||(0===r||t<=r)&&(0===s||t>=s))&&(a?a.forEach(n):i.push(e))};return r?.forEach(n),i}toJSON(){const{layer:e,layers:t}=this,{imageFormat:r,imageTransparency:i,version:n}=e;return{format:r,request:"GetMap",service:"WMS",styles:"",transparent:i?"TRUE":"FALSE",version:n,layers:t}}};(0,i._)([(0,f.MZ)()],C.prototype,"layer",null),(0,i._)([(0,f.MZ)({readOnly:!0})],C.prototype,"layers",null),(0,i._)([(0,f.MZ)({type:Number})],C.prototype,"scale",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],C.prototype,"version",null),(0,i._)([(0,f.MZ)({readOnly:!0})],C.prototype,"visibleSublayers",null),C=(0,i._)([(0,v.$)("esri.layers.support.ExportWMSImageParameters")],C);var $,H=r(33446),B=r(4902),q=r(79901);let k=0,V=$=class extends((0,B.sA)(m.L)){constructor(e){super(e),this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.name=null,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.sublayers=null,this.spatialReferences=null,this.title=null,this.addHandles([(0,h.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=this,e.layer=this.layer}),h.OH),(0,h.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),h.OH),(0,h.wB)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer}),h.OH),(0,h.wB)((()=>this.layer),(e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e}),h.OH)])}get id(){return this._get("id")??k++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t.legendUrl??t.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}castSublayers(e){return(0,g.dp)(l.A.ofType($),e)}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new $;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map((e=>e.clone()))??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers?.map((e=>e.clone()))),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map((e=>e))),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const r=this.layer;this._get(e)!==t&&(this._set(e,t),r&&r.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,i._)([(0,f.MZ)()],V.prototype,"description",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],V.prototype,"dimensions",void 0),(0,i._)([(0,f.MZ)({type:x.A,json:{name:"extent"}})],V.prototype,"fullExtent",void 0),(0,i._)([(0,f.MZ)()],V.prototype,"fullExtents",void 0),(0,i._)([(0,f.MZ)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],V.prototype,"id",null),(0,i._)([(0,f.MZ)({type:String,json:{name:"legendUrl",write:{ignoreOrigin:!0}}})],V.prototype,"legendUrl",void 0),(0,i._)([(0,b.w)("legendUrl",["legendUrl","legendURL"])],V.prototype,"readLegendUrl",null),(0,i._)([(0,f.MZ)({type:Boolean,json:{name:"showLegend",origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],V.prototype,"legendEnabled",void 0),(0,i._)([(0,f.MZ)()],V.prototype,"layer",void 0),(0,i._)([(0,f.MZ)()],V.prototype,"maxScale",void 0),(0,i._)([(0,f.MZ)()],V.prototype,"minScale",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],V.prototype,"effectiveScaleRange",null),(0,i._)([(0,f.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],V.prototype,"name",void 0),(0,i._)([(0,f.MZ)()],V.prototype,"parent",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],V.prototype,"popupEnabled",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],V.prototype,"queryable",void 0),(0,i._)([(0,f.MZ)()],V.prototype,"sublayers",void 0),(0,i._)([(0,q.w)("sublayers")],V.prototype,"castSublayers",null),(0,i._)([(0,f.MZ)({type:[Number],json:{read:{source:"spatialReferences"}}})],V.prototype,"spatialReferences",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],V.prototype,"title",void 0),(0,i._)([(0,f.MZ)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],V.prototype,"visible",null),V=$=(0,i._)([(0,v.$)("esri.layers.support.WMSSublayer")],V);const D=V;var G=r(4576),W=r(49186);const J={84:4326,83:4269,27:4267};function X(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const r=e.documentElement;if("ServiceExceptionReport"===r.nodeName){const e=Array.prototype.slice.call(r.childNodes).map((e=>e.textContent)).join("\r\n");throw new W.A("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const i=K("Capability",r),n=K("Service",r),s=i&&K("Request",i);if(!i||!n||!s)return null;const a=K("Layer",i);if(!a)return null;const o="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",l=te("Title",n,"")||te("Name",n,""),u=te("AccessConstraints",n,""),p=/^none$/i.test(u)?"":u,c=te("Abstract",n,""),m=parseInt(te("MaxWidth",n,"5000"),10),d=parseInt(te("MaxHeight",n,"5000"),10),h=ne(s,"GetMap"),y=ie(s,"GetMap"),f=ae(a,o,t);if(!f)return null;let g,b=0;const v=Array.prototype.slice.call(i.childNodes),w=f.sublayers??[],_=e=>{null!=e&&w.push(e)};v.forEach((e=>{"Layer"===e.nodeName&&(0===b?g=e:1===b?(f.name&&(f.name="",_(ae(g,o,t))),_(ae(e,o,t))):_(ae(e,o,t)),b++)}));let M=f.sublayers,I=f.extent;const S=f.fullExtents??[];if(M||(M=[]),0===M.length&&M.push(f),!I){const e=new x.A(M[0].extent);f.extent=e.toJSON(),I=f.extent}const A=f.spatialReferences.length>0?f.spatialReferences:z(f),E=ie(s,"GetFeatureInfo"),T=E?ne(s,"GetFeatureInfo"):null,N=Q(M),F=f.minScale||0,O=f.maxScale||0,P=f.dimensions??[],Z=N.reduce(((e,t)=>e.concat(t.dimensions??[])),[]),U=P.concat(Z).filter(le);let L=null;if(U.length){const e=U.map((e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map((e=>e.getTime())):t?.map((e=>[e.min.getTime(),e.max.getTime()]))})).flat(2).filter(G.Ru);L={startTimeField:null,endTimeField:null,trackIdField:void 0,timeExtent:[Math.min(...e),Math.max(...e)]}}return{copyright:p,description:c,dimensions:P,extent:I,fullExtents:S,featureInfoFormats:T,featureInfoUrl:E,mapUrl:y,maxWidth:m,maxHeight:d,maxScale:O,minScale:F,layers:N,spatialReferences:A,supportedImageFormatTypes:h,timeInfo:L,title:l,version:o}}function z(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=z(t);if(e.length>0)return e}return[]}function Q(e){let t=[];for(const r of e)t.push(r),r.sublayers?.length&&(t=t.concat(Q(r.sublayers)),delete r.sublayers);return t}function Y(e,t,r){return t.getAttribute(e)??r}function K(e,t){for(let r=0;r<t.childNodes.length;r++){const i=t.childNodes[r];if(oe(i)&&i.nodeName===e)return i}return null}function ee(e,t){if(null==t)return[];const r=[];for(let i=0;i<t.childNodes.length;i++){const n=t.childNodes[i];oe(n)&&n.nodeName===e&&r.push(n)}return r}function te(e,t,r){return K(e,t)?.textContent??r}function re(e,t,r){if(!e)return null;const i=parseFloat(e.getAttribute("minx")),n=parseFloat(e.getAttribute("miny")),s=parseFloat(e.getAttribute("maxx")),a=parseFloat(e.getAttribute("maxy"));let o,l,u,p;r?(o=isNaN(n)?-Number.MAX_VALUE:n,l=isNaN(i)?-Number.MAX_VALUE:i,u=isNaN(a)?Number.MAX_VALUE:a,p=isNaN(s)?Number.MAX_VALUE:s):(o=isNaN(i)?-Number.MAX_VALUE:i,l=isNaN(n)?-Number.MAX_VALUE:n,u=isNaN(s)?Number.MAX_VALUE:s,p=isNaN(a)?Number.MAX_VALUE:a);const c=new M.A({wkid:t});return new x.A({xmin:o,ymin:l,xmax:u,ymax:p,spatialReference:c})}function ie(e,t){const r=K(t,e);if(r){const e=K("DCPType",r);if(e){const t=K("HTTP",e);if(t){const e=K("Get",t);if(e){let t=function(e,t,r,i){const n=K("OnlineResource",r);return n?Y("xlink:href",n,null):null}(0,0,e);if(t)return t.indexOf("&")===t.length-1&&(t=t.substring(0,t.length-1)),function(e,t){const r=[],i=(0,y.An)(e);for(const e in i.query)i.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||r.push(e+"="+i.query[e]));return i.path+(r.length?"?"+r.join("&"):"")}(t,["service","request"])}}}}return null}function ne(e,t){const r=ee("Operation",e);if(!r.length)return ee("Format",K(t,e)).map((({textContent:e})=>e)).filter(G.Ru);const i=[];for(const e of r)if(e.getAttribute("name")===t){const t=ee("Format",e);for(const{textContent:e}of t)null!=e&&i.push(e)}return i}function se(e,t,r){const i=K(t,e);if(!i)return r;const{textContent:n}=i;if(null==n||""===n)return r;const s=Number(n);return isNaN(s)?r:s}function ae(e,t,r){if(!e)return null;const i={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:"1"===e.getAttribute("queryable"),spatialReferences:[],sublayers:null},n=K("LatLonBoundingBox",e),s=K("EX_GeographicBoundingBox",e);let a=null;n&&(a=re(n,4326)),s&&(a=new x.A(0,0,0,0,new M.A({wkid:4326})),a.xmin=parseFloat(te("westBoundLongitude",s,"0")),a.ymin=parseFloat(te("southBoundLatitude",s,"0")),a.xmax=parseFloat(te("eastBoundLongitude",s,"0")),a.ymax=parseFloat(te("northBoundLatitude",s,"0"))),n||s||(a=new x.A(-180,-90,180,90,new M.A({wkid:4326}))),i.minScale=se(e,"MaxScaleDenominator",0),i.maxScale=se(e,"MinScaleDenominator",0);const o=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach((e=>{if("Name"===e.nodeName)i.name=e.textContent||"";else if("Title"===e.nodeName)i.title=e.textContent||"";else if("Abstract"===e.nodeName)i.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const r=e.getAttribute(o);if(r&&0===r.indexOf("EPSG:")){const i=parseInt(r.substring(5),10);0===i||isNaN(i)||a||(a="1.3.0"===t?re(e,i,(0,Z.m)(i)):re(e,i))}const n=r&&r.indexOf(":");if(n&&n>-1){let s=parseInt(r.substring(n+1,r.length),10);0===s||isNaN(s)||(s=J[s]??s);const a="1.3.0"===t?re(e,s,(0,Z.m)(s)):re(e,s);a&&i.fullExtents&&i.fullExtents.push(a)}}else if(e.nodeName===o)(e.textContent?.split(" ")??[]).forEach((e=>{const t=e.includes(":")?parseInt(e.split(":")[1],10):parseInt(e,10);if(0!==t&&!isNaN(t)){const e=J[t]??t;i.spatialReferences.includes(e)||i.spatialReferences.push(e)}}));else if("Style"!==e.nodeName||i.legendUrl){if("Layer"===e.nodeName){const n=ae(e,t,r);n&&(n.parentLayerId=i.id,i.sublayers||(i.sublayers=[]),i.sublayers.push(n))}}else{const t=K("LegendURL",e);if(t){const e=K("OnlineResource",t);e&&(i.legendUrl=e.getAttribute("xlink:href"))}}})),i.extent=a?.toJSON(),i.dimensions=ee("Dimension",e).filter((e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent)).map((e=>{const t=e.getAttribute("name"),r=e.getAttribute("units"),i=e.textContent,n=e.getAttribute("unitSymbol")??void 0,s=e.getAttribute("default")??void 0,a="0"!==Y("default",e,"0"),o="0"!==Y("nearestValue",e,"0"),l="0"!==Y("current",e,"0");return le({name:t,units:r})?{name:"time",units:"ISO8601",extent:ce(i),default:ce(s),multipleValues:a,nearestValue:o,current:l}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:r})?{name:"elevation",units:r,extent:ue(i),unitSymbol:n,default:ue(s),multipleValues:a,nearestValue:o}:{name:t,units:r,extent:pe(i),unitSymbol:n,default:pe(s),multipleValues:a,nearestValue:o}})),i}function oe(e){return e.nodeType===Node.ELEMENT_NODE}function le(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function ue(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}})).filter(G.Ru):r.map((e=>parseFloat(e)))}function pe(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}})).filter(G.Ru):r}function ce(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:new Date(t[0]),max:new Date(t[1]),resolution:t.length>=3&&"0"!==t[2]?me(t[2]):void 0}})).filter(G.Ru):r.map((e=>new Date(e)))}function me(e){const t=e.match(/(?:p(\d+y|\d+(?:\.|,)\d+y)?(\d+m|\d+(?:\.|,)\d+m)?(\d+d|\d+(?:\.|,)\d+d)?)?(?:t(\d+h|\d+(?:\.|,)\d+h)?(\d+m|\d+(?:\.|,)\d+m)?(\d+s|\d+(?:\.|,)\d+s)?)?/i);return t?{years:de(t[1]),months:de(t[2]),days:de(t[3]),hours:de(t[4]),minutes:de(t[5]),seconds:de(t[6])}:null}function de(e){if(!e)return 0;const t=e.match(/(?:\d+(?:\.|,)\d+|\d+)/);if(!t)return 0;const r=t[0].replace(",",".");return Number(r)}function he(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}const ye=new Set([102100,3857,102113,900913]),fe=new Set([3395,54004]),ge=new p.J({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function be(e){return"text/html"===e}function ve(e){return"text/plain"===e}let we=class extends((0,E.d)((0,P.e)((0,F.J)((0,O.j)((0,T.q)((0,N.A)((0,m.P)(A.A)))))))){constructor(...e){super(...e),this.allSublayers=new u.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.version=null,this.addHandles([(0,h.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=e.layer=this}),h.OH),(0,h.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),h.OH),(0,h.wB)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=t.layer=this}),h.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this.allSublayers.destroy()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(d.QP).then((()=>this._fetchService(t)))),Promise.resolve(this)}readFullExtentFromItemOrMap(e,t){const r=t.extent;return r?new x.A({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return null==this.featureInfoFormats?null:this.featureInfoFormats.find(be)??this.featureInfoFormats.find(ve)??null}set featureInfoFormat(e){null==e?(this.revert("featureInfoFormat","service"),this._clearOverride("featureInfoFormat")):(be(e)||ve(e))&&this._override("featureInfoFormat",e)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("image/png")?"image/png":r&&r[0]}readSpatialReferenceFromItemOrDocument(e,t){return new M.A(t.spatialReferences[0])}writeSpatialReferences(e,t){const r=this.spatialReference?.wkid;e&&r?(t.spatialReferences=e.filter((e=>e!==r)),t.spatialReferences.unshift(r)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,r){return _e(t.layers,r,t.visibleLayers)}readSublayers(e,t,r){return _e(t.layers,r)}writeSublayers(e,t,r,i){t.layers=[];const n=new Map,s=e.flatten((({sublayers:e})=>e??[]));for(const e of s)if("number"==typeof e.parent?.id){const t=n.get(e.parent.id);null!=t?t.push(e.id):n.set(e.parent.id,[e.id])}for(const e of s){const r={sublayer:e,...i},s=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},r);if(n.has(e.id)&&(s.sublayerIds=n.get(e.id)),!e.sublayers&&e.name){const i=e.write({},r);delete i.id,t.layers.push(i)}}t.visibleLayers=s.filter((({visible:e,sublayers:t})=>e&&!t)).map((({name:e})=>e)).toArray()}set url(e){if(!e)return void this._set("url",e);const{path:t,query:r}=(0,y.An)(e);for(const e in r)/^(request|service)$/i.test(e)&&delete r[e];const i=(0,y.a6)(t,r??{});this._set("url",i)}createExportImageParameters(e,t,r,i){const n=i?.pixelRatio??1,s=(0,I.X_)({extent:e,width:t})*n,a=new C({layer:this,scale:s}),{xmin:o,ymin:l,xmax:u,ymax:p,spatialReference:c}=e,m=function(e,t){let r=e.wkid;return null==t?r:(null!=r&&t.includes(r)||!e.latestWkid||(r=e.latestWkid),null!=r&&ye.has(r)?t.find((e=>ye.has(e)))||t.find((e=>fe.has(e)))||102100:r)}(c,this.spatialReferences),d="1.3.0"===this.version&&(0,Z.m)(m)?`${l},${o},${p},${u}`:`${o},${l},${u},${p}`,h=a.toJSON();return{bbox:d,["1.3.0"===this.version?"crs":"srs"]:null==m||isNaN(m)?void 0:"EPSG:"+m,...h}}async fetchImage(e,t,r,i){const n=this.mapUrl,s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const a=i?.timeExtent?.start,l=i?.timeExtent?.end,u=null!=a&&null!=l?a.getTime()===l.getTime()?he(a):`${he(a)}/${he(l)}`:void 0,p={responseType:"image",query:this._mixCustomParameters({width:t,height:r,...s,time:u,...this.refreshParameters}),signal:i?.signal};return(0,o.A)(n??"",p).then((e=>e.data))}async fetchImageBitmap(e,t,r,i){const n=this.mapUrl??"",s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const a=i?.timeExtent?.start,l=i?.timeExtent?.end,u=null!=a&&null!=l?a.getTime()===l.getTime()?he(a):`${he(a)}/${he(l)}`:void 0,p={responseType:"blob",query:this._mixCustomParameters({width:t,height:r,...s,time:u,...this.refreshParameters}),signal:i?.signal},{data:c}=await(0,o.A)(n,p);return(0,H.m)(c,n,i?.signal)}fetchFeatureInfo(e,t,r,i,n){const s=(0,I.X_)({extent:e,width:t}),a=function(e){const t=e.filter((e=>e.popupEnabled&&e.name&&e.queryable));return t.length?t.map((({name:e})=>e)).join():null}(new C({layer:this,scale:s}).visibleSublayers);if(null==this.featureInfoUrl||null==a)return Promise.resolve([]);if(null==this.fetchFeatureInfoFunction&&null==this.featureInfoFormat)return Promise.resolve([]);const o="1.3.0"===this.version?{I:i,J:n}:{x:i,y:n},l={query_layers:a,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r,...o},u={...this.createExportImageParameters(e,t,r),...l},p=this._mixCustomParameters(u);return null!=this.fetchFeatureInfoFunction?this.fetchFeatureInfoFunction(p):this._defaultFetchFeatureInfoFunction((0,y.a6)(this.featureInfoUrl,p))}findSublayerById(e){return this.allSublayers.find((t=>t.id===e))}findSublayerByName(e){return this.allSublayers.find((t=>t.name===e))}serviceSupportsSpatialReference(e){return(0,U.bd)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some((t=>{const r=900913===t?M.A.WebMercator:new M.A({wkid:t});return(0,S.aI)(r,e)}))}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,y.yM)(e),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const r=new a.A({title:this.title,content:t}),i=new s.A({sourceLayer:this,popupTemplate:r});return Promise.resolve([i])}async _fetchService(e){if(!this.resourceInfo&&this.parsedUrl?.path){const{path:t,query:r}=this.parsedUrl,{data:i}=await(0,o.A)(t,{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...r,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=X(i)}if(this.parsedUrl){const e=new y.s0(this.parsedUrl.path),{httpsDomains:t}=n.A.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const r in t)e[r.toLowerCase()]=t[r];return e}};function _e(e,t,r){e=e??[];const i=new Map;e.every((e=>null==e.id))&&(e=(0,c.o8)(e)).forEach(((e,t)=>e.id=t));for(const n of e){const e=new D;e.read(n,t),r&&!r.includes(e.name)&&(e.visible=!1),i.set(e.id,e)}const n=[];for(const t of e){const e=null!=t.id?i.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const r=i.get(t.parentLayerId);if(!r)continue;r.sublayers||(r.sublayers=new l.A),r.sublayers.push(e)}else n.push(e)}return n}(0,i._)([(0,f.MZ)({readOnly:!0})],we.prototype,"allSublayers",void 0),(0,i._)([(0,f.MZ)({json:{type:Object,write:!0}})],we.prototype,"customParameters",void 0),(0,i._)([(0,f.MZ)({json:{type:Object,write:!0}})],we.prototype,"customLayerParameters",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:!0}})],we.prototype,"copyright",void 0),(0,i._)([(0,f.MZ)()],we.prototype,"description",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],we.prototype,"dimensions",void 0),(0,i._)([(0,f.MZ)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],we.prototype,"fullExtent",void 0),(0,i._)([(0,b.w)(["web-document","portal-item"],"fullExtent",["extent"])],we.prototype,"readFullExtentFromItemOrMap",null),(0,i._)([(0,w.K)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],we.prototype,"writeFullExtent",null),(0,i._)([(0,f.MZ)()],we.prototype,"fullExtents",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],we.prototype,"featureInfoFormat",null),(0,i._)([(0,f.MZ)({type:[String],readOnly:!0})],we.prototype,"featureInfoFormats",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],we.prototype,"featureInfoUrl",void 0),(0,i._)([(0,f.MZ)()],we.prototype,"fetchFeatureInfoFunction",void 0),(0,i._)([(0,f.MZ)({type:String,json:{origins:{"web-document":{default:"image/png",type:ge.jsonValues,read:{reader:ge.read,source:"format"},write:{writer:ge.write,target:"format"}}}}})],we.prototype,"imageFormat",void 0),(0,i._)([(0,b.w)("imageFormat",["supportedImageFormatTypes"])],we.prototype,"readImageFormat",null),(0,i._)([(0,f.MZ)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],we.prototype,"imageMaxHeight",void 0),(0,i._)([(0,f.MZ)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],we.prototype,"imageMaxWidth",void 0),(0,i._)([(0,f.MZ)()],we.prototype,"imageTransparency",void 0),(0,i._)([(0,f.MZ)(L.fV)],we.prototype,"legendEnabled",void 0),(0,i._)([(0,f.MZ)({type:["show","hide","hide-children"]})],we.prototype,"listMode",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],we.prototype,"mapUrl",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],we.prototype,"isReference",void 0),(0,i._)([(0,f.MZ)({type:["WMS"]})],we.prototype,"operationalLayerType",void 0),(0,i._)([(0,f.MZ)()],we.prototype,"resourceInfo",void 0),(0,i._)([(0,f.MZ)({type:M.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],we.prototype,"spatialReference",void 0),(0,i._)([(0,b.w)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],we.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,i._)([(0,f.MZ)({type:[g.jz],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],we.prototype,"spatialReferences",void 0),(0,i._)([(0,w.K)(["web-document","portal-item"],"spatialReferences")],we.prototype,"writeSpatialReferences",null),(0,i._)([(0,f.MZ)({type:l.A.ofType(D),json:{write:{target:"layers",overridePolicy(e,t,r){if(function(e,t){return e.some((e=>{for(const r in e)if((0,_.R)(e,r,null,t))return!0;return!1}))}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],we.prototype,"sublayers",void 0),(0,i._)([(0,b.w)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],we.prototype,"readSublayersFromItemOrMap",null),(0,i._)([(0,b.w)("service","sublayers",["layers"])],we.prototype,"readSublayers",null),(0,i._)([(0,w.K)("sublayers",{layers:{type:[D]},visibleLayers:{type:[String]}})],we.prototype,"writeSublayers",null),(0,i._)([(0,f.MZ)({json:{read:!1},readOnly:!0,value:"wms"})],we.prototype,"type",void 0),(0,i._)([(0,f.MZ)(L.OZ)],we.prototype,"url",null),(0,i._)([(0,f.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],we.prototype,"version",void 0),we=(0,i._)([(0,v.$)("esri.layers.WMSLayer")],we);const xe=we},8303:(e,t,r)=>{r.d(t,{A:()=>x});var i=r(90237),n=r(92602),s=r(70333),a=r(78888),o=r(60999),l=r(49186),u=r(53966),p=r(97768),c=r(74887),m=r(84952),d=r(10107),h=(r(44208),r(87811),r(36005)),y=r(40608),f=r(43937),g=r(83531),b=r(20655),v=r(80812),w=r(41318),_=r(10407);const x=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new v.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(5356),r.e(8823)]).then(r.bind(r,41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.QP)(e),!0))))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,_.It)(r);let n,a;if(i)n=r.portal.url;else try{n=await(0,g.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!n||!(0,m.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const o=!0,l=!1,u=!1;if(!a)return{features:{edit:o,fullEdit:l},content:{updateItem:u}};try{if(i?await r.reload():(r=new v.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,_.It)(r)}catch(e){(0,c.QP)(e)}return{features:{edit:o,fullEdit:l},content:{updateItem:u}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=b.A.getDefault();if(n&&n.loaded&&(0,m.S8)(n.restUrl)===(0,m.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||b.A.getDefault());return r&&i&&!(0,m.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,d.MZ)({type:v.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,d.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,y.$)("esri.layers.mixins.PortalLayer")],t),t},M={credential:null,user:null}},82935:(e,t,r)=>{r.d(t,{e:()=>m});var i=r(90237),n=r(60945),s=r(70668),a=r(10107),o=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),u=r(30524),p=r(96184),c=r(73133);const m=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=c.j.fromJSON(r.timeOffsetUnits);return i&&n?new s.A({value:i,unit:n}):null}set timeInfo(e){(0,u.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,a.MZ)({type:n.A,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,a.MZ)({type:s.A})],t.prototype,"timeOffset",void 0),(0,i._)([(0,o.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,a.MZ)({value:null,type:p.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,a.MZ)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.$)("esri.layers.mixins.TemporalLayer")],t),t}},38458:(e,t,r)=>{r.d(t,{m:()=>n});const i=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function n(e){return null!=e&&i.some((([t,r])=>e>=t&&e<=r))}},96184:(e,t,r)=>{r.d(t,{A:()=>y});var i=r(90237),n=r(60945),s=r(70668),a=r(69540),o=r(25482),l=r(10107),u=(r(44208),r(53966),r(87811),r(36005)),p=r(40608),c=r(43937),m=r(56400);function d(e,t){return s.A.fromJSON({value:e,unit:t})}let h=class extends((0,a.O)(o.oY)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new n.A({start:r,end:i})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i._)([(0,l.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i._)([(0,l.MZ)({type:n.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i._)([(0,u.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i._)([(0,c.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i._)([(0,l.MZ)({type:s.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i._)([(0,u.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i._)([(0,c.K)("interval")],h.prototype,"writeInterval",null),(0,i._)([(0,l.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i._)([(0,l.MZ)((0,m.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i._)([(0,l.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i._)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,i._)([(0,p.$)("esri.layers.support.TimeInfo")],h);const y=h},33446:(e,t,r)=>{r.d(t,{C:()=>a,m:()=>s});var i=r(49186),n=r(74887);async function s(e,t,r){let s;try{s=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,n.Te)(r),s}async function a(e,t,r,s,a){let o;try{o=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${s}`,{error:e,level:t,row:r,col:s})}return(0,n.Te)(a),o}},73133:(e,t,r)=>{r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5181],{52106:(e,t,r)=>{r.d(t,{A:()=>g});var i,n=r(90237),s=r(59456),a=r(13874),o=r(61147),l=r(69540),u=r(25482),p=r(36708),c=r(24326),m=r(10107),d=(r(44208),r(53966),r(87811),r(40608)),h=r(65864);function y(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let f=i=class extends((0,l.O)(u.oY)){constructor(e){super(e),this.isAggregate=!1,this.layer=null,this.origin=null,this.popupTemplate=null,this.sourceLayer=null,Object.defineProperty(this,"uid",{value:(0,c.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1})}initialize(){this._watchMeshGeometryChanges()}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),"mesh"!==e?.type&&this._notifyLayer("geometry",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new i({aggregateGeometries:this.aggregateGeometries,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const r of[t,this.sourceLayer,this.layer])if(r){if("popupTemplate"in r&&r.popupTemplate)return r.popupTemplate;if(e&&"defaultPopupTemplate"in r&&null!=r.defaultPopupTemplate)return r.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t},this._notifyLayer("attributes",void 0,t,e)}getObjectId(){return this.sourceLayer&&"objectIdField"in this.sourceLayer&&this.sourceLayer.objectIdField?this.getAttribute(this.sourceLayer.objectIdField):null}toJSON(){return{aggregateGeometries:y(this.aggregateGeometries),geometry:null!=this.geometry?this.geometry.toJSON():null,symbol:null!=this.symbol?this.symbol.toJSON():null,attributes:(0,u.Wj)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null}}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.addHandles([(0,p.z7)((()=>"mesh"===this.geometry?.type&&this.geometry.vertexSpace.origin?{localMatrix:this.geometry.transform?.localMatrix,origin:this.geometry.vertexSpace.origin}:void 0),(({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())})),(0,p.z7)((()=>"mesh"===this.geometry?.type?{vertexAttributes:this.geometry.vertexAttributes}:void 0),(()=>{const e=this.geometry;"mesh"===e?.type&&e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",this.geometry,this.geometry)}),{equals:(e,t)=>e===t,sync:!0})])}};(0,n._)([(0,m.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,h.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],f.prototype,"aggregateGeometries",null),(0,n._)([(0,m.MZ)({value:null})],f.prototype,"attributes",null),(0,n._)([(0,m.MZ)({value:null,types:s.yR,json:{read:h.rS}})],f.prototype,"geometry",null),(0,n._)([(0,m.MZ)({type:Boolean})],f.prototype,"isAggregate",void 0),(0,n._)([(0,m.MZ)({clonable:"reference"})],f.prototype,"layer",void 0),(0,n._)([(0,m.MZ)({clonable:"reference"})],f.prototype,"origin",void 0),(0,n._)([(0,m.MZ)({type:a.A})],f.prototype,"popupTemplate",void 0),(0,n._)([(0,m.MZ)({clonable:"reference"})],f.prototype,"sourceLayer",void 0),(0,n._)([(0,m.MZ)({value:null,types:o.Es})],f.prototype,"symbol",null),(0,n._)([(0,m.MZ)({type:Boolean,value:!0})],f.prototype,"visible",null),f=i=(0,n._)([(0,d.$)("esri.Graphic")],f),(f||(f={})).generateUID=c.c;const g=f},70668:(e,t,r)=>{r.d(t,{A:()=>m});var i=r(90237),n=r(69540),s=r(25482),a=r(88930),o=r(10107),l=(r(44208),r(53966),r(87811),r(93223)),u=r(40608),p=r(73133);let c=class extends((0,n.O)(s.oY)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,a.t)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.e)(p.j,{nonNullable:!0})],c.prototype,"unit",void 0),(0,i._)([(0,o.MZ)({type:Number,json:{write:!0},nonNullable:!0})],c.prototype,"value",void 0),c=(0,i._)([(0,u.$)("esri.TimeInterval")],c);const m=c},38961:(e,t,r)=>{r.d(t,{A:()=>u});var i=r(90237),n=r(5503),s=(r(60999),r(49186),r(53966),r(14012),r(80559)),a=r(10107),o=r(40608);let l=class extends n.A{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,s.fm)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new n.A(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const i of t)if(i){if(r(i)){const t=this.indexOf(i,e);t>=0?t!==e&&this.reorder(i,e):this.add(i,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(i);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,i._)([(0,a.MZ)()],l.prototype,"getCollections",void 0),(0,i._)([(0,a.MZ)()],l.prototype,"getChildrenFunction",void 0),(0,i._)([(0,a.MZ)()],l.prototype,"itemFilterFunction",void 0),l=(0,i._)([(0,o.$)("esri.core.CollectionFlattener")],l);const u=l},70328:(e,t,r)=>{r.d(t,{BI:()=>f,Ej:()=>p,Hq:()=>u,Ie:()=>h,Jt:()=>y,Ne:()=>c,RF:()=>o,aI:()=>b,fA:()=>s,hZ:()=>d,iT:()=>l,is:()=>g,qv:()=>v,vI:()=>m,v_:()=>w,vt:()=>n,w1:()=>a});var i=r(5443);function n(e=w){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function s(e,t,r,i,s,a,o=n()){return o[0]=e,o[1]=t,o[2]=r,o[3]=i,o[4]=s,o[5]=a,o}function a(e,t){const r=isFinite(e[2])||isFinite(e[5]);return new i.A(r?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function o(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function l(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function u(e,t,r=0,i=t.length/3){let n=e[0],s=e[1],a=e[2],o=e[3],l=e[4],u=e[5];for(let e=0;e<i;e++)n=Math.min(n,t[r+3*e]),s=Math.min(s,t[r+3*e+1]),a=Math.min(a,t[r+3*e+2]),o=Math.max(o,t[r+3*e]),l=Math.max(l,t[r+3*e+1]),u=Math.max(u,t[r+3*e+2]);e[0]=n,e[1]=s,e[2]=a,e[3]=o,e[4]=l,e[5]=u}function p(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function c(e,t,r=e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r!==e&&(r[3]=e[3],r[4]=e[4],r[5]=e[5]),r}function m(e,t,r=e){return r[3]=t[0],r[4]=t[1],r[5]=t[2],r!==e&&(r[0]=e[0],r[1]=e[1],r[2]=e[2]),e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function h(e){return e?d(e,v):n(v)}function y(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function f(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=Number.NEGATIVE_INFINITY,e[3]=i,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function g(e){return 6===e.length}function b(e,t,r){if(null==e||null==t)return e===t;if(!g(e)||!g(t))return!1;if(r){for(let i=0;i<e.length;i++)if(!r(e[i],t[i]))return!1}else for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}r(19419);const v=[1/0,1/0,1/0,-1/0,-1/0,-1/0],w=[0,0,0,0,0,0];n()},83960:(e,t,r)=>{r.d(t,{X_:()=>a,zx:()=>o});var i=r(34727),n=r(83047);const s=96;function a(e,t){const r=t||e.extent,i=e.width,a=(0,n.GA)(r?.spatialReference);return r&&i?r.width/i*a*n.dy*s:0}function o(e,t,r){return function(e,t){return 0===t||(0,i.Sp)(e,t)||e<t}(e,t)&&function(e,t){return 0===t||(0,i.Sp)(e,t)||e>t}(e,r)}},51904:(e,t,r)=>{r.r(t),r.d(t,{default:()=>xe});var i=r(90237),n=r(92602),s=r(52106),a=r(13874),o=r(78888),l=r(5503),u=r(38961),p=r(66552),c=r(4718),m=r(92071),d=r(74887),h=r(36708),y=r(84952),f=r(10107),g=r(56507),b=r(36005),v=r(40608),w=r(43937),_=r(49422),x=r(5443),M=r(16930),I=r(83960),S=r(21325),A=r(4146),E=r(63074),T=r(16131),N=r(8303),F=r(54310),O=r(25036),P=r(82935),Z=r(38458),U=r(60694),L=r(55785),R=r(69622);r(44208),r(53966),r(87811);const j={visible:"visibleSublayers"};let C=class extends R.A{constructor(e){super(e),this.scale=0}set layer(e){this._get("layer")!==e&&(this._set("layer",e),this.removeHandles("layer"),e&&this.addHandles([e.sublayers.on("change",(()=>this.notifyChange("visibleSublayers"))),e.on("wms-sublayer-update",(e=>this.notifyChange(j[e.propertyName])))],"layer"))}get layers(){return this.visibleSublayers.filter((({name:e})=>e)).map((({name:e})=>e)).join()}get version(){this.commitProperty("layers");const e=this.layer;return e&&e.commitProperty("imageTransparency"),(this._get("version")||0)+1}get visibleSublayers(){const{layer:e,scale:t}=this,r=e?.sublayers,i=[],n=e=>{const{minScale:r,maxScale:s,sublayers:a,visible:o}=e;o&&(0===t||(0===r||t<=r)&&(0===s||t>=s))&&(a?a.forEach(n):i.push(e))};return r?.forEach(n),i}toJSON(){const{layer:e,layers:t}=this,{imageFormat:r,imageTransparency:i,version:n}=e;return{format:r,request:"GetMap",service:"WMS",styles:"",transparent:i?"TRUE":"FALSE",version:n,layers:t}}};(0,i._)([(0,f.MZ)()],C.prototype,"layer",null),(0,i._)([(0,f.MZ)({readOnly:!0})],C.prototype,"layers",null),(0,i._)([(0,f.MZ)({type:Number})],C.prototype,"scale",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],C.prototype,"version",null),(0,i._)([(0,f.MZ)({readOnly:!0})],C.prototype,"visibleSublayers",null),C=(0,i._)([(0,v.$)("esri.layers.support.ExportWMSImageParameters")],C);var $,H=r(33446),B=r(4902),q=r(79901);let k=0,V=$=class extends((0,B.sA)(m.L)){constructor(e){super(e),this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.legendUrl=null,this.legendEnabled=!0,this.layer=null,this.maxScale=0,this.minScale=0,this.name=null,this.parent=null,this.popupEnabled=!1,this.queryable=!1,this.sublayers=null,this.spatialReferences=null,this.title=null,this.addHandles([(0,h.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=this,e.layer=this.layer}),h.OH),(0,h.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),h.OH),(0,h.wB)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=this,t.layer=this.layer}),h.OH),(0,h.wB)((()=>this.layer),(e=>{if(this.sublayers)for(const t of this.sublayers)t.layer=e}),h.OH)])}get id(){return this._get("id")??k++}set id(e){this._set("id",e)}readLegendUrl(e,t){return t.legendUrl??t.legendURL??null}get effectiveScaleRange(){const{minScale:e,maxScale:t}=this;return{minScale:e,maxScale:t}}castSublayers(e){return(0,g.dp)(l.A.ofType($),e)}set visible(e){this._setAndNotifyLayer("visible",e)}clone(){const e=new $;return this.hasOwnProperty("description")&&(e.description=this.description),this.hasOwnProperty("fullExtent")&&(e.fullExtent=this.fullExtent.clone()),this.hasOwnProperty("fullExtents")&&(e.fullExtents=this.fullExtents?.map((e=>e.clone()))??null),this.hasOwnProperty("legendUrl")&&(e.legendUrl=this.legendUrl),this.hasOwnProperty("legendEnabled")&&(e.legendEnabled=this.legendEnabled),this.hasOwnProperty("layer")&&(e.layer=this.layer),this.hasOwnProperty("name")&&(e.name=this.name),this.hasOwnProperty("parent")&&(e.parent=this.parent),this.hasOwnProperty("queryable")&&(e.queryable=this.queryable),this.hasOwnProperty("sublayers")&&(e.sublayers=this.sublayers?.map((e=>e.clone()))),this.hasOwnProperty("spatialReferences")&&(e.spatialReferences=this.spatialReferences?.map((e=>e))),this.hasOwnProperty("visible")&&(e.visible=this.visible),this.hasOwnProperty("title")&&(e.title=this.title),e}_setAndNotifyLayer(e,t){const r=this.layer;this._get(e)!==t&&(this._set(e,t),r&&r.emit("wms-sublayer-update",{propertyName:e,id:this.id}))}};(0,i._)([(0,f.MZ)()],V.prototype,"description",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],V.prototype,"dimensions",void 0),(0,i._)([(0,f.MZ)({type:x.A,json:{name:"extent"}})],V.prototype,"fullExtent",void 0),(0,i._)([(0,f.MZ)()],V.prototype,"fullExtents",void 0),(0,i._)([(0,f.MZ)({type:Number,json:{write:{enabled:!1,overridePolicy:()=>({ignoreOrigin:!0,enabled:!0})}}})],V.prototype,"id",null),(0,i._)([(0,f.MZ)({type:String,json:{name:"legendUrl",write:{ignoreOrigin:!0}}})],V.prototype,"legendUrl",void 0),(0,i._)([(0,b.w)("legendUrl",["legendUrl","legendURL"])],V.prototype,"readLegendUrl",null),(0,i._)([(0,f.MZ)({type:Boolean,json:{name:"showLegend",origins:{"web-map":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],V.prototype,"legendEnabled",void 0),(0,i._)([(0,f.MZ)()],V.prototype,"layer",void 0),(0,i._)([(0,f.MZ)()],V.prototype,"maxScale",void 0),(0,i._)([(0,f.MZ)()],V.prototype,"minScale",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],V.prototype,"effectiveScaleRange",null),(0,i._)([(0,f.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],V.prototype,"name",void 0),(0,i._)([(0,f.MZ)()],V.prototype,"parent",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{read:{source:"showPopup"},write:{ignoreOrigin:!0,target:"showPopup"}}})],V.prototype,"popupEnabled",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{write:{ignoreOrigin:!0}}})],V.prototype,"queryable",void 0),(0,i._)([(0,f.MZ)()],V.prototype,"sublayers",void 0),(0,i._)([(0,q.w)("sublayers")],V.prototype,"castSublayers",null),(0,i._)([(0,f.MZ)({type:[Number],json:{read:{source:"spatialReferences"}}})],V.prototype,"spatialReferences",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],V.prototype,"title",void 0),(0,i._)([(0,f.MZ)({type:Boolean,value:!0,json:{read:{source:"defaultVisibility"}}})],V.prototype,"visible",null),V=$=(0,i._)([(0,v.$)("esri.layers.support.WMSSublayer")],V);const D=V;var G=r(4576),W=r(49186);const J={84:4326,83:4269,27:4267};function X(e){if(!e)return null;const t={idCounter:-1};"string"==typeof e&&(e=(new DOMParser).parseFromString(e,"text/xml"));const r=e.documentElement;if("ServiceExceptionReport"===r.nodeName){const e=Array.prototype.slice.call(r.childNodes).map((e=>e.textContent)).join("\r\n");throw new W.A("wmslayer:wms-capabilities-xml-is-not-valid","The server returned errors when the WMS capabilities were requested.",e)}const i=K("Capability",r),n=K("Service",r),s=i&&K("Request",i);if(!i||!n||!s)return null;const a=K("Layer",i);if(!a)return null;const o="WMS_Capabilities"===r.nodeName||"WMT_MS_Capabilities"===r.nodeName?r.getAttribute("version"):"1.3.0",l=te("Title",n,"")||te("Name",n,""),u=te("AccessConstraints",n,""),p=/^none$/i.test(u)?"":u,c=te("Abstract",n,""),m=parseInt(te("MaxWidth",n,"5000"),10),d=parseInt(te("MaxHeight",n,"5000"),10),h=ne(s,"GetMap"),y=ie(s,"GetMap"),f=ae(a,o,t);if(!f)return null;let g,b=0;const v=Array.prototype.slice.call(i.childNodes),w=f.sublayers??[],_=e=>{null!=e&&w.push(e)};v.forEach((e=>{"Layer"===e.nodeName&&(0===b?g=e:1===b?(f.name&&(f.name="",_(ae(g,o,t))),_(ae(e,o,t))):_(ae(e,o,t)),b++)}));let M=f.sublayers,I=f.extent;const S=f.fullExtents??[];if(M||(M=[]),0===M.length&&M.push(f),!I){const e=new x.A(M[0].extent);f.extent=e.toJSON(),I=f.extent}const A=f.spatialReferences.length>0?f.spatialReferences:z(f),E=ie(s,"GetFeatureInfo"),T=E?ne(s,"GetFeatureInfo"):null,N=Q(M),F=f.minScale||0,O=f.maxScale||0,P=f.dimensions??[],Z=N.reduce(((e,t)=>e.concat(t.dimensions??[])),[]),U=P.concat(Z).filter(le);let L=null;if(U.length){const e=U.map((e=>{const{extent:t}=e;return function(e){return Array.isArray(e)&&e.length>0&&e[0]instanceof Date}(t)?t.map((e=>e.getTime())):t?.map((e=>[e.min.getTime(),e.max.getTime()]))})).flat(2).filter(G.Ru);L={startTimeField:null,endTimeField:null,trackIdField:void 0,timeExtent:[Math.min(...e),Math.max(...e)]}}return{copyright:p,description:c,dimensions:P,extent:I,fullExtents:S,featureInfoFormats:T,featureInfoUrl:E,mapUrl:y,maxWidth:m,maxHeight:d,maxScale:O,minScale:F,layers:N,spatialReferences:A,supportedImageFormatTypes:h,timeInfo:L,title:l,version:o}}function z(e){if(e.spatialReferences.length>0)return e.spatialReferences;if(e.sublayers)for(const t of e.sublayers){const e=z(t);if(e.length>0)return e}return[]}function Q(e){let t=[];for(const r of e)t.push(r),r.sublayers?.length&&(t=t.concat(Q(r.sublayers)),delete r.sublayers);return t}function Y(e,t,r){return t.getAttribute(e)??r}function K(e,t){for(let r=0;r<t.childNodes.length;r++){const i=t.childNodes[r];if(oe(i)&&i.nodeName===e)return i}return null}function ee(e,t){if(null==t)return[];const r=[];for(let i=0;i<t.childNodes.length;i++){const n=t.childNodes[i];oe(n)&&n.nodeName===e&&r.push(n)}return r}function te(e,t,r){return K(e,t)?.textContent??r}function re(e,t,r){if(!e)return null;const i=parseFloat(e.getAttribute("minx")),n=parseFloat(e.getAttribute("miny")),s=parseFloat(e.getAttribute("maxx")),a=parseFloat(e.getAttribute("maxy"));let o,l,u,p;r?(o=isNaN(n)?-Number.MAX_VALUE:n,l=isNaN(i)?-Number.MAX_VALUE:i,u=isNaN(a)?Number.MAX_VALUE:a,p=isNaN(s)?Number.MAX_VALUE:s):(o=isNaN(i)?-Number.MAX_VALUE:i,l=isNaN(n)?-Number.MAX_VALUE:n,u=isNaN(s)?Number.MAX_VALUE:s,p=isNaN(a)?Number.MAX_VALUE:a);const c=new M.A({wkid:t});return new x.A({xmin:o,ymin:l,xmax:u,ymax:p,spatialReference:c})}function ie(e,t){const r=K(t,e);if(r){const e=K("DCPType",r);if(e){const t=K("HTTP",e);if(t){const e=K("Get",t);if(e){let t=function(e,t,r,i){const n=K("OnlineResource",r);return n?Y("xlink:href",n,null):null}(0,0,e);if(t)return t.indexOf("&")===t.length-1&&(t=t.substring(0,t.length-1)),function(e,t){const r=[],i=(0,y.An)(e);for(const e in i.query)i.query.hasOwnProperty(e)&&(t.includes(e.toLowerCase())||r.push(e+"="+i.query[e]));return i.path+(r.length?"?"+r.join("&"):"")}(t,["service","request"])}}}}return null}function ne(e,t){const r=ee("Operation",e);if(!r.length)return ee("Format",K(t,e)).map((({textContent:e})=>e)).filter(G.Ru);const i=[];for(const e of r)if(e.getAttribute("name")===t){const t=ee("Format",e);for(const{textContent:e}of t)null!=e&&i.push(e)}return i}function se(e,t,r){const i=K(t,e);if(!i)return r;const{textContent:n}=i;if(null==n||""===n)return r;const s=Number(n);return isNaN(s)?r:s}function ae(e,t,r){if(!e)return null;const i={id:r.idCounter++,fullExtents:[],parentLayerId:null,queryable:"1"===e.getAttribute("queryable"),spatialReferences:[],sublayers:null},n=K("LatLonBoundingBox",e),s=K("EX_GeographicBoundingBox",e);let a=null;n&&(a=re(n,4326)),s&&(a=new x.A(0,0,0,0,new M.A({wkid:4326})),a.xmin=parseFloat(te("westBoundLongitude",s,"0")),a.ymin=parseFloat(te("southBoundLatitude",s,"0")),a.xmax=parseFloat(te("eastBoundLongitude",s,"0")),a.ymax=parseFloat(te("northBoundLatitude",s,"0"))),n||s||(a=new x.A(-180,-90,180,90,new M.A({wkid:4326}))),i.minScale=se(e,"MaxScaleDenominator",0),i.maxScale=se(e,"MinScaleDenominator",0);const o=["1.0.0","1.1.0","1.1.1"].includes(t)?"SRS":"CRS";return Array.prototype.slice.call(e.childNodes).forEach((e=>{if("Name"===e.nodeName)i.name=e.textContent||"";else if("Title"===e.nodeName)i.title=e.textContent||"";else if("Abstract"===e.nodeName)i.description=e.textContent||"";else if("BoundingBox"===e.nodeName){const r=e.getAttribute(o);if(r&&0===r.indexOf("EPSG:")){const i=parseInt(r.substring(5),10);0===i||isNaN(i)||a||(a="1.3.0"===t?re(e,i,(0,Z.m)(i)):re(e,i))}const n=r&&r.indexOf(":");if(n&&n>-1){let s=parseInt(r.substring(n+1,r.length),10);0===s||isNaN(s)||(s=J[s]??s);const a="1.3.0"===t?re(e,s,(0,Z.m)(s)):re(e,s);a&&i.fullExtents&&i.fullExtents.push(a)}}else if(e.nodeName===o)(e.textContent?.split(" ")??[]).forEach((e=>{const t=e.includes(":")?parseInt(e.split(":")[1],10):parseInt(e,10);if(0!==t&&!isNaN(t)){const e=J[t]??t;i.spatialReferences.includes(e)||i.spatialReferences.push(e)}}));else if("Style"!==e.nodeName||i.legendUrl){if("Layer"===e.nodeName){const n=ae(e,t,r);n&&(n.parentLayerId=i.id,i.sublayers||(i.sublayers=[]),i.sublayers.push(n))}}else{const t=K("LegendURL",e);if(t){const e=K("OnlineResource",t);e&&(i.legendUrl=e.getAttribute("xlink:href"))}}})),i.extent=a?.toJSON(),i.dimensions=ee("Dimension",e).filter((e=>e.getAttribute("name")&&e.getAttribute("units")&&e.textContent)).map((e=>{const t=e.getAttribute("name"),r=e.getAttribute("units"),i=e.textContent,n=e.getAttribute("unitSymbol")??void 0,s=e.getAttribute("default")??void 0,a="0"!==Y("default",e,"0"),o="0"!==Y("nearestValue",e,"0"),l="0"!==Y("current",e,"0");return le({name:t,units:r})?{name:"time",units:"ISO8601",extent:ce(i),default:ce(s),multipleValues:a,nearestValue:o,current:l}:function(e){return/^elevation$/i.test(e.name)&&/^(epsg|crs):\d+$/i.test(e.units)}({name:t,units:r})?{name:"elevation",units:r,extent:ue(i),unitSymbol:n,default:ue(s),multipleValues:a,nearestValue:o}:{name:t,units:r,extent:pe(i),unitSymbol:n,default:pe(s),multipleValues:a,nearestValue:o}})),i}function oe(e){return e.nodeType===Node.ELEMENT_NODE}function le(e){return/^time$/i.test(e.name)&&/^iso8601$/i.test(e.units)}function ue(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:parseFloat(t[0]),max:parseFloat(t[1]),resolution:t.length>=3&&"0"!==t[2]?parseFloat(t[2]):void 0}})).filter(G.Ru):r.map((e=>parseFloat(e)))}function pe(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:t[0],max:t[1],resolution:t.length>=3&&"0"!==t[2]?t[2]:void 0}})).filter(G.Ru):r}function ce(e){if(!e)return;const t=e.includes("/"),r=e.split(",");return t?r.map((e=>{const t=e.split("/");return t.length<2?null:{min:new Date(t[0]),max:new Date(t[1]),resolution:t.length>=3&&"0"!==t[2]?me(t[2]):void 0}})).filter(G.Ru):r.map((e=>new Date(e)))}function me(e){const t=e.match(/(?:p(\d+y|\d+(?:\.|,)\d+y)?(\d+m|\d+(?:\.|,)\d+m)?(\d+d|\d+(?:\.|,)\d+d)?)?(?:t(\d+h|\d+(?:\.|,)\d+h)?(\d+m|\d+(?:\.|,)\d+m)?(\d+s|\d+(?:\.|,)\d+s)?)?/i);return t?{years:de(t[1]),months:de(t[2]),days:de(t[3]),hours:de(t[4]),minutes:de(t[5]),seconds:de(t[6])}:null}function de(e){if(!e)return 0;const t=e.match(/(?:\d+(?:\.|,)\d+|\d+)/);if(!t)return 0;const r=t[0].replace(",",".");return Number(r)}function he(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}const ye=new Set([102100,3857,102113,900913]),fe=new Set([3395,54004]),ge=new p.J({bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"},{ignoreUnknown:!1});function be(e){return"text/html"===e}function ve(e){return"text/plain"===e}let we=class extends((0,E.d)((0,P.e)((0,F.J)((0,O.j)((0,T.q)((0,N.A)((0,m.P)(A.A)))))))){constructor(...e){super(...e),this.allSublayers=new u.A({getCollections:()=>[this.sublayers],getChildrenFunction:e=>e.sublayers}),this.customParameters=null,this.customLayerParameters=null,this.copyright=null,this.description=null,this.dimensions=null,this.fullExtent=null,this.fullExtents=null,this.featureInfoFormats=null,this.featureInfoUrl=null,this.fetchFeatureInfoFunction=null,this.imageFormat=null,this.imageMaxHeight=2048,this.imageMaxWidth=2048,this.imageTransparency=!0,this.legendEnabled=!0,this.mapUrl=null,this.isReference=null,this.operationalLayerType="WMS",this.spatialReference=null,this.spatialReferences=null,this.sublayers=null,this.type="wms",this.version=null,this.addHandles([(0,h.on)((()=>this.sublayers),"after-add",(({item:e})=>{e.parent=e.layer=this}),h.OH),(0,h.on)((()=>this.sublayers),"after-remove",(({item:e})=>{e.layer=e.parent=null}),h.OH),(0,h.wB)((()=>this.sublayers),((e,t)=>{if(t)for(const e of t)e.layer=e.parent=null;if(e)for(const t of e)t.parent=t.layer=this}),h.OH)])}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}destroy(){this.allSublayers.destroy()}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WMS"]},e).catch(d.QP).then((()=>this._fetchService(t)))),Promise.resolve(this)}readFullExtentFromItemOrMap(e,t){const r=t.extent;return r?new x.A({xmin:r[0][0],ymin:r[0][1],xmax:r[1][0],ymax:r[1][1]}):null}writeFullExtent(e,t){t.extent=[[e.xmin,e.ymin],[e.xmax,e.ymax]]}get featureInfoFormat(){return null==this.featureInfoFormats?null:this.featureInfoFormats.find(be)??this.featureInfoFormats.find(ve)??null}set featureInfoFormat(e){null==e?(this.revert("featureInfoFormat","service"),this._clearOverride("featureInfoFormat")):(be(e)||ve(e))&&this._override("featureInfoFormat",e)}readImageFormat(e,t){const r=t.supportedImageFormatTypes;return r&&r.includes("image/png")?"image/png":r&&r[0]}readSpatialReferenceFromItemOrDocument(e,t){return new M.A(t.spatialReferences[0])}writeSpatialReferences(e,t){const r=this.spatialReference?.wkid;e&&r?(t.spatialReferences=e.filter((e=>e!==r)),t.spatialReferences.unshift(r)):t.spatialReferences=e}readSublayersFromItemOrMap(e,t,r){return _e(t.layers,r,t.visibleLayers)}readSublayers(e,t,r){return _e(t.layers,r)}writeSublayers(e,t,r,i){t.layers=[];const n=new Map,s=e.flatten((({sublayers:e})=>e??[]));for(const e of s)if("number"==typeof e.parent?.id){const t=n.get(e.parent.id);null!=t?t.push(e.id):n.set(e.parent.id,[e.id])}for(const e of s){const r={sublayer:e,...i},s=e.write({parentLayerId:"number"==typeof e.parent?.id?e.parent.id:-1},r);if(n.has(e.id)&&(s.sublayerIds=n.get(e.id)),!e.sublayers&&e.name){const i=e.write({},r);delete i.id,t.layers.push(i)}}t.visibleLayers=s.filter((({visible:e,sublayers:t})=>e&&!t)).map((({name:e})=>e)).toArray()}set url(e){if(!e)return void this._set("url",e);const{path:t,query:r}=(0,y.An)(e);for(const e in r)/^(request|service)$/i.test(e)&&delete r[e];const i=(0,y.a6)(t,r??{});this._set("url",i)}createExportImageParameters(e,t,r,i){const n=i?.pixelRatio??1,s=(0,I.X_)({extent:e,width:t})*n,a=new C({layer:this,scale:s}),{xmin:o,ymin:l,xmax:u,ymax:p,spatialReference:c}=e,m=function(e,t){let r=e.wkid;return null==t?r:(null!=r&&t.includes(r)||!e.latestWkid||(r=e.latestWkid),null!=r&&ye.has(r)?t.find((e=>ye.has(e)))||t.find((e=>fe.has(e)))||102100:r)}(c,this.spatialReferences),d="1.3.0"===this.version&&(0,Z.m)(m)?`${l},${o},${p},${u}`:`${o},${l},${u},${p}`,h=a.toJSON(),y="1.3.0"===this.version?"crs":"srs";return{bbox:d,[y]:null==m||isNaN(m)?void 0:"EPSG:"+m,...h}}async fetchImage(e,t,r,i){const n=this.mapUrl,s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const a=i?.timeExtent?.start,l=i?.timeExtent?.end,u=null!=a&&null!=l?a.getTime()===l.getTime()?he(a):`${he(a)}/${he(l)}`:void 0,p={responseType:"image",query:this._mixCustomParameters({width:t,height:r,...s,time:u,...this.refreshParameters}),signal:i?.signal};return(0,o.A)(n??"",p).then((e=>e.data))}async fetchImageBitmap(e,t,r,i){const n=this.mapUrl??"",s=this.createExportImageParameters(e,t,r,i);if(!s.layers){const e=document.createElement("canvas");return e.width=t,e.height=r,e}const a=i?.timeExtent?.start,l=i?.timeExtent?.end,u=null!=a&&null!=l?a.getTime()===l.getTime()?he(a):`${he(a)}/${he(l)}`:void 0,p={responseType:"blob",query:this._mixCustomParameters({width:t,height:r,...s,time:u,...this.refreshParameters}),signal:i?.signal},{data:c}=await(0,o.A)(n,p);return(0,H.m)(c,n,i?.signal)}fetchFeatureInfo(e,t,r,i,n){const s=(0,I.X_)({extent:e,width:t}),a=function(e){const t=e.filter((e=>e.popupEnabled&&e.name&&e.queryable));return t.length?t.map((({name:e})=>e)).join():null}(new C({layer:this,scale:s}).visibleSublayers);if(null==this.featureInfoUrl||null==a)return Promise.resolve([]);if(null==this.fetchFeatureInfoFunction&&null==this.featureInfoFormat)return Promise.resolve([]);const o="1.3.0"===this.version?{I:i,J:n}:{x:i,y:n},l={query_layers:a,request:"GetFeatureInfo",info_format:this.featureInfoFormat,feature_count:25,width:t,height:r,...o},u={...this.createExportImageParameters(e,t,r),...l},p=this._mixCustomParameters(u);return null!=this.fetchFeatureInfoFunction?this.fetchFeatureInfoFunction(p):this._defaultFetchFeatureInfoFunction((0,y.a6)(this.featureInfoUrl,p))}findSublayerById(e){return this.allSublayers.find((t=>t.id===e))}findSublayerByName(e){return this.allSublayers.find((t=>t.name===e))}serviceSupportsSpatialReference(e){return(0,U.bd)(this.url)||null!=this.spatialReferences&&this.spatialReferences.some((t=>{const r=900913===t?M.A.WebMercator:new M.A({wkid:t});return(0,S.aI)(r,e)}))}_defaultFetchFeatureInfoFunction(e){const t=document.createElement("iframe");t.src=(0,y.yM)(e),t.style.border="none",t.style.margin="0",t.style.width="100%",t.setAttribute("sandbox","");const r=new a.A({title:this.title,content:t}),i=new s.A({sourceLayer:this,popupTemplate:r});return Promise.resolve([i])}async _fetchService(e){if(!this.resourceInfo&&this.parsedUrl?.path){const{path:t,query:r}=this.parsedUrl,{data:i}=await(0,o.A)(t,{query:{SERVICE:"WMS",REQUEST:"GetCapabilities",...r,...this.customParameters},responseType:"xml",signal:e});this.resourceInfo=X(i)}if(this.parsedUrl){const e=new y.s0(this.parsedUrl.path),{httpsDomains:t}=n.A.request;"https"!==e.scheme||e.port&&"443"!==e.port||!e.host||t.includes(e.host)||t.push(e.host)}this.read(this.resourceInfo,{origin:"service"})}_mixCustomParameters(e){if(!this.customLayerParameters&&!this.customParameters)return e;const t={...this.customParameters,...this.customLayerParameters};for(const r in t)e[r.toLowerCase()]=t[r];return e}};function _e(e,t,r){e=e??[];const i=new Map;e.every((e=>null==e.id))&&(e=(0,c.o8)(e)).forEach(((e,t)=>e.id=t));for(const n of e){const e=new D;e.read(n,t),r&&!r.includes(e.name)&&(e.visible=!1),i.set(e.id,e)}const n=[];for(const t of e){const e=null!=t.id?i.get(t.id):null;if(e)if(null!=t.parentLayerId&&t.parentLayerId>=0){const r=i.get(t.parentLayerId);if(!r)continue;r.sublayers||(r.sublayers=new l.A),r.sublayers.push(e)}else n.push(e)}return n}(0,i._)([(0,f.MZ)({readOnly:!0})],we.prototype,"allSublayers",void 0),(0,i._)([(0,f.MZ)({json:{type:Object,write:!0}})],we.prototype,"customParameters",void 0),(0,i._)([(0,f.MZ)({json:{type:Object,write:!0}})],we.prototype,"customLayerParameters",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:!0}})],we.prototype,"copyright",void 0),(0,i._)([(0,f.MZ)()],we.prototype,"description",void 0),(0,i._)([(0,f.MZ)({readOnly:!0})],we.prototype,"dimensions",void 0),(0,i._)([(0,f.MZ)({json:{type:[[Number]],read:{source:"extent"},write:{target:"extent"},origins:{"web-document":{write:{ignoreOrigin:!0}},"portal-item":{write:{ignoreOrigin:!0}}}}})],we.prototype,"fullExtent",void 0),(0,i._)([(0,b.w)(["web-document","portal-item"],"fullExtent",["extent"])],we.prototype,"readFullExtentFromItemOrMap",null),(0,i._)([(0,w.K)(["web-document","portal-item"],"fullExtent",{extent:{type:[[Number]]}})],we.prototype,"writeFullExtent",null),(0,i._)([(0,f.MZ)()],we.prototype,"fullExtents",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],we.prototype,"featureInfoFormat",null),(0,i._)([(0,f.MZ)({type:[String],readOnly:!0})],we.prototype,"featureInfoFormats",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],we.prototype,"featureInfoUrl",void 0),(0,i._)([(0,f.MZ)()],we.prototype,"fetchFeatureInfoFunction",void 0),(0,i._)([(0,f.MZ)({type:String,json:{origins:{"web-document":{default:"image/png",type:ge.jsonValues,read:{reader:ge.read,source:"format"},write:{writer:ge.write,target:"format"}}}}})],we.prototype,"imageFormat",void 0),(0,i._)([(0,b.w)("imageFormat",["supportedImageFormatTypes"])],we.prototype,"readImageFormat",null),(0,i._)([(0,f.MZ)({type:Number,json:{read:{source:"maxHeight"},write:{target:"maxHeight"}}})],we.prototype,"imageMaxHeight",void 0),(0,i._)([(0,f.MZ)({type:Number,json:{read:{source:"maxWidth"},write:{target:"maxWidth"}}})],we.prototype,"imageMaxWidth",void 0),(0,i._)([(0,f.MZ)()],we.prototype,"imageTransparency",void 0),(0,i._)([(0,f.MZ)(L.fV)],we.prototype,"legendEnabled",void 0),(0,i._)([(0,f.MZ)({type:["show","hide","hide-children"]})],we.prototype,"listMode",void 0),(0,i._)([(0,f.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],we.prototype,"mapUrl",void 0),(0,i._)([(0,f.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],we.prototype,"isReference",void 0),(0,i._)([(0,f.MZ)({type:["WMS"]})],we.prototype,"operationalLayerType",void 0),(0,i._)([(0,f.MZ)()],we.prototype,"resourceInfo",void 0),(0,i._)([(0,f.MZ)({type:M.A,json:{origins:{service:{read:{source:"extent.spatialReference"}}},write:!1}})],we.prototype,"spatialReference",void 0),(0,i._)([(0,b.w)(["web-document","portal-item"],"spatialReference",["spatialReferences"])],we.prototype,"readSpatialReferenceFromItemOrDocument",null),(0,i._)([(0,f.MZ)({type:[g.jz],json:{read:!1,origins:{service:{read:!0},"web-document":{read:!1,write:{ignoreOrigin:!0}},"portal-item":{read:!1,write:{ignoreOrigin:!0}}}}})],we.prototype,"spatialReferences",void 0),(0,i._)([(0,w.K)(["web-document","portal-item"],"spatialReferences")],we.prototype,"writeSpatialReferences",null),(0,i._)([(0,f.MZ)({type:l.A.ofType(D),json:{write:{target:"layers",overridePolicy(e,t,r){if(function(e,t){return e.some((e=>{for(const r in e)if((0,_.R)(e,r,null,t))return!0;return!1}))}(this.allSublayers,r))return{ignoreOrigin:!0}}}}})],we.prototype,"sublayers",void 0),(0,i._)([(0,b.w)(["web-document","portal-item"],"sublayers",["layers","visibleLayers"])],we.prototype,"readSublayersFromItemOrMap",null),(0,i._)([(0,b.w)("service","sublayers",["layers"])],we.prototype,"readSublayers",null),(0,i._)([(0,w.K)("sublayers",{layers:{type:[D]},visibleLayers:{type:[String]}})],we.prototype,"writeSublayers",null),(0,i._)([(0,f.MZ)({json:{read:!1},readOnly:!0,value:"wms"})],we.prototype,"type",void 0),(0,i._)([(0,f.MZ)(L.OZ)],we.prototype,"url",null),(0,i._)([(0,f.MZ)({type:String,json:{write:{ignoreOrigin:!0}}})],we.prototype,"version",void 0),we=(0,i._)([(0,v.$)("esri.layers.WMSLayer")],we);const xe=we},8303:(e,t,r)=>{r.d(t,{A:()=>x});var i=r(90237),n=r(92602),s=r(70333),a=r(78888),o=r(60999),l=r(49186),u=r(53966),p=r(97768),c=r(74887),m=r(84952),d=r(10107),h=(r(44208),r(87811),r(36005)),y=r(40608),f=r(43937),g=r(83531),b=r(20655),v=r(80812),w=r(41318),_=r(10407);const x=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new v.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await Promise.all([r.e(5356),r.e(8823)]).then(r.bind(r,41204));return(0,c.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.QP)(e),!0))))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,c.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=e===r.id;if(i&&r.portal.user)return(0,_.It)(r);let n,a;if(i)n=r.portal.url;else try{n=await(0,g.wI)(this.url,t)}catch(e){(0,c.QP)(e)}if(!n||!(0,m.b8)(n,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(s.id?.getCredential(`${n}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.QP)(e)}const o=!0,l=!1,u=!1;if(!a)return{features:{edit:o,fullEdit:l},content:{updateItem:u}};try{if(i?await r.reload():(r=new v.default({id:e,portal:{url:n}}),await r.load(t)),r.portal.user)return(0,_.It)(r)}catch(e){(0,c.QP)(e)}return{features:{edit:o,fullEdit:l},content:{updateItem:u}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const r=M.credential===t?M.user:await this._fetchEditingUser(e);return M.credential=t,M.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=s.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=b.A.getDefault();if(n&&n.loaded&&(0,m.S8)(n.restUrl)===(0,m.S8)(i))return n.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,o.Ke)((0,a.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||b.A.getDefault());return r&&i&&!(0,m.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,d.MZ)({type:v.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.w)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.K)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,d.MZ)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,d.MZ)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,y.$)("esri.layers.mixins.PortalLayer")],t),t},M={credential:null,user:null}},82935:(e,t,r)=>{r.d(t,{e:()=>m});var i=r(90237),n=r(60945),s=r(70668),a=r(10107),o=(r(44208),r(53966),r(87811),r(36005)),l=r(40608),u=r(30524),p=r(96184),c=r(73133);const m=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=c.j.fromJSON(r.timeOffsetUnits);return i&&n?new s.A({value:i,unit:n}):null}set timeInfo(e){(0,u.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,a.MZ)({type:n.A,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,a.MZ)({type:s.A})],t.prototype,"timeOffset",void 0),(0,i._)([(0,o.w)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,a.MZ)({value:null,type:p.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,a.MZ)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.$)("esri.layers.mixins.TemporalLayer")],t),t}},38458:(e,t,r)=>{r.d(t,{m:()=>n});const i=[[3819,3819],[3821,3824],[3889,3889],[3906,3906],[4001,4025],[4027,4036],[4039,4047],[4052,4055],[4074,4075],[4080,4081],[4120,4176],[4178,4185],[4188,4216],[4218,4289],[4291,4304],[4306,4319],[4322,4326],[4463,4463],[4470,4470],[4475,4475],[4483,4483],[4490,4490],[4555,4558],[4600,4646],[4657,4765],[4801,4811],[4813,4821],[4823,4824],[4901,4904],[5013,5013],[5132,5132],[5228,5229],[5233,5233],[5246,5246],[5252,5252],[5264,5264],[5324,5340],[5354,5354],[5360,5360],[5365,5365],[5370,5373],[5381,5381],[5393,5393],[5451,5451],[5464,5464],[5467,5467],[5489,5489],[5524,5524],[5527,5527],[5546,5546],[2044,2045],[2081,2083],[2085,2086],[2093,2093],[2096,2098],[2105,2132],[2169,2170],[2176,2180],[2193,2193],[2200,2200],[2206,2212],[2319,2319],[2320,2462],[2523,2549],[2551,2735],[2738,2758],[2935,2941],[2953,2953],[3006,3030],[3034,3035],[3038,3051],[3058,3059],[3068,3068],[3114,3118],[3126,3138],[3150,3151],[3300,3301],[3328,3335],[3346,3346],[3350,3352],[3366,3366],[3389,3390],[3416,3417],[3833,3841],[3844,3850],[3854,3854],[3873,3885],[3907,3910],[4026,4026],[4037,4038],[4417,4417],[4434,4434],[4491,4554],[4839,4839],[5048,5048],[5105,5130],[5253,5259],[5269,5275],[5343,5349],[5479,5482],[5518,5519],[5520,5520],[20004,20032],[20064,20092],[21413,21423],[21473,21483],[21896,21899],[22171,22177],[22181,22187],[22191,22197],[25884,25884],[27205,27232],[27391,27398],[27492,27492],[28402,28432],[28462,28492],[30161,30179],[30800,30800],[31251,31259],[31275,31279],[31281,31290],[31466,31700]];function n(e){return null!=e&&i.some((([t,r])=>e>=t&&e<=r))}},96184:(e,t,r)=>{r.d(t,{A:()=>y});var i=r(90237),n=r(60945),s=r(70668),a=r(69540),o=r(25482),l=r(10107),u=(r(44208),r(53966),r(87811),r(36005)),p=r(40608),c=r(43937),m=r(56400);function d(e,t){return s.A.fromJSON({value:e,unit:t})}let h=class extends((0,a.O)(o.oY)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new n.A({start:r,end:i})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i._)([(0,l.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i._)([(0,l.MZ)({type:n.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i._)([(0,u.w)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i._)([(0,c.K)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i._)([(0,l.MZ)({type:s.A,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i._)([(0,u.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i._)([(0,c.K)("interval")],h.prototype,"writeInterval",null),(0,i._)([(0,l.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i._)([(0,l.MZ)((0,m.P6)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i._)([(0,l.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i._)([(0,l.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,i._)([(0,p.$)("esri.layers.support.TimeInfo")],h);const y=h},33446:(e,t,r)=>{r.d(t,{C:()=>a,m:()=>s});var i=r(49186),n=r(74887);async function s(e,t,r){let s;try{s=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,n.Te)(r),s}async function a(e,t,r,s,a){let o;try{o=await createImageBitmap(e)}catch(e){throw new i.A("request:server",`Unable to load tile ${t}/${r}/${s}`,{error:e,level:t,row:r,col:s})}return(0,n.Te)(a),o}},73133:(e,t,r)=>{r.d(t,{j:()=>i});const i=(0,r(66552).O)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})}}]);