@arcgis/core 4.30.0-next.20240213 → 4.30.0-next.20240215

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 (193) hide show
  1. package/TimeExtent.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/08ba549f9c4afc42a21c.js +1 -0
  4. package/assets/esri/core/workers/chunks/114afcee6a66415cd123.js +1 -0
  5. package/assets/esri/core/workers/chunks/1320562881294ce93806.js +1 -0
  6. package/assets/esri/core/workers/chunks/13451fa3e4b02ca2beb0.js +1 -0
  7. package/assets/esri/core/workers/chunks/{a384f29cb3256401962a.js → 1629a8c2085dce59cd1b.js} +1 -1
  8. package/assets/esri/core/workers/chunks/18512caeeb03b9759ab1.js +1 -0
  9. package/assets/esri/core/workers/chunks/{cc1c958aad790a44048b.js → 1ca28af7c516d8283bb0.js} +1 -1
  10. package/assets/esri/core/workers/chunks/1f8a0fb32b96e50f5909.js +1 -0
  11. package/assets/esri/core/workers/chunks/{abab3abb8ea7610d9fb8.js → 21e7a88478f5d15e0e71.js} +1 -1
  12. package/assets/esri/core/workers/chunks/24452a26b0c5322c7d2b.js +1 -0
  13. package/assets/esri/core/workers/chunks/25b88787ead0cc44cda4.js +1 -0
  14. package/assets/esri/core/workers/chunks/2649166d1a462c7f8338.js +1 -0
  15. package/assets/esri/core/workers/chunks/2c96771a365f8f70e996.js +1 -0
  16. package/assets/esri/core/workers/chunks/352e7f8d694f3f217a2d.js +1 -0
  17. package/assets/esri/core/workers/chunks/392214a3a1d712eda155.js +1 -0
  18. package/assets/esri/core/workers/chunks/397f15b5bce6838db084.js +1 -0
  19. package/assets/esri/core/workers/chunks/3bf281e979408b9363ed.js +1 -0
  20. package/assets/esri/core/workers/chunks/4edc667148d023b5b5af.js +1 -0
  21. package/assets/esri/core/workers/chunks/51e4f771bfe352967c97.js +1 -0
  22. package/assets/esri/core/workers/chunks/55cd747e06bb59d1a328.js +1 -0
  23. package/assets/esri/core/workers/chunks/5638d95e600ff271c5b1.js +1 -0
  24. package/assets/esri/core/workers/chunks/563d172caa15ea1b510d.js +1108 -0
  25. package/assets/esri/core/workers/chunks/58f088b08e12c5435dbc.js +1 -0
  26. package/assets/esri/core/workers/chunks/5aef1e898618f8dda2c9.js +1 -0
  27. package/assets/esri/core/workers/chunks/608be8ebf772aefc36a5.js +1 -0
  28. package/assets/esri/core/workers/chunks/64df2521b2814d2fb918.js +1 -0
  29. package/assets/esri/core/workers/chunks/65070fb591f6ef8313c3.js +1 -0
  30. package/assets/esri/core/workers/chunks/656ec8a14df0e4b68433.js +1 -0
  31. package/assets/esri/core/workers/chunks/6601fe99d587b9dff3c7.js +1 -0
  32. package/assets/esri/core/workers/chunks/{274e623323e24250ca46.js → 6ac424af4f2825fabceb.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{eb2d6f1ee63b40ae0736.js → 774b655498289b1b36bb.js} +1 -1
  34. package/assets/esri/core/workers/chunks/781bb63af571568358e3.js +1 -0
  35. package/assets/esri/core/workers/chunks/9e54d2cbe42f5552aaca.js +1 -0
  36. package/assets/esri/core/workers/chunks/{f03d62ab7806b68d0b62.js → 9fbf61675e2a5374f754.js} +1 -1
  37. package/assets/esri/core/workers/chunks/a5253543eae1708d11b9.js +1 -0
  38. package/assets/esri/core/workers/chunks/aa9b46bcb75c96731de3.js +1 -0
  39. package/assets/esri/core/workers/chunks/cfb8b6b5e9c21d582cf4.js +1 -0
  40. package/assets/esri/core/workers/chunks/d1b2372084c1e8c60f79.js +1 -0
  41. package/assets/esri/core/workers/chunks/{1c6914ded7db720f7bf7.js → daf6eab5dd198ca9a67b.js} +1 -1
  42. package/assets/esri/core/workers/chunks/e03edeaf3af46495449e.js +1 -0
  43. package/assets/esri/core/workers/chunks/e685214698fbc84276dd.js +1 -0
  44. package/assets/esri/core/workers/chunks/ebb294c82207f3ff9f04.js +1 -0
  45. package/assets/esri/core/workers/chunks/ec20e23aec9370df8a55.js +1 -0
  46. package/assets/esri/core/workers/chunks/{e4da908079417cc2f495.js → ee0c77889059815a31b2.js} +1 -1
  47. package/assets/esri/core/workers/chunks/f68b7bb88c444a7cbbd2.js +1 -0
  48. package/assets/esri/core/workers/chunks/f90bbebd2dc07a77ce09.js +1 -0
  49. package/assets/esri/core/workers/chunks/fa388680ff976a6b30f6.js +1 -0
  50. package/chunks/vec32.js +1 -1
  51. package/interfaces.d.ts +135 -68
  52. package/layers/WFSLayer.js +1 -1
  53. package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
  54. package/layers/graphics/applyEditsUtils.js +1 -1
  55. package/layers/graphics/editingSupport.js +1 -1
  56. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  57. package/layers/mixins/ArcGISImageService.js +1 -1
  58. package/layers/save/featureLayerUtils.js +1 -1
  59. package/layers/support/arcgisLayers.js +1 -1
  60. package/layers/support/fetchService.js +1 -1
  61. package/layers/support/fromPortalItem.js +1 -1
  62. package/networks/Network.js +1 -1
  63. package/package.json +1 -1
  64. package/portal/Portal.js +1 -1
  65. package/portal/PortalGroup.js +1 -1
  66. package/portal/PortalUser.js +1 -1
  67. package/portal/support/geometryServiceUtils.js +1 -1
  68. package/portal/support/layersLoader.js +1 -1
  69. package/portal/support/loadUtils.js +1 -1
  70. package/portal/support/portalLayers.js +1 -1
  71. package/renderers/visualVariables/SizeVariable.js +1 -1
  72. package/rest/knowledgeGraph/wasmInterface/wasmToUpdateResponseFactories.js +1 -1
  73. package/rest/networks/support/Association.js +1 -1
  74. package/rest/places.js +1 -1
  75. package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
  76. package/rest/support/ImageSampleParameters.js +1 -1
  77. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  78. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  79. package/support/elevationInfoUtils.js +1 -1
  80. package/support/revision.js +1 -1
  81. package/symbols/cim/cimAnalyzer.js +1 -1
  82. package/symbols/cim/defaultCIMValues.js +1 -1
  83. package/symbols/cim/utils.js +1 -1
  84. package/views/2d/engine/vectorTiles/VectorTileContainer.js +1 -1
  85. package/views/2d/engine/webgl/AttributeStoreView.js +1 -1
  86. package/views/2d/engine/webgl/collisions/CollisionEngine.js +1 -1
  87. package/views/2d/engine/webgl/definitions.js +1 -1
  88. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  89. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
  90. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  91. package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
  92. package/views/2d/layers/FeatureLayerView2D.js +1 -1
  93. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  94. package/views/2d/layers/features/Processor.js +1 -1
  95. package/views/2d/layers/features/processor/BinningStrategy.js +1 -1
  96. package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
  97. package/views/2d/layers/features/processor/FeatureUpdateStrategy.js +1 -1
  98. package/views/2d/layers/features/schema/processor/VisualVariablesSchema.js +1 -1
  99. package/views/2d/layers/features/sources/strategies/SnapshotLoadStrategy.js +1 -1
  100. package/views/2d/layers/features/support/AttributeStore.js +1 -1
  101. package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
  102. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  103. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  104. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  105. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  106. package/views/3d/layers/SceneLayerView3D.js +1 -1
  107. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  108. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  109. package/views/3d/layers/support/FastSymbolUpdates.js +1 -1
  110. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  111. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  112. package/views/3d/support/orientedBoundingBox.js +1 -1
  113. package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
  114. package/views/3d/terrain/OverlayRenderer.js +1 -1
  115. package/views/3d/webgl/RenderNode.js +1 -1
  116. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  117. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  118. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +9 -7
  119. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceConstants.js +5 -0
  120. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +8 -8
  121. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  122. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  123. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  124. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  125. package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
  126. package/views/3d/webgl-engine/lib/ObjectAndLayerIdRenderHelper.js +1 -1
  127. package/views/draw/DrawGraphicTool.js +1 -1
  128. package/views/draw/DrawOperation.js +1 -1
  129. package/views/draw/drawSurfaces.js +1 -1
  130. package/views/interactive/snapping/SnappingManager.js +1 -1
  131. package/views/interactive/snapping/SnappingOptions.js +1 -1
  132. package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
  133. package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
  134. package/views/layers/ImageryTileLayerView.js +1 -1
  135. package/webdoc/support/webdocLoadUtils.js +1 -1
  136. package/webdoc/support/webdocSaveUtils.js +1 -1
  137. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  138. package/widgets/Editor/EditorViewModel.js +1 -1
  139. package/widgets/Editor/UpdateFeatureWorkflow.js +1 -1
  140. package/widgets/Editor/UpdateWorkflow.js +1 -1
  141. package/widgets/Editor/components/FooterActions.js +1 -1
  142. package/widgets/Editor/support/EditorItem.js +1 -1
  143. package/widgets/Editor.js +1 -1
  144. package/widgets/FeatureForm.js +1 -1
  145. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  146. package/widgets/FeatureTable/Grid/Grid.js +1 -1
  147. package/widgets/FeatureTable/Grid/GridViewModel.js +1 -1
  148. package/widgets/FeatureTable.js +1 -1
  149. package/widgets/Features/FeaturesViewModel.js +1 -1
  150. package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
  151. package/widgets/Print/PrintViewModel.js +1 -1
  152. package/widgets/Print.js +1 -1
  153. package/widgets/Search/support/locatorUtils.js +1 -1
  154. package/widgets/Sketch/SketchViewModel.js +1 -1
  155. package/assets/esri/core/workers/chunks/00b9e92f8df245a83921.js +0 -1
  156. package/assets/esri/core/workers/chunks/02a6c43ec17e7223fac5.js +0 -1
  157. package/assets/esri/core/workers/chunks/02ee044597c89c86b934.js +0 -1
  158. package/assets/esri/core/workers/chunks/05ebb9cec0e1826b283f.js +0 -1
  159. package/assets/esri/core/workers/chunks/143ccb14c9e915dd1412.js +0 -1
  160. package/assets/esri/core/workers/chunks/24649b410b757599a549.js +0 -1
  161. package/assets/esri/core/workers/chunks/24d19abc680b341d13bb.js +0 -1
  162. package/assets/esri/core/workers/chunks/2519b207894132d5ea91.js +0 -1
  163. package/assets/esri/core/workers/chunks/30f9b2a3417cbcfeecca.js +0 -1
  164. package/assets/esri/core/workers/chunks/42ab9c282bb267c3db03.js +0 -1
  165. package/assets/esri/core/workers/chunks/478815fc19b452d8317d.js +0 -1
  166. package/assets/esri/core/workers/chunks/49afeac45250b15b5f36.js +0 -1
  167. package/assets/esri/core/workers/chunks/50bb67f2eeace5d50673.js +0 -1
  168. package/assets/esri/core/workers/chunks/50cdc59426ba859027e2.js +0 -1
  169. package/assets/esri/core/workers/chunks/5401ec9c9fd62dcac6ec.js +0 -1
  170. package/assets/esri/core/workers/chunks/554d86df71821d671d2c.js +0 -1
  171. package/assets/esri/core/workers/chunks/58c5861d060c808813a1.js +0 -1
  172. package/assets/esri/core/workers/chunks/5dbb3ef6fdd25ac632ad.js +0 -1
  173. package/assets/esri/core/workers/chunks/61c4bb58ef9f2d99c75e.js +0 -1
  174. package/assets/esri/core/workers/chunks/6e50220f8e2d392e2855.js +0 -1
  175. package/assets/esri/core/workers/chunks/6fd8047741a0df006ddd.js +0 -1
  176. package/assets/esri/core/workers/chunks/7709248f59520aee6f51.js +0 -1
  177. package/assets/esri/core/workers/chunks/8852a64918caf80fc414.js +0 -1
  178. package/assets/esri/core/workers/chunks/8d119dc0a92ad3612daa.js +0 -1
  179. package/assets/esri/core/workers/chunks/94dfb80ab23dda92918b.js +0 -1
  180. package/assets/esri/core/workers/chunks/9ebbc75ba5c623a322aa.js +0 -1
  181. package/assets/esri/core/workers/chunks/a5babc10f47c24651d15.js +0 -1
  182. package/assets/esri/core/workers/chunks/a74c59cf5d1c4e63a4e1.js +0 -1
  183. package/assets/esri/core/workers/chunks/ada5d6fd70bd3e403442.js +0 -1
  184. package/assets/esri/core/workers/chunks/b95d69d84d60ac9828b9.js +0 -1
  185. package/assets/esri/core/workers/chunks/be562536212360943388.js +0 -1
  186. package/assets/esri/core/workers/chunks/ce823fc2d0e0095f398c.js +0 -1
  187. package/assets/esri/core/workers/chunks/d06d36815c2121484a13.js +0 -1
  188. package/assets/esri/core/workers/chunks/d5f06a7b0ea7951c8dd0.js +0 -1
  189. package/assets/esri/core/workers/chunks/ddc71fe66c7a49082920.js +0 -1
  190. package/assets/esri/core/workers/chunks/de6d54df7ae32694fd70.js +0 -1
  191. package/assets/esri/core/workers/chunks/f13c4b9692dad5802a32.js +0 -1106
  192. package/assets/esri/core/workers/chunks/f1e8f7d1a98b9e207b1b.js +0 -1
  193. package/assets/esri/core/workers/chunks/f9e9675f1c2287231653.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2364,6147],{25228:(t,e,n)=>{n.d(e,{c:()=>m});var r,i=n(41948),o=n(40504),s=n(94360),a=n(1580),l=(n(9456),n(66360),n(72052),n(33600)),c=n(12552),u=n(18996),h=n(28484);let p=r=class extends o.am{static get allTime(){return d}static get empty(){return f}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,n=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,i=t.end?.getTime()??t.end;return e===r&&n===i}expandTo(t,e=h.OX){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,s.aU)(n,t,e));let i=this.end;if(i){const n=(0,s.aU)(i,t,e);i=i.getTime()===n.getTime()?n:(0,s.g1)(n,1,t,e)}return new r({start:n,end:i})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,n=this.end?.getTime()??1/0,i=t.start?.getTime()??-1/0,o=t.end?.getTime()??1/0;let s,a;return i>=e&&i<=n?s=i:e>=i&&e<=o&&(s=e),n>=i&&n<=o?a=n:o>=e&&o<=n&&(a=o),null==s||null==a||isNaN(s)||isNaN(a)?r.empty:new r({start:s===-1/0?null:new Date(s),end:a===1/0?null:new Date(a)})}offset(t,e,n=h.OX){if(this.isEmpty||this.isAllTime)return this.clone();const i=new r,{start:o,end:a}=this;return null!=o&&(i.start=(0,s.g1)(o,t,e,n)),null!=a&&(i.end=(0,s.g1)(a,t,e,n)),i}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,n=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:n})}};(0,i._)([(0,a.qq)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i._)([(0,l.E)("end")],p.prototype,"readEnd",null),(0,i._)([(0,u.G)("end")],p.prototype,"writeEnd",null),(0,i._)([(0,a.qq)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i._)([(0,a.qq)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i._)([(0,a.qq)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i._)([(0,l.E)("start")],p.prototype,"readStart",null),(0,i._)([(0,u.G)("start")],p.prototype,"writeStart",null),p=r=(0,i._)([(0,c.c)("esri.TimeExtent")],p);const d=new p,f=new p({start:void 0,end:void 0}),m=p},8528:(t,e,n)=>{n.d(e,{c:()=>r,g:()=>i});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},85304:(t,e,n)=>{n.d(e,{q:()=>l});var r,i,o,s=n(8528),a={exports:{}};r=a,i=function(){function t(n,r,i,o,s){for(;o>i;){if(o-i>600){var a=o-i+1,l=r-i+1,c=Math.log(a),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(a-u)/a)*(l-a/2<0?-1:1);t(n,r,Math.max(i,Math.floor(r-l*u/a+h)),Math.min(o,Math.floor(r+(a-l)*u/a+h)),s)}var p=n[r],d=i,f=o;for(e(n,i,r),s(n[o],p)>0&&e(n,i,o);d<f;){for(e(n,d,f),d++,f--;s(n[d],p)<0;)d++;for(;s(n[f],p)>0;)f--}0===s(n[i],p)?e(n,i,f):e(n,++f,o),f<=r&&(i=f+1),r<=f&&(o=f-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,i,o,s){t(e,r,i||0,o||e.length-1,s||n)}},void 0!==(o=i())&&(r.exports=o);const l=(0,s.g)(a.exports)},3856:(t,e,n)=>{n.d(e,{m:()=>h,q:()=>u});var r=n(41948),i=n(43780),o=(n(9456),n(62088)),s=(n(66360),n(70680)),a=n(71448),l=n(20916),c=n(12552);const u=t=>{let e=class extends t{clone(){const t=(0,l.m6)(this);(0,s.EN)(t,"unable to clone instance of non-accessor class");const e=t.metadata,n=t.store,r={},i=new Map;for(const t in e){const s=e[t],l=n?.originOf(t),c=s.clonable;if(s.readOnly||!1===c||l!==a.sT.USER&&l!==a.sT.DEFAULTS&&l!==a.sT.WEB_MAP&&l!==a.sT.WEB_SCENE)continue;const u=this[t];let h=null;h="function"==typeof c?c(u):"reference"===c?u:(0,o.gx)(u),null!=u&&null==h||(l===a.sT.DEFAULTS?i.set(t,h):r[t]=h)}const c=new(0,Object.getPrototypeOf(this).constructor)(r);if(i.size){const t=(0,l.m6)(c)?.store;if(t)for(const[e,n]of i)t.set(e,n,a.sT.DEFAULTS)}return c}};return e=(0,r._)([(0,c.c)("esri.core.Clonable")],e),e};let h=class extends(u(i.c)){};h=(0,r._)([(0,c.c)("esri.core.Clonable")],h)},22156:(t,e,n)=>{n.d(e,{MR:()=>s,qm:()=>a});var r=n(41948),i=n(12552);let o=0;const s=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return e=(0,r._)([(0,i.c)("esri.core.Identifiable")],e),e},a=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return e=(0,r._)([(0,i.c)("esri.core.NumericIdentifiable")],e),e};let l=class extends(s(class{})){};l=(0,r._)([(0,i.c)("esri.core.Identifiable")],l)},63316:(t,e,n)=>{n.d(e,{AD:()=>h,wV:()=>u});var r=n(2600),i=n(20744),o=n(10860),s=n(28176),a=n(49416);let l=null,c=!0;function u(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(c)try{return new ImageData(t,e,n)}catch(t){c=!1}const i=function(t,e,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(t,e)}(e,n,r);return i.data.set(t,0),i}async function h(t,e){const{arrayBuffer:l,mediaType:c}=await async function(t,e){const n=(0,s.nV)(t);if(n?.isBase64)return{arrayBuffer:(0,a.K)(n.data),mediaType:n.mediaType};const i=await(0,r.c)(t,{responseType:"array-buffer",...e});return{arrayBuffer:i.data,mediaType:i.getHeader?.("Content-Type")??""}}(t,e),u="image/png"===c;if("image/gif"===c){const{isAnimatedGIF:t,parseGif:r}=await n.e(8560).then(n.bind(n,68560));if(t(l))return r(l,e)}if(u){const{isAnimatedPNG:t,parseApng:r}=await n.e(4464).then(n.bind(n,84464));if(t(l))return r(l,e)}return async function(t,e){const n=window.URL.createObjectURL(t);try{const{data:t}=await(0,r.c)(n,{...e,responseType:"image"});return t}catch(t){if(!(0,o.mA)(t))throw new i.c("invalid-image",`Could not fetch requested image at ${n}`);throw t}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:c}),e)}},68612:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,n,r,i,o,s,a,l){return[t,e,n,r,i,o,s,a,l]}n.d(e,{IJ:()=>o,Su:()=>r,WK:()=>i});const o=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:function(t,e){return new Float64Array(t,e,9)},fromValues:i},Symbol.toStringTag,{value:"Module"}))},85256:(t,e,n)=>{function r(){return[0,0]}function i(t,e){return[t,e]}function o(){return i(1,1)}function s(){return i(1,0)}function a(){return i(0,1)}n.d(e,{Qw:()=>l,Su:()=>r,WK:()=>i});const l=o(),c=s(),u=a();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:c,UNIT_Y:u,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:function(t,e){return new Float64Array(t,e,2)},fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:o,unitX:s,unitY:a,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},77556:(t,e,n)=>{n.d(e,{KU:()=>h,QT:()=>f,S_:()=>a,WO:()=>o,_7:()=>l,aU:()=>u,iW:()=>c,kr:()=>i,oL:()=>s,yy:()=>p});var r=n(47364);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function o(t,e,n,r,i,o,s,a,l,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=a,t[7]=l,t[8]=c,t}function s(t,e){if(t===e){const n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function a(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=u*s-a*c,p=-u*o+a*l,d=c*o-s*l;let f=n*h+r*p+i*d;return f?(f=1/f,t[0]=h*f,t[1]=(-u*r+i*c)*f,t[2]=(a*r-i*s)*f,t[3]=p*f,t[4]=(u*n-i*l)*f,t[5]=(-a*n+i*o)*f,t[6]=d*f,t[7]=(-c*n+r*l)*f,t[8]=(s*n-r*o)*f,t):null}function l(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8];return t[0]=s*u-a*c,t[1]=i*c-r*u,t[2]=r*a-i*s,t[3]=a*l-o*u,t[4]=n*u-i*l,t[5]=i*o-n*a,t[6]=o*c-s*l,t[7]=r*l-n*c,t[8]=n*s-r*o,t}function c(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],c=e[6],u=e[7],h=e[8],p=n[0],d=n[1],f=n[2],m=n[3],y=n[4],g=n[5],_=n[6],x=n[7],v=n[8];return t[0]=p*r+d*s+f*c,t[1]=p*i+d*a+f*u,t[2]=p*o+d*l+f*h,t[3]=m*r+y*s+g*c,t[4]=m*i+y*a+g*u,t[5]=m*o+y*l+g*h,t[6]=_*r+x*s+v*c,t[7]=_*i+x*a+v*u,t[8]=_*o+x*l+v*h,t}function u(t,e,n){const r=n[0],i=n[1],o=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=o*e[6],t[7]=o*e[7],t[8]=o*e[8],t}function h(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=n+n,a=r+r,l=i+i,c=n*s,u=r*s,h=r*a,p=i*s,d=i*a,f=i*l,m=o*s,y=o*a,g=o*l;return t[0]=1-h-f,t[3]=u-g,t[6]=p+y,t[1]=u+g,t[4]=1-c-f,t[7]=d-m,t[2]=p-y,t[5]=d+m,t[8]=1-c-h,t}function p(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],l=e[6],c=e[7],u=e[8],h=e[9],p=e[10],d=e[11],f=e[12],m=e[13],y=e[14],g=e[15],_=n*a-r*s,x=n*l-i*s,v=n*c-o*s,w=r*l-i*a,b=r*c-o*a,M=i*c-o*l,q=u*m-h*f,P=u*y-p*f,S=u*g-d*f,I=h*y-p*m,E=h*g-d*m,R=p*g-d*y;let A=_*R-x*E+v*I+w*S-b*P+M*q;return A?(A=1/A,t[0]=(a*R-l*E+c*I)*A,t[1]=(l*S-s*R-c*P)*A,t[2]=(s*E-a*S+c*q)*A,t[3]=(i*E-r*R-o*I)*A,t[4]=(n*R-i*S+o*P)*A,t[5]=(r*S-n*E-o*q)*A,t[6]=(m*M-y*b+g*w)*A,t[7]=(y*v-f*M-g*x)*A,t[8]=(f*b-m*v+g*_)*A,t):null}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function f(t){const e=(0,r.Au)(),n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=t[8];return Math.abs(1-(n*n+s*s+c*c))<=e&&Math.abs(1-(i*i+a*a+u*u))<=e&&Math.abs(1-(o*o+l*l+h*h))<=e}const m=c,y=d;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],l=t[7],c=t[8];return e*(c*o-s*l)+n*(-c*i+s*a)+r*(l*i-o*a)},equals:function(t,e){const n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],u=t[7],h=t[8],p=e[0],d=e[1],f=e[2],m=e[3],y=e[4],g=e[5],_=e[6],x=e[7],v=e[8],w=(0,r.Au)();return Math.abs(n-p)<=w*Math.max(1,Math.abs(n),Math.abs(p))&&Math.abs(i-d)<=w*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-f)<=w*Math.max(1,Math.abs(o),Math.abs(f))&&Math.abs(s-m)<=w*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(a-y)<=w*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(l-g)<=w*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(c-_)<=w*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(u-x)<=w*Math.max(1,Math.abs(u),Math.abs(x))&&Math.abs(h-v)<=w*Math.max(1,Math.abs(h),Math.abs(v))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:i,fromQuat:h,fromRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:a,isOrthoNormal:f,mul:m,multiply:c,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:p,normalFromMat4Legacy:function(t,e){const n=e[0],r=e[1],i=e[2],o=e[4],s=e[5],a=e[6],l=e[8],c=e[9],u=e[10],h=u*s-a*c,p=-u*o+a*l,d=c*o-s*l,f=n*h+r*p+i*d;if(!f)return null;const m=1/f;return t[0]=h*m,t[1]=(-u*r+i*c)*m,t[2]=(a*r-i*s)*m,t[3]=p*m,t[4]=(u*n-i*l)*m,t[5]=(-a*n+i*o)*m,t[6]=d*m,t[7]=(-c*n+r*l)*m,t[8]=(s*n-r*o)*m,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],c=e[6],u=e[7],h=e[8],p=Math.sin(n),d=Math.cos(n);return t[0]=d*r+p*s,t[1]=d*i+p*a,t[2]=d*o+p*l,t[3]=d*s-p*r,t[4]=d*a-p*i,t[5]=d*l-p*o,t[6]=c,t[7]=u,t[8]=h,t},scale:u,scaleByVec2:function(t,e,n){const r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t},set:o,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:y,subtract:d,translate:function(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],c=e[6],u=e[7],h=e[8],p=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=s,t[4]=a,t[5]=l,t[6]=p*r+d*s+c,t[7]=p*i+d*a+u,t[8]=p*o+d*l+h,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},37648:(t,e,n)=>{n.d(e,{Cq:()=>p,WO:()=>i,c9:()=>f,m4:()=>d,qy:()=>l});var r=n(47364);function i(t,e,n){return t[0]=e,t[1]=n,t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function a(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function l(t,e){const n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function c(t,e){const n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function u(t){const e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function h(t){const e=t[0],n=t[1];return e*e+n*n}function p(t,e,n,r){const i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function d(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function f(t,e,n,r){const i=e[0]-n[0],o=e[1]-n[1],s=Math.sin(r),a=Math.cos(r);return t[0]=i*a-o*s+n[0],t[1]=i*s+o*a+n[1],t}const m=u,y=o,g=s,_=a,x=l,v=c,w=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},angle:function(t,e){const n=t[0],r=t[1],i=e[0],o=e[1];let s=n*n+r*r;s>0&&(s=1/Math.sqrt(s));let a=i*i+o*o;a>0&&(a=1/Math.sqrt(a));const l=(n*i+r*o)*s*a;return l>1?0:l<-1?Math.PI:Math.acos(l)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},cross:function(t,e,n){const r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},dist:x,distance:l,div:_,divide:a,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:function(t,e){const n=t[0],i=t[1],o=e[0],s=e[1],a=(0,r.Au)();return Math.abs(n-o)<=a*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-s)<=a*Math.max(1,Math.abs(i),Math.abs(s))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]},floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},len:m,length:u,lerp:p,max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},mul:g,multiply:s,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:function(t,e){const n=e[0],r=e[1];let i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t},projectAndScale:function(t,e,n,r,i){let o=e[0]-n[0],s=e[1]-n[1];const a=(r[0]*o+r[1]*s)*(i-1);return o=r[0]*a,s=r[1]*a,t[0]=e[0]+o,t[1]=e[1]+s,t},random:function(t,e){e=e||1;const n=2*(0,r.QR)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:f,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},set:i,sqrDist:v,sqrLen:w,squaredDistance:c,squaredLength:h,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:y,subtract:o,transformMat2:function(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},transformMat2d:d,transformMat3:function(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},transformMat4:function(t,e,n){const r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}},Symbol.toStringTag,{value:"Module"}))},3024:(t,e,n)=>{n.d(e,{U:()=>s});var r=n(92400),i=n(24680),o=n(85304);class s{constructor(t=9,e){this._compareMinX=u,this._compareMinY=h,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),v.prune(),w.prune(),b.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(g(t,n))for(x.clear();n;){for(let i=0,o=n.children.length;i<o;i++){const o=n.children[i],s=n.leaf?r(o):o;g(t,s)&&(n.leaf?e(o):y(t,s)?this._all(o,e):x.push(o))}n=x.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!g(t,e))return!1;for(x.clear();e;){for(let r=0,i=e.children.length;r<i;r++){const i=e.children[r],o=e.leaf?n(i):i;if(g(t,o)){if(e.leaf||y(t,o))return!0;x.push(i)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new P([]),this}remove(t){if(!t)return this;let e,n=this._data,i=null,o=0,s=!1;const a=this._toBBox(t);for(w.clear(),b.clear();n||w.length>0;){if(n||(n=w.pop(),i=w.data[w.length-1],o=b.pop()??0,s=!0),n.leaf&&(e=(0,r.IP)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),w.push(n),this._condense(w),this;s||n.leaf||!y(n,a)?i?(o++,n=i.children[o],s=!1):n=null:(w.push(n),b.push(o),o=0,i=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(v.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else v.pushArray(n.children);n=v.pop()??null}}_build(t,e,n,r){const i=n-e+1;let o=this._maxEntries;if(i<=o){const r=new P(t.slice(e,n+1));return a(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(o)),o=Math.ceil(i/o**(r-1)));const s=new S([]);s.height=r;const l=Math.ceil(i/o),c=l*Math.ceil(Math.sqrt(o));_(t,e,n,c,this._compareMinX);for(let i=e;i<=n;i+=c){const e=Math.min(i+c-1,n);_(t,i,e,l,this._compareMinY);for(let n=i;n<=e;n+=l){const i=Math.min(n+l-1,e);s.children.push(this._build(t,n,i,r-1))}}return a(s,this._toBBox),s}_chooseSubtree(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let o=0,s=e.children.length;o<s;o++){const s=e.children[o],a=p(s),l=f(t,s)-a;l<i?(i=l,r=a<r?a:r,n=s):l===i&&a<r&&(r=a,n=s)}e=n||e.children[0]}return e}_insert(t,e,n){const r=this._toBBox,i=n?t:r(t);w.clear();const o=this._chooseSubtree(i,this._data,e,w);for(o.children.push(t),c(o,i);e>=0&&w.data[e].children.length>this._maxEntries;)this._split(w,e),e--;this._adjustParentBBoxes(i,w,e)}_split(t,e){const n=t.data[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);const o=this._chooseSplitIndex(n,i,r);if(!o)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const s=n.children.splice(o,n.children.length-o),l=n.leaf?new P(s):new S(s);l.height=n.height,a(n,this._toBBox),a(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(n,l)}_splitRoot(t,e){this._data=new S([t,e]),this._data.height=t.height+1,a(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,i,o;r=i=1/0;for(let s=e;s<=n-e;s++){const e=l(t,0,s,this._toBBox),a=l(t,s,n,this._toBBox),c=m(e,a),u=p(e)+p(a);c<r?(r=c,o=s,i=u<i?u:i):c===r&&u<i&&(i=u,o=s)}return o}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:u,i=t.leaf?this._compareMinY:h;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)}_allDistMargin(t,e,n,r){t.children.sort(r);const i=this._toBBox,o=l(t,0,e,i),s=l(t,n-e,n,i);let a=d(o)+d(s);for(let r=e;r<n-e;r++){const e=t.children[r];c(o,t.leaf?i(e):e),a+=d(o)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];c(s,t.leaf?i(e):e),a+=d(s)}return a}_adjustParentBBoxes(t,e,n){for(let r=n;r>=0;r--)c(e.data[r],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const i=t.data[e-1],o=i.children;o.splice((0,r.IP)(o,n,o.length,i.indexHint),1)}else this.clear();else a(n,this._toBBox)}}_initFormat(t){const e=["return a"," - b",";"];this._compareMinX=new Function("a","b",e.join(t[0])),this._compareMinY=new Function("a","b",e.join(t[1])),this._toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}function a(t,e){l(t,0,t.children.length,e,t)}function l(t,e,n,r,i){i||(i=new P([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let o,s=e;s<n;s++)o=t.children[s],c(i,t.leaf?r(o):o);return i}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function u(t,e){return t.minX-e.minX}function h(t,e){return t.minY-e.minY}function p(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function f(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function m(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),o=Math.min(t.maxY,e.maxY);return Math.max(0,i-n)*Math.max(0,o-r)}function y(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function g(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function _(t,e,n,r,i){const s=[e,n];for(;s.length;){const e=s.pop(),n=s.pop();if(e-n<=r)continue;const a=n+Math.ceil((e-n)/r/2)*r;(0,o.q)(t,a,n,e,i),s.push(n,a,a,e)}}const x=new i.c,v=new i.c,w=new i.c,b=new i.c({deallocator:void 0});class M{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class q extends M{constructor(){super(...arguments),this.height=1,this.indexHint=new r.is}}class P extends q{constructor(t){super(),this.children=t,this.leaf=!0}}class S extends q{constructor(t){super(),this.children=t,this.leaf=!1}}},57896:(t,e,n)=>{n.d(e,{Eq:()=>p,KG:()=>g,_8:()=>y,_I:()=>c,aE:()=>l,du:()=>m,on:()=>h}),n(40196),n(2952);var r=n(60976),i=n(38912),o=n(70680),s=n(10860),a=n(37176);function l(t,e,n={}){return u(t,e,n,d)}function c(t,e,n={}){return u(t,e,n,f)}function u(t,e,n={},r){let i=null;const s=n.once?(t,n)=>{r(t)&&((0,o.oR)(i),e(t,n))}:(t,n)=>{r(t)&&e(t,n)};if(i=(0,a.M9)(t,s,n.sync,n.equals),n.initial){const e=t();s(e,e)}return i}function h(t,e,n,s={}){let a=null,c=null,u=null;function h(){a&&c&&(c.remove(),s.onListenerRemove?.(a),a=null,c=null)}function p(t){s.once&&s.once&&(0,o.oR)(u),n(t)}const d=l(t,((t,n)=>{h(),(0,r.sh)(t)&&(a=t,c=(0,r.on)(t,e,p),s.onListenerAdd?.(t))}),{sync:s.sync,initial:!0});return u=(0,i.uU)((()=>{d.remove(),h()})),u}function p(t,e){return function(t,e,n){if((0,s.wv)(n))return Promise.reject((0,s.Uh)());const r=t();if(e?.(r))return Promise.resolve(r);let a=null;function l(){a=(0,o.oR)(a)}return new Promise(((r,o)=>{a=(0,i.Ip)([(0,s.wD)(n,(()=>{l(),o((0,s.Uh)())})),u(t,(t=>{l(),r(t)}),{sync:!1,once:!0},e??d)])}))}(t,f,e)}function d(t){return!0}function f(t){return!!t}n(41168);const m={sync:!0},y={initial:!0},g={sync:!0,initial:!0}},63564:(t,e,n)=>{n.d(e,{Mr:()=>s,cf:()=>o,g1:()=>i});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const e=e=>t[e].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}function o(){return`{${i().toUpperCase()}}`}function s(){return`{${i()}}`}},44048:(t,e,n)=>{n.d(e,{Hh:()=>s,iM:()=>c,wb:()=>l,yK:()=>a});var r=n(48516),i=n(56156),o=n(6704);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.c({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.c.WebMercator}),minus180Line:new r.c({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.c.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.c({paths:[[[180,-180],[180,180]]],spatialReference:i.c.WGS84}),minus180Line:new r.c({paths:[[[-180,-180],[-180,180]]],spatialReference:i.c.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=c(t);for(const t of n)for(const n of t)n[0]+=e;return t}function c(t){return(0,o.Cs)(t)?t.rings:t.paths}},81436:(t,e,n)=>{n.d(e,{c:()=>x});var r=n(41948),i=(n(60708),n(2600)),o=n(20744),s=n(77860),a=n(22156),l=n(95800),c=n(66360),u=n(10860),h=n(28176),p=n(1580),d=(n(9456),n(72052),n(12552)),f=n(6220),m=n(95247),y=n(56156);let g=0,_=class extends(s.c.EventedMixin((0,a.MR)(l.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new m.c(-180,-90,180,90,y.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+g++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=y.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(9232).then(n.bind(n,69232))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(2259).then(n.bind(n,12259));try{return await r(e)}catch(t){const n=e?.portalItem,r=n?.id||"unset",i=n?.portal?.url||f.default.portalUrl;throw c.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch((t=>{(0,u.mA)(t)||c.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})}))}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,h.as)(this.url)}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,i.c)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,p.qq)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,r._)([(0,p.qq)({type:m.c})],_.prototype,"fullExtent",void 0),(0,r._)([(0,p.qq)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,r._)([(0,p.qq)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,r._)([(0,p.qq)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,r._)([(0,p.qq)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,r._)([(0,p.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,r._)([(0,p.qq)({clonable:!1})],_.prototype,"parent",void 0),(0,r._)([(0,p.qq)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,r._)([(0,p.qq)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,r._)([(0,p.qq)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,r._)([(0,p.qq)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,r._)([(0,p.qq)({type:y.c})],_.prototype,"spatialReference",void 0),(0,r._)([(0,p.qq)({type:String})],_.prototype,"title",void 0),(0,r._)([(0,p.qq)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,r._)([(0,p.qq)()],_.prototype,"url",void 0),(0,r._)([(0,p.qq)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,r._)([(0,d.c)("esri.layers.Layer")],_);const x=_},66664:(t,e,n)=>{n.r(e),n.d(e,{default:()=>he});var r=n(41948),i=n(2952),o=n(20744),s=n(66360),a=n(26496),l=n(10860),c=n(1580),u=n(33392),h=(n(72052),n(9456),n(33600)),p=n(12552),d=n(18996),f=n(71448),m=n(81436),y=n(25216),g=n(66576),_=n(98768),x=n(3116),v=n(2600),w=n(63316),b=n(28176),M=n(63564),q=n(22156),P=n(95800),S=n(43780),I=n(40504),E=n(77556),R=n(68612),A=n(37648),O=n(98472);const T=(0,n(62484).Su)(),L=(0,R.Su)(),B=(0,R.Su)(),C=(0,R.Su)();function j(t,e,n){return(0,O.s)(T,e[0],e[1],1),(0,O.t)(T,T,(0,E.oL)(L,n)),0===T[2]?(0,A.WO)(t,T[0],T[1]):(0,A.WO)(t,T[0]/T[2],T[1]/T[2])}function U(t,e,n){return W(B,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]),W(C,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,E.iW)(t,(0,E._7)(B,B),C),0!==t[8]&&(t[0]/=t[8],t[1]/=t[8],t[2]/=t[8],t[3]/=t[8],t[4]/=t[8],t[5]/=t[8],t[6]/=t[8],t[7]/=t[8],t[8]/=t[8]),t}function W(t,e,n,r,i,o,s,a,l){(0,E.WO)(t,e,r,o,n,i,s,1,1,1),(0,O.s)(T,a,l,1),(0,E._7)(L,t);const[c,u,h]=(0,O.t)(T,T,(0,E.oL)(L,L));return(0,E.WO)(L,c,0,0,0,u,0,0,0,h),(0,E.iW)(t,L,t)}var X=n(50144),N=n(85256),Y=n(67776),H=n(7488),F=n(60074),D=n(56156),z=n(3856);let $=class extends z.m{projectOrWarn(t,e){if(null==t)return t;const{geometry:n,pending:r}=(0,F.projectOrLoad)(t,e);return r?null:r||n?n:(s.c.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:e}),null)}};$=(0,r._)([(0,p.c)("esri.layers.support.GeoreferenceBase")],$);const G=$,V=(0,R.Su)(),k=(0,N.Su)();let K=class extends S.c{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,r._)([(0,c.qq)()],K.prototype,"sourcePoint",void 0),(0,r._)([(0,c.qq)({type:Y.c})],K.prototype,"mapPoint",void 0),K=(0,r._)([(0,p.c)("esri.layers.support.ControlPoint")],K);let J=class extends((0,I.Ib)(G)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,e){const n=D.c.fromJSON(e.spatialReference),r=(0,R.WK)(...e.coefficients,1);return t.map((t=>((0,A.WO)(k,t.x,t.y),j(k,k,r),{sourcePoint:t,mapPoint:new Y.c({x:k[0],y:k[1],spatialReference:n})})))}writeControlPoints(t,e,n,r){if(null!=this.transform)null!=t&&Q(t[0])&&(e.controlPoints=t.map((t=>{const e=t.sourcePoint;return{x:e.x,y:e.y}})),e.spatialReference=t[0].mapPoint.spatialReference.toJSON(),e.coefficients=this.transform.slice(0,8));else{const t=new o.c("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration.",{layer:r?.layer,georeference:this});r?.messages?r.messages.push(t):s.c.getLogger(this).error(t.name,t.message)}}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(V);if(null==t||!Q(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return function(t,e,n,r){const i=(0,N.WK)(0,n),o=(0,N.WK)(0,0),s=(0,N.WK)(e,0),a=(0,N.WK)(e,n);return j(i,i,t),j(o,o,t),j(s,s,t),j(a,a,t),new H.c({rings:[[i,o,s,a,i]],spatialReference:r})}(t,this.width,this.height,e)}set coords(t){if(null==this.controlPoints||!Q(this.controlPoints[0]))return;const e=this.controlPoints[0].mapPoint.spatialReference;if(null==(t=this.projectOrWarn(t,e)))return;const{width:n,height:r}=this,{rings:[[i,o,s,a]]}=t,l={sourcePoint:(0,X.Gy)(0,r),mapPoint:new Y.c({x:i[0],y:i[1],spatialReference:e})},c={sourcePoint:(0,X.Gy)(0,0),mapPoint:new Y.c({x:o[0],y:o[1],spatialReference:e})},u={sourcePoint:(0,X.Gy)(n,0),mapPoint:new Y.c({x:s[0],y:s[1],spatialReference:e})},h={sourcePoint:(0,X.Gy)(n,r),mapPoint:new Y.c({x:a[0],y:a[1],spatialReference:e})};Q(l)&&Q(c)&&Q(u)&&Q(h)&&(ct(V,l,c,u,h),this.controlPoints=this.controlPoints.map((({sourcePoint:t})=>((0,A.WO)(k,t.x,t.y),j(k,k,V),{sourcePoint:t,mapPoint:new Y.c({x:k[0],y:k[1],spatialReference:e})}))))}get inverseTransform(){return null==this.transform?null:(0,E.S_)((0,R.Su)(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!Q(this.controlPoints[0]))return null;(0,A.WO)(k,t.x,t.y);const e=this.controlPoints[0].mapPoint.spatialReference;return j(k,k,this.transform),new Y.c({x:k[0],y:k[1],spatialReference:e})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!Q(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=(0,F.projectOrLoad)(t,e).geometry)?null:((0,A.WO)(k,t.x,t.y),j(k,k,this.inverseTransform),(0,X.Gy)(k[0],k[1]))}toSourceNormalized(t){const e=this.toSource(t);return null!=e&&(e.x/=this.width,e.y/=this.height),e}_updateTransform(t){const{controlPoints:e,width:n,height:r}=this;if(!(null!=e&&n>0&&r>0))return null;const[i,o,s,a]=e;if(!Q(i))return null;const l=i.mapPoint.spatialReference,c=this._projectControlPoint(o,l),u=this._projectControlPoint(s,l),h=this._projectControlPoint(a,l);if(!c.valid||!u.valid||!h.valid)return null;if(!Q(c.controlPoint))return null;null==t&&(t=(0,R.Su)());let p=null;return p=Q(u.controlPoint)&&Q(h.controlPoint)?ct(t,i,c.controlPoint,u.controlPoint,h.controlPoint):Q(u.controlPoint)?function(t,e,n,r){return lt(Z,rt,e),lt(tt,it,n),lt(et,ot,r),(0,A.Cq)(nt,Z,tt,.5),(0,A.c9)(nt,et,nt,Math.PI),(0,A.Cq)(st,rt,it,.5),(0,A.c9)(st,ot,st,Math.PI),dt(t,Z,tt,et,nt,rt,it,ot,st)}(t,i,c.controlPoint,u.controlPoint):function(t,e,n){return lt(Z,rt,e),lt(tt,it,n),(0,A.c9)(et,tt,Z,at),(0,A.c9)(nt,Z,tt,at),(0,A.c9)(ot,it,rt,-at),(0,A.c9)(st,rt,it,-at),dt(t,Z,tt,et,nt,rt,it,ot,st)}(t,i,c.controlPoint),p.every((t=>0===t))?null:p}_projectControlPoint(t,e){if(!Q(t))return{valid:!0,controlPoint:t};const{sourcePoint:n,mapPoint:r}=t,{geometry:i,pending:o}=(0,F.projectOrLoad)(r,e);return o?{valid:!1,controlPoint:null}:o||i?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:i}}:(s.c.getLogger(this).warn("map point could not be projected to the spatial reference",{georeference:this,controlPoint:t,sourceSpatialReference:r.spatialReference,targetSpatialReference:e}),{valid:!1,controlPoint:null})}};function Q(t){return null!=t?.sourcePoint&&null!=t.mapPoint}(0,r._)([(0,c.qq)({type:[K],json:{write:{allowNull:!1,isRequired:!0}}})],J.prototype,"controlPoints",void 0),(0,r._)([(0,h.E)("controlPoints")],J.prototype,"readControlPoints",null),(0,r._)([(0,d.G)("controlPoints")],J.prototype,"writeControlPoints",null),(0,r._)([(0,c.qq)()],J.prototype,"coords",null),(0,r._)([(0,c.qq)({json:{write:!0}})],J.prototype,"height",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],J.prototype,"inverseTransform",null),(0,r._)([(0,c.qq)({readOnly:!0})],J.prototype,"transform",null),(0,r._)([(0,c.qq)({json:{write:!0}})],J.prototype,"width",void 0),J=(0,r._)([(0,p.c)("esri.layers.support.ControlPointsGeoreference")],J);const Z=(0,N.Su)(),tt=(0,N.Su)(),et=(0,N.Su)(),nt=(0,N.Su)(),rt=(0,N.Su)(),it=(0,N.Su)(),ot=(0,N.Su)(),st=(0,N.Su)(),at=Math.PI/2;function lt(t,e,n){(0,A.WO)(t,n.sourcePoint.x,n.sourcePoint.y),(0,A.WO)(e,n.mapPoint.x,n.mapPoint.y)}function ct(t,e,n,r,i){return lt(Z,rt,e),lt(tt,it,n),lt(et,ot,r),lt(nt,st,i),dt(t,Z,tt,et,nt,rt,it,ot,st)}const ut=new Array(8).fill(0),ht=new Array(8).fill(0);function pt(t,e,n,r,i){return t[0]=e[0],t[1]=e[1],t[2]=n[0],t[3]=n[1],t[4]=r[0],t[5]=r[1],t[6]=i[0],t[7]=i[1],t}function dt(t,e,n,r,i,o,s,a,l){return U(t,pt(ut,e,n,r,i),pt(ht,o,s,a,l))}const ft=J,mt=(0,N.Su)();let yt=class extends G{constructor(t){super(t),this.bottomLeft=null,this.bottomRight=null,this.topLeft=null,this.topRight=null,this.type="corners"}get coords(){let{topLeft:t,topRight:e,bottomLeft:n,bottomRight:r}=this;if(null==t||null==e||null==n||null==r)return null;const i=t.spatialReference;return e=this.projectOrWarn(e,i),n=this.projectOrWarn(n,i),r=this.projectOrWarn(r,i),null==e||null==n||null==r?null:new H.c({rings:[[[n.x,n.y],[t.x,t.y],[e.x,e.y],[r.x,r.y],[n.x,n.y]]],spatialReference:i})}set coords(t){const{topLeft:e}=this;if(null==e)return;const n=e.spatialReference;if(null==(t=this.projectOrWarn(t,n)))return;const{rings:[[r,i,o,s]]}=t;this.bottomLeft=new Y.c({x:r[0],y:r[1],spatialReference:n}),this.topLeft=new Y.c({x:i[0],y:i[1],spatialReference:n}),this.topRight=new Y.c({x:o[0],y:o[1],spatialReference:n}),this.bottomRight=new Y.c({x:s[0],y:s[1],spatialReference:n})}toSourceNormalized(t){const{topLeft:e,topRight:n,bottomRight:r,bottomLeft:i}=this;if(null==t||null==e||null==n||null==r||null==i)return null;const o=e.spatialReference;t=t.normalize();const s=(0,F.projectOrLoad)(t,o).geometry;if(null==s)return null;(0,A.WO)(mt,s.x,s.y);const a=U((0,R.Su)(),[e.x,e.y,i.x,i.y,n.x,n.y,r.x,r.y],[0,0,0,1,1,0,1,1]);return j(mt,mt,a),(0,X.Gy)(mt[0],mt[1])}};(0,r._)([(0,c.qq)()],yt.prototype,"coords",null),(0,r._)([(0,c.qq)({type:Y.c})],yt.prototype,"bottomLeft",void 0),(0,r._)([(0,c.qq)({type:Y.c})],yt.prototype,"bottomRight",void 0),(0,r._)([(0,c.qq)({type:Y.c})],yt.prototype,"topLeft",void 0),(0,r._)([(0,c.qq)({type:Y.c})],yt.prototype,"topRight",void 0),yt=(0,r._)([(0,p.c)("esri.layers.support.CornersGeoreference")],yt);const gt=yt;var _t=n(53648),xt=n(47364),vt=n(95247);let wt=class extends G{constructor(t){super(t),this.extent=null,this.rotation=0,this.type="extent-and-rotation"}get coords(){if(null==this.extent)return null;const{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:i}=this.extent;let o;if(this.rotation){const{x:i,y:s}=this.extent.center,a=bt(i,s,this.rotation);o=[a(t,e),a(t,r),a(n,r),a(n,e)],o.push(o[0])}else o=[[t,e],[t,r],[n,r],[n,e],[t,e]];return new H.c({rings:[o],spatialReference:i})}set coords(t){if(null==t||null==this.extent)return;const e=this.extent.spatialReference;if(t=this.projectOrWarn(t,e),null==t?.extent)return;const{rings:[[n,r,i]],extent:{center:{x:o,y:s}}}=t,a=(0,_t.UB)(Math.PI/2-Math.atan2(r[1]-n[1],r[0]-n[0])),l=bt(o,s,-a),[c,u]=l(n[0],n[1]),[h,p]=l(i[0],i[1]);this.extent=new vt.c({xmin:c,ymin:u,xmax:h,ymax:p,spatialReference:e}),this.rotation=a}toSourceNormalized(t){const{extent:e,rotation:n}=this;if(null==t||null==e)return null;const{xmin:r,ymin:i,xmax:o,ymax:s,center:a,spatialReference:l}=e;t=t.normalize();const c=(0,F.projectOrLoad)(t,l).geometry;if(null==c)return null;let u=c.x,h=c.y;return n&&([u,h]=bt(a.x,a.y,-n)(u,h)),(0,X.Gy)((0,_t.aU)(u,r,o,0,1),(0,_t.aU)(h,s,i,0,1))}};function bt(t,e,n){const r=(0,xt.Af)(n),i=Math.cos(r),o=Math.sin(r);return(n,r)=>[i*(n-t)+o*(r-e)+t,i*(r-e)-o*(n-t)+e]}(0,r._)([(0,c.qq)()],wt.prototype,"coords",null),(0,r._)([(0,c.qq)({type:vt.c})],wt.prototype,"extent",void 0),(0,r._)([(0,c.qq)({type:Number})],wt.prototype,"rotation",void 0),wt=(0,r._)([(0,p.c)("esri.layers.support.ExtentAndRotationGeoreference")],wt);const Mt={key:"type",base:G,typeMap:{"control-points":ft,corners:gt,"extent-and-rotation":wt}},qt={key:"type",base:G,typeMap:{"control-points":ft}};let Pt=class extends((0,q.qm)((0,a.U)(P.c))){constructor(t){super(t),this.georeference=null,this.opacity=1}readGeoreference(t){return ft.fromJSON(t)}get contentWidth(){return 0}get contentHeight(){return 0}toSource(t){const{georeference:e,contentWidth:n,contentHeight:r}=this;if(null==t||null==e||0===n||0===r)return null;const i=e.toSourceNormalized(t);return null==i?null:(i.x*=n,i.y*=r,i)}};(0,r._)([(0,c.qq)({types:Mt,json:{write:!0,types:qt}})],Pt.prototype,"georeference",void 0),(0,r._)([(0,h.E)("georeference")],Pt.prototype,"readGeoreference",null),(0,r._)([(0,c.qq)({json:{read:!1,write:!1}})],Pt.prototype,"opacity",void 0),Pt=(0,r._)([(0,p.c)("esri.layers.support.MediaElementBase")],Pt);const St=Pt;n(60708);var It=n(60544);function Et(t,e){const n=(0,f.CQ)(e);return r=t,"media"===r?.type&&!!t.portalItem&&null!=n&&n>f.sT.PORTAL_ITEM;var r}var Rt=n(73960),At=n(91952);let Ot=class extends St{constructor(t){super(t),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this.image=null}load(){const t=this.image;if("string"==typeof t){const e=(0,w.AD)(t).then((t=>{this._set("content",t)}));this.addResolvingPromise(e)}else if(t instanceof HTMLImageElement){const e=t.decode().then((()=>{this._set("content",t)}));this.addResolvingPromise(e)}else t?this._set("content",t):this.addResolvingPromise(Promise.reject(new o.c("image-element:invalid-image-type","Invalid image type",{image:t})));return Promise.resolve(this)}get contentWidth(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalWidth:this.content.width}get contentHeight(){return null==this.content?0:this.content instanceof HTMLImageElement?this.content.naturalHeight:this.content.height}readImage(t,e,n){return(0,At.f)(e.url,n)}writeImage(t,e,n,r){if(null==t)return;const i=r?.portalItem,o=r?.resources;if(!i||!o)return void("string"==typeof t&&(e[n]=(0,At.t)(t,r)));const s=function(t){return"string"==typeof t&&!(0,b.o9)(t)&&!(0,b.ue)(t)}(t)?t:null;if(s){if(null==(0,At.i)(s))return void(e[n]=s);const t=(0,At.t)(s,{...r,verifyItemRelativeUrls:r?.verifyItemRelativeUrls?{writtenUrls:r.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},At.M.NO);if(i&&t&&!(0,b.ic)(t))return o.toKeep.push({resource:i.resourceFromPath(t),compress:!1}),void(e[n]=t)}e[n]="<pending>",o.pendingOperations.push(async function(t){return"string"==typeof t?(0,b.o9)(t)?(0,b.W8)(t):(await(0,v.c)(t,{responseType:"blob"})).data:new Promise((e=>function(t){if(t instanceof HTMLCanvasElement)return t;const e=t instanceof HTMLImageElement?t.naturalWidth:t.width,n=t instanceof HTMLImageElement?t.naturalHeight:t.height,r=document.createElement("canvas"),i=r.getContext("2d");return r.width=e,r.height=n,t instanceof HTMLImageElement?i.drawImage(t,0,0,t.width,t.height):t instanceof ImageData&&i.putImageData(t,0,0),r}(t).toBlob(e)))}(t).then((t=>{const r=function(t,e){const n=(0,M.g1)(),r=`${(0,b.kn)("media",n)}.${(0,Rt.e)({type:"blob",blob:t})}`;return e.resourceFromPath(r)}(t,i);e[n]=r.itemRelativeUrl,o.toAdd.push({resource:r,content:{type:"blob",blob:t},compress:!1,finish:t=>{this.image=t.url}})})))}write(t,e){const n=super.write(t,e);return"mediaType"in n&&!n.url&&delete n.mediaType,n}};(0,r._)([(0,c.qq)()],Ot.prototype,"animationOptions",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],Ot.prototype,"content",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],Ot.prototype,"contentWidth",null),(0,r._)([(0,c.qq)({readOnly:!0})],Ot.prototype,"contentHeight",null),(0,r._)([(0,c.qq)({json:{name:"url",type:String,write:{overridePolicy:(t,e,n)=>({enabled:!Et(n?.layer,n?.origin)})}}})],Ot.prototype,"image",void 0),(0,r._)([(0,h.E)("image",["url"])],Ot.prototype,"readImage",null),(0,r._)([(0,d.G)("image")],Ot.prototype,"writeImage",null),(0,r._)([(0,c.qq)({readOnly:!0,json:{read:!1,write:{target:"mediaType",ignoreOrigin:!0}}})],Ot.prototype,"type",void 0),Ot=(0,r._)([(0,p.c)("esri.layers.support.ImageElement")],Ot);const Tt=Ot;var Lt=n(30604),Bt=n(77860),Ct=n(94804),jt=n(57896),Ut=n(83372),Wt=n(41980),Xt=n(6904),Nt=n(33008),Yt=n(47452),Ht=n(6704),Ft=n(44048);function Dt(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,Ft.yK)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,Ft.yK)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,Ft.yK)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,Ft.yK)(r,n);t.x+=e*(-2*n)}}return t}function zt(t,e){const n=[],{ymin:r,ymax:i,xmin:o,xmax:s}=t,a=t.xmax-t.xmin,[l,c]=e.valid,{x:u,frameId:h}=$t(t.xmin,e),{x:p,frameId:d}=$t(t.xmax,e),f=u===p&&a>0;if(a>2*c){const t={xmin:o<s?u:p,ymin:r,xmax:c,ymax:i},e={xmin:l,ymin:r,xmax:o<s?p:u,ymax:i},a={xmin:0,ymin:r,xmax:c,ymax:i},f={xmin:l,ymin:r,xmax:0,ymax:i},m=[],y=[];Gt(t,a)&&m.push(h),Gt(t,f)&&y.push(h),Gt(e,a)&&m.push(d),Gt(e,f)&&y.push(d);for(let t=h+1;t<d;t++)m.push(t),y.push(t);n.push(new Kt(t,[h]),new Kt(e,[d]),new Kt(a,m),new Kt(f,y))}else u>p||f?n.push(new Kt({xmin:u,ymin:r,xmax:c,ymax:i},[h]),new Kt({xmin:l,ymin:r,xmax:p,ymax:i},[d])):n.push(new Kt({xmin:u,ymin:r,xmax:p,ymax:i},[h]));return n}function $t(t,e){const[n,r]=e.valid,i=2*r;let o,s=0;return t>r?(o=Math.ceil(Math.abs(t-r)/i),t-=o*i,s=o):t<n&&(o=Math.ceil(Math.abs(t-n)/i),t+=o*i,s=-o),{x:t,frameId:s}}function Gt(t,e){const{xmin:n,ymin:r,xmax:i,ymax:o}=e;return Vt(t,n,r)&&Vt(t,n,o)&&Vt(t,i,o)&&Vt(t,i,r)}function Vt(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function kt(t,e,n=!0){const r=!(0,Ht.cZ)(t);if(r&&(0,Yt.Wk)(t),n)return(new Qt).cut(t,e);const i=r?t.rings:t.paths,o=r?4:2,s=i.length,a=-2*e;for(let t=0;t<s;t++){const e=i[t];if(e&&e.length>=o){const t=[];for(const n of e)t.push([n[0]+a,n[1]]);i.push(t)}}return r?t.rings=i:t.paths=i,t}class Kt{constructor(t,e){this.extent=t,this.frameIds=e}}const Jt=(0,Ut.Su)();class Qt{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const r=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t[0],t[1],this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide==-1){const n=this._intersect(this._prevPt,t);this._lineTo(this._xCut,n,0),this._prevSide=0,this._lineTo(t[0],t[1],e)}else this._lineTo(t[0],t[1],e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e,n){this._closed?(this._lineIn.push([n<=0?t:this._xCut,e]),this._lineOut.push([n>=0?t:this._xCut,e])):(n<=0&&this._lineIn.push([t,e]),n>=0&&this._lineOut.push([t,e]))}_lineTo(t,e,n){this._closed?(this._addPolyVertex(this._lineIn,n<=0?t:this._xCut,e),this._addPolyVertex(this._lineOut,n>=0?t:this._xCut,e)):n<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push([t,e])):n>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push([t,e])):this._prevSide<0?(this._lineIn.push([t,e]),this._lineOut.push([t,e])):this._prevSide>0&&(this._lineOut.push([t,e]),this._lineIn.push([t,e]))}_addPolyVertex(t,e,n){const r=t.length;r>1&&t[r-1][0]===e&&t[r-2][0]===e?t[r-1][1]=n:t.push([e,n])}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0][1]=t[e-2][1],t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]);return t[1]+n*(e[1]-t[1])}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}let Zt=class extends S.c{constructor(t){super(t)}get bounds(){const t=this.coords;return null==t?.extent?null:(0,Ut.ER)(t.extent)}get coords(){const t=this.element.georeference?.coords;return(0,F.projectOrLoad)(t,this.spatialReference).geometry}get normalizedCoords(){return H.c.fromJSON(function(t,e){if(null==t)return null;const n=t.spatialReference,r=(0,It.Nq)(n),i=(0,I.wt)(t)?t.toJSON():t;if(!r)return i;const o=(0,It.kn)(n)?102100:4326,s=Ft.Hh[o].maxX,a=Ft.Hh[o].minX;if((0,Ht._x)(i))return Dt(i,s,a);if((0,Ht._)(i))return i.points=i.points.map((t=>Dt(t,s,a))),i;if((0,Ht.Ul)(i))return function(t,e){if(!e)return t;const n=zt(t,e).map((t=>t.extent));return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map((t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]]))}}(i,r);if((0,Ht.Cs)(i)||(0,Ht.cZ)(i)){const t=(0,Nt.ac)(Jt,i),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,Ft.yK)(n.xmin,a)*(2*s),o=0===r?i:(0,Ft.wb)(i,r);return n.xmin+=r,n.xmax+=r,n.xmax>s?kt(o,s,e):n.xmin<a?kt(o,a,e):o}return i}(this.coords,!0))}get normalizedBounds(){const t=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=t?(0,Ut.ER)(t):null}};(0,r._)([(0,c.qq)()],Zt.prototype,"spatialReference",void 0),(0,r._)([(0,c.qq)()],Zt.prototype,"element",void 0),(0,r._)([(0,c.qq)()],Zt.prototype,"bounds",null),(0,r._)([(0,c.qq)()],Zt.prototype,"coords",null),(0,r._)([(0,c.qq)()],Zt.prototype,"normalizedCoords",null),(0,r._)([(0,c.qq)()],Zt.prototype,"normalizedBounds",null),Zt=(0,r._)([(0,p.c)("esri.layers.support.MediaElementView")],Zt);var te=n(60976);let ee=class extends St{constructor(t){super(t),this.autoplay=!0,this.content=null,this.type="video"}load(){const t=this.video;if("string"==typeof t){const e=document.createElement("video");e.src=t,e.crossOrigin="anonymous",e.autoplay=!0,e.muted=!0,e.loop=!0,this.addResolvingPromise(this._loadVideo(e).then((()=>{this._set("content",e)})))}else t instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(t).then((()=>{this._set("content",t)}))):this.addResolvingPromise(Promise.reject(new o.c("video-element:invalid-video-type","Invalid video type",{video:t})));return Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}set video(t){"not-loaded"===this.loadStatus?this._set("video",t):s.c.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}_loadVideo(t){return new Promise(((e,n)=>{const r=(0,te.qw)(t,"canplay",(()=>{this.removeHandles("canplay"),this.autoplay?t.play().then(e,n):e()}));this.addHandles(r,"canplay"),"anonymous"!==t.crossOrigin&&(t.crossOrigin="anonymous",t.src?.includes("blob:")||(t.src=t.src))}))}};(0,r._)([(0,c.qq)()],ee.prototype,"autoplay",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],ee.prototype,"content",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],ee.prototype,"contentWidth",null),(0,r._)([(0,c.qq)({readOnly:!0})],ee.prototype,"contentHeight",null),(0,r._)([(0,c.qq)()],ee.prototype,"video",null),ee=(0,r._)([(0,p.c)("esri.layers.support.VideoElement")],ee);const ne=ee,re={key:"type",defaultKeyValue:"image",base:St,typeMap:{image:Tt,video:ne}},ie=i.c.ofType(re);let oe=class extends(P.c.LoadableMixin((0,Ct.g)(Bt.c.EventedAccessor))){constructor(t){super(t),this._index=new Xt.c,this._elementViewsMap=new Map,this._elementsIndexes=new Map,this._elementsChangedHandler=t=>{for(const e of t.removed){const t=this._elementViewsMap.get(e);this._elementViewsMap.delete(e),this._index.delete(t),this.removeHandles(t),t.destroy(),this.notifyChange("fullExtent")}const{spatialReference:e}=this;for(const n of t.added){if(this._elementViewsMap.get(n))continue;const t=new Zt({spatialReference:e,element:n});this._elementViewsMap.set(n,t);const r=(0,jt.aE)((()=>t.coords),(()=>this._updateIndexForElement(t,!1)));this._updateIndexForElement(t,!0),this.addHandles(r,t)}this._elementsIndexes.clear(),this.elements.forEach(((t,e)=>this._elementsIndexes.set(t,e))),this.emit("refresh")},this.elements=new ie}async load(t){if((0,l.wp)(t),!this.spatialReference){const t=this.elements.find((t=>null!=t.georeference?.coords));this._set("spatialReference",t?t.georeference.coords.spatialReference:D.c.WGS84)}return this._elementsChangedHandler({added:this.elements.items,removed:[]}),this.addHandles(this.elements.on("change",this._elementsChangedHandler)),this}destroy(){this._index.clear(),this._elementViewsMap.clear(),this._elementsIndexes.clear()}set elements(t){this._set("elements",(0,Lt.q)(t,this._get("elements"),ie))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const t=this._index.fullBounds;return null==t?null:new vt.c({xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3],spatialReference:this.spatialReference})}set spatialReference(t){"not-loaded"===this.loadStatus?this._set("spatialReference",t):s.c.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(t,e){await this.load(),await(0,F.initializeProjection)(t.spatialReference,this.spatialReference,null,e);const n=(0,It.yK)(t.spatialReference,this.spatialReference)?t:(0,F.project)(t,this.spatialReference);if(!n)return[];const r=n.normalize(),i=[];for(const t of r)this._index.forEachInBounds((0,Ut.ER)(t),(({normalizedCoords:e,element:n})=>{null!=e&&(0,Wt.yu)(t,e)&&i.push(n)}));return i.sort(((t,e)=>this._elementsIndexes.get(t)-this._elementsIndexes.get(e))),i}_updateIndexForElement(t,e){const n=t.normalizedBounds,r=this._index.has(t),i=null!=n;this._index.delete(t),i&&this._index.set(t,n),this.notifyChange("fullExtent"),e||(r!==i?this.emit("refresh"):this.emit("change",{element:t.element}))}};(0,r._)([(0,c.qq)()],oe.prototype,"elements",null),(0,r._)([(0,c.qq)({readOnly:!0})],oe.prototype,"fullExtent",null),(0,r._)([(0,c.qq)()],oe.prototype,"spatialReference",null),oe=(0,r._)([(0,p.c)("esri.layers.support.LocalMediaElementSource")],oe);const se=oe;var ae=n(8616);function le(t){return"object"==typeof t&&null!=t&&"type"in t}function ce(t){return le(t)&&"image"===t.type}let ue=class extends((0,y.W)((0,x.I)((0,g.Y)((0,_.K)((0,a.U)(m.c)))))){constructor(t){super(t),this.effectiveSource=null,this.georeference=null,this.copyright=null,this.operationalLayerType="MediaLayer",this.spatialReference=null,this.type="media",this._debouncedSaveOperations=(0,l.Cu)((async(t,e,r)=>{const{save:i,saveAs:o}=await n.e(7852).then(n.bind(n,7852));switch(t){case ae.U.SAVE:return i(this,e);case ae.U.SAVE_AS:return o(this,r,e)}})),this.source=new se}load(t){return this.addResolvingPromise(this._doLoad(t)),Promise.resolve(this)}async _doLoad(t){await this.loadFromPortal({supportedTypes:["Media Layer"]},t);let e=this.source;if(!e)throw new o.c("media-layer:source-missing","Set 'MediaLayer.source' before loading the layer.");const n=this._getSourceOverride(e,this.georeference);n&&(this.setAtOrigin("source",n,"web-map"),e=n);const r=le(e)?new se({elements:new i.c([e])}):e;this._set("effectiveSource",r),this.spatialReference&&(r.spatialReference=this.spatialReference),await r.load(t),this.spatialReference=r.spatialReference}destroy(){this.effectiveSource?.destroy(),this.source?.destroy()}readGeoreference(t,e){return t&&"itemId"in e&&e.itemId?t:void 0}get fullExtent(){return this.loaded?this.effectiveSource.fullExtent:null}set source(t){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("source",t):s.c.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(t){return t?Array.isArray(t)?new se({elements:new i.c(t)}):t instanceof i.c?new se({elements:t}):t:null}readSource(t,e,n){if("itemId"in e&&e.itemId)return;const r=this._createSource(e);return r?.read(e,n),r}writeSource(t,e,n,r){ce(t)?t.write(e,r):r?.messages&&r?.messages?.push(new o.c("media-layer:unsupported-source","source must be an 'ImageElement'"))}async save(t){return this._debouncedSaveOperations(ae.U.SAVE,t)}async saveAs(t,e){return this._debouncedSaveOperations(ae.U.SAVE_AS,e,t)}_createSource(t){if("mediaType"in t)switch(t.mediaType){case"image":return new Tt;case"video":return new ne}return null}_getSourceOverride(t,e){if(le(t)&&this.originIdOf("source")===f.sT.PORTAL_ITEM&&e&&this.originIdOf("georeference")===f.sT.WEB_MAP){const n=t.toJSON(),r=this._createSource(n);return r.read({...n},{origin:"portal-item"}),r.read({georeference:e},{origin:"web-map"}),r}return null}};(0,r._)([(0,c.qq)({readOnly:!0})],ue.prototype,"effectiveSource",void 0),(0,r._)([(0,c.qq)({readOnly:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!1}}}})],ue.prototype,"georeference",void 0),(0,r._)([(0,h.E)("web-map","georeference")],ue.prototype,"readGeoreference",null),(0,r._)([(0,c.qq)({type:String})],ue.prototype,"copyright",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],ue.prototype,"fullExtent",null),(0,r._)([(0,c.qq)({type:["MediaLayer"]})],ue.prototype,"operationalLayerType",void 0),(0,r._)([(0,c.qq)({type:["show","hide"]})],ue.prototype,"listMode",void 0),(0,r._)([(0,c.qq)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1,overridePolicy(t,e,n){return{enabled:!0,allowNull:!1,ignoreOrigin:Et(this,n?.origin)&&ce(t)&&!!t.georeference&&t.originIdOf("georeference")>f.sT.PORTAL_ITEM}}}}})],ue.prototype,"source",null),(0,r._)([(0,u.W)("source")],ue.prototype,"castSource",null),(0,r._)([(0,h.E)("source",["url"])],ue.prototype,"readSource",null),(0,r._)([(0,d.G)("source")],ue.prototype,"writeSource",null),(0,r._)([(0,c.qq)()],ue.prototype,"spatialReference",void 0),(0,r._)([(0,c.qq)({readOnly:!0})],ue.prototype,"type",void 0),ue=(0,r._)([(0,p.c)("esri.layers.MediaLayer")],ue);const he=ue},24676:(t,e,n)=>{n.d(e,{gH:()=>P,GA:()=>S});var r,i,o=n(20744),s=n(58820),a=n(46988),l=n(65604),c=(n(8528),n(14644)),u={exports:{}};i=function(){function t(e,n,r,i){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,t.prototype),o.expected=n,o.found=r,o.location=i,o.name="SyntaxError",o}function e(t,e,n){return n=n||" ",t.length>e?t:(e-=t.length,t+(n+=n.repeat(e)).slice(0,e))}return function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}(t,Error),t.prototype.format=function(t){var n="Error: "+this.message;if(this.location){var r,i=null;for(r=0;r<t.length;r++)if(t[r].source===this.location.source){i=t[r].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,s=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(o):o,a=this.location.source+":"+s.line+":"+s.column;if(i){var l=this.location.end,c=e("",s.line.toString().length," "),u=i[o.line-1],h=(o.line===l.line?l.column:u.length+1)-o.column||1;n+="\n --\x3e "+a+"\n"+c+" |\n"+s.line+" | "+u+"\n"+c+" | "+e("",o.column-1," ")+e("",h,"^")}else n+="\n at "+a}return n},t.buildMessage=function(t,e){var n={literal:function(t){return'"'+i(t.text)+'"'},class:function(t){var e=t.parts.map((function(t){return Array.isArray(t)?o(t[0])+"-"+o(t[1]):o(t)}));return"["+(t.inverted?"^":"")+e.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(t){return t.description}};function r(t){return t.charCodeAt(0).toString(16).toUpperCase()}function i(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function o(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(t){return"\\x0"+r(t)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(t){return"\\x"+r(t)}))}function s(t){return n[t.type](t)}return"Expected "+function(t){var e,n,r=t.map(s);if(r.sort(),r.length>0){for(e=1,n=1;e<r.length;e++)r[e-1]!==r[e]&&(r[n]=r[e],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+function(t){return t?'"'+i(t)+'"':"end of input"}(e)+" found."},{SyntaxError:t,parse:function(e,n){var r,i={},o=(n=void 0!==n?n:{}).grammarSource,s={start:zt},a=zt,l="none",c=")",u=",",h="(",p="%",d="px",f="cm",m="mm",y="in",g="pt",_="pc",x="deg",v="rad",w="grad",b="turn",M="#",q=".",P="e",S=/^[ \t\n\r]/,I=/^[a-z\-]/,E=/^[0-9a-fA-F]/,R=/^[+\-]/,A=/^[0-9]/,O=Yt("none"),T=Xt("none",!1),L=Xt(")",!1),B=Xt(",",!1),C=Yt("whitespace"),j=Nt([" ","\t","\n","\r"],!1,!1),U=Yt("function"),W=Xt("(",!1),X=Yt("identifier"),N=Nt([["a","z"],"-"],!1,!1),Y=Yt("percentage"),H=Xt("%",!1),F=Yt("length"),D=Xt("px",!1),z=Xt("cm",!1),$=Xt("mm",!1),G=Xt("in",!1),V=Xt("pt",!1),k=Xt("pc",!1),K=Yt("angle"),J=Xt("deg",!1),Q=Xt("rad",!1),Z=Xt("grad",!1),tt=Xt("turn",!1),et=Yt("number"),nt=Yt("color"),rt=Xt("#",!1),it=Nt([["0","9"],["a","f"],["A","F"]],!1,!1),ot=Nt(["+","-"],!1,!1),st=Nt([["0","9"]],!1,!1),at=Xt(".",!1),lt=Xt("e",!1),ct=function(){return[]},ut=function(t,e){return{type:"function",name:t,parameters:e||[]}},ht=function(t,e){return e.length>0?function(t,e,n){return[t].concat(function(t,e){return t.map((function(t){return t[3]}))}(e))}(t,e):[t]},pt=function(t){return{type:"quantity",value:t.value,unit:t.unit}},dt=function(t){return{type:"color",colorType:t.type,value:t.value}},ft=function(t){return t},mt=function(){return Wt()},yt=function(t){return{value:t,unit:"%"}},gt=function(t){return{value:t,unit:"px"}},_t=function(t){return{value:t,unit:"cm"}},xt=function(t){return{value:t,unit:"mm"}},vt=function(t){return{value:t,unit:"in"}},wt=function(t){return{value:t,unit:"pt"}},bt=function(t){return{value:t,unit:"pc"}},Mt=function(t){return{value:t,unit:"deg"}},qt=function(t){return{value:t,unit:"rad"}},Pt=function(t){return{value:t,unit:"grad"}},St=function(t){return{value:t,unit:"turn"}},It=function(t){return{value:t,unit:null}},Et=function(){return{type:"hex",value:Wt()}},Rt=function(t){return{type:"function",value:t}},At=function(){return{type:"named",value:Wt()}},Ot=function(){return parseFloat(Wt())},Tt=0,Lt=0,Bt=[{line:1,column:1}],Ct=0,jt=[],Ut=0;if("startRule"in n){if(!(n.startRule in s))throw new Error("Can't start parsing from rule \""+n.startRule+'".');a=s[n.startRule]}function Wt(){return e.substring(Lt,Tt)}function Xt(t,e){return{type:"literal",text:t,ignoreCase:e}}function Nt(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function Yt(t){return{type:"other",description:t}}function Ht(t){var n,r=Bt[t];if(r)return r;for(n=t-1;!Bt[n];)n--;for(r={line:(r=Bt[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Bt[t]=r,r}function Ft(t,e,n){var r=Ht(t),i=Ht(e),s={source:o,start:{offset:t,line:r.line,column:r.column},end:{offset:e,line:i.line,column:i.column}};return n&&o&&"function"==typeof o.offset&&(s.start=o.offset(s.start),s.end=o.offset(s.end)),s}function Dt(t){Tt<Ct||(Tt>Ct&&(Ct=Tt,jt=[]),jt.push(t))}function zt(){var t;return(t=$t())===i&&(t=function(){var t,e;if(t=[],(e=Gt())!==i)for(;e!==i;)t.push(e),e=Gt();else t=i;return t}()),t}function $t(){var t,n;return Ut++,t=Tt,kt(),e.substr(Tt,4)===l?(n=l,Tt+=4):(n=i,0===Ut&&Dt(T)),n!==i?(kt(),Lt=t,t=ct()):(Tt=t,t=i),Ut--,t===i&&0===Ut&&Dt(O),t}function Gt(){var t,n,r,o;return t=Tt,kt(),(n=function(){var t,n,r;return Ut++,t=Tt,(n=Kt())!==i?(40===e.charCodeAt(Tt)?(r=h,Tt++):(r=i,0===Ut&&Dt(W)),r!==i?(Lt=t,t=ft(n)):(Tt=t,t=i)):(Tt=t,t=i),Ut--,t===i&&(n=i,0===Ut&&Dt(U)),t}())!==i?(kt(),(r=function(){var t,n,r,o,s,a,l,c;if(t=Tt,(n=Vt())!==i){for(r=[],o=Tt,s=kt(),44===e.charCodeAt(Tt)?(a=u,Tt++):(a=i,0===Ut&&Dt(B)),a===i&&(a=null),l=kt(),(c=Vt())!==i?o=s=[s,a,l,c]:(Tt=o,o=i);o!==i;)r.push(o),o=Tt,s=kt(),44===e.charCodeAt(Tt)?(a=u,Tt++):(a=i,0===Ut&&Dt(B)),a===i&&(a=null),l=kt(),(c=Vt())!==i?o=s=[s,a,l,c]:(Tt=o,o=i);Lt=t,t=ht(n,r)}else Tt=t,t=i;return t}())===i&&(r=null),kt(),41===e.charCodeAt(Tt)?(o=c,Tt++):(o=i,0===Ut&&Dt(L)),o!==i?(kt(),Lt=t,t=ut(n,r)):(Tt=t,t=i)):(Tt=t,t=i),t}function Vt(){var t,e;return t=Tt,(e=Jt())===i&&(e=Qt())===i&&(e=Zt())===i&&(e=function(){var t,e;return Ut++,t=Tt,kt(),(e=ee())!==i?(Lt=t,t=It(e)):(Tt=t,t=i),Ut--,t===i&&0===Ut&&Dt(et),t}()),e!==i&&(Lt=t,e=pt(e)),(t=e)===i&&(t=Tt,(e=te())!==i&&(Lt=t,e=dt(e)),t=e),t}function kt(){var t,n;for(Ut++,t=[],S.test(e.charAt(Tt))?(n=e.charAt(Tt),Tt++):(n=i,0===Ut&&Dt(j));n!==i;)t.push(n),S.test(e.charAt(Tt))?(n=e.charAt(Tt),Tt++):(n=i,0===Ut&&Dt(j));return Ut--,n=i,0===Ut&&Dt(C),t}function Kt(){var t,n,r;if(Ut++,t=Tt,n=[],I.test(e.charAt(Tt))?(r=e.charAt(Tt),Tt++):(r=i,0===Ut&&Dt(N)),r!==i)for(;r!==i;)n.push(r),I.test(e.charAt(Tt))?(r=e.charAt(Tt),Tt++):(r=i,0===Ut&&Dt(N));else n=i;return n!==i&&(Lt=t,n=mt()),Ut--,(t=n)===i&&(n=i,0===Ut&&Dt(X)),t}function Jt(){var t,n,r;return Ut++,t=Tt,kt(),(n=ee())!==i?(37===e.charCodeAt(Tt)?(r=p,Tt++):(r=i,0===Ut&&Dt(H)),r!==i?(Lt=t,t=yt(n)):(Tt=t,t=i)):(Tt=t,t=i),Ut--,t===i&&0===Ut&&Dt(Y),t}function Qt(){var t,n,r;return Ut++,t=Tt,kt(),(n=ee())!==i?(e.substr(Tt,2)===d?(r=d,Tt+=2):(r=i,0===Ut&&Dt(D)),r!==i?(Lt=t,t=gt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,kt(),(n=ee())!==i?(e.substr(Tt,2)===f?(r=f,Tt+=2):(r=i,0===Ut&&Dt(z)),r!==i?(Lt=t,t=_t(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,kt(),(n=ee())!==i?(e.substr(Tt,2)===m?(r=m,Tt+=2):(r=i,0===Ut&&Dt($)),r!==i?(Lt=t,t=xt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,kt(),(n=ee())!==i?(e.substr(Tt,2)===y?(r=y,Tt+=2):(r=i,0===Ut&&Dt(G)),r!==i?(Lt=t,t=vt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,kt(),(n=ee())!==i?(e.substr(Tt,2)===g?(r=g,Tt+=2):(r=i,0===Ut&&Dt(V)),r!==i?(Lt=t,t=wt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,kt(),(n=ee())!==i?(e.substr(Tt,2)===_?(r=_,Tt+=2):(r=i,0===Ut&&Dt(k)),r!==i?(Lt=t,t=bt(n)):(Tt=t,t=i)):(Tt=t,t=i)))))),Ut--,t===i&&0===Ut&&Dt(F),t}function Zt(){var t,n,r;return Ut++,t=Tt,(n=ee())!==i?(e.substr(Tt,3)===x?(r=x,Tt+=3):(r=i,0===Ut&&Dt(J)),r!==i?(Lt=t,t=Mt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,(n=ee())!==i?(e.substr(Tt,3)===v?(r=v,Tt+=3):(r=i,0===Ut&&Dt(Q)),r!==i?(Lt=t,t=qt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,(n=ee())!==i?(e.substr(Tt,4)===w?(r=w,Tt+=4):(r=i,0===Ut&&Dt(Z)),r!==i?(Lt=t,t=Pt(n)):(Tt=t,t=i)):(Tt=t,t=i),t===i&&(t=Tt,(n=ee())!==i?(e.substr(Tt,4)===b?(r=b,Tt+=4):(r=i,0===Ut&&Dt(tt)),r!==i?(Lt=t,t=St(n)):(Tt=t,t=i)):(Tt=t,t=i)))),Ut--,t===i&&(n=i,0===Ut&&Dt(K)),t}function te(){var t,n,r,o;if(Ut++,t=Tt,35===e.charCodeAt(Tt)?(n=M,Tt++):(n=i,0===Ut&&Dt(rt)),n!==i){if(r=[],E.test(e.charAt(Tt))?(o=e.charAt(Tt),Tt++):(o=i,0===Ut&&Dt(it)),o!==i)for(;o!==i;)r.push(o),E.test(e.charAt(Tt))?(o=e.charAt(Tt),Tt++):(o=i,0===Ut&&Dt(it));else r=i;r!==i?(Lt=t,t=Et()):(Tt=t,t=i)}else Tt=t,t=i;return t===i&&(t=Tt,(n=Gt())!==i&&(Lt=t,n=Rt(n)),(t=n)===i&&(t=Tt,(n=Kt())!==i&&(Lt=t,n=At()),t=n)),Ut--,t===i&&(n=i,0===Ut&&Dt(nt)),t}function ee(){var t,n,r,o,s,a,l;for(t=Tt,R.test(e.charAt(Tt))?(e.charAt(Tt),Tt++):0===Ut&&Dt(ot),n=Tt,r=[],A.test(e.charAt(Tt))?(o=e.charAt(Tt),Tt++):(o=i,0===Ut&&Dt(st));o!==i;)r.push(o),A.test(e.charAt(Tt))?(o=e.charAt(Tt),Tt++):(o=i,0===Ut&&Dt(st));if(46===e.charCodeAt(Tt)?(o=q,Tt++):(o=i,0===Ut&&Dt(at)),o!==i){if(s=[],A.test(e.charAt(Tt))?(a=e.charAt(Tt),Tt++):(a=i,0===Ut&&Dt(st)),a!==i)for(;a!==i;)s.push(a),A.test(e.charAt(Tt))?(a=e.charAt(Tt),Tt++):(a=i,0===Ut&&Dt(st));else s=i;s!==i?n=r=[r,o,s]:(Tt=n,n=i)}else Tt=n,n=i;if(n===i)if(n=[],A.test(e.charAt(Tt))?(r=e.charAt(Tt),Tt++):(r=i,0===Ut&&Dt(st)),r!==i)for(;r!==i;)n.push(r),A.test(e.charAt(Tt))?(r=e.charAt(Tt),Tt++):(r=i,0===Ut&&Dt(st));else n=i;if(n!==i){if(r=Tt,101===e.charCodeAt(Tt)?(o=P,Tt++):(o=i,0===Ut&&Dt(lt)),o!==i){if(R.test(e.charAt(Tt))?(s=e.charAt(Tt),Tt++):(s=i,0===Ut&&Dt(ot)),s===i&&(s=null),a=[],A.test(e.charAt(Tt))?(l=e.charAt(Tt),Tt++):(l=i,0===Ut&&Dt(st)),l!==i)for(;l!==i;)a.push(l),A.test(e.charAt(Tt))?(l=e.charAt(Tt),Tt++):(l=i,0===Ut&&Dt(st));else a=i;a!==i?r=o=[o,s,a]:(Tt=r,r=i)}else Tt=r,r=i;r===i&&(r=null),Lt=t,t=Ot()}else Tt=t,t=i;return t}if((r=a())!==i&&Tt===e.length)return r;throw r!==i&&Tt<e.length&&Dt({type:"end"}),function(e,n,r){return new t(t.buildMessage(e,n),e,n,r)}(jt,Ct<e.length?e.charAt(Ct):null,Ct<e.length?Ft(Ct,Ct+1):Ft(Ct,Ct))}}},(r=u).exports&&(r.exports=i());var h=u.exports;function p(t){if(!t||0===t.length)return null;if("string"==typeof t){const e=d(t);return e&&0!==e.length?e:null}const e=t.map((t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new o.c("effect:invalid-scale","scale must be finite and greater than 0",{stop:t});return{scale:t.scale,effects:d(t.value)}}));e.sort(((t,e)=>e.effects.length-t.effects.length));for(let t=0;t<e.length-1;t++){if(!(0,c.w1)(e[t].effects,e[t+1].effects))throw new o.c("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[t].effects,b:e[t+1].effects});(0,c.A1)(e[t].effects,e[t+1].effects)}return e.sort(((t,e)=>e.scale-t.scale)),e}function d(t){let e;if(!t)return[];try{e=h.parse(t)}catch(e){throw new o.c("effect:invalid-syntax","Invalid effect syntax",{value:t,error:e})}return e.map((t=>function(t){try{switch(t.name){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":return function(t){let e=1;return f(t.parameters,1),1===t.parameters.length&&(e=x(t.parameters[0])),new l.M7(t.name,e)}(t);case"opacity":return function(t){let e=1;return f(t.parameters,1),1===t.parameters.length&&(e=x(t.parameters[0])),new l.Ez(e)}(t);case"hue-rotate":return function(t){let e=0;return f(t.parameters,1),1===t.parameters.length&&(e=function(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=g[t.unit]))throw new o.c("effect:type-error",`Expected <angle>, Actual: ${m(t)}`,{term:t})}(t),t.value*g[t.unit]||0}(t.parameters[0])),new l.C8(e)}(t);case"blur":return function(t){let e=0;return f(t.parameters,1),1===t.parameters.length&&(e=v(t.parameters[0]),y(e,t.parameters[0])),new l.o1(e)}(t);case"drop-shadow":return function(t){const e=[];let n=null;for(const r of t.parameters)if("color"===r.type){if(e.length&&Object.freeze(e),n)throw new o.c("effect:type-error","Accepts only one color",{});n=w(r)}else{const t=v(r);if(Object.isFrozen(e))throw new o.c("effect:type-error","<length> parameters not consecutive",{lengths:e});e.push(t),3===e.length&&y(t,r)}if(e.length<2||e.length>3)throw new o.c("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e});return new l.of(e[0],e[1],e[2]||0,n||b("black"))}(t);case"bloom":return function(t){let e=1,n=0,r=0;return f(t.parameters,3),t.parameters[0]&&(e=x(t.parameters[0])),t.parameters[1]&&(n=v(t.parameters[1]),y(n,t.parameters[1])),t.parameters[2]&&(r=x(t.parameters[2])),new l.qC(e,n,r)}(t)}}catch(e){throw e.details.filter=t,e}throw new o.c("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t)))}function f(t,e){if(t.length>e)throw new o.c("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function m(t){if("color"===t.type)return"<color>";if(t.unit){if(t.unit in _)return"<length>";if(t.unit in g)return"<angle>";if("%"===t.unit)return"<percentage>"}return"<double>"}function y(t,e){if(t<0)throw new o.c("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}const g={deg:1,grad:.9,rad:180/Math.PI,turn:360},_={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function x(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new o.c("effect:type-error",`Expected <double> or <percentage>, Actual: ${m(t)}`,{term:t})}(t);const e=t.value;return y(e,t),"%"===t.unit?.01*e:e}function v(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=_[t.unit]))throw new o.c("effect:type-error",`Expected <length>, Actual: ${m(t)}`,{term:t})}(t),t.value*_[t.unit]||0}function w(t){switch(t.colorType){case"hex":return(0,a.yU)(t.value);case"named":return b(t.value);case"function":return function(t){if(f(t.parameters,4),M.test(t.name))return[x(t.parameters[0]),x(t.parameters[1]),x(t.parameters[2]),t.parameters[3]?x(t.parameters[3]):1];if(q.test(t.name))return(0,a.ec)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new o.c("effect:type-error",`Expected <double>, Actual: ${m(t)}`,{term:t})}(t),y(t.value,t),t.value}(t.parameters[0]),x(t.parameters[1]),x(t.parameters[2]),t.parameters[3]?x(t.parameters[3]):1);throw new o.c("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function b(t){if(!(0,a.kv)(t))throw new o.c("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t});return(0,a.uO)(t)}const M=/^rgba?/i,q=/^hsla?/i;function P(t,e,n){try{return function(t){if(!t||0===t.length)return null;if(function(t){const e=t[0];return!!e&&"scale"in e}(t)){const e=[];for(const n of t)e.push({scale:n.scale,value:I(n.value)});return e}return I(t)}(t)}catch(t){n?.messages?.push(t)}return null}function S(t,e,n,r){try{const r=function(t){const e=p(t);return e?(0,c.Ub)(e)?e.map((t=>t.toJSON())):e.map((({scale:t,effects:e})=>({scale:t,value:e.map((t=>t.toJSON()))}))):null}(t);(0,s.qQ)(n,r,e)}catch(t){r.messages&&r.messages.push(t)}}function I(t){if(!t?.length)return"";const e=[];for(const n of t){let t=[];switch(n.type){case"grayscale":case"sepia":case"saturate":case"invert":case"brightness":case"contrast":case"opacity":t=[E(n,"amount")];break;case"blur":t=[E(n,"radius","pt")];break;case"hue-rotate":t=[E(n,"angle","deg")];break;case"drop-shadow":t=[E(n,"xoffset","pt"),E(n,"yoffset","pt"),E(n,"blurRadius","pt"),R(n,"color")];break;case"bloom":t=[E(n,"strength"),E(n,"radius","pt"),E(n,"threshold")]}const r=`${n.type}(${t.filter(Boolean).join(" ")})`;p(r),e.push(r)}return e.join(" ")}function E(t,e,n){if(null==t[e])throw new o.c("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});return n?t[e]+n:""+t[e]}function R(t,e){if(null==t[e])throw new o.c("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});const n=t[e];return`rgba(${n[0]||0}, ${n[1]||0}, ${n[2]||0}, ${n[3]/255||0})`}},6904:(t,e,n)=>{n.d(e,{c:()=>a});var r=n(9456),i=n(3024),o=n(83372);const s={minX:0,minY:0,maxX:0,maxY:0};class a{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new i.U(9,(0,r.c)("esri-csp-restrictions")?t=>({minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const t=new Array(this._idByBounds.size);let e=0;this._idByBounds.forEach(((n,r)=>{t[e++]=r})),this._indexInvalid=!1,this._index.clear(),this._index.load(t)}else this._boundsToLoad.length&&(this._index.load(Array.from(new Set(this._boundsToLoad.filter((t=>this._idByBounds.has(t)))))),this._boundsToLoad.length=0)}}get fullBounds(){if(!this._boundsById.size)return null;const t=(0,o.FZ)();for(const e of this._boundsById.values())e&&(t[0]=Math.min(e[0],t[0]),t[1]=Math.min(e[1],t[1]),t[2]=Math.max(e[2],t[2]),t[3]=Math.max(e[3],t[3]));return t}get valid(){return!this._indexInvalid}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(t){const e=this._boundsById.get(t);this._boundsById.delete(t),e&&(this._idByBounds.delete(e),this._indexInvalid||this._index.remove(e))}forEachInBounds(t,e){this._loadIndex(),function(t,e,n){(function(t){s.minX=t[0],s.minY=t[1],s.maxX=t[2],s.maxY=t[3]})(e),t.search(s,n)}(this._index,t,(t=>e(this._idByBounds.get(t))))}get(t){return this._boundsById.get(t)}has(t){return this._boundsById.has(t)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(t,e){if(!this._indexInvalid){const e=this._boundsById.get(t);e&&(this._index.remove(e),this._idByBounds.delete(e))}this._boundsById.set(t,e),e&&(this._idByBounds.set(e,t),this._indexInvalid||(this._boundsToLoad.push(e),this._boundsToLoad.length>5e4&&this._loadIndex()))}}},25216:(t,e,n)=>{n.d(e,{W:()=>l});var r=n(41948),i=n(1580),o=(n(9456),n(66360),n(72052),n(12552)),s=n(24676);const a={read:{reader:s.gH},write:{allowNull:!0,writer:s.GA}},l=t=>{let e=class extends t{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r._)([(0,i.qq)({type:["average","color-burn","color-dodge","color","darken","destination-atop","destination-in","destination-out","destination-over","difference","exclusion","hard-light","hue","invert","lighten","lighter","luminosity","minus","multiply","normal","overlay","plus","reflect","saturation","screen","soft-light","source-atop","source-in","source-out","vivid-light","xor"],nonNullable:!0,json:{read:!1,write:!1,origins:{"web-map":{read:!0,write:!0},"portal-item":{read:!0,write:!0}}}})],e.prototype,"blendMode",void 0),(0,r._)([(0,i.qq)({json:{read:!1,write:!1,origins:{"web-map":a,"portal-item":a}}})],e.prototype,"effect",void 0),e=(0,r._)([(0,o.c)("esri.layers.mixins.BlendLayer")],e),e}},98768:(t,e,n)=>{n.d(e,{K:()=>b});var r=n(41948),i=n(6220),o=n(47620),s=n(2600),a=n(40196),l=n(20744),c=n(66360),u=n(70680),h=n(10860),p=n(28176),d=n(1580),f=(n(9456),n(72052),n(33600)),m=n(12552),y=n(18996),g=n(71068),_=n(54872),x=n(9764),v=n(53039),w=n(46940);const b=t=>{let e=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,u.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(t){t!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",t))}readPortalItem(t,e,n){if(e.itemId)return new x.default({id:e.itemId,portal:n?.portal})}writePortalItem(t,e){t?.id&&(e.itemId=t.id)}async loadFromPortal(t,e){if(this.portalItem?.id)try{const{load:r}=await Promise.all([n.e(8828),n.e(4132)]).then(n.bind(n,94132));return(0,h.wp)(e),await r({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap},e)}catch(t){throw(0,h.mA)(t)||c.c.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${t}`),t}}async finishLoadEditablePortalLayer(t){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(t).catch((t=>((0,h.CE)(t),!0))))}async setUserPrivileges(t,e){if(!i.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(e);if(this.url)try{const{features:{edit:n,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(t,e);this._set("userHasEditingPrivileges",n),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(t){(0,h.CE)(t)}}async _fetchUserPrivileges(t,e){let n=this.portalItem;if(!t||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(e);const r=t===n.id;if(r&&n.portal.user)return(0,w.CI)(n);let i,s;if(r)i=n.portal.url;else try{i=await(0,g.mK)(this.url,e)}catch(t){(0,h.CE)(t)}if(!i||!(0,p.Cs)(i,n.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;s=await(o.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,h.CE)(t)}if(!s)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(r?await n.reload():(n=new x.default({id:t,portal:{url:i}}),await n.load(e)),n.portal.user)return(0,w.CI)(n)}catch(t){(0,h.CE)(t)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,h.CE)(t)}return{features:{edit:e,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(t){const e=this.url?o.id?.findCredential(this.url):null;if(!e)return!0;const n=M.credential===e?M.user:await this._fetchEditingUser(t);return M.credential=e,M.user=n,null==n?.privileges||n.privileges.includes("features:user:edit")}async _fetchEditingUser(t){const e=this.portalItem?.portal?.user;if(e)return e;const n=o.id.findServerInfo(this.url??"");if(!n?.owningSystemUrl)return null;const r=`${n.owningSystemUrl}/sharing/rest`,i=_.c.getDefault();if(i&&i.loaded&&(0,p.k7)(i.restUrl)===(0,p.k7)(r))return i.user;const l=`${r}/community/self`,c=null!=t?t.signal:null,u=await(0,a.aG)((0,s.c)(l,{authMode:"no-prompt",query:{f:"json"},signal:c}));return u.ok?v.c.fromJSON(u.value.data):null}read(t,e){e&&(e.layer=this),super.read(t,e)}write(t,e){const n=e?.portal,r=this.portalItem?.id&&(this.portalItem.portal||_.c.getDefault());return n&&r&&!(0,p.kF)(r.restUrl,n.restUrl)?(e.messages&&e.messages.push(new l.c("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(t,{...e,layer:this})}};return(0,r._)([(0,d.qq)({type:x.default})],e.prototype,"portalItem",null),(0,r._)([(0,f.E)("web-document","portalItem",["itemId"])],e.prototype,"readPortalItem",null),(0,r._)([(0,y.G)("web-document","portalItem",{itemId:{type:String}})],e.prototype,"writePortalItem",null),(0,r._)([(0,d.qq)({clonable:!1})],e.prototype,"resourceReferences",void 0),(0,r._)([(0,d.qq)({type:Boolean,readOnly:!0})],e.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,d.qq)({type:Boolean,readOnly:!0})],e.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,d.qq)({type:Boolean,readOnly:!0})],e.prototype,"userHasUpdateItemPrivileges",void 0),e=(0,r._)([(0,m.c)("esri.layers.mixins.PortalLayer")],e),e},M={credential:null,user:null}},3116:(t,e,n)=>{n.d(e,{I:()=>s});var r=n(41948),i=n(1580),o=(n(9456),n(66360),n(72052),n(12552));const s=t=>{let e=class extends t{constructor(){super(...arguments),this.minScale=0,this.maxScale=0}get effectiveScaleRange(){const t={minScale:this.minScale,maxScale:this.maxScale},e=this.parent;e&&"effectiveScaleRange"in e&&function(t,e){t.minScale=t.minScale>0?e.minScale>0?Math.min(t.minScale,e.minScale):t.minScale:e.minScale,t.maxScale=t.maxScale>0?e.maxScale>0?Math.max(t.maxScale,e.maxScale):t.maxScale:e.maxScale}(t,e.effectiveScaleRange);const n=this._get("effectiveScaleRange");return n&&n.minScale===t.minScale&&n.maxScale===t.maxScale?n:t}};return(0,r._)([(0,i.qq)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"minScale",void 0),(0,r._)([(0,i.qq)({type:Number,nonNullable:!0,json:{write:!0}})],e.prototype,"maxScale",void 0),(0,r._)([(0,i.qq)({readOnly:!0})],e.prototype,"effectiveScaleRange",null),e=(0,r._)([(0,o.c)("esri.layers.mixins.ScaleRangeLayer")],e),e}},73960:(t,e,n)=>{n.d(e,{e:()=>i});var r=n(28176);function i(t){return o[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const e=(0,r.wt)(t);return l[e]||s}(t.url)}(t)]||a}const o={},s="text/plain",a=o[s],l={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in l)o[l[t]]=t},8616:(t,e,n)=>{var r;n.d(e,{U:()=>r}),function(t){t[t.SAVE=0]="SAVE",t[t.SAVE_AS=1]="SAVE_AS"}(r||(r={}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2456],{22156:(e,t,r)=>{r.d(t,{MR:()=>a,qm:()=>n});var i=r(41948),s=r(12552);let o=0;const a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return t=(0,i._)([(0,s.c)("esri.core.Identifiable")],t),t},n=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return t=(0,i._)([(0,s.c)("esri.core.NumericIdentifiable")],t),t};let l=class extends(a(class{})){};l=(0,i._)([(0,s.c)("esri.core.Identifiable")],l)},26496:(e,t,r)=>{r.d(t,{U:()=>_,S:()=>b});var i=r(41948),s=r(43780),o=r(26784),a=r(62088),n=r(71448);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(n.wh),this._values=new Map,this.multipleOriginsSupported=!0}clone(e){const t=new l,r=this._originStores[n.sT.DEFAULTS];r&&r.forEach(((e,r)=>{t.set(r,(0,a.ct)(e),n.sT.DEFAULTS)}));for(let r=n.sT.SERVICE;r<n.wh;r++){const i=this._originStores[r];i&&i.forEach(((i,s)=>{e&&e.has(s)||t.set(s,(0,a.ct)(i),r)}))}return t}get(e,t){const r=void 0===t?this._values:this._originStores[t];return r?r.get(e):void 0}keys(e){const t=null==e?this._values:this._originStores[e];return t?[...t.keys()]:[]}set(e,t,r=n.sT.USER){let i=this._originStores[r];if(i||(i=new Map,this._originStores[r]=i),i.set(e,t),!this._values.has(e)||this._propertyOriginMap.get(e)<=r){const i=this._values.get(e);return this._values.set(e,t),this._propertyOriginMap.set(e,r),i!==t}return!1}delete(e,t=n.sT.USER){const r=this._originStores[t];if(!r)return;const i=r.get(e);if(r.delete(e),this._values.has(e)&&this._propertyOriginMap.get(e)===t){this._values.delete(e);for(let r=t-1;r>=0;r--){const t=this._originStores[r];if(t&&t.has(e)){this._values.set(e,t.get(e)),this._propertyOriginMap.set(e,r);break}}}return i}has(e,t){const r=void 0===t?this._values:this._originStores[t];return!!r&&r.has(e)}revert(e,t){for(;t>0&&!this.has(e,t);)--t;const r=this._originStores[t],i=r?.get(e),s=this._values.get(e);return this._values.set(e,i),this._propertyOriginMap.set(e,t),s!==i}originOf(e){return this._propertyOriginMap.get(e)||n.sT.DEFAULTS}forEach(e){this._values.forEach(e)}}var u=r(47727),p=r(20916),c=r(12552);const d=e=>{let t=class extends e{constructor(...e){super(...e);const t=(0,p.m6)(this),r=t.store,i=new l;t.store=i,(0,o.W)(t,r,i)}read(e,t){(0,u.g)(this,e,t)}getAtOrigin(e,t){const r=h(this),i=(0,n.CQ)(t);if("string"==typeof e)return r.get(e,i);const s={};return e.forEach((e=>{s[e]=r.get(e,i)})),s}originOf(e){return(0,n.Qz)(this.originIdOf(e))}originIdOf(e){return h(this).originOf(e)}revert(e,t){const r=h(this),i=(0,n.CQ)(t),s=(0,p.m6)(this);let o;o="string"==typeof e?"*"===e?r.keys(i):[e]:e,o.forEach((e=>{s.invalidate(e),r.revert(e,i),s.commit(e)}))}};return t=(0,i._)([(0,c.c)("esri.core.ReadOnlyMultiOriginJSONSupport")],t),t};function h(e){return(0,p.m6)(e).store}let y=class extends(d(s.c)){};y=(0,i._)([(0,c.c)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var g=r(48424),f=r(31696);const m=e=>{let t=class extends e{constructor(...e){super(...e)}clear(e,t="user"){return v(this).delete(e,(0,n.CQ)(t))}write(e,t){return(0,f.G)(this,e=e||{},t),e}setAtOrigin(e,t,r){(0,p.m6)(this).setAtOrigin(e,t,(0,n.CQ)(r))}removeOrigin(e){const t=v(this),r=(0,n.CQ)(e),i=t.keys(r);for(const e of i)t.originOf(e)===r&&t.set(e,t.get(e,r),n.sT.USER)}updateOrigin(e,t){const r=v(this),i=(0,n.CQ)(t),s=(0,g._M)(this,e);for(let t=i+1;t<n.wh;++t)r.delete(e,t);r.set(e,s,i)}toJSON(e){return this.write({},e)}};return t=(0,i._)([(0,c.c)("esri.core.WriteableMultiOriginJSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};function v(e){return(0,p.m6)(e).store}const _=e=>{let t=class extends(m(d(e))){constructor(...e){super(...e)}};return t=(0,i._)([(0,c.c)("esri.core.MultiOriginJSONSupport")],t),t};let b=class extends(_(s.c)){};b=(0,i._)([(0,c.c)("esri.core.MultiOriginJSONSupport")],b)},81436:(e,t,r)=>{r.d(t,{c:()=>_});var i=r(41948),s=(r(60708),r(2600)),o=r(20744),a=r(77860),n=r(22156),l=r(95800),u=r(66360),p=r(10860),c=r(28176),d=r(1580),h=(r(9456),r(72052),r(12552)),y=r(6220),g=r(95247),f=r(56156);let m=0,v=class extends(a.c.EventedMixin((0,n.MR)(l.c))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new g.c(-180,-90,180,90,f.c.WGS84),this.id=Date.now().toString(16)+"-layer-"+m++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=f.c.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(9232).then(r.bind(r,69232))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:i}=await r.e(2259).then(r.bind(r,12259));try{return await i(t)}catch(e){const r=t?.portalItem,i=r?.id||"unset",s=r?.portal?.url||y.default.portalUrl;throw u.c.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+s+"', id: '"+i+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,p.mA)(e)||u.c.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.as)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,s.c)(e,{query:{f:"json"},responseType:"json"})).data;throw new o.c("layer:no-attribution-data","Layer does not have attribution data")}};(0,i._)([(0,d.qq)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,i._)([(0,d.qq)({type:g.c})],v.prototype,"fullExtent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,i._)([(0,d.qq)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,i._)([(0,d.qq)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,i._)([(0,d.qq)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,i._)([(0,d.qq)({clonable:!1})],v.prototype,"parent",void 0),(0,i._)([(0,d.qq)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,i._)([(0,d.qq)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,i._)([(0,d.qq)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,i._)([(0,d.qq)({type:f.c})],v.prototype,"spatialReference",void 0),(0,i._)([(0,d.qq)({type:String})],v.prototype,"title",void 0),(0,i._)([(0,d.qq)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,i._)([(0,d.qq)()],v.prototype,"url",void 0),(0,i._)([(0,d.qq)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,i._)([(0,h.c)("esri.layers.Layer")],v);const _=v},12456:(e,t,r)=>{r.r(t),r.d(t,{default:()=>d});var i=r(41948),s=r(20744),o=r(26496),a=r(66168),n=r(1580),l=(r(9456),r(66360),r(72052),r(12552)),u=r(81436),p=r(98768);let c=class extends((0,p.K)((0,o.U)(u.c))){constructor(e){super(e),this.resourceInfo=null,this.persistenceEnabled=!0,this.type="unsupported"}initialize(){this.addResolvingPromise(new Promise(((e,t)=>{(0,a.Ow)((()=>{const e=this.resourceInfo&&(this.resourceInfo.layerType||this.resourceInfo.type);let r="Unsupported layer type";e&&(r+=" "+e),t(new s.c("layer:unsupported-layer-type",r,{layerType:e}))}))})))}read(e,t){const r={resourceInfo:e};null!=e.id&&(r.id=e.id),null!=e.title&&(r.title=e.title),super.read(r,t)}write(e,t){return Object.assign(e||{},this.resourceInfo,{id:this.id})}};(0,i._)([(0,n.qq)({readOnly:!0})],c.prototype,"resourceInfo",void 0),(0,i._)([(0,n.qq)({type:["show","hide"]})],c.prototype,"listMode",void 0),(0,i._)([(0,n.qq)({type:Boolean,readOnly:!1})],c.prototype,"persistenceEnabled",void 0),(0,i._)([(0,n.qq)({json:{read:!1},readOnly:!0,value:"unsupported"})],c.prototype,"type",void 0),c=(0,i._)([(0,l.c)("esri.layers.UnsupportedLayer")],c);const d=c},98768:(e,t,r)=>{r.d(t,{K:()=>I});var i=r(41948),s=r(6220),o=r(47620),a=r(2600),n=r(40196),l=r(20744),u=r(66360),p=r(70680),c=r(10860),d=r(28176),h=r(1580),y=(r(9456),r(72052),r(33600)),g=r(12552),f=r(18996),m=r(71068),v=r(54872),_=r(9764),b=r(53039),w=r(46940);const I=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.mG)(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 _.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(8828),r.e(4132)]).then(r.bind(r,94132));return(0,c.wp)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.mA)(e)||u.c.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.CE)(e),!0))))}async setUserPrivileges(e,t){if(!s.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:s}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",s)}catch(e){(0,c.CE)(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,w.CI)(r);let s,a;if(i)s=r.portal.url;else try{s=await(0,m.mK)(this.url,t)}catch(e){(0,c.CE)(e)}if(!s||!(0,d.Cs)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.CE)(e)}if(!a)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(i?await r.reload():(r=new _.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return(0,w.CI)(r)}catch(e){(0,c.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=q.credential===t?q.user:await this._fetchEditingUser(e);return q.credential=t,q.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=o.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,s=v.c.getDefault();if(s&&s.loaded&&(0,d.k7)(s.restUrl)===(0,d.k7)(i))return s.user;const l=`${i}/community/self`,u=null!=e?e.signal:null,p=await(0,n.aG)((0,a.c)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?b.c.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||v.c.getDefault());return r&&i&&!(0,d.kF)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.c("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,h.qq)({type:_.default})],t.prototype,"portalItem",null),(0,i._)([(0,y.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,f.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,h.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,i._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,i._)([(0,g.c)("esri.layers.mixins.PortalLayer")],t),t},q={credential:null,user:null}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1980],{81980:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(90124),l(97760),l(80324),l(68828),l(70984),l(11925),l(88196),l(32704),l(49168),l(55164),l(41804),l(11544),l(2288),l(8844),l(57704),l(53672),l(50143),l(36908),l(81832),l(64352),l(36244),l(93904),l(29484),l(95224),l(56124),l(56192),l(95464),l(60288),l(14920),l(49916),l(56336),l(4636);var s=l(59888)}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1980],{81980:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(90124),l(97760),l(80324),l(68828),l(70984),l(11925),l(88196),l(32704),l(49168),l(55164),l(41804),l(11544),l(2288),l(23792),l(57704),l(53672),l(50143),l(36908),l(81832),l(64352),l(36244),l(93904),l(29484),l(95224),l(56124),l(56192),l(95464),l(60288),l(14920),l(49916),l(56336),l(4636);var s=l(59888)}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5472],{25228:(t,e,i)=>{i.d(e,{c:()=>m});var o,r=i(41948),s=i(40504),n=i(94360),l=i(1580),a=(i(9456),i(66360),i(72052),i(33600)),h=i(12552),p=i(18996),c=i(28484);let y=o=class extends s.am{static get allTime(){return u}static get empty(){return d}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(o.allTime)}get isEmpty(){return this.equals(o.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new o({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,o=t.start?.getTime()??t.start,r=t.end?.getTime()??t.end;return e===o&&i===r}expandTo(t,e=c.OX){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,n.aU)(i,t,e));let r=this.end;if(r){const i=(0,n.aU)(r,t,e);r=r.getTime()===i.getTime()?i:(0,n.g1)(i,1,t,e)}return new o({start:i,end:r})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return o.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,r=t.start?.getTime()??-1/0,s=t.end?.getTime()??1/0;let n,l;return r>=e&&r<=i?n=r:e>=r&&e<=s&&(n=e),i>=r&&i<=s?l=i:s>=e&&s<=i&&(l=s),null==n||null==l||isNaN(n)||isNaN(l)?o.empty:new o({start:n===-1/0?null:new Date(n),end:l===1/0?null:new Date(l)})}offset(t,e,i=c.OX){if(this.isEmpty||this.isAllTime)return this.clone();const r=new o,{start:s,end:l}=this;return null!=s&&(r.start=(0,n.g1)(s,t,e,i)),null!=l&&(r.end=(0,n.g1)(l,t,e,i)),r}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return u.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,i=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new o({start:e,end:i})}};(0,r._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"end",void 0),(0,r._)([(0,a.E)("end")],y.prototype,"readEnd",null),(0,r._)([(0,p.G)("end")],y.prototype,"writeEnd",null),(0,r._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],y.prototype,"isAllTime",null),(0,r._)([(0,l.qq)({readOnly:!0,json:{read:!1}})],y.prototype,"isEmpty",null),(0,r._)([(0,l.qq)({type:Date,json:{write:{allowNull:!0}}})],y.prototype,"start",void 0),(0,r._)([(0,a.E)("start")],y.prototype,"readStart",null),(0,r._)([(0,p.G)("start")],y.prototype,"writeStart",null),y=o=(0,r._)([(0,h.c)("esri.TimeExtent")],y);const u=new y,d=new y({start:void 0,end:void 0}),m=y},3856:(t,e,i)=>{i.d(e,{m:()=>c,q:()=>p});var o=i(41948),r=i(43780),s=(i(9456),i(62088)),n=(i(66360),i(70680)),l=i(71448),a=i(20916),h=i(12552);const p=t=>{let e=class extends t{clone(){const t=(0,a.m6)(this);(0,n.EN)(t,"unable to clone instance of non-accessor class");const e=t.metadata,i=t.store,o={},r=new Map;for(const t in e){const n=e[t],a=i?.originOf(t),h=n.clonable;if(n.readOnly||!1===h||a!==l.sT.USER&&a!==l.sT.DEFAULTS&&a!==l.sT.WEB_MAP&&a!==l.sT.WEB_SCENE)continue;const p=this[t];let c=null;c="function"==typeof h?h(p):"reference"===h?p:(0,s.gx)(p),null!=p&&null==c||(a===l.sT.DEFAULTS?r.set(t,c):o[t]=c)}const h=new(0,Object.getPrototypeOf(this).constructor)(o);if(r.size){const t=(0,a.m6)(h)?.store;if(t)for(const[e,i]of r)t.set(e,i,l.sT.DEFAULTS)}return h}};return e=(0,o._)([(0,h.c)("esri.core.Clonable")],e),e};let c=class extends(p(r.c)){};c=(0,o._)([(0,h.c)("esri.core.Clonable")],c)},57896:(t,e,i)=>{i.d(e,{Eq:()=>y,KG:()=>S,_8:()=>w,_I:()=>h,aE:()=>a,du:()=>m,on:()=>c}),i(40196),i(2952);var o=i(60976),r=i(38912),s=i(70680),n=i(10860),l=i(37176);function a(t,e,i={}){return p(t,e,i,u)}function h(t,e,i={}){return p(t,e,i,d)}function p(t,e,i={},o){let r=null;const n=i.once?(t,i)=>{o(t)&&((0,s.oR)(r),e(t,i))}:(t,i)=>{o(t)&&e(t,i)};if(r=(0,l.M9)(t,n,i.sync,i.equals),i.initial){const e=t();n(e,e)}return r}function c(t,e,i,n={}){let l=null,h=null,p=null;function c(){l&&h&&(h.remove(),n.onListenerRemove?.(l),l=null,h=null)}function y(t){n.once&&n.once&&(0,s.oR)(p),i(t)}const u=a(t,((t,i)=>{c(),(0,o.sh)(t)&&(l=t,h=(0,o.on)(t,e,y),n.onListenerAdd?.(t))}),{sync:n.sync,initial:!0});return p=(0,r.uU)((()=>{u.remove(),c()})),p}function y(t,e){return function(t,e,i){if((0,n.wv)(i))return Promise.reject((0,n.Uh)());const o=t();if(e?.(o))return Promise.resolve(o);let l=null;function a(){l=(0,s.oR)(l)}return new Promise(((o,s)=>{l=(0,r.Ip)([(0,n.wD)(i,(()=>{a(),s((0,n.Uh)())})),p(t,(t=>{a(),o(t)}),{sync:!1,once:!0},e??u)])}))}(t,d,e)}function u(t){return!0}function d(t){return!!t}i(41168);const m={sync:!0},w={initial:!0},S={sync:!0,initial:!0}},31376:(t,e,i)=>{i.d(e,{c:()=>h});var o=i(41948),r=i(1580),s=(i(9456),i(66360),i(72052),i(12552)),n=i(7432),l=i(71996);let a=class extends l.c{constructor(t){super(t),this.outline=null,this.type=null}hash(){return`${this.type}.${this.outline&&this.outline.hash()}`}};(0,o._)([(0,r.qq)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":n.c}},json:{default:null,write:!0}})],a.prototype,"outline",void 0),(0,o._)([(0,r.qq)({type:["simple-fill","picture-fill"],readOnly:!0})],a.prototype,"type",void 0),a=(0,o._)([(0,s.c)("esri.symbols.FillSymbol")],a);const h=a},73771:(t,e,i)=>{i.d(e,{c:()=>y});var o,r=i(41948),s=i(40504),n=i(50144),l=i(1580),a=i(33392),h=(i(72052),i(9456),i(12552)),p=i(39056);let c=o=class extends s.am{constructor(t){super(t),this.decoration="none",this.family="sans-serif",this.size=9,this.style="normal",this.weight="normal"}castSize(t){return(0,n.Qz)(t)}clone(){return new o({decoration:this.decoration,family:this.family,size:this.size,style:this.style,weight:this.weight})}hash(){return`${this.decoration}.${this.family}.${this.size}.${this.style}.${this.weight}`}};(0,r._)([(0,l.qq)({type:p.Up,json:{default:"none",write:!0}})],c.prototype,"decoration",void 0),(0,r._)([(0,l.qq)({type:String,json:{write:!0}})],c.prototype,"family",void 0),(0,r._)([(0,l.qq)({type:Number,json:{write:{overridePolicy:(t,e,i)=>({enabled:!i||!i.textSymbol3D})}}})],c.prototype,"size",void 0),(0,r._)([(0,a.W)("size")],c.prototype,"castSize",null),(0,r._)([(0,l.qq)({type:p.Go,json:{default:"normal",write:!0}})],c.prototype,"style",void 0),(0,r._)([(0,l.qq)({type:p.Ge,json:{default:"normal",write:!0}})],c.prototype,"weight",void 0),c=o=(0,r._)([(0,h.c)("esri.symbols.Font")],c);const y=c},74483:(t,e,i)=>{i.d(e,{c:()=>h});var o=i(41948),r=i(50144),s=i(1580),n=(i(9456),i(66360),i(72052),i(12552)),l=i(71996);let a=class extends l.c{constructor(t){super(t),this.angle=0,this.type=null,this.xoffset=0,this.yoffset=0,this.size=9}hash(){return`${this.type}.${this.angle}.${this.size}.${this.xoffset}.${this.yoffset}`}};(0,o._)([(0,s.qq)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],a.prototype,"angle",void 0),(0,o._)([(0,s.qq)({type:["simple-marker","picture-marker"],readOnly:!0})],a.prototype,"type",void 0),(0,o._)([(0,s.qq)({type:Number,cast:r.Qz,json:{write:!0}})],a.prototype,"xoffset",void 0),(0,o._)([(0,s.qq)({type:Number,cast:r.Qz,json:{write:!0}})],a.prototype,"yoffset",void 0),(0,o._)([(0,s.qq)({type:Number,cast:t=>"auto"===t?t:(0,r.Qz)(t),json:{write:!0}})],a.prototype,"size",void 0),a=(0,o._)([(0,n.c)("esri.symbols.MarkerSymbol")],a);const h=a},47472:(t,e,i)=>{i.d(e,{c:()=>m});var o,r=i(41948),s=i(44728),n=i(14628),l=i(62088),a=i(1580),h=(i(9456),i(66360),i(9968)),p=i(12552),c=i(31376),y=i(7432);const u=new n.O({esriSFSSolid:"solid",esriSFSNull:"none",esriSFSHorizontal:"horizontal",esriSFSVertical:"vertical",esriSFSForwardDiagonal:"forward-diagonal",esriSFSBackwardDiagonal:"backward-diagonal",esriSFSCross:"cross",esriSFSDiagonalCross:"diagonal-cross"});let d=o=class extends c.c{constructor(...t){super(...t),this.color=new s.c([0,0,0,.25]),this.outline=new y.c,this.type="simple-fill",this.style="solid"}normalizeCtorArgs(t,e,i){if(t&&"string"!=typeof t)return t;const o={};return t&&(o.style=t),e&&(o.outline=e),i&&(o.color=i),o}clone(){return new o({color:(0,l.ct)(this.color),outline:this.outline&&this.outline.clone(),style:this.style})}hash(){return`${super.hash()}${this.style}.${this.color&&this.color.hash()}`}};(0,r._)([(0,a.qq)()],d.prototype,"color",void 0),(0,r._)([(0,a.qq)()],d.prototype,"outline",void 0),(0,r._)([(0,h.G)({esriSFS:"simple-fill"},{readOnly:!0})],d.prototype,"type",void 0),(0,r._)([(0,a.qq)({type:u.apiValues,json:{read:u.read,write:u.write}})],d.prototype,"style",void 0),d=o=(0,r._)([(0,p.c)("esri.symbols.SimpleFillSymbol")],d);const m=d},7432:(t,e,i)=>{i.d(e,{c:()=>L});var o=i(41948),r=i(14628),s=i(62088),n=i(50144),l=i(1580),a=(i(9456),i(66360),i(9968)),h=i(12552),p=(i(72052),i(71996));let c=class extends p.c{constructor(t){super(t),this.type="simple-line",this.width=.75}hash(){return`${this.type}.${this.width}`}};(0,o._)([(0,a.G)({esriSLS:"simple-line"},{readOnly:!0})],c.prototype,"type",void 0),(0,o._)([(0,l.qq)({type:Number,cast:n.Qz,json:{write:!0}})],c.prototype,"width",void 0),c=(0,o._)([(0,h.c)("esri.symbols.LineSymbol")],c);const y=c;var u,d=i(44728),m=i(40504),w=i(33600),S=i(18996),f=i(97556);let g=u=class extends m.am{constructor(t){super(t),this.placement="begin-end",this.type="line-marker",this.style="arrow"}writeStyle(t,e,i,o){e[i]="web-map"===o?.origin?"arrow":t}set color(t){this._set("color",t)}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}writeColor(t,e,i,o){"web-map"===o?.origin||(e[i]=t)}clone(){return new u({color:(0,s.ct)(this.color),placement:this.placement,style:this.style})}hash(){return`${this.placement}.${this.color?.hash()}.${this.style}`}};(0,o._)([(0,l.qq)({type:["begin","end","begin-end"],json:{write:!0}})],g.prototype,"placement",void 0),(0,o._)([(0,a.G)({"line-marker":"line-marker"},{readOnly:!0}),(0,l.qq)({json:{origins:{"web-map":{write:!1}}}})],g.prototype,"type",void 0),(0,o._)([(0,l.qq)({type:f.U})],g.prototype,"style",void 0),(0,o._)([(0,S.G)("style")],g.prototype,"writeStyle",null),(0,o._)([(0,l.qq)({type:d.c,value:null,json:{write:{allowNull:!0}}})],g.prototype,"color",null),(0,o._)([(0,w.E)("color")],g.prototype,"readColor",null),(0,o._)([(0,S.G)("color")],g.prototype,"writeColor",null),g=u=(0,o._)([(0,h.c)("esri.symbols.LineSymbolMarker")],g);const q=g;var b;const _=new r.O({esriSLSSolid:"solid",esriSLSDash:"dash",esriSLSDot:"dot",esriSLSDashDot:"dash-dot",esriSLSDashDotDot:"long-dash-dot-dot",esriSLSNull:"none",esriSLSInsideFrame:"inside-frame",esriSLSShortDash:"short-dash",esriSLSShortDot:"short-dot",esriSLSShortDashDot:"short-dash-dot",esriSLSShortDashDotDot:"short-dash-dot-dot",esriSLSLongDash:"long-dash",esriSLSLongDashDot:"long-dash-dot"});let v=b=class extends y{constructor(...t){super(...t),this.type="simple-line",this.style="solid",this.cap="round",this.join="round",this.marker=null,this.miterLimit=2}normalizeCtorArgs(t,e,i,o,r,s){if(t&&"string"!=typeof t)return t;const l={};return null!=t&&(l.style=t),null!=e&&(l.color=e),null!=i&&(l.width=(0,n.Qz)(i)),null!=o&&(l.cap=o),null!=r&&(l.join=r),null!=s&&(l.miterLimit=(0,n.Qz)(s)),l}clone(){return new b({color:(0,s.ct)(this.color),style:this.style,width:this.width,cap:this.cap,join:this.join,miterLimit:this.miterLimit,marker:this.marker?.clone()})}hash(){return`${super.hash()}.${this.color?.hash()}.${this.style}.${this.cap}.${this.join}.${this.miterLimit}.${this.marker?.hash()}`}};(0,o._)([(0,a.G)({esriSLS:"simple-line"},{readOnly:!0})],v.prototype,"type",void 0),(0,o._)([(0,l.qq)({type:_.apiValues,json:{read:_.read,write:_.write}})],v.prototype,"style",void 0),(0,o._)([(0,l.qq)({type:["butt","round","square"],json:{write:{overridePolicy:(t,e,i)=>({enabled:"round"!==t&&null==i?.origin})}}})],v.prototype,"cap",void 0),(0,o._)([(0,l.qq)({type:["miter","round","bevel"],json:{write:{overridePolicy:(t,e,i)=>({enabled:"round"!==t&&null==i?.origin})}}})],v.prototype,"join",void 0),(0,o._)([(0,l.qq)({types:{key:"type",base:null,defaultKeyValue:"line-marker",typeMap:{"line-marker":q}},json:{write:!0,origins:{"web-scene":{write:!1}}}})],v.prototype,"marker",void 0),(0,o._)([(0,l.qq)({type:Number,json:{read:!1,write:!1}})],v.prototype,"miterLimit",void 0),v=b=(0,o._)([(0,h.c)("esri.symbols.SimpleLineSymbol")],v);const L=v},49736:(t,e,i)=>{i.d(e,{c:()=>S});var o,r=i(41948),s=i(44728),n=i(14628),l=i(62088),a=i(50144),h=i(1580),p=(i(9456),i(66360),i(9968)),c=i(12552),y=i(18996),u=i(74483),d=i(7432);const m=new n.O({esriSMSCircle:"circle",esriSMSSquare:"square",esriSMSCross:"cross",esriSMSX:"x",esriSMSDiamond:"diamond",esriSMSTriangle:"triangle",esriSMSPath:"path"});let w=o=class extends u.c{constructor(...t){super(...t),this.color=new s.c([255,255,255,.25]),this.type="simple-marker",this.size=12,this.style="circle",this.outline=new d.c}normalizeCtorArgs(t,e,i,o){if(t&&"string"!=typeof t)return t;const r={};return t&&(r.style=t),null!=e&&(r.size=(0,a.Qz)(e)),i&&(r.outline=i),o&&(r.color=o),r}writeColor(t,e){t&&"x"!==this.style&&"cross"!==this.style&&(e.color=t.toJSON()),null===t&&(e.color=null)}set path(t){this.style="path",this._set("path",t)}clone(){return new o({angle:this.angle,color:(0,l.ct)(this.color),outline:this.outline&&this.outline.clone(),path:this.path,size:this.size,style:this.style,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${super.hash()}.${this.color&&this.color.hash()}.${this.path}.${this.style}.${this.outline?.hash()}`}};(0,r._)([(0,h.qq)()],w.prototype,"color",void 0),(0,r._)([(0,y.G)("color")],w.prototype,"writeColor",null),(0,r._)([(0,p.G)({esriSMS:"simple-marker"},{readOnly:!0})],w.prototype,"type",void 0),(0,r._)([(0,h.qq)()],w.prototype,"size",void 0),(0,r._)([(0,h.qq)({type:m.apiValues,json:{read:m.read,write:m.write}})],w.prototype,"style",void 0),(0,r._)([(0,h.qq)({type:String,json:{write:!0}})],w.prototype,"path",null),(0,r._)([(0,h.qq)({types:{key:"type",base:null,defaultKeyValue:"simple-line",typeMap:{"simple-line":d.c}},json:{default:null,write:!0}})],w.prototype,"outline",void 0),w=o=(0,r._)([(0,c.c)("esri.symbols.SimpleMarkerSymbol")],w);const S=w},71996:(t,e,i)=>{i.d(e,{c:()=>u});var o=i(41948),r=i(44728),s=i(14628),n=i(40504),l=i(1580),a=(i(9456),i(66360),i(72052),i(33600)),h=i(12552);const p=new s.O({esriSMS:"simple-marker",esriPMS:"picture-marker",esriSLS:"simple-line",esriSFS:"simple-fill",esriPFS:"picture-fill",esriTS:"text",esriSHD:"shield-label-symbol",PointSymbol3D:"point-3d",LineSymbol3D:"line-3d",PolygonSymbol3D:"polygon-3d",WebStyleSymbol:"web-style",MeshSymbol3D:"mesh-3d",LabelSymbol3D:"label-3d",CIMSymbolReference:"cim"});let c=0,y=class extends n.am{constructor(t){super(t),this.id="sym"+c++,this.type=null,this.color=new r.c([0,0,0,1])}readColor(t){return null!=t?.[0]?[t[0],t[1],t[2],t[3]/255]:t}async collectRequiredFields(t,e){}hash(){return JSON.stringify(this.toJSON())}clone(){}};(0,o._)([(0,l.qq)({type:p.apiValues,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0,writer:p.write}}})],y.prototype,"type",void 0),(0,o._)([(0,l.qq)({type:r.c,json:{write:{allowNull:!0}}})],y.prototype,"color",void 0),(0,o._)([(0,a.E)("color")],y.prototype,"readColor",null),y=(0,o._)([(0,h.c)("esri.symbols.Symbol")],y);const u=y},28652:(t,e,i)=>{i.d(e,{c:()=>S});var o,r=i(41948),s=i(44728),n=i(62088),l=i(50144),a=i(1580),h=i(33392),p=i(9968),c=i(12552),y=i(18996),u=i(73771),d=i(71996),m=i(39056);let w=o=class extends d.c{constructor(...t){super(...t),this.backgroundColor=null,this.borderLineColor=null,this.borderLineSize=null,this.font=new u.c,this.horizontalAlignment="center",this.kerning=!0,this.haloColor=null,this.haloSize=null,this.rightToLeft=null,this.rotated=!1,this.text="",this.type="text",this.verticalAlignment="baseline",this.xoffset=0,this.yoffset=0,this.angle=0,this.width=null,this.lineWidth=192,this.lineHeight=1}normalizeCtorArgs(t,e,i){if(t&&"string"!=typeof t)return t;const o={};return t&&(o.text=t),e&&(o.font=e),i&&(o.color=i),o}writeLineWidth(t,e,i,o){o&&"string"!=typeof o?o.origin:e[i]=t}castLineWidth(t){return(0,l.Qz)(t)}writeLineHeight(t,e,i,o){o&&"string"!=typeof o?o.origin:e[i]=t}clone(){return new o({angle:this.angle,backgroundColor:(0,n.ct)(this.backgroundColor),borderLineColor:(0,n.ct)(this.borderLineColor),borderLineSize:this.borderLineSize,color:(0,n.ct)(this.color),font:this.font&&this.font.clone(),haloColor:(0,n.ct)(this.haloColor),haloSize:this.haloSize,horizontalAlignment:this.horizontalAlignment,kerning:this.kerning,lineHeight:this.lineHeight,lineWidth:this.lineWidth,rightToLeft:this.rightToLeft,rotated:this.rotated,text:this.text,verticalAlignment:this.verticalAlignment,width:this.width,xoffset:this.xoffset,yoffset:this.yoffset})}hash(){return`${this.backgroundColor?.hash()}.${this.borderLineColor}.${this.borderLineSize}.${this.color?.hash()}.${this.font&&this.font.hash()}.${this.haloColor?.hash()}.${this.haloSize}.${this.horizontalAlignment}.${this.kerning}.${this.rightToLeft}.${this.rotated}.${this.text}.${this.verticalAlignment}.${this.width}.${this.xoffset}.${this.yoffset}.${this.lineHeight}.${this.lineWidth}.${this.angle}`}};(0,r._)([(0,a.qq)({type:s.c,json:{write:!0}})],w.prototype,"backgroundColor",void 0),(0,r._)([(0,a.qq)({type:s.c,json:{write:!0}})],w.prototype,"borderLineColor",void 0),(0,r._)([(0,a.qq)({type:Number,json:{write:!0},cast:l.Qz})],w.prototype,"borderLineSize",void 0),(0,r._)([(0,a.qq)({type:u.c,json:{write:!0}})],w.prototype,"font",void 0),(0,r._)([(0,a.qq)({...m.qK,json:{write:!0}})],w.prototype,"horizontalAlignment",void 0),(0,r._)([(0,a.qq)({type:Boolean,json:{write:!0}})],w.prototype,"kerning",void 0),(0,r._)([(0,a.qq)({type:s.c,json:{write:!0}})],w.prototype,"haloColor",void 0),(0,r._)([(0,a.qq)({type:Number,cast:l.Qz,json:{write:!0}})],w.prototype,"haloSize",void 0),(0,r._)([(0,a.qq)({type:Boolean,json:{write:!0}})],w.prototype,"rightToLeft",void 0),(0,r._)([(0,a.qq)({type:Boolean,json:{write:!0}})],w.prototype,"rotated",void 0),(0,r._)([(0,a.qq)({type:String,json:{write:!0}})],w.prototype,"text",void 0),(0,r._)([(0,p.G)({esriTS:"text"},{readOnly:!0})],w.prototype,"type",void 0),(0,r._)([(0,a.qq)({...m.sB,json:{write:!0}})],w.prototype,"verticalAlignment",void 0),(0,r._)([(0,a.qq)({type:Number,cast:l.Qz,json:{write:!0}})],w.prototype,"xoffset",void 0),(0,r._)([(0,a.qq)({type:Number,cast:l.Qz,json:{write:!0}})],w.prototype,"yoffset",void 0),(0,r._)([(0,a.qq)({type:Number,json:{read:t=>t&&-1*t,write:(t,e)=>e.angle=t&&-1*t}})],w.prototype,"angle",void 0),(0,r._)([(0,a.qq)({type:Number,json:{write:!0}})],w.prototype,"width",void 0),(0,r._)([(0,a.qq)({type:Number})],w.prototype,"lineWidth",void 0),(0,r._)([(0,y.G)("lineWidth")],w.prototype,"writeLineWidth",null),(0,r._)([(0,h.W)("lineWidth")],w.prototype,"castLineWidth",null),(0,r._)([(0,a.qq)(m.KO)],w.prototype,"lineHeight",void 0),(0,r._)([(0,y.G)("lineHeight")],w.prototype,"writeLineHeight",null),w=o=(0,r._)([(0,c.c)("esri.symbols.TextSymbol")],w);const S=w},97556:(t,e,i)=>{i.d(e,{U:()=>r,w:()=>o});const o=["begin","end","begin-end"],r=["arrow","circle","square","diamond","cross","x"]},39056:(t,e,i)=>{i.d(e,{C0:()=>c,Ge:()=>l,Go:()=>n,KO:()=>a,Up:()=>s,qK:()=>h,sB:()=>p});var o=i(53648),r=i(53368);const s=["none","underline","line-through"],n=["normal","italic","oblique"],l=["normal","lighter","bold","bolder"],a={type:Number,cast:t=>{const e=(0,r.Oe)(t);return 0===e?1:(0,o.qk)(e,.1,4)},nonNullable:!0},h={type:["left","right","center"],nonNullable:!0},p={type:["baseline","top","middle","bottom"],nonNullable:!0},c=8}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9232],{69232:(e,a,r)=>{r.r(a),r.d(a,{fromUrl:()=>d});var t=r(20744),n=r(28176),l=r(48212),s=r(50420),i=r(13608),o=r(71068),c=r(83928),u=r(66668);const y={FeatureLayer:!0,SceneLayer:!0};async function d(e){const{properties:a,url:t}=e,n={...a,url:t},l=await w(t,a?.customParameters),{Constructor:s,layerId:i,sourceJSON:o,parsedUrl:c,layers:u,tables:y}=l;if(u.length+y.length===0)return null!=i&&(n.layerId=i),null!=o&&(n.sourceJSON=o),new s(n);const d=new(0,(await Promise.all([r.e(5612),r.e(5076)]).then(r.bind(r,44080))).default)({title:c.title});return await async function(e,a,r){const t=a.sublayerConstructorProvider;for(const{id:n,serverUrl:l}of a.layers){const s=f(a.sublayerInfos,n),i=m(l,n,s,(s&&t?.(s))??a.Constructor,r);e.add(i)}if(a.tables.length){const t=await b("FeatureLayer");a.tables.forEach((({id:n,serverUrl:l})=>{const s=m(l,n,f(a.tableInfos,n),t,r);e.tables.add(s)}))}}(d,l,n),d}function f(e,a){return e?e.find((({id:e})=>e===a)):null}function m(e,a,r,t,n){const l={...n,layerId:a};return null!=e&&(l.url=e),null!=r&&(l.sourceJSON=r),"sublayerTitleMode"in t.prototype&&(l.sublayerTitleMode="service-name"),new t(l)}async function w(e,a){let r=(0,l.K0)(e);if(null==r&&(r=await async function(e,a){const r=await(0,u.S)(e,{customParameters:a});let t=null,s=null;const i=r.type;if("Feature Layer"===i||"Table"===i?(t="FeatureServer",s=r.id??null):"indexedVector"===i?t="VectorTileServer":r.hasOwnProperty("mapName")?t="MapServer":r.hasOwnProperty("bandCount")&&r.hasOwnProperty("pixelSizeX")?t="ImageServer":r.hasOwnProperty("maxRecordCount")&&r.hasOwnProperty("allowGeometryUpdates")?t="FeatureServer":r.hasOwnProperty("streamUrls")?t="StreamServer":h(r)?(t="SceneServer",s=r.id):r.hasOwnProperty("layers")&&h(r.layers?.[0])&&(t="SceneServer"),!t)return null;const o=null!=s?(0,l.Ej)(e):null;return{title:null!=o&&r.name||(0,n.u8)(e),serverType:t,sublayer:s,url:{path:null!=o?o.serviceUrl:(0,n.as)(e).path}}}(e,a)),null==r)throw new t.c("arcgis-layers:url-mismatch","The url '${url}' is not a valid arcgis resource",{url:e});const{serverType:c,sublayer:d}=r;let f;const m={FeatureServer:"FeatureLayer",StreamServer:"StreamLayer",VectorTileServer:"VectorTileLayer"},w="FeatureServer"===c,S="SceneServer"===c,p={parsedUrl:r,Constructor:null,layerId:w||S?d??void 0:void 0,layers:[],tables:[]};switch(c){case"MapServer":f=null!=d?"FeatureLayer":await async function(e,a){return(await(0,u.S)(e,{customParameters:a})).tileInfo}(e,a)?"TileLayer":"MapImageLayer";break;case"ImageServer":{const r=await(0,u.S)(e,{customParameters:a}),{tileInfo:t,cacheType:n}=r;f=t?"LERC"!==t?.format?.toUpperCase()||n&&"elevation"!==n.toLowerCase()?"ImageryTileLayer":"ElevationLayer":"ImageryLayer";break}case"SceneServer":{const e=await(0,u.S)(r.url.path,{customParameters:a});if(f="SceneLayer",e){const a=e?.layers;if("Voxel"===e?.layerType)f="VoxelLayer";else if(a?.length){const e=a[0]?.layerType;null!=e&&null!=o.Wr[e]&&(f=o.Wr[e])}}break}case"3DTilesServer":f="IntegratedMesh3DTilesLayer";break;case"FeatureServer":if(f="FeatureLayer",null!=d){const r=await(0,u.S)(e,{customParameters:a});p.sourceJSON=r,f=(0,i.w)(r.type)}break;default:f=m[c]}if(y[f]&&null==d){const r=await async function(e,a,r){let t,n,l=!1;switch(a){case"FeatureServer":{const a=await(0,i.I)(e,{customParameters:r});l=!!a.layersJSON,t=a.layersJSON||a.serviceJSON;break}case"SceneServer":{const a=await async function(e,a){const r=await(0,u.S)(e,{customParameters:a}),t=r.layers?.[0];if(!t)return{serviceInfo:r};try{const{serverUrl:t}=await(0,s.S)(e),n=await(0,u.S)(t,{customParameters:a}).catch((()=>null));return n&&(r.tables=n.tables),{serviceInfo:r,tableServerUrl:t}}catch{return{serviceInfo:r}}}(e,r);t=a.serviceInfo,n=a.tableServerUrl;break}default:t=await(0,u.S)(e,{customParameters:r})}const o=t?.layers,c=t?.tables;return{layers:o?.map((e=>({id:e.id}))).reverse()||[],tables:c?.map((e=>({serverUrl:n,id:e.id}))).reverse()||[],layerInfos:l?o:[],tableInfos:l?c:[]}}(e,c,a);if(w&&(p.sublayerInfos=r.layerInfos,p.tableInfos=r.tableInfos),1!==r.layers.length+r.tables.length)p.layers=r.layers,p.tables=r.tables,w&&r.layerInfos?.length&&(p.sublayerConstructorProvider=await async function(e){if(!e.length)return;const a=new Set,r=[];for(const{type:t}of e)a.has(t)||(a.add(t),r.push(b((0,i.w)(t))));const t=await Promise.all(r),n=new Map;return Array.from(a).forEach(((e,a)=>{n.set(e,t[a])})),e=>n.get(e.type)}(r.layerInfos));else if(w||S){const e=r.layerInfos?.[0]??r.tableInfos?.[0];if(p.layerId=r.layers[0]?.id??r.tables[0]?.id,p.sourceJSON=e,w){const a=e?.type;f=(0,i.w)(a)}}}return p.Constructor=await b(f),p}function h(e){return null!=e&&e.hasOwnProperty("store")&&e.hasOwnProperty("id")&&"number"==typeof e.id}async function b(e){return(0,c.q[e])()}},50420:(e,a,r)=>{r.d(a,{S:()=>u});var t=r(47620),n=r(2600),l=r(20744),s=r(10860),i=r(48212),o=r(54872),c=r(9764);async function u(e,a){const r=(0,i.K0)(e);if(!r)throw new l.c("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const r=new c.default({id:a,apiKey:e.apiKey}),l=await async function(e){const a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.c)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,s.CE)(e)}return null}(e);null!=l&&(r.portal=new o.c({url:l}));try{return r.load({signal:e.signal})}catch(e){return(0,s.CE)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find((e=>"Feature Service"===e.type))||null;if(!r)return null;const t=new c.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,s.CE)(e),null}}(u);if(!f?.url)throw new l.c("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=f;const m=await d(f.url,u);return m.portalItem=f,m}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const r=await(0,n.c)(e.sceneServerUrl,a);e.rootDocument=r.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const r=(0,i.K0)(e);if(!r)throw new l.c("invalid-feature-service-url","Invalid feature service url");const t=r.url.path,s=a.layerId;if(null==s)return{serverUrl:t};const o=y(a),c=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(c?.layers?.[0]||c?.tables?.[0])?.customParameters,d=e=>{const r={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.c)(t,r)},f=d("anonymous").catch((()=>d("no-prompt"))),[m,w]=await Promise.all([f,o]),h=w?.layers,b=m.data&&m.data.layers;if(!Array.isArray(b))throw new Error("expected layers array");if(Array.isArray(h)){for(let e=0;e<Math.min(h.length,b.length);e++)if(h[e].id===s)return{serverUrl:t,layerId:b[e].id}}else if(null!=s&&s<b.length)return{serverUrl:t,layerId:b[s].id};throw new Error("could not find matching associated sublayer")}},13608:(e,a,r)=>{r.d(a,{I:()=>l,w:()=>d});var t=r(66668);const n=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function l(e,a){const{loadContext:r,...n}=a||{},l=r?await r.fetchServiceMetadata(e,n):await(0,t.S)(e,n);y(l),o(l);const s={serviceJSON:l};if((l.currentVersion??0)<10.5)return s;const i=`${e}/layers`,c=r?await r.fetchServiceMetadata(i,n):await(0,t.S)(i,n);return y(c),o(c),s.layersJSON={layers:c.layers,tables:c.tables},s}function s(e){const{type:a}=e;return!!a&&n.has(a)}function i(e){return"Table"===e.type}function o(e){e.layers=e.layers?.filter(s),e.tables=e.tables?.filter(i)}function c(e){e.type||="Feature Layer"}function u(e){e.type||="Table"}function y(e){e.layers?.forEach(c),e.tables?.forEach(u)}function d(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},83928:(e,a,r)=>{r.d(a,{q:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3912)]).then(r.bind(r,48388))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(3180),r.e(9644),r.e(8344),r.e(9420),r.e(7064),r.e(5928)]).then(r.bind(r,10948))).default,CatalogLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(2664),r.e(2848),r.e(5468),r.e(572),r.e(8772)]).then(r.bind(r,20324))).default,CSVLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(2292)]).then(r.bind(r,79468))).default,DimensionLayer:async()=>(await Promise.all([r.e(5612),r.e(7832)]).then(r.bind(r,28320))).default,ElevationLayer:async()=>(await Promise.all([r.e(5612),r.e(2968),r.e(8380)]).then(r.bind(r,47104))).default,FeatureLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(3645)]).then(r.bind(r,672))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(6584)]).then(r.bind(r,92768))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(7988),r.e(5472),r.e(8404)]).then(r.bind(r,43984))).default,GroupLayer:async()=>(await Promise.all([r.e(5612),r.e(7456)]).then(r.bind(r,44080))).default,ImageryLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(2848),r.e(6128),r.e(9884),r.e(2124)]).then(r.bind(r,7896))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(6128),r.e(9884),r.e(7048),r.e(5496)]).then(r.bind(r,82744))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(5612),r.e(9644),r.e(7024)]).then(r.bind(r,96584))).default,KMLLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(236),r.e(1312)]).then(r.bind(r,53688))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(5612),r.e(3536)]).then(r.bind(r,91884))).default,LinkChartLayer:async()=>(await Promise.all([r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(9512),r.e(3220),r.e(1512),r.e(6680),r.e(8080)]).then(r.bind(r,54192))).default,MapImageLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(2848),r.e(5468),r.e(7804),r.e(3089)]).then(r.bind(r,3089))).default,MapNotesLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(8528)]).then(r.bind(r,37784))).default,MediaLayer:async()=>(await Promise.all([r.e(5612),r.e(2364)]).then(r.bind(r,66664))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(4384),r.e(8224)]).then(r.bind(r,56288))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3632),r.e(1244)]).then(r.bind(r,1244))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(8640)]).then(r.bind(r,75432))).default,PointCloudLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(9644),r.e(2296)]).then(r.bind(r,21680))).default,RouteLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(236),r.e(8520)]).then(r.bind(r,40900))).default,SceneLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(3180),r.e(9644),r.e(9904),r.e(8344),r.e(9420),r.e(4716),r.e(7064),r.e(712)]).then(r.bind(r,3688))).default,StreamLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(1136)]).then(r.bind(r,18e3))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(2664),r.e(6556),r.e(5368),r.e(8792)]).then(r.bind(r,8444))).default,TileLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(2848),r.e(5468),r.e(2968),r.e(7804),r.e(0)]).then(r.bind(r,5e4))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(5612),r.e(7752)]).then(r.bind(r,71316))).default,UnknownLayer:async()=>(await r.e(4203).then(r.bind(r,56584))).default,UnsupportedLayer:async()=>(await r.e(2456).then(r.bind(r,12456))).default,VectorTileLayer:async()=>(await Promise.all([r.e(5612),r.e(8980),r.e(2968),r.e(1272),r.e(7936)]).then(r.bind(r,65632))).default,VoxelLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(9644),r.e(8256)]).then(r.bind(r,59496))).default,WFSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(4808),r.e(2612)]).then(r.bind(r,53440))).default,WMSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(5472),r.e(7052)]).then(r.bind(r,85024))).default,WMTSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3632),r.e(4832)]).then(r.bind(r,54832))).default,WebTileLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3632)]).then(r.bind(r,32896))).default}},66668:(e,a,r)=>{r.d(a,{S:()=>n});var t=r(2600);async function n(e,a){const{data:r}=await(0,t.c)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return r}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2732],{98472:(t,n,e)=>{e.d(n,{A:()=>A,B:()=>N,C:()=>y,D:()=>B,G:()=>R,a:()=>f,b:()=>L,c:()=>_,e:()=>D,f:()=>T,g:()=>s,h:()=>G,i:()=>S,j:()=>l,k:()=>h,l:()=>o,m:()=>H,n:()=>M,o:()=>C,p:()=>I,q:()=>O,r:()=>P,s:()=>i,t:()=>d,u:()=>c,v:()=>b,w:()=>V,x:()=>a,y:()=>m,z:()=>u});var r=e(62484),E=e(47364);function o(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function _(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function i(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function s(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function T(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function A(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function R(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function c(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function u(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function a(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function N(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function S(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function O(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function I(t,n){const e=n[0]-t[0],r=n[1]-t[1],E=n[2]-t[2];return Math.sqrt(e*e+r*r+E*E)}function f(t,n){const e=n[0]-t[0],r=n[1]-t[1],E=n[2]-t[2];return e*e+r*r+E*E}function C(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function M(t,n){const e=n[0],r=n[1],E=n[2];let o=e*e+r*r+E*E;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function l(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function L(t,n,e){const r=n[0],E=n[1],o=n[2],_=e[0],i=e[1],s=e[2];return t[0]=E*s-o*i,t[1]=o*_-r*s,t[2]=r*i-E*_,t}function h(t,n,e,r){const E=n[0],o=n[1],_=n[2];return t[0]=E+r*(e[0]-E),t[1]=o+r*(e[1]-o),t[2]=_+r*(e[2]-_),t}function D(t,n,e){const r=n[0],E=n[1],o=n[2];return t[0]=e[0]*r+e[4]*E+e[8]*o+e[12],t[1]=e[1]*r+e[5]*E+e[9]*o+e[13],t[2]=e[2]*r+e[6]*E+e[10]*o+e[14],t}function d(t,n,e){const r=n[0],E=n[1],o=n[2];return t[0]=r*e[0]+E*e[3]+o*e[6],t[1]=r*e[1]+E*e[4]+o*e[7],t[2]=r*e[2]+E*e[5]+o*e[8],t}function P(t,n,e){const r=e[0],E=e[1],o=e[2],_=e[3],i=n[0],s=n[1],T=n[2],A=E*T-o*s,R=o*i-r*T,c=r*s-E*i,u=E*c-o*R,a=o*A-r*c,N=r*R-E*A,S=2*_;return t[0]=i+A*S+2*u,t[1]=s+R*S+2*a,t[2]=T+c*S+2*N,t}const U=(0,r.Su)(),F=(0,r.Su)();function G(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function B(t,n,e){const r=e[0]-n[0],E=e[1]-n[1],o=e[2]-n[2];let _=r*r+E*E+o*o;return _>0?(_=1/Math.sqrt(_),t[0]=r*_,t[1]=E*_,t[2]=o*_,t):(t[0]=0,t[1]=0,t[2]=0,t)}const m=T,p=A,g=R,H=I,b=f,y=o,V=C;Object.freeze(Object.defineProperty({__proto__:null,abs:c,add:s,angle:function(t,n){M(U,t),M(F,n);const e=l(U,F);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,E,o){const _=1-o,i=_*_,s=o*o,T=i*_,A=3*o*i,R=3*s*_,c=s*o;return t[0]=n[0]*T+e[0]*A+r[0]*R+E[0]*c,t[1]=n[1]*T+e[1]*A+r[1]*R+E[1]*c,t[2]=n[2]*T+e[2]*A+r[2]*R+E[2]*c,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},copy:_,cross:L,direction:B,dist:H,distance:I,div:g,divide:R,dot:l,equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],o=t[2],_=n[0],i=n[1],s=n[2],T=(0,E.Au)();return Math.abs(e-_)<=T*Math.max(1,Math.abs(e),Math.abs(_))&&Math.abs(r-i)<=T*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(o-s)<=T*Math.max(1,Math.abs(o),Math.abs(s))},exactEquals:G,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,E,o){const _=o*o,i=_*(2*o-3)+1,s=_*(o-2)+o,T=_*(o-1),A=_*(3-2*o);return t[0]=n[0]*i+e[0]*s+r[0]*T+E[0]*A,t[1]=n[1]*i+e[1]*s+r[1]*T+E[1]*A,t[2]=n[2]*i+e[2]*s+r[2]*T+E[2]*A,t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t},len:y,length:o,lerp:h,max:N,min:a,mul:p,multiply:A,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t},normalize:M,random:function(t,n){n=n||1;const e=E.QR,r=2*e()*Math.PI,o=2*e()-1,_=Math.sqrt(1-o*o)*n;return t[0]=Math.cos(r)*_,t[1]=Math.sin(r)*_,t[2]=o*n,t},rotateX:function(t,n,e,r){const E=[],o=[];return E[0]=n[0]-e[0],E[1]=n[1]-e[1],E[2]=n[2]-e[2],o[0]=E[0],o[1]=E[1]*Math.cos(r)-E[2]*Math.sin(r),o[2]=E[1]*Math.sin(r)+E[2]*Math.cos(r),t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},rotateY:function(t,n,e,r){const E=[],o=[];return E[0]=n[0]-e[0],E[1]=n[1]-e[1],E[2]=n[2]-e[2],o[0]=E[2]*Math.sin(r)+E[0]*Math.cos(r),o[1]=E[1],o[2]=E[2]*Math.cos(r)-E[0]*Math.sin(r),t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},rotateZ:function(t,n,e,r){const E=[],o=[];return E[0]=n[0]-e[0],E[1]=n[1]-e[1],E[2]=n[2]-e[2],o[0]=E[0]*Math.cos(r)-E[1]*Math.sin(r),o[1]=E[0]*Math.sin(r)+E[1]*Math.cos(r),o[2]=E[2],t[0]=o[0]+e[0],t[1]=o[1]+e[1],t[2]=o[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:S,scaleAndAdd:O,set:i,sign:u,sqrDist:b,sqrLen:V,squaredDistance:f,squaredLength:C,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:m,subtract:T,transformMat3:d,transformMat4:D,transformQuat:P},Symbol.toStringTag,{value:"Module"}))},85256:(t,n,e)=>{function r(){return[0,0]}function E(t,n){return[t,n]}function o(){return E(1,1)}function _(){return E(1,0)}function i(){return E(0,1)}e.d(n,{Qw:()=>s,Su:()=>r,WK:()=>E});const s=o(),T=_(),A=i();Object.freeze(Object.defineProperty({__proto__:null,ONES:s,UNIT_X:T,UNIT_Y:A,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:function(t,n){return new Float64Array(t,n,2)},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:E,ones:o,unitX:_,unitY:i,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},62484:(t,n,e)=>{function r(){return[0,0,0]}function E(t){return[t[0],t[1],t[2]]}function o(t,n,e){return[t,n,e]}function _(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function i(){return o(1,1,1)}function s(){return o(1,0,0)}function T(){return o(0,1,0)}function A(){return o(0,0,1)}e.d(n,{IR:()=>a,Qw:()=>c,Su:()=>r,UV:()=>u,WK:()=>o,cX:()=>R,ct:()=>E,eu:()=>_,wx:()=>N});const R=[0,0,0],c=i(),u=s(),a=T(),N=A();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:a,UNIT_Z:N,ZEROS:R,clone:E,create:r,createView:function(t,n){return new Float64Array(t,n,3)},fromArray:_,fromValues:o,ones:i,unitX:s,unitY:T,unitZ:A,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},47364:(t,n,e)=>{e.d(n,{Af:()=>s,Au:()=>E,QR:()=>o,Yf:()=>T});let r=1e-6;function E(){return r}const o=Math.random,_=Math.PI/180,i=180/Math.PI;function s(t){return t*_}function T(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:o,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:E,setEpsilon:function(t){r=t},toDegree:T,toRadian:s},Symbol.toStringTag,{value:"Module"}))},37648:(t,n,e)=>{e.d(n,{Cq:()=>c,WO:()=>E,c9:()=>a,m4:()=>u,qy:()=>s});var r=e(47364);function E(t,n,e){return t[0]=n,t[1]=e,t}function o(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t}function _(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t}function i(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t}function s(t,n){const e=n[0]-t[0],r=n[1]-t[1];return Math.sqrt(e*e+r*r)}function T(t,n){const e=n[0]-t[0],r=n[1]-t[1];return e*e+r*r}function A(t){const n=t[0],e=t[1];return Math.sqrt(n*n+e*e)}function R(t){const n=t[0],e=t[1];return n*n+e*e}function c(t,n,e,r){const E=n[0],o=n[1];return t[0]=E+r*(e[0]-E),t[1]=o+r*(e[1]-o),t}function u(t,n,e){const r=n[0],E=n[1];return t[0]=e[0]*r+e[2]*E+e[4],t[1]=e[1]*r+e[3]*E+e[5],t}function a(t,n,e,r){const E=n[0]-e[0],o=n[1]-e[1],_=Math.sin(r),i=Math.cos(r);return t[0]=E*i-o*_+e[0],t[1]=E*_+o*i+e[1],t}const N=A,S=o,O=_,I=i,f=s,C=T,M=R;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t},angle:function(t,n){const e=t[0],r=t[1],E=n[0],o=n[1];let _=e*e+r*r;_>0&&(_=1/Math.sqrt(_));let i=E*E+o*o;i>0&&(i=1/Math.sqrt(i));const s=(e*E+r*o)*_*i;return s>1?0:s<-1?Math.PI:Math.acos(s)},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t},copy:function(t,n){return t[0]=n[0],t[1]=n[1],t},cross:function(t,n,e){const r=n[0]*e[1]-n[1]*e[0];return t[0]=t[1]=0,t[2]=r,t},dist:f,distance:s,div:I,divide:i,dot:function(t,n){return t[0]*n[0]+t[1]*n[1]},equals:function(t,n){const e=t[0],E=t[1],o=n[0],_=n[1],i=(0,r.Au)();return Math.abs(e-o)<=i*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(E-_)<=i*Math.max(1,Math.abs(E),Math.abs(_))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]},floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t},len:N,length:A,lerp:c,max:function(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t},min:function(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t},mul:O,multiply:_,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t},normalize:function(t,n){const e=n[0],r=n[1];let E=e*e+r*r;return E>0&&(E=1/Math.sqrt(E),t[0]=n[0]*E,t[1]=n[1]*E),t},projectAndScale:function(t,n,e,r,E){let o=n[0]-e[0],_=n[1]-e[1];const i=(r[0]*o+r[1]*_)*(E-1);return o=r[0]*i,_=r[1]*i,t[0]=n[0]+o,t[1]=n[1]+_,t},random:function(t,n){n=n||1;const e=2*(0,r.QR)()*Math.PI;return t[0]=Math.cos(e)*n,t[1]=Math.sin(e)*n,t},rotate:a,round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t},scale:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t},scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t},set:E,sqrDist:C,sqrLen:M,squaredDistance:T,squaredLength:R,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:S,subtract:o,transformMat2:function(t,n,e){const r=n[0],E=n[1];return t[0]=e[0]*r+e[2]*E,t[1]=e[1]*r+e[3]*E,t},transformMat2d:u,transformMat3:function(t,n,e){const r=n[0],E=n[1];return t[0]=e[0]*r+e[3]*E+e[6],t[1]=e[1]*r+e[4]*E+e[7],t},transformMat4:function(t,n,e){const r=n[0],E=n[1];return t[0]=e[0]*r+e[4]*E+e[12],t[1]=e[1]*r+e[5]*E+e[13],t}},Symbol.toStringTag,{value:"Module"}))},53648:(t,n,e)=>{e.d(n,{Cq:()=>i,EF:()=>T,Iv:()=>I,SE:()=>C,UB:()=>A,Uj:()=>R,aU:()=>s,gJ:()=>S,gP:()=>u,ig:()=>f,qk:()=>_,sj:()=>c,w7:()=>o});var r=e(98472);const E=new Float32Array(1);function o(t){--t;for(let n=1;n<32;n<<=1)t|=t>>n;return t+1}function _(t,n,e){return Math.min(Math.max(t,n),e)}function i(t,n,e){return t+(n-t)*e}function s(t,n,e,r,E){return i(r,E,(t-n)/(e-n))}function T(t){return t*Math.PI/180}function A(t){return 180*t/Math.PI}function R(t){return Math.acos(_(t,-1,1))}function c(t){return Math.asin(_(t,-1,1))}function u(t,n,e=1e-6){return t===n||!(!Number.isFinite(t)||!Number.isFinite(n))&&(t>n?t-n:n-t)<=e}const a=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const N=BigInt("1000000");function S(t){return O(Math.max(-C,Math.min(t,C)))}function O(t){return E[0]=t,E[0]}function I(t,n){const e=(0,r.l)(t),E=c(t[2]/e),o=Math.atan2(t[1]/e,t[0]/e);return(0,r.s)(n,e,E,o),n}function f(t){const n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],e=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(u(n,1)&&u(e,1)&&u(r,1))}!function(t){const n=function(t){return a.setFloat64(0,t),a.getBigInt64(0)}(t=Math.abs(t)),e=function(t){return a.setBigInt64(0,t),a.getFloat64(0)}(n<=N?N:n-N);Math.abs(t-e)}(1);const C=O(34028234663852886e22)},92896:(t,n,e)=>{e.d(n,{mc:()=>E});var r=e(72008);function E(t,n=!1){return t<=r._?n?new Array(t).fill(0):new Array(t):new Float32Array(t)}},98132:(t,n,e)=>{function r(t){switch(t){case"u8":case"i8":return 1;case"u16":case"i16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}e.d(n,{Ad:()=>r})},77080:(t,n,e)=>{e.d(n,{g:()=>o});var r=e(53648),E=e(97143);function o(t,n,e){const o=Array.isArray(t),A=o?t.length/n:t.byteLength/(4*n),R=o?t:new Uint32Array(t,0,A*n),c=e?.minReduction??0,u=e?.originalIndices||null,a=u?u.length:0,N=e?.componentOffsets||null;let S=0;if(N)for(let t=0;t<N.length-1;t++){const n=N[t+1]-N[t];n>S&&(S=n)}else S=A;const O=Math.floor(1.1*S)+1;(null==T||T.length<2*O)&&(T=new Uint32Array((0,r.w7)(2*O)));for(let t=0;t<2*O;t++)T[t]=0;let I=0;const f=!!N&&!!u,C=f?a:A;let M=(0,E.aw)(A);const l=new Uint32Array(a),L=1.96;let h=0!==c?Math.ceil(4*L*L/(c*c)*c*(1-c)):C,D=1,d=N?N[1]:C;for(let t=0;t<C;t++){if(t===h){const n=1-I/t;if(n+L*Math.sqrt(n*(1-n)/t)<c)return null;h*=2}if(t===d){for(let t=0;t<2*O;t++)T[t]=0;if(u)for(let t=N[D-1];t<N[D];t++)l[t]=M[u[t]];d=N[++D]}const e=f?u[t]:t,r=e*n,E=s(R,r,n);let o=E%O,i=I;for(;0!==T[2*o+1];){if(T[2*o]===E){const t=T[2*o+1]-1;if(_(R,r,t*n,n)){i=M[t];break}}o++,o>=O&&(o-=O)}i===I&&(T[2*o]=E,T[2*o+1]=e+1,I++),M[e]=i}if(0!==c&&1-I/A<c)return null;if(f){for(let t=N[D-1];t<l.length;t++)l[t]=M[u[t]];M=(0,E.Uv)(l)}const P=o?new Array(I):new Uint32Array(I*n);I=0;for(let t=0;t<C;t++)M[t]===I&&(i(R,(f?u[t]:t)*n,P,I*n,n),I++);if(u&&!f){const t=new Uint32Array(a);for(let n=0;n<t.length;n++)t[n]=M[u[n]];M=(0,E.Uv)(t)}return{buffer:Array.isArray(P)?P:P.buffer,indices:M,uniqueCount:I}}function _(t,n,e,r){for(let E=0;E<r;E++)if(t[n+E]!==t[e+E])return!1;return!0}function i(t,n,e,r,E){for(let o=0;o<E;o++)e[r+o]=t[n+o]}function s(t,n,e){let r=0;for(let E=0;E<e;E++)r=t[n+E]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let T=null},72364:(t,n,e)=>{e.d(n,{U1:()=>T,iC:()=>s});var r=e(71004),E=e(98132),o=e(90736);class _{constructor(t,n){this.layout=t,this.buffer="number"==typeof n?new ArrayBuffer(n*t.stride):n;for(const n of t.fields.keys()){const e=t.fields.get(n);this[n]=new e.constructor(this.buffer,e.offset,this.stride)}}get stride(){return this.layout.stride}get count(){return this.buffer.byteLength/this.stride}get byteLength(){return this.buffer.byteLength}getField(t,n){const e=this[t];return e&&e.elementCount===n.ElementCount&&e.elementType===n.ElementType?e:null}slice(t,n){return new _(this.layout,this.buffer.slice(t*this.stride,n*this.stride))}copyFrom(t,n=0,e=0,r=t.count){const E=this.stride;if(E%4==0){const o=new Uint32Array(t.buffer,n*E,r*E/4);new Uint32Array(this.buffer,e*E,r*E/4).set(o)}else{const o=new Uint8Array(t.buffer,n*E,r*E);new Uint8Array(this.buffer,e*E,r*E).set(o)}return this}get usedMemory(){return this.byteLength}dispose(){}}class i{constructor(t=null){this._stride=0,this._lastAligned=0,this._fields=new Map,t&&(this._stride=t.stride,t.fields.forEach((t=>this._fields.set(t[0],{...t[1],constructor:c(t[1].constructor)}))))}vec2f(t,n){return this._appendField(t,r.U7,n),this}vec2f64(t,n){return this._appendField(t,r.wT,n),this}vec3f(t,n){return this._appendField(t,r.Yj,n),this}vec3f64(t,n){return this._appendField(t,r.Ax,n),this}vec4f(t,n){return this._appendField(t,r._5,n),this}vec4f64(t,n){return this._appendField(t,r.Ip,n),this}mat3f(t,n){return this._appendField(t,r.Ko,n),this}mat3f64(t,n){return this._appendField(t,r.m_,n),this}mat4f(t,n){return this._appendField(t,r.IL,n),this}mat4f64(t,n){return this._appendField(t,r.mF,n),this}vec4u8(t,n){return this._appendField(t,r.sb,n),this}f32(t,n){return this._appendField(t,r.AZ,n),this}f64(t,n){return this._appendField(t,r.oN,n),this}u8(t,n){return this._appendField(t,r.Kg,n),this}u16(t,n){return this._appendField(t,r.E_,n),this}i8(t,n){return this._appendField(t,r.kV,n),this}vec2i8(t,n){return this._appendField(t,r.oR,n),this}vec2i16(t,n){return this._appendField(t,r.iN,n),this}vec2u8(t,n){return this._appendField(t,r.eS,n),this}vec4u16(t,n){return this._appendField(t,r.Ig,n),this}u32(t,n){return this._appendField(t,r.Ym,n),this}_appendField(t,n,e){if(this._fields.has(t))return void(0,o.Uc)(!1,`${t} already added to vertex buffer layout`);const r=n.ElementCount*(0,E.Ad)(n.ElementType),_=this._stride;this._stride+=r,this._fields.set(t,{size:r,constructor:n,offset:_,optional:e})}createBuffer(t){return new _(this,t)}createView(t){return new _(this,t)}clone(){const t=new i;return t._stride=this._stride,t._fields=new Map,this._fields.forEach(((n,e)=>t._fields.set(e,n))),t.BufferType=this.BufferType,t}get stride(){if(this._lastAligned!==this._fields.size){let t=1;this._fields.forEach((n=>t=Math.max(t,(0,E.Ad)(n.constructor.ElementType)))),this._stride=Math.floor((this._stride+t-1)/t)*t,this._lastAligned=this._fields.size}return this._stride}get fields(){return this._fields}}function s(){return new i}class T{constructor(t){this.fields=new Array,t.fields.forEach(((t,n)=>{const e={...t,constructor:R(t.constructor)};this.fields.push([n,e])})),this.stride=t.stride}}const A=[r.AZ,r.U7,r.Yj,r._5,r.Ko,r.IL,r.oN,r.wT,r.Ax,r.Ip,r.m_,r.mF,r.Kg,r.eS,r.IN,r.sb,r.E_,r.kg,r.k5,r.Ig,r.Ym,r.qZ,r.ER,r.q$,r.kV,r.oR,r.Oq,r.mq,r.Mt,r.iN,r.g7,r.OS,r.Ep,r.mI,r.Yv,r.i9];function R(t){return`${t.ElementType}_${t.ElementCount}`}function c(t){return u.get(t)}const u=new Map;A.forEach((t=>u.set(R(t),t)))},73440:(t,n,e)=>{e.d(n,{W:()=>o});var r=e(77800),E=e(91811);function o(t,n=0){const e=t.stride;return Array.from(t.fields.keys()).map((r=>{const o=t.fields.get(r),i=o.constructor.ElementCount,s=_(o.constructor.ElementType),T=o.offset,A=!(!o.optional||!o.optional.glNormalized);return new E.q(r,i,s,T,e,A,n)}))}function _(t){const n=i[t];if(n)return n;throw new Error("BufferType not supported in WebGL")}const i={u8:r.Ck.UNSIGNED_BYTE,u16:r.Ck.UNSIGNED_SHORT,u32:r.Ck.UNSIGNED_INT,i8:r.Ck.BYTE,i16:r.Ck.SHORT,i32:r.Ck.INT,f32:r.Ck.FLOAT}},4636:(t,n,e)=>{var r;e.d(n,{K:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.PREVPOSITION="prevPosition",t.NEXTPOSITION="nextPosition",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))},80036:(t,n,e)=>{e.d(n,{If:()=>_,sn:()=>s,wj:()=>T});var r=e(73440),E=e(72364),o=e(4636);const _=(0,E.iC)().vec3f(o.K.POSITION).u16(o.K.COMPONENTINDEX),i=(0,E.iC)().vec2u8(o.K.SIDENESS),s=((0,r.W)(i),(0,E.iC)().vec3f(o.K.POSITION0).vec3f(o.K.POSITION1).vec2i16(o.K.NORMALCOMPRESSED).u16(o.K.COMPONENTINDEX).u8(o.K.VARIANTOFFSET,{glNormalized:!0}).u8(o.K.VARIANTSTROKE).u8(o.K.VARIANTEXTENSION,{glNormalized:!0})),T=(0,E.iC)().vec3f(o.K.POSITION0).vec3f(o.K.POSITION1).vec2i16(o.K.NORMALCOMPRESSED).vec2i16(o.K.NORMAL2COMPRESSED).u16(o.K.COMPONENTINDEX).u8(o.K.VARIANTOFFSET,{glNormalized:!0}).u8(o.K.VARIANTSTROKE).u8(o.K.VARIANTEXTENSION,{glNormalized:!0});new Map([[o.K.POSITION0,0],[o.K.POSITION1,1],[o.K.COMPONENTINDEX,2],[o.K.VARIANTOFFSET,3],[o.K.VARIANTSTROKE,4],[o.K.VARIANTEXTENSION,5],[o.K.NORMALCOMPRESSED,6],[o.K.NORMAL2COMPRESSED,7],[o.K.SIDENESS,8]])},79968:(t,n,e)=>{e.d(n,{k:()=>A});var r=e(92400),E=e(53648),o=e(98472),_=e(62484);const i=-1;var s,T;function A(t,n,e,_=O){const s=t.vertices.position,T=t.vertices.componentIndex,A=(0,E.EF)(_.anglePlanar),S=(0,E.EF)(_.angleSignificantEdge),I=Math.cos(S),f=Math.cos(A),C=N.edge,M=C.position0,l=C.position1,L=C.faceNormal0,h=C.faceNormal1,D=a(t),d=function(t){const n=t.faces.length/3,e=t.faces,r=t.neighbors;let E=0;for(let t=0;t<n;t++){const n=r[3*t],o=r[3*t+1],_=r[3*t+2],s=e[3*t],T=e[3*t+1],A=e[3*t+2];E+=n===i||s<T?1:0,E+=o===i||T<A?1:0,E+=_===i||A<s?1:0}const o=new Int32Array(4*E);let _=0;for(let t=0;t<n;t++){const n=r[3*t],E=r[3*t+1],s=r[3*t+2],T=e[3*t],A=e[3*t+1],R=e[3*t+2];(n===i||T<A)&&(o[_++]=T,o[_++]=A,o[_++]=t,o[_++]=n),(E===i||A<R)&&(o[_++]=A,o[_++]=R,o[_++]=t,o[_++]=E),(s===i||R<T)&&(o[_++]=R,o[_++]=T,o[_++]=t,o[_++]=s)}return o}(t),P=d.length/4,U=n.allocate(P);let F=0;const G=P,B=e.allocate(G);let m=0,p=0,g=0;const H=(0,r.ik)(0,P),b=new Float32Array(P);b.forEach(((t,n,e)=>{s.getVec(d[4*n],M),s.getVec(d[4*n+1],l),e[n]=(0,o.p)(M,l)})),H.sort(((t,n)=>b[n]-b[t]));const y=new Array,V=new Array;for(let t=0;t<P;t++){const r=H[t],E=b[r],_=d[4*r],a=d[4*r+1],N=d[4*r+2],S=d[4*r+3],O=S===i;if(s.getVec(_,M),s.getVec(a,l),O)(0,o.s)(L,D[3*N],D[3*N+1],D[3*N+2]),(0,o.c)(h,L),C.componentIndex=T.get(_),C.cosAngle=(0,o.j)(L,h);else{if((0,o.s)(L,D[3*N],D[3*N+1],D[3*N+2]),(0,o.s)(h,D[3*S],D[3*S+1],D[3*S+2]),C.componentIndex=T.get(_),C.cosAngle=(0,o.j)(L,h),c(C,f))continue;C.cosAngle<-.9999&&(0,o.c)(h,L)}p+=E,g++,O||R(C,I)?(n.write(U,F++,C),y.push(E)):u(C,A)&&(e.write(B,m++,C),V.push(E))}const v=new Float32Array(y.reverse()),w=new Float32Array(V.reverse());return{regular:{instancesData:n.trim(U,F),lodInfo:{lengths:v}},silhouette:{instancesData:e.trim(B,m),lodInfo:{lengths:w}},averageEdgeLength:p/g}}function R(t,n){return t.cosAngle<n}function c(t,n){return t.cosAngle>n}function u(t,n){const e=(0,E.Uj)(t.cosAngle),r=N.fwd,_=N.ortho;return(0,o.D)(r,t.position1,t.position0),e*((0,o.j)((0,o.b)(_,t.faceNormal0,t.faceNormal1),r)>0?-1:1)>n}function a(t){const n=t.faces.length/3,e=t.vertices.position,r=t.faces,E=S.v0,_=S.v1,i=S.v2,s=new Float32Array(3*n);for(let t=0;t<n;t++){const n=r[3*t],T=r[3*t+1],A=r[3*t+2];e.getVec(n,E),e.getVec(T,_),e.getVec(A,i),(0,o.f)(_,_,E),(0,o.f)(i,i,E),(0,o.b)(E,_,i),(0,o.n)(E,E),s[3*t]=E[0],s[3*t+1]=E[1],s[3*t+2]=E[2]}return s}(T=s||(s={}))[T.SOLID=0]="SOLID",T[T.SKETCH=1]="SKETCH";const N={edge:{position0:(0,_.Su)(),position1:(0,_.Su)(),faceNormal0:(0,_.Su)(),faceNormal1:(0,_.Su)(),componentIndex:0,cosAngle:0},ortho:(0,_.Su)(),fwd:(0,_.Su)()},S={v0:(0,_.Su)(),v1:(0,_.Su)(),v2:(0,_.Su)()},O={anglePlanar:4,angleSignificantEdge:35}},75980:(t,n,e)=>{e.d(n,{Aj:()=>U,or:()=>g,In:()=>F,qu:()=>p});var r=e(77080);function E(t,n,e){const r=n/3,E=new Uint32Array(e+1),o=new Uint32Array(e+1),_=(t,n)=>{t<n?E[t+1]++:o[n+1]++};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],E=t[3*n+2];_(e,r),_(r,E),_(E,e)}let i=0,s=0;for(let t=0;t<e;t++){const n=E[t+1],e=o[t+1];E[t+1]=i,o[t+1]=s,i+=n,s+=e}const T=new Uint32Array(6*r),A=E[e],R=(t,n,e)=>{if(t<n){const r=E[t+1]++;T[2*r]=n,T[2*r+1]=e}else{const r=o[n+1]++;T[2*A+2*r]=t,T[2*A+2*r+1]=e}};for(let n=0;n<r;n++){const e=t[3*n],r=t[3*n+1],E=t[3*n+2];R(e,r,n),R(r,E,n),R(E,e,n)}const c=(t,n)=>{const e=2*t,r=n-t;for(let t=1;t<r;t++){const n=T[e+2*t],r=T[e+2*t+1];let E=t-1;for(;E>=0&&T[e+2*E]>n;E--)T[e+2*E+2]=T[e+2*E],T[e+2*E+3]=T[e+2*E+1];T[e+2*E+2]=n,T[e+2*E+3]=r}};for(let t=0;t<e;t++)c(E[t],E[t+1]),c(A+o[t],A+o[t+1]);const u=new Int32Array(3*r),a=(n,e)=>n===t[3*e]?0:n===t[3*e+1]?1:n===t[3*e+2]?2:-1,N=(t,n)=>{const e=a(t,n);u[3*n+e]=-1},S=(t,n,e,r)=>{const E=a(t,n);u[3*n+E]=r;const o=a(e,r);u[3*r+o]=n};for(let t=0;t<e;t++){let n=E[t];const e=E[t+1];let r=o[t];const _=o[t+1];for(;n<e&&r<_;){const e=T[2*n],E=T[2*A+2*r];e===E?(S(t,T[2*n+1],E,T[2*A+2*r+1]),n++,r++):e<E?(N(t,T[2*n+1]),n++):(N(E,T[2*A+2*r+1]),r++)}for(;n<e;)N(t,T[2*n+1]),n++;for(;r<_;)N(T[2*A+2*r],T[2*A+2*r+1]),r++}return u}var o=e(72364),_=e(4636),i=e(80036),s=e(72052),T=e(98472),A=e(62484),R=e(73440),c=e(53648);function u(t,n,e,r,E,o=2){const _=1/(Math.abs(e)+Math.abs(r)+Math.abs(E)),i=e*_,s=r*_,T=E<=0?(i>=0?1:-1)*(1-Math.abs(s)):i,A=E<=0?(s>=0?1:-1)*(1-Math.abs(i)):s,R=n*o;t[R]=a(T),t[R+1]=a(A)}function a(t){return(0,c.qk)(Math.round(32767*t),-32767,32767)}e(92896);class N{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?C:f}write(t,n,e){const r=this._edgeHashFunction(e);d.seed=r;const E=d.getIntRange(0,255),o=d.getIntRange(0,this.settings.variants-1),_=d.getFloat(),i=255*(.5*function(t,n){const e=t<0?-1:1;return Math.abs(t)**1.2*e}(-(1-Math.min(_/.7,1))+Math.max(0,_-.7)/(1-.7))+.5);t.position0.setVec(n,e.position0),t.position1.setVec(n,e.position1),t.componentIndex.set(n,e.componentIndex),t.variantOffset.set(n,E),t.variantStroke.set(n,o),t.variantExtension.set(n,i)}trim(t,n){return t.slice(0,n)}}const S=new Float32Array(6),O=new Uint32Array(S.buffer),I=new Uint32Array(1);function f(t){const n=S;n[0]=t.position0[0],n[1]=t.position0[1],n[2]=t.position0[2],n[3]=t.position1[0],n[4]=t.position1[1],n[5]=t.position1[2],I[0]=5381;for(let t=0;t<O.length;t++)I[0]=31*I[0]+O[t];return I[0]}function C(t){const n=S;n[0]=l(t.position0[0]),n[1]=l(t.position0[1]),n[2]=l(t.position0[2]),n[3]=l(t.position1[0]),n[4]=l(t.position1[1]),n[5]=l(t.position1[2]),I[0]=5381;for(let t=0;t<O.length;t++)I[0]=31*I[0]+O[t];return I[0]}const M=1e4;function l(t){return Math.round(t*M)/M}class L{constructor(){this._commonWriter=new N}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return i.sn.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e),(0,T.g)(D,e.faceNormal0,e.faceNormal1),(0,T.n)(D,D);const{typedBuffer:r,typedBufferStride:E}=t.normalCompressed;u(r,n,D[0],D[1],D[2],E)}trim(t,n){return this._commonWriter.trim(t,n)}}L.Layout=i.sn,L.glLayout=(0,R.W)(i.sn,1);class h{constructor(){this._commonWriter=new N}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return i.wj.createBuffer(t)}write(t,n,e){this._commonWriter.write(t,n,e);{const{typedBuffer:r,typedBufferStride:E}=t.normalCompressed;u(r,n,e.faceNormal0[0],e.faceNormal0[1],e.faceNormal0[2],E)}{const{typedBuffer:r,typedBufferStride:E}=t.normal2Compressed;u(r,n,e.faceNormal1[0],e.faceNormal1[1],e.faceNormal1[2],E)}}trim(t,n){return this._commonWriter.trim(t,n)}}h.Layout=i.wj,h.glLayout=(0,R.W)(i.wj,1);const D=(0,A.Su)(),d=new s.c;var P=e(79968);function U(t){const n=F(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return B.updateSettings(t.writerSettings),m.updateSettings(t.writerSettings),(0,P.k)(n,B,m)}function F(t,n,e,o){if(n){const n=E(e,o,t.count);return new G(e,o,n,t)}const _=(0,r.g)(t.buffer,t.stride/4,{originalIndices:e,originalIndicesLength:o}),s=E(_.indices,o,_.uniqueCount);return{faces:_.indices,facesLength:_.indices.length,neighbors:s,vertices:i.If.createView(_.buffer)}}class G{constructor(t,n,e,r){this.faces=t,this.facesLength=n,this.neighbors=e,this.vertices=r}}const B=new L,m=new h,p=(0,o.iC)().vec3f(_.K.POSITION0).vec3f(_.K.POSITION1),g=(0,o.iC)().vec3f(_.K.POSITION0).vec3f(_.K.POSITION1).u16(_.K.COMPONENTINDEX)},91811:(t,n,e)=>{e.d(n,{q:()=>r});class r{constructor(t,n,e,r,E,o=!1,_=0){this.name=t,this.count=n,this.type=e,this.offset=r,this.stride=E,this.normalized=o,this.divisor=_}}},77800:(t,n,e)=>{var r,E,o,_,i,s,T,A,R,c,u,a,N,S,O,I,f,C,M,l,L,h,D;e.d(n,{Ck:()=>A,GE:()=>d,Gs:()=>M,Id:()=>S,K:()=>i,OK:()=>I,QD:()=>c,Qb:()=>f,Qx:()=>h,Qz:()=>a,SC:()=>s,UV:()=>O,Ud:()=>u,Uf:()=>E,YT:()=>_,_m:()=>C,c5:()=>N,et:()=>R,kl:()=>l,sl:()=>r,sr:()=>P,vs:()=>T,w$:()=>o,y4:()=>L}),function(t){t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(r||(r={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(E||(E={})),function(t){t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(o||(o={})),function(t){t[t.ADD=32774]="ADD",t[t.MIN=32775]="MIN",t[t.MAX=32776]="MAX",t[t.SUBTRACT=32778]="SUBTRACT",t[t.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(_||(_={})),function(t){t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",t[t.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",t[t.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",t[t.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",t[t.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",t[t.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(i||(i={})),function(t){t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(s||(s={})),function(t){t[t.CW=2304]="CW",t[t.CCW=2305]="CCW"}(T||(T={})),function(t){t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT"}(A||(A={})),function(t){t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS"}(R||(R={})),function(t){t[t.ZERO=0]="ZERO",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP"}(c||(c={})),function(t){t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(u||(u={})),function(t){t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(a||(a={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_3D=32879]="TEXTURE_3D",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(N||(N={})),function(t){t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.RED=6403]="RED",t[t.RG=33319]="RG",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER"}(S||(S={})),function(t){t[t.RGBA4=32854]="RGBA4",t[t.R16F=33325]="R16F",t[t.RG16F=33327]="RG16F",t[t.RGB32F=34837]="RGB32F",t[t.RGBA16F=34842]="RGBA16F",t[t.R32F=33326]="R32F",t[t.RG32F=33328]="RG32F",t[t.RGBA32F=34836]="RGBA32F",t[t.R11F_G11F_B10F=35898]="R11F_G11F_B10F",t[t.RGB8=32849]="RGB8",t[t.RGBA8=32856]="RGBA8",t[t.RGB5_A1=32855]="RGB5_A1",t[t.R8=33321]="R8",t[t.RG8=33323]="RG8",t[t.R8I=33329]="R8I",t[t.R8UI=33330]="R8UI",t[t.R16I=33331]="R16I",t[t.R16UI=33332]="R16UI",t[t.R32I=33333]="R32I",t[t.R32UI=33334]="R32UI",t[t.RG8I=33335]="RG8I",t[t.RG8UI=33336]="RG8UI",t[t.RG16I=33337]="RG16I",t[t.RG16UI=33338]="RG16UI",t[t.RG32I=33339]="RG32I",t[t.RG32UI=33340]="RG32UI",t[t.RGB16F=34843]="RGB16F",t[t.RGB9_E5=35901]="RGB9_E5",t[t.SRGB8=35905]="SRGB8",t[t.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",t[t.RGB565=36194]="RGB565",t[t.RGBA32UI=36208]="RGBA32UI",t[t.RGB32UI=36209]="RGB32UI",t[t.RGBA16UI=36214]="RGBA16UI",t[t.RGB16UI=36215]="RGB16UI",t[t.RGBA8UI=36220]="RGBA8UI",t[t.RGB8UI=36221]="RGB8UI",t[t.RGBA32I=36226]="RGBA32I",t[t.RGB32I=36227]="RGB32I",t[t.RGBA16I=36232]="RGBA16I",t[t.RGB16I=36233]="RGB16I",t[t.RGBA8I=36238]="RGBA8I",t[t.RGB8I=36239]="RGB8I",t[t.R8_SNORM=36756]="R8_SNORM",t[t.RG8_SNORM=36757]="RG8_SNORM",t[t.RGB8_SNORM=36758]="RGB8_SNORM",t[t.RGBA8_SNORM=36759]="RGBA8_SNORM",t[t.RGB10_A2=32857]="RGB10_A2",t[t.RGB10_A2UI=36975]="RGB10_A2UI"}(O||(O={})),function(t){t[t.FLOAT=5126]="FLOAT",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.INT=5124]="INT",t[t.HALF_FLOAT=5131]="HALF_FLOAT",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(I||(I={})),function(t){t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",t[t.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",t[t.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",t[t.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(f||(f={})),function(t){t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_READ=35045]="STATIC_READ",t[t.DYNAMIC_READ=35049]="DYNAMIC_READ",t[t.STREAM_READ=35041]="STREAM_READ",t[t.STATIC_COPY=35046]="STATIC_COPY",t[t.DYNAMIC_COPY=35050]="DYNAMIC_COPY",t[t.STREAM_COPY=35042]="STREAM_COPY"}(C||(C={})),function(t){t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER"}(M||(M={})),function(t){t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",t[t.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(l||(l={})),function(t){t[t.Texture=0]="Texture",t[t.BufferObject=1]="BufferObject",t[t.VertexArrayObject=2]="VertexArrayObject",t[t.Shader=3]="Shader",t[t.Program=4]="Program",t[t.FramebufferObject=5]="FramebufferObject",t[t.Renderbuffer=6]="Renderbuffer",t[t.TransformFeedback=7]="TransformFeedback",t[t.Sync=8]="Sync",t[t.UNCOUNTED=9]="UNCOUNTED",t[t.LinesOfCode=9]="LinesOfCode",t[t.Uniform=10]="Uniform",t[t.COUNT=11]="COUNT"}(L||(L={})),function(t){t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",t[t.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",t[t.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",t[t.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",t[t.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",t[t.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",t[t.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",t[t.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",t[t.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",t[t.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",t[t.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",t[t.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",t[t.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",t[t.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",t[t.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(h||(h={})),function(t){t[t.NONE=0]="NONE",t[t.BACK=1029]="BACK"}(D||(D={}));const d=33306;var P,U,F,G,B,m,p;!function(t){t[t.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",t[t.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",t[t.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",t[t.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",t[t.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",t[t.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",t[t.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",t[t.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(P||(P={})),function(t){t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT=5124]="INT",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",t[t.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",t[t.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",t[t.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",t[t.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",t[t.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",t[t.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",t[t.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",t[t.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",t[t.SAMPLER_3D=35679]="SAMPLER_3D",t[t.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",t[t.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",t[t.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",t[t.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",t[t.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",t[t.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",t[t.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",t[t.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",t[t.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",t[t.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",t[t.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",t[t.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(U||(U={})),function(t){t[t.OBJECT_TYPE=37138]="OBJECT_TYPE",t[t.SYNC_CONDITION=37139]="SYNC_CONDITION",t[t.SYNC_STATUS=37140]="SYNC_STATUS",t[t.SYNC_FLAGS=37141]="SYNC_FLAGS"}(F||(F={})),function(t){t[t.UNSIGNALED=37144]="UNSIGNALED",t[t.SIGNALED=37145]="SIGNALED"}(G||(G={})),function(t){t[t.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",t[t.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",t[t.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",t[t.WAIT_FAILED=37149]="WAIT_FAILED"}(B||(B={})),function(t){t[t.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(m||(m={})),function(t){t[t.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(p||(p={}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8828,2259],{3615:(e,a,r)=>{r.d(a,{q:()=>n});var t=r(66668);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){const r=this._serviceMetadatas.get(e);if(r)return r;const n=await(0,t.S)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:a}=e;if(!a)return null;const{_itemDatas:r}=this;if(r.has(a))return r.get(a);const t=await e.fetchData();return r.set(a,t),t}async fetchCustomParameters(e,a){const r=await this.fetchItemData(e);return r&&"object"==typeof r&&(a?a(r):r.customParameters)||null}}},50420:(e,a,r)=>{r.d(a,{S:()=>o});var t=r(47620),n=r(2600),i=r(20744),s=r(10860),c=r(48212),l=r(54872),y=r(9764);async function o(e,a){const r=(0,c.K0)(e);if(!r)throw new i.c("invalid-url","Invalid scene service url");const o={...a,sceneServerUrl:r.url.path,layerId:r.sublayer??void 0};if(o.sceneLayerItem??=await async function(e){const a=(await u(e)).serviceItemId;if(!a)return null;const r=new y.default({id:a,apiKey:e.apiKey}),i=await async function(e){const a=t.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const r=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.c)(r,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,s.CE)(e)}return null}(e);null!=i&&(r.portal=new l.c({url:i}));try{return r.load({signal:e.signal})}catch(e){return(0,s.CE)(e),null}}(o),null==o.sceneLayerItem)return d(o.sceneServerUrl.replace("/SceneServer","/FeatureServer"),o);const L=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const r=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find((e=>"Feature Service"===e.type))||null;if(!r)return null;const t=new y.default({portal:r.portal,id:r.id});return await t.load(),t}catch(e){return(0,s.CE)(e),null}}(o);if(!L?.url)throw new i.c("related-service-not-found","Could not find feature service through portal item relationship");o.featureServiceItem=L;const f=await d(L.url,o);return f.portalItem=L,f}async function u(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",...e.customParameters,token:e.apiKey},responseType:"json",signal:e.signal};try{const r=await(0,n.c)(e.sceneServerUrl,a);e.rootDocument=r.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const r=(0,c.K0)(e);if(!r)throw new i.c("invalid-feature-service-url","Invalid feature service url");const t=r.url.path,s=a.layerId;if(null==s)return{serverUrl:t};const l=u(a),y=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,o=(y?.layers?.[0]||y?.tables?.[0])?.customParameters,d=e=>{const r={query:{f:"json",...o},responseType:"json",authMode:e,signal:a.signal};return(0,n.c)(t,r)},L=d("anonymous").catch((()=>d("no-prompt"))),[f,m]=await Promise.all([L,l]),p=m?.layers,S=f.data&&f.data.layers;if(!Array.isArray(S))throw new Error("expected layers array");if(Array.isArray(p)){for(let e=0;e<Math.min(p.length,S.length);e++)if(p[e].id===s)return{serverUrl:t,layerId:S[e].id}}else if(null!=s&&s<S.length)return{serverUrl:t,layerId:S[s].id};throw new Error("could not find matching associated sublayer")}},13608:(e,a,r)=>{r.d(a,{I:()=>i,w:()=>d});var t=r(66668);const n=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function i(e,a){const{loadContext:r,...n}=a||{},i=r?await r.fetchServiceMetadata(e,n):await(0,t.S)(e,n);u(i),l(i);const s={serviceJSON:i};if((i.currentVersion??0)<10.5)return s;const c=`${e}/layers`,y=r?await r.fetchServiceMetadata(c,n):await(0,t.S)(c,n);return u(y),l(y),s.layersJSON={layers:y.layers,tables:y.tables},s}function s(e){const{type:a}=e;return!!a&&n.has(a)}function c(e){return"Table"===e.type}function l(e){e.layers=e.layers?.filter(s),e.tables=e.tables?.filter(c)}function y(e){e.type||="Feature Layer"}function o(e){e.type||="Table"}function u(e){e.layers?.forEach(y),e.tables?.forEach(o)}function d(e){switch(e){case"Feature Layer":case"Table":return"FeatureLayer";case"Oriented Imagery Layer":return"OrientedImageryLayer";case"Catalog Layer":return"CatalogLayer"}return"FeatureLayer"}},58828:(e,a,r)=>{r.d(a,{e:()=>T,populateOperationalLayers:()=>o});var t=r(2952),n=(r(9456),r(3615)),i=r(83928),s=r(9764);function c(e,a){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===a}var l=r(12259),y=r(97824);async function o(e,a,r){if(!a)return;const t=a.map((e=>async function(e,a){return async function(e,a,r){const t=new e;return t.read(a,r.context),"group"===t.type&&("GroupLayer"===a.layerType?await T(t,a,r):v(a)?function(e,a,r){a.itemId&&(e.portalItem=new s.default({id:a.itemId,portal:r?.portal}),e.when((()=>{const t=t=>{const n=t.layerId;G(t,e,a,n,r);const i=a.featureCollection?.layers?.[n];i&&t.read(i,r)};e.layers?.forEach(t),e.tables?.forEach(t)})))}(t,a,r.context):b(a)&&await async function(e,a,r){const t=i.q.FeatureLayer,n=await t(),s=a.featureCollection,c=s?.showLegend,l=s?.layers?.map(((t,i)=>{const s=new n;s.read(t,r);const l={...r,ignoreDefaults:!0};return G(s,e,a,i,l),null!=c&&s.read({showLegend:c},l),s}));e.layers.addMany(l??[])}(t,a,r.context)),await(0,y.M)(t,r.context),t}(await g(e,a),e,a)}(e,r))),n=await Promise.allSettled(t);for(const a of n)"rejected"===a.status||a.value&&e.add(a.value)}const u={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",PointCloudLayer:"PointCloudLayer",ArcGISSceneServiceLayer:"SceneLayer",IntegratedMeshLayer:"IntegratedMeshLayer",OGCFeatureLayer:"OGCFeatureLayer",BuildingSceneLayer:"BuildingSceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",GroupLayer:"GroupLayer",GeoJSON:"GeoJSONLayer",WebTiledLayer:"WebTileLayer",CSV:"CSVLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",KML:"KMLLayer",RasterDataLayer:"UnsupportedLayer",Voxel:"VoxelLayer",LineOfSightLayer:"LineOfSightLayer"},d={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},L={ArcGISFeatureLayer:"FeatureLayer"},f={ArcGISTiledMapServiceLayer:"TileLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",OpenStreetMap:"OpenStreetMapLayer",WebTiledLayer:"WebTileLayer",VectorTileLayer:"VectorTileLayer",ArcGISImageServiceLayer:"UnsupportedLayer",WMS:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",DefaultTileLayer:"TileLayer"},m={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoRSS:"GeoRSSLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"UnsupportedLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},p={ArcGISFeatureLayer:"FeatureLayer"},S={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WebTiledLayer:"WebTileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer"},w={...m,LinkChartLayer:"LinkChartLayer"},h={...p},I={...S};async function g(e,a){const r=a.context,t=M(r);let y=e.layerType||e.type;!y&&a?.defaultLayerType&&(y=a.defaultLayerType);const o=t[y];let u=o?i.q[o]:i.q.UnknownLayer;if(v(e)){const a=r?.portal;if(e.itemId){const r=new s.default({id:e.itemId,portal:a});await r.load();const t=(await(0,l.q)(r,new n.q)).className||"UnknownLayer";u=i.q[t]}}else"ArcGISFeatureLayer"===y?function(e){return c(e,"notes")}(e)||function(e){return c(e,"markup")}(e)?u=i.q.MapNotesLayer:function(e){return c(e,"route")}(e)?u=i.q.RouteLayer:b(e)&&(u=i.q.GroupLayer):e.wmtsInfo?.url&&e.wmtsInfo.layerIdentifier?u=i.q.WMTSLayer:"WFS"===y&&"2.0.0"!==e.wfsInfo?.version&&(u=i.q.UnsupportedLayer);return u()}function b(e){return"ArcGISFeatureLayer"===e.layerType&&!v(e)&&(e.featureCollection?.layers?.length??0)>1}function v(e){return"Feature Collection"===e.type}function M(e){let a;switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap":a=f;break;case"ground":a=d;break;case"tables":a=L;break;default:a=u}break;case"link-chart":switch(e.layerContainerType){case"basemap":a=I;break;case"tables":a=h;break;default:a=w}break;default:switch(e.layerContainerType){case"basemap":a=S;break;case"tables":a=p;break;default:a=m}}return a}async function T(e,a,r){const n=new t.c,i=o(n,Array.isArray(a.layers)?a.layers:[],r);try{try{if(await i,"group"===e.type)return e.layers.addMany(n),e}catch(a){e.destroy();for(const e of n)e.destroy();throw a}}catch(e){throw e}}function G(e,a,r,t,n){e.read({id:`${a.id}-sublayer-${t}`,visibility:r.visibleLayers?.includes(t)??!0},n)}},83928:(e,a,r)=>{r.d(a,{q:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3912)]).then(r.bind(r,48388))).default,BuildingSceneLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(3180),r.e(9644),r.e(8344),r.e(9420),r.e(7064),r.e(5928)]).then(r.bind(r,10948))).default,CatalogLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(2664),r.e(2848),r.e(5468),r.e(572),r.e(8772)]).then(r.bind(r,20324))).default,CSVLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(2292)]).then(r.bind(r,79468))).default,DimensionLayer:async()=>(await Promise.all([r.e(5612),r.e(7832)]).then(r.bind(r,28320))).default,ElevationLayer:async()=>(await Promise.all([r.e(5612),r.e(2968),r.e(8380)]).then(r.bind(r,47104))).default,FeatureLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(3645)]).then(r.bind(r,672))).default,GeoJSONLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(6584)]).then(r.bind(r,92768))).default,GeoRSSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(7988),r.e(5472),r.e(8404)]).then(r.bind(r,43984))).default,GroupLayer:async()=>(await Promise.all([r.e(5612),r.e(7456)]).then(r.bind(r,44080))).default,ImageryLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(2848),r.e(6128),r.e(9884),r.e(2124)]).then(r.bind(r,7896))).default,ImageryTileLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(6128),r.e(9884),r.e(7048),r.e(5496)]).then(r.bind(r,82744))).default,IntegratedMeshLayer:async()=>(await Promise.all([r.e(5612),r.e(9644),r.e(7024)]).then(r.bind(r,96584))).default,KMLLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(236),r.e(1312)]).then(r.bind(r,53688))).default,LineOfSightLayer:async()=>(await Promise.all([r.e(5612),r.e(3536)]).then(r.bind(r,91884))).default,LinkChartLayer:async()=>(await Promise.all([r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(9512),r.e(3220),r.e(1512),r.e(6680),r.e(8080)]).then(r.bind(r,54192))).default,MapImageLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(2848),r.e(5468),r.e(7804),r.e(3089)]).then(r.bind(r,3089))).default,MapNotesLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(8528)]).then(r.bind(r,37784))).default,MediaLayer:async()=>(await Promise.all([r.e(5612),r.e(2364)]).then(r.bind(r,66664))).default,OGCFeatureLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(4384),r.e(8224)]).then(r.bind(r,56288))).default,OpenStreetMapLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3632),r.e(1244)]).then(r.bind(r,1244))).default,OrientedImageryLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(2664),r.e(6556),r.e(672),r.e(8640)]).then(r.bind(r,75432))).default,PointCloudLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(9644),r.e(2296)]).then(r.bind(r,21680))).default,RouteLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(236),r.e(8520)]).then(r.bind(r,40900))).default,SceneLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(3180),r.e(9644),r.e(9904),r.e(8344),r.e(9420),r.e(4716),r.e(7064),r.e(712)]).then(r.bind(r,3688))).default,StreamLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(1136)]).then(r.bind(r,18e3))).default,SubtypeGroupLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(2664),r.e(6556),r.e(5368),r.e(8792)]).then(r.bind(r,8444))).default,TileLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(2848),r.e(5468),r.e(2968),r.e(7804),r.e(0)]).then(r.bind(r,5e4))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([r.e(5612),r.e(7752)]).then(r.bind(r,71316))).default,UnknownLayer:async()=>(await r.e(4203).then(r.bind(r,56584))).default,UnsupportedLayer:async()=>(await r.e(2456).then(r.bind(r,12456))).default,VectorTileLayer:async()=>(await Promise.all([r.e(5612),r.e(8980),r.e(2968),r.e(1272),r.e(7936)]).then(r.bind(r,65632))).default,VoxelLayer:async()=>(await Promise.all([r.e(5612),r.e(2692),r.e(9644),r.e(8256)]).then(r.bind(r,59496))).default,WFSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(8980),r.e(5472),r.e(5864),r.e(1744),r.e(5776),r.e(236),r.e(8976),r.e(9512),r.e(4808),r.e(2612)]).then(r.bind(r,53440))).default,WMSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(2692),r.e(7988),r.e(5472),r.e(7052)]).then(r.bind(r,85024))).default,WMTSLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3632),r.e(4832)]).then(r.bind(r,54832))).default,WebTileLayer:async()=>(await Promise.all([r.e(5612),r.e(5156),r.e(3632)]).then(r.bind(r,32896))).default}},67632:(e,a,r)=>{r.d(a,{AX:()=>c,_W:()=>l,eW:()=>s,k1:()=>u,mg:()=>y,oD:()=>d,qe:()=>o,qi:()=>i});var t=r(50420),n=r(13608);function i(e){const a={id:e.id,name:e.name},r=(0,n.w)(e.type);return"FeatureLayer"!==r&&(a.layerType=r),a}async function s(e,a,r){if(null==e?.layers||null==e?.tables){const t=await r.fetchServiceMetadata(a,{customParameters:c(e)?.customParameters});(e=e||{}).layers=e.layers||t?.layers?.map(i),e.tables=e.tables||t?.tables?.map(i)}return e}function c(e){if(!e)return null;const{layers:a,tables:r}=e;return a?.length?a[0]:r?.length?r[0]:null}function l(e,a){return null==a?null:[...e.layers||[],...e.tables||[]].find((e=>e.id===a))}function y(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function o(e){switch(e){case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":return"SubtypeGroupLayer"}return"FeatureLayer"}function u(e){const a=[];return e?.layers?.forEach((e=>{"SubtypeGroupLayer"===e.layerType&&a.push(e.id)})),a}async function d(e,a,r){if(!e?.url)return a??{};if(a??={},!a.layers){const t=await r.fetchServiceMetadata(e.url);a.layers=t.layers?.map(i)}const{serverUrl:n,portalItem:s}=await(0,t.S)(e.url,{sceneLayerItem:e,customParameters:c(a)?.customParameters}).catch((()=>({serverUrl:null,portalItem:null})));if(null==n)return a.tables=[],a;if(!a.tables&&s){const e=await s.fetchData();if(e?.tables)a.tables=e.tables.map(i);else{const t=await r.fetchServiceMetadata(n,{customParameters:c(e)?.customParameters});a.tables=t?.tables?.map(i)}}if(a.tables)for(const e of a.tables)e.url=`${n}/${e.id}`;return a}},12259:(e,a,r)=>{r.d(a,{fromItem:()=>d,q:()=>L});var t=r(20744),n=r(50420),i=r(13608),s=r(3615),c=r(71068),l=r(83928),y=r(9764),o=r(67632),u=r(46940);async function d(e){let{portalItem:a}=e;!a||a instanceof y.default||(a=new y.default(a));const r=await async function(e){await e.load();const a=new s.q;return async function(e){const a=e.className,r=l.q[a];return{constructor:await r(),properties:e.properties}}(await L(e,a))}(a);return new(0,r.constructor)({portalItem:a,...r.properties})}async function L(e,a){switch(e.type){case"3DTiles Service":return{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const a=(0,u._S)(e,"Map Notes"),r=(0,u._S)(e,"Markup");if(a||r)return{className:"MapNotesLayer"};if((0,u._S)(e,"Route Layer"))return{className:"RouteLayer"};const t=await e.fetchData();return 1===(0,o.mg)(t)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){const r=await f(e,a);if("object"==typeof r){const{sourceJSON:e,className:a}=r,t={sourceJSON:e};return null!=r.id&&(t.layerId=r.id),{className:a||"FeatureLayer",properties:t}}return{className:"GroupLayer"}}(e,a);case"Feed":case"Stream Service":return{className:"StreamLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"Group Layer":return{className:"GroupLayer"};case"Image Service":return async function(e,a){await e.load();const r=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(r.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(r.includes("tiled imagery"))return{className:"ImageryTileLayer"};const t=await a.fetchItemData(e),n=t?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const i=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)}),s=i.cacheType?.toLowerCase(),c=i.capabilities?.toLowerCase().includes("tilesonly");return"map"===s||c?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Map Service":return async function(e,a){return await async function(e,a){const{tileInfo:r}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return r}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,a){const r=await f(e,a,(async()=>{try{if(!e.url)return[];const{serverUrl:r}=await(0,n.S)(e.url,{sceneLayerItem:e}),t=await a.fetchServiceMetadata(r);return t?.tables??[]}catch{return[]}}));if("object"==typeof r){const t={};let n;if(null!=r.id?(t.layerId=r.id,n=`${e.url}/layers/${r.id}`):n=e.url,e.typeKeywords?.length)for(const a of Object.keys(c.Wr))if(e.typeKeywords.includes(a))return{className:c.Wr[a]};const i=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,(e=>(0,o.AX)(e)?.customParameters))});return{className:c.Wr[i?.layerType]||"SceneLayer",properties:t}}if(!1===r){const r=await a.fetchServiceMetadata(e.url);if("Voxel"===r?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new t.c("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function f(e,a,r){const{url:t,type:n}=e,s="Feature Service"===n;if(!t)return{};if(/\/\d+$/.test(t)){if(s){const r=await a.fetchServiceMetadata(t,{customParameters:await a.fetchCustomParameters(e,(e=>(0,o.AX)(e)?.customParameters))});return{id:r.id,className:(0,i.w)(r.type),sourceJSON:r}}return{}}await e.load();let c=await a.fetchItemData(e);if(s){const e=await(0,o.eW)(c,t,a),r=m(e);if("object"==typeof r){const a=(0,o._W)(e,r.id);r.className=(0,o.qe)(a?.layerType)}return r}if("Scene Service"===n&&(c=await(0,o.oD)(e,c,a)),(0,o.mg)(c)>0)return m(c);const l=await a.fetchServiceMetadata(t);return r&&(l.tables=await r()),m(l)}function m(e){return 1===(0,o.mg)(e)&&{id:(0,o.AX)(e)?.id}}},97824:(e,a,r)=>{r.d(a,{M:()=>s});var t=r(40196),n=r(10860),i=r(69504);async function s(e,a,r){const s=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(s&&"unique-value"===s.type&&s.styleOrigin){const c=await(0,t.aG)(s.populateFromStyle());if((0,n.wp)(r),!1===c.ok){const r=c.error;a?.messages&&a.messages.push(new i.c("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:a})),e.clear("renderer",a?.origin)}}}},66668:(e,a,r)=>{r.d(a,{S:()=>n});var t=r(2600);async function n(e,a){const{data:r}=await(0,t.c)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return r}}}]);