@arcgis/core 4.34.0-next.56 → 4.34.0-next.57

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 (184) hide show
  1. package/analysis/VolumeMeasurement/VolumeMeasurementCutFillOptions.d.ts +4 -0
  2. package/analysis/VolumeMeasurement/{CutFillOptions.js → VolumeMeasurementCutFillOptions.js} +1 -1
  3. package/analysis/VolumeMeasurementAnalysis.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/02902303e5585a16ebea.js +1 -0
  6. package/assets/esri/core/workers/chunks/02a31483e09652a1a1a2.js +1 -0
  7. package/assets/esri/core/workers/chunks/0390f3aa624e3f380ce2.js +1 -0
  8. package/assets/esri/core/workers/chunks/047d6f7b1677cc7ab271.js +1 -0
  9. package/assets/esri/core/workers/chunks/04e652df94790f5ca08a.js +1 -0
  10. package/assets/esri/core/workers/chunks/{9f178cf73c63caaea190.js → 06d2251d6f6b3e44800a.js} +1 -1
  11. package/assets/esri/core/workers/chunks/07d5e0633cc2f765037f.js +1 -0
  12. package/assets/esri/core/workers/chunks/{8fa50cac57b6e1ecec76.js → 08393d9cc2ed846dd5b4.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{18ceea59e469a0f2721b.js → 094c741fa8139c3f40cf.js} +1 -1
  14. package/assets/esri/core/workers/chunks/0d946a226b846b3c0849.js +1 -0
  15. package/assets/esri/core/workers/chunks/0f51e51db83f303ce5a6.js +1 -0
  16. package/assets/esri/core/workers/chunks/{6530449cd1975deb61f1.js → 184d3c88ac2fc1d7e2c3.js} +1 -1
  17. package/assets/esri/core/workers/chunks/1cbd59918c60a1a21494.js +1 -0
  18. package/assets/esri/core/workers/chunks/2ded2446700f89155ccd.js +1 -0
  19. package/assets/esri/core/workers/chunks/{19391d60c76a1dc7c262.js → 2f7e192ee2066f863e1d.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{6b11476b2004b4db576e.js → 3445ffd752262673fb13.js} +1 -1
  21. package/assets/esri/core/workers/chunks/38f09e36e174792646bd.js +1 -0
  22. package/assets/esri/core/workers/chunks/{adf11d31f95481f89a55.js → 3b51b61a7b8a1ef87c9b.js} +1 -1
  23. package/assets/esri/core/workers/chunks/3c57b2e13628b5c1f6de.js +1 -0
  24. package/assets/esri/core/workers/chunks/{65e1f5b20a585e04655a.js → 44dc7ec52c4abb700783.js} +1 -1
  25. package/assets/esri/core/workers/chunks/{c91217d977a6baaee74a.js → 4558f2e3e77831758fdc.js} +1 -1
  26. package/assets/esri/core/workers/chunks/4753793daf0b7ff8b5ff.js +1 -0
  27. package/assets/esri/core/workers/chunks/{853b9f29b4d62fa621b9.js → 4d2473e680324dc17cfa.js} +1 -1
  28. package/assets/esri/core/workers/chunks/52917b753c5ceab0c1f7.js +353 -0
  29. package/assets/esri/core/workers/chunks/{6940bb6524938894a246.js → 53873f26a2c24cd75e4a.js} +1 -1
  30. package/assets/esri/core/workers/chunks/561a2078458bc0339f83.js +1 -0
  31. package/assets/esri/core/workers/chunks/{6dc0009889f2b7cc8cff.js → 5691d504ffe5592bc40f.js} +1 -1
  32. package/assets/esri/core/workers/chunks/56b4dcd04c844eaacd60.js +1 -0
  33. package/assets/esri/core/workers/chunks/5f079be7f322768aef21.js +1 -0
  34. package/assets/esri/core/workers/chunks/61a294f9411bf884f2ab.js +1 -0
  35. package/assets/esri/core/workers/chunks/{ad93a2621f75270f06cb.js → 69fbe363bb130fdd8146.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{722931d1a60be461e521.js → 70cf81ec5a901782d2db.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{24ac204d8a045aa821be.js → 7388e8c905d93dea1c05.js} +1 -1
  38. package/assets/esri/core/workers/chunks/749c7159e0902388e828.js +1 -0
  39. package/assets/esri/core/workers/chunks/76ff7ccfe583927918f3.js +969 -0
  40. package/assets/esri/core/workers/chunks/{ae73ac81bd10614c2b53.js → 7714228825fb44d506df.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{6130bc641aa7c1bcaaa8.js → 7c23be93d394f1bee941.js} +1 -1
  42. package/assets/esri/core/workers/chunks/7c86af4f60cea383ed96.js +1 -0
  43. package/assets/esri/core/workers/chunks/7eda1c400658b6a99be8.js +1 -0
  44. package/assets/esri/core/workers/chunks/{97ae2fdb6cb98249f5fa.js → 7f80bbbd0897082c1af3.js} +1 -1
  45. package/assets/esri/core/workers/chunks/80a69897fa3ce1eaa6e7.js +1 -0
  46. package/assets/esri/core/workers/chunks/80bd5988180f4618fd61.js +1 -0
  47. package/assets/esri/core/workers/chunks/{b47688e3263099540873.js → 81e518dd62bd95611d00.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{10b46438885916d18425.js → 8257352421f453a669e9.js} +1 -1
  49. package/assets/esri/core/workers/chunks/8762928d10c3821738ad.js +1 -0
  50. package/assets/esri/core/workers/chunks/88a5e7415f8858c454f7.js +1 -0
  51. package/assets/esri/core/workers/chunks/893e5eb5c028c4704317.js +1 -0
  52. package/assets/esri/core/workers/chunks/8ead467a5af0d9bba804.js +1 -0
  53. package/assets/esri/core/workers/chunks/91e04d03b0013bcaad82.js +1 -0
  54. package/assets/esri/core/workers/chunks/{c7d4c296011c5393bcaa.js → 9275313e0f1f521b2658.js} +1 -1
  55. package/assets/esri/core/workers/chunks/{e666ca4d14b6490485d6.js → 92b60d4fb09711919601.js} +1 -1
  56. package/assets/esri/core/workers/chunks/977582cb3c8f17a2cb4c.js +1 -0
  57. package/assets/esri/core/workers/chunks/{5c556468e2a598ab793a.js → 9940e59033a8a1eff2a9.js} +1 -1
  58. package/assets/esri/core/workers/chunks/998c38974372720b1c52.js +1 -0
  59. package/assets/esri/core/workers/chunks/{9928e432b884c75c3436.js → 9d920f3488d59e7f276c.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{d0124b0dd62b331afe58.js → 9fef330b241f958b55df.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{a778a72456fefdf40115.js → a249e56a0be8cef33ba8.js} +1 -1
  62. package/assets/esri/core/workers/chunks/a3ee76b7e46d3fba7cf7.js +1 -0
  63. package/assets/esri/core/workers/chunks/a7530dcb08b43e37bbb2.js +1 -0
  64. package/assets/esri/core/workers/chunks/{2cda605c302176905e84.js → a96ac5c68d84122e7751.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{e6bf4f3f6868dc9028e3.js → aab349d4624b78ef429f.js} +1 -1
  66. package/assets/esri/core/workers/chunks/acf13a64df2991a4cb6b.js +1 -0
  67. package/assets/esri/core/workers/chunks/b5640f9623a9c9ded92a.js +1 -0
  68. package/assets/esri/core/workers/chunks/{d42fd0effc560eefb14b.js → b6a201e86f9caef45ff0.js} +1 -1
  69. package/assets/esri/core/workers/chunks/bb67d491f62a5cce96cd.js +1 -0
  70. package/assets/esri/core/workers/chunks/{862fe2f96d4b777ff5b8.js → bbdbb618a18542f7a4a2.js} +1 -1
  71. package/assets/esri/core/workers/chunks/bc9f54a6b577c43189fd.js +1 -0
  72. package/assets/esri/core/workers/chunks/{6fe738748ce837811ff4.js → bd4125d163f372a7e978.js} +1 -1
  73. package/assets/esri/core/workers/chunks/bead38898c3f4d4d3569.js +1 -0
  74. package/assets/esri/core/workers/chunks/c51e2a048df152abd901.js +1 -0
  75. package/assets/esri/core/workers/chunks/{22334a464f798b5279b2.js → c80c032c5b7a11db177a.js} +1 -1
  76. package/assets/esri/core/workers/chunks/{3490d47cac7c8dec70cd.js → c9c109d43a1e5160955d.js} +2 -2
  77. package/assets/esri/core/workers/chunks/{4d5abcf57a6ded4750ba.js → cac060a187f3a27a19ba.js} +1 -1
  78. package/assets/esri/core/workers/chunks/cc748d4f4adb9c584aa4.js +1 -0
  79. package/assets/esri/core/workers/chunks/cf699b9bb530b87be14c.js +1 -0
  80. package/assets/esri/core/workers/chunks/d578c3880eaf2dd62324.js +1 -0
  81. package/assets/esri/core/workers/chunks/{5d331f7628514a572f82.js → d6ab4d55f1023ee6ec6a.js} +1 -1
  82. package/assets/esri/core/workers/chunks/d71836cf70b9604832f1.js +1 -0
  83. package/assets/esri/core/workers/chunks/{4874aabdb5c60ca66216.js → db2b8d8cf7131554cf7e.js} +1 -1
  84. package/assets/esri/core/workers/chunks/de4da985c398c8bcf2e7.js +1 -0
  85. package/assets/esri/core/workers/chunks/{cb57cdff976d2d4b0b41.js → e1b25b1ce3bd4f0f2cda.js} +1 -1
  86. package/assets/esri/core/workers/chunks/ef85cd0e82d59db8a26f.js +33 -0
  87. package/assets/esri/core/workers/chunks/{faf4002f9547a0cc4e33.js → fae6030a81cb91a91b69.js} +1 -1
  88. package/assets/esri/core/workers/chunks/fd1fdb97a294a1b7041d.js +1 -0
  89. package/assets/esri/core/workers/chunks/{ff42b24b48019a03d841.js → fe55833c80cf59df9c2b.js} +1 -1
  90. package/assets/esri/core/workers/chunks/{ff8a4bf1bceb362d67ab.js → ff7962063d132c1ec814.js} +1 -1
  91. package/config.js +1 -1
  92. package/geometry/Multipoint.js +1 -1
  93. package/geometry/support/boundsUtils.js +1 -1
  94. package/geometry/support/contains.js +1 -1
  95. package/geometry/support/curves/circleUtils.js +1 -1
  96. package/geometry/support/curves/circularArcUtils.js +1 -1
  97. package/geometry/support/curves/curveUtils.js +1 -1
  98. package/geometry/support/curves/ellipticArc7Utils.js +1 -1
  99. package/geometry/support/curves/rotate.js +5 -0
  100. package/geometry/support/extentUtils.js +1 -1
  101. package/geometry/support/rotate.js +1 -1
  102. package/graphic/ImageryGraphicOrigin.js +5 -0
  103. package/graphic/ImageryTileGraphicOrigin.js +5 -0
  104. package/graphic/WCSGraphicOrigin.js +5 -0
  105. package/graphic/isImageryGraphicOrigin.js +5 -0
  106. package/graphic/isImageryTileGraphicOrigin.js +5 -0
  107. package/graphic/isWCSGraphicOrigin.js +5 -0
  108. package/interfaces.d.ts +12 -15
  109. package/kernel.js +1 -1
  110. package/layers/CatalogLayer.js +1 -1
  111. package/layers/FeatureLayer.js +1 -1
  112. package/layers/GroundLayer.js +5 -0
  113. package/layers/ImageryLayer.js +1 -1
  114. package/layers/ImageryTileLayer.js +1 -1
  115. package/layers/WCSLayer.js +1 -1
  116. package/layers/catalog/CatalogFootprintLayer.js +1 -1
  117. package/layers/mixins/ArcGISImageService.js +1 -1
  118. package/package.json +1 -1
  119. package/support/revision.js +1 -1
  120. package/views/2d/layers/ImageryLayerView2D.js +1 -1
  121. package/views/2d/layers/ImageryTileLayerView2D.js +1 -1
  122. package/views/2d/layers/features/layerAdapters/CatalogFootprintLayerAdapter.js +1 -1
  123. package/views/2d/layers/imagery/ImageryTileView2D.js +1 -1
  124. package/views/3d/analysis/VolumeMeasurement/{CutFillVolumeMeasurementComputation.js → VolumeMeasurementCutFillComputation.js} +1 -1
  125. package/views/3d/analysis/VolumeMeasurement/{CutFillVolumeMeasurementController.js → VolumeMeasurementCutFillController.js} +1 -1
  126. package/views/3d/analysis/VolumeMeasurement/{CutFillVolumeMeasurementVisualization.js → VolumeMeasurementCutFillVisualization.js} +1 -1
  127. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.js +1 -1
  128. package/views/3d/layers/CatalogFootprintLayerView3D.js +1 -1
  129. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  130. package/views/GroundView.js +1 -1
  131. package/views/draw/support/Box.js +1 -1
  132. package/views/draw/support/Reshape.js +1 -1
  133. package/views/draw/support/drawUtils.js +1 -1
  134. package/views/interactive/editGeometry/operations/RotateVertex.js +1 -1
  135. package/views/interactive/editGeometry/operations/curveOperationUtils.js +1 -1
  136. package/views/layers/ImageryLayerView.js +1 -1
  137. package/views/layers/ImageryTileLayerView.js +1 -1
  138. package/analysis/VolumeMeasurement/CutFillOptions.d.ts +0 -4
  139. package/assets/esri/core/workers/chunks/01e8b9dc77a57d1c2a52.js +0 -1
  140. package/assets/esri/core/workers/chunks/027cfcde29fe87aa2ffe.js +0 -1
  141. package/assets/esri/core/workers/chunks/03ee4d63aa8de44958ab.js +0 -1
  142. package/assets/esri/core/workers/chunks/0a4586e596413ef7a4b5.js +0 -1
  143. package/assets/esri/core/workers/chunks/0a6d33d013628f671aea.js +0 -1
  144. package/assets/esri/core/workers/chunks/1166ed298cf5ca7ad444.js +0 -1
  145. package/assets/esri/core/workers/chunks/13797036850dcc3671c3.js +0 -1
  146. package/assets/esri/core/workers/chunks/1a2278b9fe9666342728.js +0 -1
  147. package/assets/esri/core/workers/chunks/1e01aaebdeffdfc0c6bd.js +0 -1
  148. package/assets/esri/core/workers/chunks/222f981e876f60ae282f.js +0 -1
  149. package/assets/esri/core/workers/chunks/277941bec15525dbd3a0.js +0 -1
  150. package/assets/esri/core/workers/chunks/2cb14d040e67a261b31c.js +0 -1
  151. package/assets/esri/core/workers/chunks/31c088966ccfff2ea1db.js +0 -1
  152. package/assets/esri/core/workers/chunks/3245d20ea4bb779f87ef.js +0 -1
  153. package/assets/esri/core/workers/chunks/46a470bea2a3601182dc.js +0 -1
  154. package/assets/esri/core/workers/chunks/4b58da6cb91f7bf6af8b.js +0 -1
  155. package/assets/esri/core/workers/chunks/5900dde7a201a7d47469.js +0 -1
  156. package/assets/esri/core/workers/chunks/5b2ff220aebe464dac23.js +0 -1
  157. package/assets/esri/core/workers/chunks/5f518931a660b3c4f519.js +0 -1
  158. package/assets/esri/core/workers/chunks/66f3659ba18f92cd623e.js +0 -1
  159. package/assets/esri/core/workers/chunks/67355372ac5fd8a15d18.js +0 -1
  160. package/assets/esri/core/workers/chunks/6801b92bce7a918fda6f.js +0 -1
  161. package/assets/esri/core/workers/chunks/7b560ac0be93c6aa9940.js +0 -1
  162. package/assets/esri/core/workers/chunks/7bdfc7c7ce1d94c00745.js +0 -353
  163. package/assets/esri/core/workers/chunks/83737d86584bf1b32368.js +0 -1
  164. package/assets/esri/core/workers/chunks/854bfda25bb406814929.js +0 -1
  165. package/assets/esri/core/workers/chunks/855f25ce748aaef44b1a.js +0 -1
  166. package/assets/esri/core/workers/chunks/87f68c2b9361bd3f8cac.js +0 -1
  167. package/assets/esri/core/workers/chunks/9307108821d82c131654.js +0 -1
  168. package/assets/esri/core/workers/chunks/97a38d700f2cb8807d51.js +0 -1
  169. package/assets/esri/core/workers/chunks/9e9be7f6ea32957f1088.js +0 -33
  170. package/assets/esri/core/workers/chunks/af4412e79275c5a87539.js +0 -1
  171. package/assets/esri/core/workers/chunks/cbec768cd98caff212f2.js +0 -1
  172. package/assets/esri/core/workers/chunks/d3a7747f23e91d1f1b5e.js +0 -1
  173. package/assets/esri/core/workers/chunks/d3ae88fcde2d7fb3e2e2.js +0 -1
  174. package/assets/esri/core/workers/chunks/d81c4afad4abe2d1d0b9.js +0 -1
  175. package/assets/esri/core/workers/chunks/d87fdc64a5cc6be4bd69.js +0 -1
  176. package/assets/esri/core/workers/chunks/db5d3feeb61ccb5ede98.js +0 -1
  177. package/assets/esri/core/workers/chunks/dfb12f42b8d319ffa5fc.js +0 -1
  178. package/assets/esri/core/workers/chunks/ead1acf95c3385630da8.js +0 -1001
  179. package/assets/esri/core/workers/chunks/f3e3c2340452c1d60c95.js +0 -1
  180. package/assets/esri/core/workers/chunks/f4d7cbd33ef8710d7316.js +0 -1
  181. package/assets/esri/core/workers/chunks/f74b0cdc1c2b56bac5f0.js +0 -1
  182. package/assets/esri/core/workers/chunks/f807e7fc90e0e7ce6b67.js +0 -1
  183. package/assets/esri/core/workers/chunks/ff4e15a872de94d2b438.js +0 -1
  184. /package/assets/esri/core/workers/chunks/{3490d47cac7c8dec70cd.js.LICENSE.txt → c9c109d43a1e5160955d.js.LICENSE.txt} +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3030],{620:(t,e,s)=>{s.d(e,{O_:()=>n,vA:()=>i}),s(48163),s(87317),(0,s(91829).vt)();class r{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function i(t,e="Assertion"){if(!t){const t=new Error(e).stack;throw new r(`${e} at ${t}`)}}function n(t,e,s,r){let i,n=(s[0]-t[0])/e[0],u=(r[0]-t[0])/e[0];n>u&&(i=n,n=u,u=i);let f=(s[1]-t[1])/e[1],c=(r[1]-t[1])/e[1];if(f>c&&(i=f,f=c,c=i),n>c||f>u)return!1;f>n&&(n=f),c<u&&(u=c);let h=(s[2]-t[2])/e[2],y=(r[2]-t[2])/e[2];return h>y&&(i=h,h=y,y=i),!(n>y||h>u||(y<u&&(u=y),u<0))}},13030:(t,e,s)=>{s.d(e,{Y$:()=>a,XW:()=>p,qB:()=>g,Qt:()=>z,My:()=>W,bf:()=>j,jZ:()=>M,j0:()=>b,Sx:()=>_,E$:()=>x,h:()=>N,P:()=>U,SL:()=>w,gH:()=>E,ZD:()=>B,si:()=>C,mJ:()=>Z,UL:()=>J,D6:()=>$,Yi:()=>F,An:()=>X,LC:()=>Y,xs:()=>m,EC:()=>T,Xm:()=>L,Vp:()=>H,zD:()=>G,m8:()=>D,nS:()=>I,H$:()=>q,eI:()=>R,Eq:()=>A,jz:()=>S,Aj:()=>P,E7:()=>Q,Y4:()=>K,TX:()=>k,Uz:()=>O,ml:()=>V,XP:()=>v});var r=s(20498);class i{static{this.ElementCount=9}constructor(t,e,s=0,r,i){this.TypedArrayConstructor=t,this.elementCount=9;const n=this.TypedArrayConstructor;void 0===r&&(r=9*n.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:s;this.typedBuffer=null==i?new n(e,u):new n(e,u,(i-s)/n.BYTES_PER_ELEMENT),this.typedBufferStride=r/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,s=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+s*this.stride)}getMat(t,e){let s=t*this.typedBufferStride;for(let t=0;t<9;t++)e[t]=this.typedBuffer[s++];return e}setMat(t,e){let s=t*this.typedBufferStride;for(let t=0;t<9;t++)this.typedBuffer[s++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,s){this.typedBuffer[t*this.typedBufferStride+e]=s}copyFrom(t,e,s){const r=this.typedBuffer,i=e.typedBuffer;let n=t*this.typedBufferStride,u=s*e.typedBufferStride;for(let t=0;t<9;++t)r[n++]=i[u++]}get buffer(){return this.typedBuffer.buffer}}class n{static{this.ElementCount=16}constructor(t,e,s=0,r,i){this.TypedArrayConstructor=t,this.elementCount=16;const n=this.TypedArrayConstructor;void 0===r&&(r=16*n.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:s;this.typedBuffer=null==i?new n(e,u):new n(e,u,(i-s)/n.BYTES_PER_ELEMENT),this.typedBufferStride=r/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,s=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+s*this.stride)}getMat(t,e){let s=t*this.typedBufferStride;for(let t=0;t<16;t++)e[t]=this.typedBuffer[s++];return e}setMat(t,e){let s=t*this.typedBufferStride;for(let t=0;t<16;t++)this.typedBuffer[s++]=e[t]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,s){this.typedBuffer[t*this.typedBufferStride+e]=s}copyFrom(t,e,s){this.copyFromTypedBuffer(t,e.typedBuffer,s*e.typedBufferStride)}copyFromTypedBuffer(t,e,s){const r=this.typedBuffer;let i=t*this.typedBufferStride;for(let t=0;t<16;++t)r[i++]=e[s++]}get buffer(){return this.typedBuffer.buffer}}class u{static{this.ElementCount=1}constructor(t,e,s=0,r,i){this.TypedArrayConstructor=t,this.elementCount=1;const n=this.TypedArrayConstructor;void 0===r&&(r=n.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:s;this.typedBuffer=null==i?new n(e,u):new n(e,u,(i-s)/n.BYTES_PER_ELEMENT),this.stride=r,this.typedBufferStride=r/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride)}sliceBuffer(t,e,s=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+s*this.stride)}get(t){return this.typedBuffer[t*this.typedBufferStride]}set(t,e){this.typedBuffer[t*this.typedBufferStride]=e}get buffer(){return this.typedBuffer.buffer}}var f=s(37585);class c{static{this.ElementCount=2}constructor(t,e,s=0,r,i){this.TypedArrayConstructor=t,this.start=s,this.elementCount=2;const n=this.TypedArrayConstructor;void 0===r&&(r=2*n.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:s;this.typedBuffer=null==i?new n(e,u):new n(e,u,(i-s)/n.BYTES_PER_ELEMENT),this.typedBufferStride=r/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,s=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+s*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,f.hZ)(e,this.typedBuffer[t],this.typedBuffer[t+1])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t]=e[1]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,s){this.typedBuffer[t*this.typedBufferStride+e]=s}setValues(t,e,s){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t]=s}copyFrom(t,e,s){const r=this.typedBuffer,i=e.typedBuffer;let n=t*this.typedBufferStride,u=s*e.typedBufferStride;r[n++]=i[u++],r[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}var h=s(38954);class y{static{this.ElementCount=3}constructor(t,e,s=0,r,i){this.TypedArrayConstructor=t,this.elementCount=3;const n=this.TypedArrayConstructor;void 0===r&&(r=3*n.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:s;this.typedBuffer=null==i?new n(e,u):new n(e,u,(i-s)/n.BYTES_PER_ELEMENT),this.typedBufferStride=r/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,s=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+s*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,h.i)(e,this.typedBuffer[t],this.typedBuffer[t+1],this.typedBuffer[t+2])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t]=e[2]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,s){this.typedBuffer[t*this.typedBufferStride+e]=s}setValues(t,e,s,r){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=s,this.typedBuffer[t]=r}copyFrom(t,e,s){const r=this.typedBuffer,i=e.typedBuffer;let n=t*this.typedBufferStride,u=s*e.typedBufferStride;r[n++]=i[u++],r[n++]=i[u++],r[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}var l=s(87317);class o{static{this.ElementCount=4}constructor(t,e,s=0,r,i){this.TypedArrayConstructor=t,this.start=s,this.elementCount=4;const n=this.TypedArrayConstructor;void 0===r&&(r=4*n.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:s;this.typedBuffer=null==i?new n(e,u):new n(e,u,(i-s)/n.BYTES_PER_ELEMENT),this.typedBufferStride=r/n.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}sliceBuffer(t,e,s=this.count-e){const r=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,r,this.stride,r+s*this.stride)}getVec(t,e){return t*=this.typedBufferStride,(0,l.s)(e,this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t++],this.typedBuffer[t])}setVec(t,e){t*=this.typedBufferStride,this.typedBuffer[t++]=e[0],this.typedBuffer[t++]=e[1],this.typedBuffer[t++]=e[2],this.typedBuffer[t]=e[3]}get(t,e){return this.typedBuffer[t*this.typedBufferStride+e]}set(t,e,s){this.typedBuffer[t*this.typedBufferStride+e]=s}setValues(t,e,s,r,i){t*=this.typedBufferStride,this.typedBuffer[t++]=e,this.typedBuffer[t++]=s,this.typedBuffer[t++]=r,this.typedBuffer[t]=i}copyFrom(t,e,s){const r=this.typedBuffer,i=e.typedBuffer;let n=t*this.typedBufferStride,u=s*e.typedBufferStride;r[n++]=i[u++],r[n++]=i[u++],r[n++]=i[u++],r[n]=i[u]}get buffer(){return this.typedBuffer.buffer}}var d=s(620);class p extends u{constructor(t,e=0,s,i){(0,d.vA)(r.SX),super((0,r.pX)(),t,e,s,i),this.elementType="f16"}static{this.ElementType="f16"}}class a extends u{constructor(t,e=0,s,r){super(Float32Array,t,e,s,r),this.elementType="f32"}static{this.ElementType="f32"}}class B extends c{constructor(t,e=0,s,i){(0,d.vA)(r.SX),super((0,r.pX)(),t,e,s,i),this.elementType="f16"}slice(t,e){return this.sliceBuffer(B,t,e)}static{this.ElementType="f16"}}class E extends c{constructor(t,e=0,s,r){super(Float32Array,t,e,s,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(E,t,e)}static{this.ElementType="f32"}}class T extends y{constructor(t,e=0,s,i){(0,d.vA)(r.SX),super((0,r.pX)(),t,e,s,i),this.elementType="f16"}slice(t,e){return this.sliceBuffer(T,t,e)}static{this.ElementType="f16"}}class m extends y{constructor(t,e=0,s,r){super(Float32Array,t,e,s,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(m,t,e)}static fromTypedArray(t,e){return new m(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f32"}}class S extends o{constructor(t,e=0,s,i){(0,d.vA)(r.SX),super((0,r.pX)(),t,e,s,i),this.elementType="f16"}slice(t,e){return this.sliceBuffer(S,t,e)}static{this.ElementType="f16"}}class A extends o{constructor(t,e=0,s,r){super(Float32Array,t,e,s,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(A,t,e)}static{this.ElementType="f32"}}class M extends i{constructor(t,e=0,s,r){super(Float32Array,t,e,s,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(M,t,e)}static{this.ElementType="f32"}}class b extends i{constructor(t,e=0,s,r){super(Float64Array,t,e,s,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(b,t,e)}static{this.ElementType="f64"}}class _ extends n{constructor(t,e=0,s,r){super(Float32Array,t,e,s,r),this.elementType="f32"}slice(t,e){return this.sliceBuffer(_,t,e)}static{this.ElementType="f32"}}class x extends n{constructor(t,e=0,s,r){super(Float64Array,t,e,s,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(x,t,e)}static{this.ElementType="f64"}}class g extends u{constructor(t,e=0,s,r){super(Float64Array,t,e,s,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(g,t,e)}static{this.ElementType="f64"}}class C extends c{constructor(t,e=0,s,r){super(Float64Array,t,e,s,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(C,t,e)}static{this.ElementType="f64"}}class L extends y{constructor(t,e=0,s,r){super(Float64Array,t,e,s,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(L,t,e)}static fromTypedArray(t,e){return new L(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="f64"}}class P extends o{constructor(t,e=0,s,r){super(Float64Array,t,e,s,r),this.elementType="f64"}slice(t,e){return this.sliceBuffer(P,t,e)}static{this.ElementType="f64"}}class w extends u{constructor(t,e=0,s,r){super(Uint8Array,t,e,s,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(w,t,e)}static{this.ElementType="u8"}}class Y extends c{constructor(t,e=0,s,r){super(Uint8Array,t,e,s,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(Y,t,e)}static{this.ElementType="u8"}}class R extends y{constructor(t,e=0,s,r){super(Uint8Array,t,e,s,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(R,t,e)}static fromTypedArray(t,e){return new R(t.buffer,t.byteOffset,e,t.byteOffset+t.byteLength)}static{this.ElementType="u8"}}class v extends o{constructor(t,e=0,s,r){super(Uint8Array,t,e,s,r),this.elementType="u8"}slice(t,e){return this.sliceBuffer(v,t,e)}static{this.ElementType="u8"}}class N extends u{constructor(t,e=0,s,r){super(Uint16Array,t,e,s,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(N,t,e)}static{this.ElementType="u16"}}class F extends c{constructor(t,e=0,s,r){super(Uint16Array,t,e,s,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(F,t,e)}static{this.ElementType="u16"}}class I extends y{constructor(t,e=0,s,r){super(Uint16Array,t,e,s,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(I,t,e)}static{this.ElementType="u16"}}class O extends o{constructor(t,e=0,s,r){super(Uint16Array,t,e,s,r),this.elementType="u16"}slice(t,e){return this.sliceBuffer(O,t,e)}static{this.ElementType="u16"}}class U extends u{constructor(t,e=0,s,r){super(Uint32Array,t,e,s,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(U,t,e)}static{this.ElementType="u32"}}class X extends c{constructor(t,e=0,s,r){super(Uint32Array,t,e,s,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(X,t,e)}static{this.ElementType="u32"}}class q extends y{constructor(t,e=0,s,r){super(Uint32Array,t,e,s,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(q,t,e)}static{this.ElementType="u32"}}class V extends o{constructor(t,e=0,s,r){super(Uint32Array,t,e,s,r),this.elementType="u32"}slice(t,e){return this.sliceBuffer(V,t,e)}static{this.ElementType="u32"}}class j extends u{constructor(t,e=0,s,r){super(Int8Array,t,e,s,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer(j,t,e)}static{this.ElementType="i8"}}class $ extends c{constructor(t,e=0,s,r){super(Int8Array,t,e,s,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer($,t,e)}static{this.ElementType="i8"}}class D extends y{constructor(t,e=0,s,r){super(Int8Array,t,e,s,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer(D,t,e)}static{this.ElementType="i8"}}class k extends o{constructor(t,e=0,s,r){super(Int8Array,t,e,s,r),this.elementType="i8"}slice(t,e){return this.sliceBuffer(k,t,e)}static{this.ElementType="i8"}}class z extends u{constructor(t,e=0,s,r){super(Int16Array,t,e,s,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(z,t,e)}static{this.ElementType="i16"}}class Z extends c{constructor(t,e=0,s,r){super(Int16Array,t,e,s,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(Z,t,e)}static{this.ElementType="i16"}}class H extends y{constructor(t,e=0,s,r){super(Int16Array,t,e,s,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(H,t,e)}static{this.ElementType="i16"}}class Q extends o{constructor(t,e=0,s,r){super(Int16Array,t,e,s,r),this.elementType="i16"}slice(t,e){return this.sliceBuffer(Q,t,e)}static{this.ElementType="i16"}}class W extends u{constructor(t,e=0,s,r){super(Int32Array,t,e,s,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(W,t,e)}static{this.ElementType="i32"}}class J extends c{constructor(t,e=0,s,r){super(Int32Array,t,e,s,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(J,t,e)}static{this.ElementType="i32"}}class G extends y{constructor(t,e=0,s,r){super(Int32Array,t,e,s,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(G,t,e)}static{this.ElementType="i32"}}class K extends o{constructor(t,e=0,s,r){super(Int32Array,t,e,s,r),this.elementType="i32"}slice(t,e){return this.sliceBuffer(K,t,e)}static{this.ElementType="i32"}}},20498:(t,e,s)=>{s.d(e,{SX:()=>n,pX:()=>i});let r=globalThis.Float16Array;function i(){return r}let n=!!r},37585:(t,e,s)=>{s.d(e,{C:()=>i,Cc:()=>B,Io:()=>l,S8:()=>a,WQ:()=>u,aI:()=>S,e$:()=>T,hZ:()=>n,hs:()=>y,jb:()=>M,l0:()=>E,t2:()=>m});var r=s(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t}function n(t,e,s){return t[0]=e,t[1]=s,t}function u(t,e,s){return t[0]=e[0]+s[0],t[1]=e[1]+s[1],t}function f(t,e,s){return t[0]=e[0]-s[0],t[1]=e[1]-s[1],t}function c(t,e,s){return t[0]=e[0]*s[0],t[1]=e[1]*s[1],t}function h(t,e,s){return t[0]=e[0]/s[0],t[1]=e[1]/s[1],t}function y(t,e,s){return t[0]=e[0]*s,t[1]=e[1]*s,t}function l(t,e){const s=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(s*s+r*r)}function o(t,e){const s=e[0]-t[0],r=e[1]-t[1];return s*s+r*r}function d(t){const e=t[0],s=t[1];return Math.sqrt(e*e+s*s)}function p(t){const e=t[0],s=t[1];return e*e+s*s}function a(t,e){const s=e[0],r=e[1];let i=s*s+r*r;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t}function B(t,e,s,r){const i=e[0],n=e[1];return t[0]=i+r*(s[0]-i),t[1]=n+r*(s[1]-n),t}function E(t,e,s){const r=e[0],i=e[1];return t[0]=s[0]*r+s[2]*i+s[4],t[1]=s[1]*r+s[3]*i+s[5],t}function T(t,e,s,r){const i=e[0]-s[0],n=e[1]-s[1],u=Math.sin(r),f=Math.cos(r);return t[0]=i*f-n*u+s[0],t[1]=i*u+n*f+s[1],t}function m(t,e){return t[0]===e[0]&&t[1]===e[1]}function S(t,e){const s=t[0],i=t[1],n=e[0],u=e[1],f=(0,r.FD)();return Math.abs(s-n)<=f*Math.max(1,Math.abs(s),Math.abs(n))&&Math.abs(i-u)<=f*Math.max(1,Math.abs(i),Math.abs(u))}const A=d,M=f,b=c,_=h,x=l,g=o,C=p;Object.freeze(Object.defineProperty({__proto__:null,add:u,angle:function(t,e){const s=t[0],r=t[1],i=e[0],n=e[1];let u=s*s+r*r;u>0&&(u=1/Math.sqrt(u));let f=i*i+n*n;f>0&&(f=1/Math.sqrt(f));const c=(s*i+r*n)*u*f;return c>1?0:c<-1?Math.PI:Math.acos(c)},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},copy:i,cross:function(t,e,s){const r=e[0]*s[1]-e[1]*s[0];return t[0]=t[1]=0,t[2]=r,t},dist:x,distance:l,div:_,divide:h,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:S,exactEquals:m,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:A,length:d,lerp:B,max:function(t,e,s){return t[0]=Math.max(e[0],s[0]),t[1]=Math.max(e[1],s[1]),t},min:function(t,e,s){return t[0]=Math.min(e[0],s[0]),t[1]=Math.min(e[1],s[1]),t},mul:b,multiply:c,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:a,projectAndScale:function(t,e,s,r,i){let n=e[0]-s[0],u=e[1]-s[1];const f=(r[0]*n+r[1]*u)*(i-1);return n=r[0]*f,u=r[1]*f,t[0]=e[0]+n,t[1]=e[1]+u,t},random:function(t,e=1){const s=2*(0,r.Ov)()*Math.PI;return t[0]=Math.cos(s)*e,t[1]=Math.sin(s)*e,t},rotate:T,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:y,scaleAndAdd:function(t,e,s,r){return t[0]=e[0]+s[0]*r,t[1]=e[1]+s[1]*r,t},set:n,sqrDist:g,sqrLen:C,squaredDistance:o,squaredLength:p,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:M,subtract:f,transformMat2:function(t,e,s){const r=e[0],i=e[1];return t[0]=s[0]*r+s[2]*i,t[1]=s[1]*r+s[3]*i,t},transformMat2d:E,transformMat3:function(t,e,s){const r=e[0],i=e[1];return t[0]=s[0]*r+s[3]*i+s[6],t[1]=s[1]*r+s[4]*i+s[7],t},transformMat4:function(t,e,s){const r=e[0],i=e[1];return t[0]=s[0]*r+s[4]*i+s[12],t[1]=s[1]*r+s[5]*i+s[13],t}},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4496],{1193:(t,n,e)=>{e.d(n,{H:()=>g});var r,o=e(31635),i=e(69540),a=e(25482),u=e(4718),l=e(53966),s=e(10107),c=e(79901),f=e(40608),p=e(31199);let g=r=class extends((0,i.O)(a.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,p.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},l.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&l.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,p.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},l.A.getLogger(this))}castUv(t){return(0,p.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},l.A.getLogger(this))}castNormal(t){return(0,p.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},l.A.getLogger(this))}castTangent(t){return(0,p.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},l.A.getLogger(this))}clonePositional(){const t={position:(0,u.o8)(this.position),normal:(0,u.o8)(this.normal),tangent:(0,u.o8)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,s.MZ)({json:{write:p.B}})],g.prototype,"color",void 0),(0,o.Cg)([(0,c.w)("color")],g.prototype,"castColor",null),(0,o.Cg)([(0,s.MZ)({nonNullable:!0,json:{write:p.B}})],g.prototype,"position",void 0),(0,o.Cg)([(0,c.w)("position")],g.prototype,"castPosition",null),(0,o.Cg)([(0,s.MZ)({json:{write:p.B}})],g.prototype,"uv",void 0),(0,o.Cg)([(0,c.w)("uv")],g.prototype,"castUv",null),(0,o.Cg)([(0,s.MZ)({json:{write:p.B}})],g.prototype,"normal",void 0),(0,o.Cg)([(0,c.w)("normal")],g.prototype,"castNormal",null),(0,o.Cg)([(0,s.MZ)({json:{write:p.B}})],g.prototype,"tangent",void 0),(0,o.Cg)([(0,c.w)("tangent")],g.prototype,"castTangent",null),g=r=(0,o.Cg)([(0,f.$)("esri.geometry.support.MeshVertexAttributes")],g)},22141:(t,n,e)=>{e.d(n,{$5:()=>A,CN:()=>M,JP:()=>m,KM:()=>x,Mv:()=>T,X4:()=>b,gr:()=>w,qs:()=>B,si:()=>v,xA:()=>S});var r=e(34727),o=e(77690),i=e(29242),a=e(58083),u=e(9093),l=e(38954),s=e(51850),c=e(48353),f=e(9762),p=(e(79258),e(21325)),g=e(28735),d=e(13030),y=e(73354),h=e(65686);const m="Projection may be possible after calling projection.load().";function M(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function b(t,n,e,r,o,i){return F(0,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function v(t,n,e,r,o,i){return F(1,d.xs.fromTypedArray(t),0,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function w(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function A(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function B(t,n,e){return(0,o.Ge)(_,e),(0,y.b)(n,t,_),(0,r.or)(_)&&(0,y.n)(n,n),n}function x(t,n,e){return(0,o.z0)(_,e),(0,h.t)(n,t,_),(0,r.or)(_)&&(0,y.n)(n,n,4),n}function S(t,n,e,r,o,i){if(!F(0,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function T(t,n,e,r,o,i){if(!F(1,d.xs.fromTypedArray(t,16),1,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function C(t,n,e,r,i){switch((0,c.l)(r,e,N,r),1===t&&(0,a.B8)(N,N),n){case 0:return(0,o.Ge)(i,N);case 1:return(0,o.z0)(i,N)}}function F(t,n,e,r,o,i,a,u){if(!n)return;const s=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,p.q8)(t)||(0,p.KQ)(t)}(o))for(let r=0;r<s;r++)i.getVec(r,j),n.getVec(r,R),(0,l.o)(R,R,C(t,e,j,a,_)),u.setVec(r,R);else for(let o=0;o<s;o++){i.getVec(o,j),n.getVec(o,R);const s=(0,g.jg)(r.get(o,1));let c=Math.cos(s);1===e!=(0===t)&&(c=1/c),C(t,e,j,a,_),0===t?(_[0]*=c,_[1]*=c,_[2]*=c,_[3]*=c,_[4]*=c,_[5]*=c):(_[0]*=c,_[3]*=c,_[6]*=c,_[1]*=c,_[4]*=c,_[7]*=c),(0,l.o)(R,R,_),(0,l.n)(R,R),u.setVec(o,R)}return u}const j=(0,s.vt)(),R=(0,s.vt)(),N=(0,u.vt)(),_=(0,i.vt)()},28846:(t,n,e)=>{e.d(n,{convertMeshVertexSpace:()=>s});var r=e(49186),o=e(4718),i=e(74887),a=e(1193),u=e(66895),l=e(72258);async function s(t,n,e){await Promise.resolve(),(0,i.Te)(e);const s=(0,l.UR)(t,n,{useEllipsoid:e?.useEllipsoid});if(!s)throw new r.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");return t.clone((0,u.Lz)(void 0,{vertexAttributes:new a.H({...s,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),vertexSpace:n,transform:null}))}},31199:(t,n,e)=>{function r(t,n,e,r){const{loggerTag:o,stride:i}=n;return t.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new e([])):t}function o(t,n,e,o,i){if(!t)return t;if(t instanceof n)return r(t,o,n,i);for(const a of e)if(t instanceof a)return r(new n(t),o,n,i);if(Array.isArray(t))return r(new n(t),o,n,i);{const r=e.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new n([])}}function i(t,n,e){n[e]=function(t){const n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e];return n}(t)}e.d(n,{B:()=>i,b:()=>o})},48163:(t,n,e)=>{function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function a(){return i(1,1)}function u(){return i(1,0)}function l(){return i(0,1)}e.d(n,{Un:()=>s,fA:()=>i,o8:()=>o,vt:()=>r});const s=a(),c=u(),f=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:s,UNIT_X:c,UNIT_Y:f,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},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:i,ones:a,unitX:u,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>s});var r=e(34727),o=e(58083),i=e(51850);function a(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),a=Math.cos(n),u=e;return u[0]=-r,u[4]=-i*o,u[8]=a*o,u[12]=0,u[1]=o,u[5]=-i*r,u[9]=a*r,u[13]=0,u[2]=0,u[6]=a,u[10]=i,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=e(37539),l=e(21325);function s(t,n,e,r){const i=(0,u.Tp)(t,r);if(null==i)return!1;const s=i.source.spatialReferenceId,d=i.dest.spatialReferenceId;if(s===d&&!c(d)&&(0!==s||(0,l.aI)(t,r)))return(0,o.kN)(e,n),!0;if(c(d)){const t=u.w5[s][10],r=u.w5[10][d];return null!=t&&null!=r&&(t(n,0,p,0),r(p,0,g,0),a(f*p[0],f*p[1],e),e[12]=g[0],e[13]=g[1],e[14]=g[2],!0)}const y=c(s);if((3===d||11===d||2===d||5===d)&&(2===s||y||3===s||5===s)){const t=u.w5[s][10],r=u.w5[10][d];return null!=t&&null!=r&&(t(n,0,p,0),r(p,0,g,0),y?function(t,n,e){a(t,n,e),(0,o.mg)(e,e)}(f*p[0],f*p[1],e):(0,o.D_)(e),e[12]=g[0],e[13]=g[1],e[14]=g[2],!0)}return!1}function c(t){return 1===t||6===t||8===t||4===t}const f=(0,r.kU)(1),p=(0,i.vt)(),g=(0,i.vt)()},65686:(t,n,e)=>{e.d(n,{a:()=>i,b:()=>c,l:()=>s,n:()=>u,t:()=>a});var r=e(40876),o=(e(44208),e(53966));function i(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function a(t,n,e,r=4,o=r){if(t.length/r!==n.length/o)return;const i=t.length/r,a=e[0],u=e[1],l=e[2],s=e[3],c=e[4],f=e[5],p=e[6],g=e[7],d=e[8];let y=0,h=0;for(let e=0;e<i;e++){const e=n[y],i=n[y+1],m=n[y+2],M=n[y+3];t[h]=a*e+s*i+p*m,t[h+1]=u*e+c*i+g*m,t[h+2]=l*e+f*i+d*m,t[h+3]=M,y+=o,h+=r}}function u(t,n){const e=Math.min(t.count,n.count),r=t.typedBuffer,o=t.typedBufferStride,i=n.typedBuffer,a=n.typedBufferStride;for(let t=0;t<e;t++){const n=t*o,e=t*a,u=i[e],l=i[e+1],s=i[e+2],c=u*u+l*l+s*s;if(c>0){const t=1/Math.sqrt(c);r[n]=t*u,r[n+1]=t*l,r[n+2]=t*s}}}function l(t,n,e,r=4){const o=Math.min(t.length/r,n.count),i=n.typedBuffer,a=n.typedBufferStride;let u=0,l=0;for(let n=0;n<o;n++)t[l]=e*i[u],t[l+1]=e*i[u+1],t[l+2]=e*i[u+2],t[l+3]=e*i[u+3],u+=a,l+=r}function s(t,n,e,r){c(t.typedBuffer,n,e,r,t.typedBufferStride)}function c(t,n,e,o,i=4){const a=Math.min(t.length/i,n.count),u=n.typedBuffer,l=n.typedBufferStride;let s=0,c=0;const f=1/r.Tf;for(let n=0;n<a;n++)t[c]=o*(e*u[s])**f,t[c+1]=o*(e*u[s+1])**f,t[c+2]=o*(e*u[s+2])**f,t[c+3]=o*e*u[s+3],s+=l,c+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:s,normalize:u,scale:l,scaleView:function(t,n,e){l(t.typedBuffer,n,e,t.typedBufferStride)},transformMat3:a,transformMat3View:i,transformMat4:function(t,n,e,r=4,i=r){if(t.length/r!==n.length/i)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const a=t.length/r,u=e[0],l=e[1],s=e[2],c=e[3],f=e[4],p=e[5],g=e[6],d=e[7],y=e[8],h=e[9],m=e[10],M=e[11],b=e[12],v=e[13],w=e[14],A=e[15];let B=0,x=0;for(let e=0;e<a;e++){const e=n[B],o=n[B+1],a=n[B+2],S=n[B+3];t[x]=u*e+f*o+y*a+b*S,t[x+1]=l*e+p*o+h*a+v*S,t[x+2]=s*e+g*o+m*a+w*S,t[x+3]=c*e+d*o+M*a+A*S,B+=i,x+=r}},transformMat4View:function(t,n,e){if(t.count!==n.count)return;const r=t.count,o=e[0],i=e[1],a=e[2],u=e[3],l=e[4],s=e[5],c=e[6],f=e[7],p=e[8],g=e[9],d=e[10],y=e[11],h=e[12],m=e[13],M=e[14],b=e[15],v=t.typedBuffer,w=t.typedBufferStride,A=n.typedBuffer,B=n.typedBufferStride;for(let t=0;t<r;t++){const n=t*w,e=t*B,r=A[e],x=A[e+1],S=A[e+2],T=A[e+3];v[n]=o*r+l*x+p*S+h*T,v[n+1]=i*r+s*x+g*S+m*T,v[n+2]=a*r+c*x+d*S+M*T,v[n+3]=u*r+f*x+y*S+b*T}}},Symbol.toStringTag,{value:"Module"}))},65806:(t,n,e)=>{e.d(n,{g:()=>a});var r=e(51850),o=e(98988),i=e(9762);function a(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){u[0]=t.x,u[1]=t.y;const o=t.z;return u[2]=o??r??0,(0,i.projectBuffer)(u,t.spatialReference,0,n,e,0)}const a=(0,o.tryProjectWithZConversion)(t,e);return!!a&&(n[0]=a?.x,n[1]=a?.y,n[2]=a?.z??r??0,!0)}const u=(0,r.vt)()},66895:(t,n,e)=>{e.d(n,{$N:()=>c,Lz:()=>i,QN:()=>f,WO:()=>l,hz:()=>u,o2:()=>o});const r=Symbol("meshContext");function o(t){return t&&"object"==typeof t&&r in t?t[r]:void 0}function i(t,n){const e=o(t);return{...t,[r]:{...e,...n}}}const a=Symbol("meshMaterialContext");function u(t){return t&&"object"==typeof t&&a in t?t[a]:void 0}function l(t){const n=u(t);if(n?.materialMap)return t;const e={materialMap:new Map};return{...t,[a]:e}}const s=Symbol("meshTextureContext");function c(t){return t&&"object"==typeof t&&s in t?t[s]:void 0}function f(t){const n=c(t);if(n?.textureMap)return t;const e={textureMap:new Map};return{...t,[s]:e}}},72258:(t,n,e)=>{e.d(n,{UR:()=>w,p5:()=>v,xK:()=>C});var r=e(53966),o=e(34727),i=e(83047),a=e(77690),u=e(29242),l=e(58083),s=e(9093),c=e(38954),f=e(51850),p=e(98764),g=e(48353),d=e(65806),y=e(27615),h=e(21325),m=e(73354),M=e(22141);const b=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function v(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,c.d)(t,o,i),!0}const o=(0,p.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:a}=e,u=_;if(!(0,g.l)(r,a,u,o))return!1;const s=(0,l.B8)(_,u);return null!=s&&((0,c.t)(t,i,s),!0)}function w(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,u=(0,y.Hq)(r)?o:null,f=S(t.spatialReference,e,3);if((0,y.yJ)(r,n)&&(!u||(0,l.t2)(u.localMatrix,s.zK))&&T(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const a=A(n,i);if(!(0,g.l)(n,r,F,a))return(0,M.CN)(b(),n,a),null;if(e&&(0,l.lw)(F,F,e.localMatrix),!(0,g.l)(n,o,j,a))return(0,M.CN)(b(),a,n),null;(0,l.B8)(j,j);const u=(0,l.lw)(F,j,F);return x(u,n,i,3),B(t,u)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const a=A(t,i);if(!(0,g.l)(t,r,F,a))return(0,M.CN)(b(),t,a),null;e&&(0,l.lw)(F,F,e.localMatrix),x(F,t,i,1);const u=new Float64Array(n.position.length),s=function(t,n,e,r,o){(0,m.t)(r,t,n);const i=new Float64Array(t.length);return(0,M.$5)(r,o,i,e)?i:((0,M.CN)(b(),o,e),null)}(n.position,F,t,u,a);if(!s)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,M.qs)(o,a,i),(0,M.si)(a,t,n,e,r,a)?a:((0,M.CN)(b(),r,n),null)}(s,t,u,a,n.normal,F);if(n.normal&&!f)return null;const p=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,M.KM)(o,a,i),(0,M.Mv)(a,t,n,e,r,a)?a:((0,M.CN)(b(),r,n),null)}(s,t,u,a,n.tangent,F);if(n.tangent&&!p)return null;if(o){const t=(0,c.u)(N,o);(0,m.a)(s,s,t)}return{position:s,normal:f,tangent:p}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const u=A(n,i);if(!(0,g.l)(n,o,F,u))return(0,M.CN)(b(),n,u),null;const s=1/S(n,i,2);(0,l.hs)(F,F,[s,s,s]);const c=(0,l.B8)(j,F),{position:f,normal:p,tangent:d}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,m.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=B(t,e.localMatrix);return(0,m.a)(r.position,r.position,n),r}(t,r,e),y=new Float64Array(f.length),h=function(t,n,e,r,o){const i=(0,M.gr)(t,n,r,o);if(!i)return(0,M.CN)(b(),n,o),null;const a=new Float64Array(i.length);return(0,m.t)(a,i,e),a}(f,n,c,y,u);if(!h)return null;const v=(0,a.Ge)(R,c),w=function(t,n,e,r,o,i,a){if(null==t)return null;const u=a??new Float32Array(t.length);return(0,M.X4)(t,n,e,r,o,u)?((0,m.b)(u,u,i),u):((0,M.CN)(b(),e,o),null)}(p,f,n,y,u,v,p!==t.normal?p:void 0);if(!w&&p)return null;const x=function(t,n,e,r,o,i,a){if(null==t)return null;const u=a??new Float32Array(t.length);return(0,M.xA)(t,n,e,r,o,u)?((0,m.b)(u,u,i,4),u):((0,M.CN)(b(),e,o),null)}(d,f,n,y,u,v,d!==t.tangent?d:void 0);return!x&&d?null:{position:h,normal:w,tangent:x}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const a=S(e,i,3),u=r||!T(a)?(0,l.C)(F,n?.localMatrix??s.zK):null;u&&x(u,e,i,3);const{position:f,normal:p,tangent:g}=u?B(t,u):t,d=i?.allowBufferReuse,y=d?f:new Float64Array(f.length);let h=f;if(r&&(h=(0,m.a)(y,h,r)),o){const t=(0,c.u)(N,o);h=(0,m.a)(y,h,t)}return{position:h!==t.position||d?h:h.slice(),normal:p!==t.normal||d?p:p?.slice(),tangent:g!==t.tangent||d?g:g?.slice()}}(t,t.vertexSpace,n.origin,e)}}function A(t,n){return n?.useEllipsoid&&(0,h.B3)(t)?p.Y0:(0,p.lO)(t)}function B(t,n){const e=new Float64Array(t.position.length);(0,m.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,M.qs)(t.normal,r,n),o&&t.tangent&&(0,M.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function x(t,n,e,r){const o=S(n,e,r);T(o)||(0,l.hs)(t,t,[o,o,o])}function S(t,n,e){const r=!!(1&e),o=!!(2&e),i=n?.sourceUnit,a=n?.targetUnit;if(!i&&!a)return 1;let u=C(i,t);r||!i||T(u)||(b().warn("source unit conversion not supported"),u=1);let l=1/C(a,t);return o||!a||T(l)||(b().warn("target unit conversion not supported"),l=1),u*l}function T(t){return(0,o.Io)(t,1)}function C(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const F=(0,s.vt)(),j=(0,s.vt)(),R=(0,u.vt)(),N=(0,f.vt)(),_=(0,s.vt)()},73354:(t,n,e)=>{e.d(n,{a:()=>f,b:()=>u,c:()=>a,d:()=>o,e:()=>p,f:()=>c,l:()=>s,n:()=>g,t:()=>i});var r=e(40876);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return t;const i=t.length/r,a=e[0],u=e[1],l=e[2],s=e[4],c=e[5],f=e[6],p=e[8],g=e[9],d=e[10],y=e[12],h=e[13],m=e[14];let M=0,b=0;for(let e=0;e<i;e++){const e=n[M],i=n[M+1],v=n[M+2];t[b]=a*e+s*i+p*v+y,t[b+1]=u*e+c*i+g*v+h,t[b+2]=l*e+f*i+d*v+m,M+=o,b+=r}return t}function a(t,n,e){u(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function u(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return;const i=t.length/r,a=e[0],u=e[1],l=e[2],s=e[3],c=e[4],f=e[5],p=e[6],g=e[7],d=e[8];let y=0,h=0;for(let e=0;e<i;e++){const e=n[y],i=n[y+1],m=n[y+2];t[h]=a*e+s*i+p*m,t[h+1]=u*e+c*i+g*m,t[h+2]=l*e+f*i+d*m,y+=o,h+=r}}function l(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let a=0,u=0;for(let l=0;l<i;l++)t[u]=e*n[a],t[u+1]=e*n[a+1],t[u+2]=e*n[a+2],a+=o,u+=r;return t}function s(t,n,e,r){c(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function c(t,n,e,o,i=3,a=i){const u=Math.min(t.length/i,n.length/a);let l=0,s=0;const c=1/r.Tf;for(let r=0;r<u;r++)t[s]=o*(e*n[l])**c,t[s+1]=o*(e*n[l+1])**c,t[s+2]=o*(e*n[l+2])**c,l+=a,s+=i}function f(t,n,e,r=3,o=r){const i=t.length/r;if(i!==Math.ceil(n.length/o))return t;let a=0,u=0;for(let l=0;l<i;l++)t[u]=n[a]+e[0],t[u+1]=n[a+1]+e[1],t[u+2]=n[a+2]+e[2],a+=o,u+=r;return t}function p(t,n){g(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function g(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,a=0;for(let u=0;u<o;u++){const o=n[i],u=n[i+1],l=n[i+2],s=o*o+u*u+l*l;if(s>0){const n=1/Math.sqrt(s);t[a]=n*o,t[a+1]=n*u,t[a+2]=n*l}i+=r,a+=e}}e(44208),e(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:s,normalize:g,normalizeView:p,scale:l,scaleView:function(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,a=n.typedBuffer,u=n.typedBufferStride;let l=0,s=0;for(let t=0;t<r;t++)o[s]=a[l]>>e,o[s+1]=a[l+1]>>e,o[s+2]=a[l+2]>>e,l+=u,s+=i},transformMat3:u,transformMat3View:a,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},77690:(t,n,e)=>{e.d(n,{B8:()=>u,Ge:()=>p,I0:()=>f,KC:()=>l,hZ:()=>i,hs:()=>c,lw:()=>s,mg:()=>a,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function i(t,n,e,r,o,i,a,u,l,s){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=u,t[7]=l,t[8]=s,t}function a(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function u(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],l=n[6],s=n[7],c=n[8],f=c*a-u*s,p=-c*i+u*l,g=s*i-a*l;let d=e*f+r*p+o*g;return d?(d=1/d,t[0]=f*d,t[1]=(-c*r+o*s)*d,t[2]=(u*r-o*a)*d,t[3]=p*d,t[4]=(c*e-o*l)*d,t[5]=(-u*e+o*i)*d,t[6]=g*d,t[7]=(-s*e+r*l)*d,t[8]=(a*e-r*i)*d,t):null}function l(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],l=n[6],s=n[7],c=n[8];return t[0]=a*c-u*s,t[1]=o*s-r*c,t[2]=r*u-o*a,t[3]=u*l-i*c,t[4]=e*c-o*l,t[5]=o*i-e*u,t[6]=i*s-a*l,t[7]=r*l-e*s,t[8]=e*a-r*i,t}function s(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=n[5],s=n[6],c=n[7],f=n[8],p=e[0],g=e[1],d=e[2],y=e[3],h=e[4],m=e[5],M=e[6],b=e[7],v=e[8];return t[0]=p*r+g*a+d*s,t[1]=p*o+g*u+d*c,t[2]=p*i+g*l+d*f,t[3]=y*r+h*a+m*s,t[4]=y*o+h*u+m*c,t[5]=y*i+h*l+m*f,t[6]=M*r+b*a+v*s,t[7]=M*o+b*u+v*c,t[8]=M*i+b*l+v*f,t}function c(t,n,e){const r=e[0],o=e[1],i=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=e+e,u=r+r,l=o+o,s=e*a,c=r*a,f=r*u,p=o*a,g=o*u,d=o*l,y=i*a,h=i*u,m=i*l;return t[0]=1-f-d,t[3]=c-m,t[6]=p+h,t[1]=c+m,t[4]=1-s-d,t[7]=g-y,t[2]=p-h,t[5]=g+y,t[8]=1-s-f,t}function p(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],l=n[6],s=n[7],c=n[8],f=n[9],p=n[10],g=n[11],d=n[12],y=n[13],h=n[14],m=n[15],M=e*u-r*a,b=e*l-o*a,v=e*s-i*a,w=r*l-o*u,A=r*s-i*u,B=o*s-i*l,x=c*y-f*d,S=c*h-p*d,T=c*m-g*d,C=f*h-p*y,F=f*m-g*y,j=p*m-g*h;let R=M*j-b*F+v*C+w*T-A*S+B*x;return R?(R=1/R,t[0]=(u*j-l*F+s*C)*R,t[1]=(l*T-a*j-s*S)*R,t[2]=(a*F-u*T+s*x)*R,t[3]=(o*F-r*j-i*C)*R,t[4]=(e*j-o*T+i*S)*R,t[5]=(r*T-e*F-i*x)*R,t[6]=(y*B-h*A+m*w)*R,t[7]=(h*v-d*B-m*b)*R,t[8]=(d*A-y*v+m*M)*R,t):null}function g(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const d=s,y=g;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[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:l,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],a=t[5],u=t[6],l=t[7],s=t[8];return n*(s*i-a*l)+e*(-s*o+a*u)+r*(l*o-i*u)},equals:function(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],f=t[8],p=n[0],g=n[1],d=n[2],y=n[3],h=n[4],m=n[5],M=n[6],b=n[7],v=n[8],w=(0,r.FD)();return Math.abs(e-p)<=w*Math.max(1,Math.abs(e),Math.abs(p))&&Math.abs(o-g)<=w*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(i-d)<=w*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(a-y)<=w*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(u-h)<=w*Math.max(1,Math.abs(u),Math.abs(h))&&Math.abs(l-m)<=w*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(s-M)<=w*Math.max(1,Math.abs(s),Math.abs(M))&&Math.abs(c-b)<=w*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(f-v)<=w*Math.max(1,Math.abs(f),Math.abs(v))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[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,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[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:u,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],f=t[8];return Math.abs(1-(e*e+a*a+s*s))<=n&&Math.abs(1-(o*o+u*u+c*c))<=n&&Math.abs(1-(i*i+l*l+f*f))<=n},mul:d,multiply:s,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(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[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:p,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],a=n[5],u=n[6],l=n[8],s=n[9],c=n[10],f=c*a-u*s,p=-c*i+u*l,g=s*i-a*l,d=e*f+r*p+o*g;if(!d)return null;const y=1/d;return t[0]=f*y,t[1]=(-c*r+o*s)*y,t[2]=(u*r-o*a)*y,t[3]=p*y,t[4]=(c*e-o*l)*y,t[5]=(-u*e+o*i)*y,t[6]=g*y,t[7]=(-s*e+r*l)*y,t[8]=(a*e-r*i)*y,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=n[5],s=n[6],c=n[7],f=n[8],p=Math.sin(e),g=Math.cos(e);return t[0]=g*r+p*a,t[1]=g*o+p*u,t[2]=g*i+p*l,t[3]=g*a-p*r,t[4]=g*u-p*o,t[5]=g*l-p*i,t[6]=s,t[7]=c,t[8]=f,t},scale:c,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:i,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:g,translate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=n[5],s=n[6],c=n[7],f=n[8],p=e[0],g=e[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=u,t[5]=l,t[6]=p*r+g*a+s,t[7]=p*o+g*u+c,t[8]=p*i+g*l+f,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,e)=>{e.d(n,{Y0:()=>s,lO:()=>c});var r=e(73941),o=e(16930),i=e(21325);const a=new o.A(r.fv),u=new o.A(r.FY),l=new o.A(r.LJ),s=new o.A(r.Ro);function c(t){const n=f.get(t);if(n)return n;let e=a;if(t)if(t===u)e=u;else if(t===l)e=l;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,i.tl)(n)||(0,i.tl)(r)?e=u:((0,i.ZL)(n)||(0,i.ZL)(r))&&(e=l);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===p?e=u:t===g&&(e=l)}}}return f.set(t,e),e}const f=new Map,p=u.wkt.toUpperCase(),g=l.wkt.toUpperCase()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5356,5613],{4513:(e,a,t)=>{t.d(a,{S:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(7985)]).then(t.bind(t,17029))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(9784),t.e(7937),t.e(7005),t.e(6445),t.e(6298),t.e(3546),t.e(1624)]).then(t.bind(t,53892))).default,CSVLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(9784),t.e(5964)]).then(t.bind(t,68695))).default,CatalogLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(1956),t.e(4796),t.e(708),t.e(4111),t.e(8506),t.e(364),t.e(8628),t.e(2593),t.e(2696),t.e(3549)]).then(t.bind(t,79003))).default,DimensionLayer:async()=>(await Promise.all([t.e(6131),t.e(3813)]).then(t.bind(t,71493))).default,ElevationLayer:async()=>(await Promise.all([t.e(6131),t.e(9953),t.e(9186),t.e(3340)]).then(t.bind(t,68611))).default,FeatureLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(9784),t.e(2236)]).then(t.bind(t,29784))).default,GaussianSplatLayer:async()=>(await Promise.all([t.e(6131),t.e(4447)]).then(t.bind(t,36475))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(8766)]).then(t.bind(t,15481))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(2157)]).then(t.bind(t,85582))).default,GroupLayer:async()=>(await Promise.all([t.e(6131),t.e(2165),t.e(8256)]).then(t.bind(t,85989))).default,ImageryLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(9953),t.e(1956),t.e(364),t.e(1427),t.e(8106),t.e(4990)]).then(t.bind(t,58434))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(9953),t.e(1427),t.e(6049),t.e(8106),t.e(7677),t.e(5943)]).then(t.bind(t,35943))).default,IntegratedMesh3DTilesLayer:async()=>(await Promise.all([t.e(6131),t.e(7196),t.e(1312)]).then(t.bind(t,61528))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(6131),t.e(6298),t.e(7196),t.e(6894)]).then(t.bind(t,74660))).default,KMLLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(1863)]).then(t.bind(t,162))).default,KnowledgeGraphLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(708),t.e(3029),t.e(8368),t.e(4649),t.e(217),t.e(2568),t.e(7213),t.e(9171),t.e(8692)]).then(t.bind(t,28692))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(6131),t.e(7937),t.e(7721),t.e(9695)]).then(t.bind(t,49695))).default,LinkChartLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(708),t.e(3029),t.e(8368),t.e(4649),t.e(217),t.e(2568),t.e(7213),t.e(9171),t.e(1728)]).then(t.bind(t,71728))).default,MapImageLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(1956),t.e(4796),t.e(708),t.e(4111),t.e(364),t.e(3249),t.e(7656),t.e(2042)]).then(t.bind(t,7656))).default,MapNotesLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(9784),t.e(7213),t.e(8110)]).then(t.bind(t,96299))).default,MediaLayer:async()=>(await Promise.all([t.e(7330),t.e(6131),t.e(2763)]).then(t.bind(t,19647))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(1956),t.e(4796),t.e(708),t.e(3029),t.e(6445),t.e(9936),t.e(4224)]).then(t.bind(t,65977))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(9344),t.e(349)]).then(t.bind(t,40349))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(4111),t.e(8506),t.e(9784),t.e(9361),t.e(4151)]).then(t.bind(t,9352))).default,PointCloudLayer:async()=>(await Promise.all([t.e(6131),t.e(8948),t.e(6742)]).then(t.bind(t,76742))).default,RouteLayer:async()=>(await Promise.all([t.e(6131),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(217),t.e(979)]).then(t.bind(t,64185))).default,SceneLayer:async()=>(await Promise.all([t.e(6131),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(1956),t.e(4796),t.e(7937),t.e(7005),t.e(6445),t.e(6298),t.e(3546),t.e(1395)]).then(t.bind(t,13899))).default,StreamLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(1956),t.e(4796),t.e(3029),t.e(73)]).then(t.bind(t,79457))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1956),t.e(4796),t.e(4111),t.e(8506),t.e(6731)]).then(t.bind(t,97483))).default,TileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(1956),t.e(4796),t.e(708),t.e(4111),t.e(364),t.e(9186),t.e(3249),t.e(573)]).then(t.bind(t,71756))).default,UnknownLayer:async()=>(await t.e(146).then(t.bind(t,146))).default,UnsupportedLayer:async()=>(await t.e(5165).then(t.bind(t,45165))).default,VectorTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(9186),t.e(5897),t.e(2272)]).then(t.bind(t,48757))).default,VideoLayer:async()=>(await Promise.all([t.e(6131),t.e(3910),t.e(8096),t.e(6638),t.e(7732)]).then(t.bind(t,86875))).default,ViewshedLayer:async()=>(await Promise.all([t.e(6131),t.e(7937),t.e(7721),t.e(6650)]).then(t.bind(t,96650))).default,VoxelLayer:async()=>(await Promise.all([t.e(6131),t.e(8948),t.e(6183)]).then(t.bind(t,16183))).default,WCSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(9953),t.e(1427),t.e(6049),t.e(8106),t.e(7677),t.e(9547)]).then(t.bind(t,19547))).default,WFSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(8096),t.e(6638),t.e(13),t.e(1214),t.e(9953),t.e(1956),t.e(4796),t.e(3029),t.e(9110)]).then(t.bind(t,21901))).default,WMSLayer:async()=>(await Promise.all([t.e(7330),t.e(6131),t.e(8219),t.e(8948),t.e(3910),t.e(6638),t.e(5181)]).then(t.bind(t,51904))).default,WMTSLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(9344),t.e(309)]).then(t.bind(t,20309))).default,WebTileLayer:async()=>(await Promise.all([t.e(6131),t.e(8219),t.e(9344)]).then(t.bind(t,47314))).default}},8947:(e,a,t)=>{t.d(a,{L:()=>l});var r=t(60999),n=t(74887),i=t(67076);async function l(e,a,t){const l=e&&e.getAtOrigin&&e.getAtOrigin("renderer",a.origin);if(l&&"unique-value"===l.type&&l.styleOrigin){const s=await(0,r.Ke)(l.populateFromStyle());if((0,n.Te)(t),!1===s.ok){const t=s.error;a?.messages&&a.messages.push(new i.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${t.message}`,{error:t,context:a})),e.clear("renderer",a?.origin)}}}},9762:(e,a,t)=>{t.r(a),t.d(a,{projectBuffer:()=>n});var r=t(37539);function n(e,a,t,n,i,l,s=Math.floor(e.length/3)){const c=(0,r.jd)(a,i);if(null==c)return!1;if(c===r.pO){if(e===n&&t===l)return!0;const a=t+3*s;for(let r=t,i=l;r<a;r++,i++)n[i]=e[r];return!0}const o=t+3*s;for(let a=t,r=l;a<o;a+=3,r+=3)c(e,a,n,r);return!0}},10407:(e,a,t)=>{t.d(a,{It:()=>d,LG:()=>l,OM:()=>o,Sm:()=>u,Y:()=>s,bK:()=>c,mm:()=>f,sQ:()=>y});var r=t(98988),n=t(16930),i=t(28735);function l(e,a){if(!s(e,a)){const t=e.typeKeywords;t?t.push(a):e.typeKeywords=[a]}}function s(e,a){return!!e.typeKeywords?.includes(a)}function c(e){return s(e,f.HOSTED_SERVICE)}function o(e,a){const t=e.typeKeywords;if(t){const e=t.indexOf(a);e>-1&&t.splice(e,1)}}function u(e,a,t){t?l(e,a):o(e,a)}async function y(e){const a=e.clone().normalize();let t;if(a.length>1)for(const e of a)t?e.width>t.width&&(t=e):t=e;else t=a[0];return async function(e){const a=e.spatialReference;if(a.isWGS84)return e.clone();if(a.isWebMercator)return(0,i.ci)(e);const t=n.A.WGS84;return await(0,r.initializeProjection)(a,t),(0,r.project)(e,t)}(t)}const f={CHARTS:"Charts",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery"};function d(e){const{portal:a,isOrgItem:t,itemControl:r}=e,n=a.user?.privileges;let i=!n||n.includes("features:user:edit"),l=!!t&&!!n?.includes("features:user:fullEdit");const s="update"===r||"admin"===r;return s?l=i=!0:l&&(i=!0),{features:{edit:i,fullEdit:l},content:{updateItem:s}}}},22429:(e,a,t)=>{t.d(a,{v:()=>n});var r=t(24183);class n{constructor(){this._serviceMetadatas=new Map,this._itemDatas=new Map}async fetchServiceMetadata(e,a){const t=this._serviceMetadatas.get(e);if(t)return t;const n=await(0,r.V)(e,a);return this._serviceMetadatas.set(e,n),n}async fetchItemData(e){const{id:a}=e;if(!a)return null;const{_itemDatas:t}=this;if(t.has(a))return t.get(a);const r=await e.fetchData();return t.set(a,r),r}async fetchCustomParameters(e,a){const t=await this.fetchItemData(e);return t&&"object"==typeof t&&(a?a(t):t.customParameters)||null}}},23154:(e,a,t)=>{t.d(a,{K:()=>d,Q:()=>l});var r=t(77548),n=t(24183);const i=new Set(["Catalog Layer","Feature Layer","Oriented Imagery Layer"]);async function l(e,a){const{loadContext:t,...i}=a||{},l=t?await t.fetchServiceMetadata(e,i):await(0,n.V)(e,i),s=(0,r.G$)();f(l),o(l);const c={serviceJSON:l,preferredHost:s};if((l.currentVersion??0)<10.5)return c;const u=`${(0,r.$x)()??e}/layers`,y=t?await t.fetchServiceMetadata(u,i):await(0,n.V)(u,i);return f(y),o(y),c.layersJSON={layers:y.layers,tables:y.tables},c}function s(e){const{type:a}=e;return!!a&&i.has(a)}function c(e){return"Table"===e.type}function o(e){e.layers=e.layers?.filter(s),e.tables=e.tables?.filter(c)}function u(e){e.type||="Feature Layer"}function y(e){e.type||="Table"}function f(e){e.layers?.forEach(u),e.tables?.forEach(y)}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"}},24183:(e,a,t)=>{t.d(a,{V:()=>n});var r=t(78888);async function n(e,a){const{data:t}=await(0,r.A)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return t}},37539:(e,a,t)=>{t.d(a,{pO:()=>L,jd:()=>f,Tp:()=>d,w5:()=>y});var r=t(34727),n=t(83047),i=t(73941),l=t(79258);Math.PI;const s=l.$O.radius,c=l.$O.eccentricitySquared,o={a1:s*c,a2:s*c*s*c,a3:s*c*c/2,a4:s*c*s*c*2.5,a5:s*c+s*c*c/2,a6:1-c};l.$O.radius,l.$O.flattening,l.Sw.radius,l.Sw.flattening,l.sH.radius,l.sH.flattening,l.sH.radius;var u=t(21325);const y={2:{5:L,7:null,9:null,10:L,1:v,6:null,8:null,0:null,3:h,11:w,2:L,4:A},5:{5:L,7:null,9:null,10:L,1:v,6:null,8:null,0:null,3:h,11:w,2:L,4:A},7:{5:null,7:L,9:null,10:L,1:null,6:M,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:L,10:L,1:null,6:null,8:I,0:null,3:null,11:null,2:null,4:null},3:{5:m,7:null,9:null,10:m,1:function(e,a,t,r){const n=e[a]/N,i=j-2*Math.atan(Math.exp(-e[a+1]/N)),l=N+e[a+2],s=Math.cos(i)*l;t[r]=Math.cos(n)*s,t[r+1]=Math.sin(n)*s,t[r+2]=Math.sin(i)*l},6:null,8:null,0:null,3:L,11:function(e,a,t,r){m(e,a,t,r),w(t,r,t,r)},2:m,4:function(e,a,t,r){m(e,a,t,r),A(t,r,t,r)}},4:{5:R,7:null,9:null,10:R,1:function(e,a,t,r){R(e,a,t,r),v(t,r,t,r)},6:null,8:null,0:null,3:function(e,a,t,r){R(e,a,t,r),h(t,r,t,r)},11:function(e,a,t,r){R(e,a,t,r),w(t,r,t,r)},2:R,4:L},1:{5:P,7:null,9:null,10:P,1:L,6:null,8:null,0:null,3:function(e,a,t,r){P(e,a,t,r),h(t,r,t,r)},11:function(e,a,t,r){P(e,a,t,r),w(t,r,t,r)},2:P,4:function(e,a,t,r){P(e,a,t,r),A(t,r,t,r)}},6:{5:null,7:G,9:null,10:G,1:null,6:L,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:T,10:T,1:null,6:null,8:L,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:L,3:null,11:null,2:null,4:null},10:{5:L,7:L,9:L,10:L,1:v,6:M,8:I,0:null,3:h,11:w,2:L,4:A},11:{5:S,7:null,9:null,10:S,1:function(e,a,t,r){S(e,a,t,r),v(t,r,t,r)},6:null,8:null,0:null,3:function(e,a,t,r){S(e,a,t,r),h(t,r,t,r)},11:L,2:S,4:function(e,a,t,r){S(e,a,t,r),A(t,r,t,r)}}};function f(e,a){return d(e,a)?.projector}function d(e,a){if(null==e||null==a)return null;if(C.source.spatialReference===e&&C.dest.spatialReference===a)return C;const t=p(e,C.source),r=p(a,C.dest);return 0===t&&0===r?(0,u.aI)(e,a)?C.projector=L:C.projector=null:C.projector=y[t][r],C}function p(e,a){return e?a.spatialReference===e?a.spatialReferenceId:(a.spatialReference=e,"metersPerUnit"in a&&(a.metersPerUnit=(0,n.GA)(e,1)),(0,i.jA)(e)?a.spatialReferenceId=1:(0,u.oT)(e)?a.spatialReferenceId=2:(0,u.K8)(e)?a.spatialReferenceId=3:(0,u.r1)(e)?a.spatialReferenceId=11:e.wkt===i.Ro.wkt?a.spatialReferenceId=4:4490===e.wkid?a.spatialReferenceId=5:e.wkt===i.FY.wkt?a.spatialReferenceId=6:e.wkt===i.LJ.wkt?a.spatialReferenceId=8:(0,u.q8)(e)?a.spatialReferenceId=7:(0,u.KQ)(e)?a.spatialReferenceId=9:a.spatialReferenceId=0):0}function L(e,a,t,r){e!==t&&(t[r++]=e[a++],t[r++]=e[a++],t[r]=e[a])}function m(e,a,t,r){t[r]=k*(e[a]/N),t[r+1]=k*(j-2*Math.atan(Math.exp(-e[a+1]/N))),t[r+2]=e[a+2]}function h(e,a,t,n){!function(e,a,t,n,i){const l=.4999999*Math.PI,s=(0,r.qE)(O*e[a+1],-l,l),c=Math.sin(s);t[n++]=O*e[a]*i.radius,t[n++]=i.halfSemiMajorAxis*Math.log((1+c)/(1-c)),t[n]=e[a+2]}(e,a,t,n,l.$O)}function w(e,a,t,r){t[r]=e[a]*_,t[r+1]=e[a+1]*_,t[r+2]=e[a+2]}function S(e,a,t,r){t[r]=e[a]*E,t[r+1]=e[a+1]*E,t[r+2]=e[a+2]}function g(e,a,t,r,n){const i=n+e[a+2],l=O*e[a+1],s=O*e[a],c=Math.cos(l)*i;t[r]=Math.cos(s)*c,t[r+1]=Math.sin(s)*c,t[r+2]=Math.sin(l)*i}function I(e,a,t,r){g(e,a,t,r,l.Sw.radius)}function M(e,a,t,r){g(e,a,t,r,l.sH.radius)}function v(e,a,t,r){g(e,a,t,r,l.$O.radius)}function b(e,a,t,n,i){const l=e[a],s=e[a+1],c=e[a+2],o=Math.sqrt(l*l+s*s+c*c),u=(0,r.YN)(c/(0===o?1:o)),y=Math.atan2(s,l);t[n++]=k*y,t[n++]=k*u,t[n]=o-i}function T(e,a,t,r){b(e,a,t,r,l.Sw.radius)}function G(e,a,t,r){b(e,a,t,r,l.sH.radius)}function P(e,a,t,r){b(e,a,t,r,l.$O.radius)}function A(e,a,t,r){!function(e,a,t,r,n){const i=O*e[a],l=O*e[a+1],s=e[a+2],c=Math.sin(l),o=Math.cos(l),u=n.radius/Math.sqrt(1-n.eccentricitySquared*c*c);t[r++]=(u+s)*o*Math.cos(i),t[r++]=(u+s)*o*Math.sin(i),t[r++]=(u*(1-n.eccentricitySquared)+s)*c}(e,a,t,r,l.$O)}function R(e,a,t,r){const n=o,i=e[a],s=e[a+1],c=e[a+2];let u,y,f,d,p,L,m,h,w,S,g,I,M,v,b,T,G,P,A,R,C;u=Math.abs(c),y=i*i+s*s,f=Math.sqrt(y),d=y+c*c,p=Math.sqrt(d),R=Math.atan2(s,i),L=c*c/d,m=y/d,v=n.a2/p,b=n.a3-n.a4/p,m>.3?(h=u/p*(1+m*(n.a1+v+L*b)/p),A=Math.asin(h),S=h*h,w=Math.sqrt(1-S)):(w=f/p*(1-L*(n.a5-v-m*b)/p),A=Math.acos(w),S=1-w*w,h=Math.sqrt(S)),g=1-l.$O.eccentricitySquared*S,I=l.$O.radius/Math.sqrt(g),M=n.a6*I,v=f-I*w,b=u-M*h,G=w*v+h*b,T=w*b-h*v,P=T/(M/g+G),A+=P,C=G+T*P/2,c<0&&(A=-A),t[r++]=k*R,t[r++]=k*A,t[r]=C}const C={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:L},O=(0,r.kU)(1),k=(0,r.KJ)(1),j=.5*Math.PI,N=l.$O.radius,_=N*Math.PI/180,E=180/(N*Math.PI)},45613:(e,a,t)=>{t.d(a,{fromItem:()=>f,n:()=>d});var r=t(49186),n=t(92009),i=t(23154),l=t(22429),s=t(77548),c=t(4513),o=t(80812),u=t(66964),y=t(10407);async function f(e){let{portalItem:a}=e;!a||a instanceof o.default||(a=new o.default(a));const t=await async function(e){await e.load();const a=new l.v;return async function(e){const a=e.className,t=c.S[a];return{constructor:await t(),properties:e.properties}}(await d(e,a))}(a);return new(0,t.constructor)({portalItem:a,...t.properties})}async function d(e,a){switch(e.type){case"3DTiles Service":return e.typeKeywords.includes("3DObject")?{className:"UnsupportedLayer"}:{className:"IntegratedMesh3DTilesLayer"};case"CSV":return{className:"CSVLayer"};case"Feature Collection":return async function(e){await e.load();const a=(0,y.Y)(e,"Map Notes"),t=(0,y.Y)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,y.Y)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,u.XH)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Feature Service":return async function(e,a){const t=await p(e,a);if("object"==typeof t){const{sourceJSON:e,className:a}=t,r={sourceJSON:e};return null!=t.id&&(r.layerId=t.id),{className:a||"FeatureLayer",properties:r}}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 t=e.typeKeywords?.map(e=>e.toLowerCase())??[];if(t.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(t.includes("tiled imagery"))return{className:"ImageryTileLayer"};const r=await a.fetchItemData(e),n=r?.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)}),l=i.cacheType?.toLowerCase(),s=i.capabilities?.toLowerCase().includes("tilesonly"),c=i.tileInfo?.format?.toLowerCase()??"",o=null==l&&["jpg","jpeg","png","png8","png24","png32","mixed"].includes(c);return"map"===l||o||s?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"KML":return{className:"KMLLayer"};case"Knowledge Graph Layer":return{className:"KnowledgeGraphLayer"};case"Map Service":return async function(e,a){return await async function(e,a){const{tileInfo:t}=await a.fetchServiceMetadata(e.url,{customParameters:await a.fetchCustomParameters(e)});return t}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Media Layer":return{className:"MediaLayer"};case"Scene Service":return async function(e,a){const t=await p(e,a,async()=>{try{if(!e.url)return[];const{serverUrl:t}=await(0,n.L)(e.url,{sceneLayerItem:e}),r=await a.fetchServiceMetadata(t);return r?.tables??[]}catch{return[]}});if("object"==typeof t){const r={};let n;if(null!=t.id?(r.layerId=t.id,n=`${e.url}/layers/${t.id}`):n=e.url,e.typeKeywords?.length)for(const a of Object.keys(s.XX))if(e.typeKeywords.includes(a))return{className:s.XX[a]};const i=await a.fetchServiceMetadata(n,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return{className:s.XX[i?.layerType]||"SceneLayer",properties:r}}if(!1===t){const t=await a.fetchServiceMetadata(e.url);if("Voxel"===t?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,a);case"Video Service":return async function(e,a){return"object"==typeof await p(e,a)?{className:"VideoLayer"}:{className:"GroupLayer"}}(e,a);case"Vector Tile Service":return{className:"VectorTileLayer"};case"WCS":return{className:"WCSLayer"};case"WFS":return{className:"WFSLayer"};case"WMS":return{className:"WMSLayer"};case"WMTS":return{className:"WMTSLayer"};default:throw new r.A("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function p(e,a,t){const{url:r,type:n}=e,l="Feature Service"===n;if(!r)return{};if(/\/\d+$/.test(r)){if(l){const t=await a.fetchServiceMetadata(r,{customParameters:await a.fetchCustomParameters(e,e=>(0,u.pJ)(e)?.customParameters)});return(0,s.Gh)(e,(0,s.G$)()),{id:t.id,className:(0,i.K)(t.type),sourceJSON:t}}return{}}if("Video Service"===n){const e=await a.fetchServiceMetadata(r);return!((e.layers?.length??0)>1)&&{}}await e.load();let c=await a.fetchItemData(e);if(l){const{data:t,preferredHost:n}=await(0,u.bO)(c,r,a);(0,s.Gh)(e,n);const i=L(t);if("object"==typeof i){const e=(0,u.rc)(t,i.id);i.className=(0,u.K8)(e?.layerType)}return i}if("Scene Service"===n&&(c=await(0,u.nu)(e,c,a)),(0,u.XH)(c)>0)return L(c);const o=await a.fetchServiceMetadata(r);return t&&(o.tables=await t()),L(o)}function L(e){return 1===(0,u.XH)(e)&&{id:(0,u.pJ)(e)?.id}}},62815:(e,a,t)=>{t.d(a,{N:()=>l});var r=t(83047),n=t(73941),i=t(21325);function l(e,a,t){if(null==a||null==t||t.vcsWkid||(0,i.aI)(a,t)||(0,n.xP)(a)||(0,n.xP)(t))return null;const l=(0,r.G9)(a)/(0,r.G9)(t);if(1===l)return null;switch(e){case"point":case"esriGeometryPoint":return e=>function(e,a){null!=e?.z&&(e.z*=a)}(e,l);case"polyline":case"esriGeometryPolyline":return e=>function(e,a){if(e)for(const t of e.paths)for(const e of t)e.length>2&&(e[2]*=a)}(e,l);case"polygon":case"esriGeometryPolygon":return e=>function(e,a){if(e)for(const t of e.rings)for(const e of t)e.length>2&&(e[2]*=a)}(e,l);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,a){if(e)for(const t of e.points)t.length>2&&(t[2]*=a)}(e,l);case"extent":case"esriGeometryEnvelope":return e=>function(e,a){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=a,e.zmax*=a)}(e,l);default:return null}}},66964:(e,a,t)=>{t.d(a,{Ju:()=>u,K8:()=>d,XH:()=>y,_r:()=>l,bO:()=>s,l:()=>f,nu:()=>p,pJ:()=>c,rc:()=>o});var r=t(92009),n=t(23154),i=t(77548);function l(e){const a={id:e.id,name:e.name},t=(0,n.K)(e.type);return"FeatureLayer"!==t&&(a.layerType=t),a}async function s(e,a,t){let r;if(null==e?.layers||null==e?.tables){const n=await t.fetchServiceMetadata(a,{customParameters:c(e)?.customParameters});r=(0,i.G$)(),(e=e||{}).layers=e.layers||n?.layers?.map(l),e.tables=e.tables||n?.tables?.map(l)}return{data:e,preferredHost:r}}function c(e){if(!e)return null;const{layers:a,tables:t}=e;return a?.length?a[0]:t?.length?t[0]:null}function o(e,a){return null==a?null:[...e.layers||[],...e.tables||[]].find(e=>e.id===a)}function u(e,a){return[...e.layers||[],...e.tables||[]].filter(({layerType:e})=>e?a.includes(e):a.includes("ArcGISFeatureLayer"))}function y(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function f(e){switch(e){case"catalog":return["CatalogLayer"];case"feature":return["ArcGISFeatureLayer"];case"oriented-imagery":return["OrientedImageryLayer"];case"subtype-group":return["SubtypeGroupLayer","SubtypeGroupTable"]}return null}function d(e){switch(e){case"CatalogLayer":return"CatalogLayer";case"OrientedImageryLayer":return"OrientedImageryLayer";case"SubtypeGroupLayer":case"SubtypeGroupTable":return"SubtypeGroupLayer"}return"FeatureLayer"}async function p(e,a,t){if(!e?.url)return a??{};if(a??={},!a.layers){const r=await t.fetchServiceMetadata(e.url);a.layers=r.layers?.map(l)}const{serverUrl:n,portalItem:i}=await(0,r.L)(e.url,{sceneLayerItem:e,customParameters:c(a)?.customParameters}).catch(()=>({serverUrl:null,portalItem:null}));if(null==n)return a.tables=[],a;if(!a.tables&&i){const e=await i.fetchData().catch(()=>null);if(e?.tables)a.tables=e.tables.map(l);else{const r=await t.fetchServiceMetadata(n,{customParameters:c(e)?.customParameters}).catch(()=>null);a.tables=r?.tables?.map(l)}}if(a.tables)for(const e of a.tables)e.url=`${n}/${e.id}`;return a}},75356:(e,a,t)=>{t.d(a,{N:()=>T,populateOperationalLayers:()=>u});var r=t(7762),n=(t(44208),t(22429)),i=t(4513),l=t(80812);function s(e,a){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===a}var c=t(45613),o=t(8947);async function u(e,a,t){if(!a)return;const r=a.map(e=>async function(e,a){return async function(e,a,t){const r=new e;return r.read(a,t.context),"group"===r.type&&("GroupLayer"===a.layerType?await T(r,a,t):v(a)?function(e,a,t){a.itemId&&(e.portalItem=new l.default({id:a.itemId,portal:t?.portal}),e.when(()=>{const r=r=>{const n=r.layerId;G(r,e,a,n,t);const i=a.featureCollection?.layers?.[n];i&&r.read(i,t)};e.layers?.forEach(r),e.tables?.forEach(r)}))}(r,a,t.context):M(a)&&await async function(e,a,t){const r=i.S.FeatureLayer,n=await r(),l=a.featureCollection,s=l?.showLegend,c=l?.layers?.map((r,i)=>{const l=new n;l.read(r,t);const c={...t,ignoreDefaults:!0};return G(l,e,a,i,c),null!=s&&l.read({showLegend:s},c),l});e.layers.addMany(c??[])}(r,a,t.context)),await(0,o.L)(r,t.context),r}(await I(e,a),e,a)}(e,t)),n=await Promise.allSettled(r);for(const a of n)"rejected"===a.status||a.value&&e.add(a.value)}const y={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BuildingSceneLayer:"BuildingSceneLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",IntegratedMesh3DTilesLayer:"IntegratedMesh3DTilesLayer",Object3DTilesLayer:"UnsupportedLayer",IntegratedMeshLayer:"IntegratedMeshLayer",KML:"KMLLayer",LineOfSightLayer:"LineOfSightLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",PointCloudLayer:"PointCloudLayer",RasterDataLayer:"UnsupportedLayer",VectorTileLayer:"VectorTileLayer",ViewshedLayer:"ViewshedLayer",Voxel:"VoxelLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},f={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},d={ArcGISFeatureLayer:"FeatureLayer"},p={ArcGISImageServiceLayer:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"UnsupportedLayer",WMS:"UnsupportedLayer",WebTiledLayer:"WebTileLayer"},L={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",ArcGISVideoLayer:"VideoLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",CatalogLayer:"CatalogLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoJSON:"GeoJSONLayer",GeoRSS:"GeoRSSLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",KnowledgeGraphLayer:"KnowledgeGraphLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},m={ArcGISFeatureLayer:"FeatureLayer",SubtypeGroupTable:"SubtypeGroupLayer"},h={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",DefaultTileLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WCS:"WCSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},w={...L,LinkChartLayer:"LinkChartLayer"},S={...m},g={...h};async function I(e,a){const t=a.context,r=b(t);let o=e.layerType||e.type;!o&&a?.defaultLayerType&&(o=a.defaultLayerType);const u=r[o];let y=u?i.S[u]:i.S.UnknownLayer;if(v(e)){const a=t?.portal;if(e.itemId){const t=new l.default({id:e.itemId,portal:a});await t.load();const r=(await(0,c.n)(t,new n.v)).className||"UnknownLayer";y=i.S[r]}}else"ArcGISFeatureLayer"===o?function(e){return s(e,"notes")}(e)||function(e){return s(e,"markup")}(e)?y=i.S.MapNotesLayer:function(e){return s(e,"route")}(e)?y=i.S.RouteLayer:M(e)&&(y=i.S.GroupLayer):e.wmtsInfo?.url&&e.wmtsInfo.layerIdentifier?y=i.S.WMTSLayer:"WFS"===o&&"2.0.0"!==e.wfsInfo?.version&&(y=i.S.UnsupportedLayer);return y()}function M(e){return"ArcGISFeatureLayer"===e.layerType&&!v(e)&&(e.featureCollection?.layers?.length??0)>1}function v(e){return"Feature Collection"===e.type}function b(e){let a;switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap":a=p;break;case"ground":a=f;break;case"tables":a=d;break;default:a=y}break;case"link-chart":switch(e.layerContainerType){case"basemap":a=g;break;case"tables":a=S;break;default:a=w}break;default:switch(e.layerContainerType){case"basemap":a=h;break;case"tables":a=m;break;default:a=L}}return a}async function T(e,a,t){const n=new r.A,i=u(n,Array.isArray(a.layers)?a.layers:[],t);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,t,r,n){e.read({id:`${a.id}-sublayer-${r}`,visibility:t.visibleLayers?.includes(r)??!0},n)}},92009:(e,a,t)=>{t.d(a,{L:()=>u});var r=t(70333),n=t(78888),i=t(49186),l=t(74887),s=t(60694),c=t(20655),o=t(80812);async function u(e,a){const t=(0,s.qg)(e);if(!t)throw new i.A("invalid-url","Invalid scene service url");const u={...a,sceneServerUrl:t.url.path,layerId:t.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const a=(await y(e)).serviceItemId;if(!a)return null;const t=new o.default({id:a,apiKey:e.apiKey}),i=await async function(e){const a=r.id?.findServerInfo(e.sceneServerUrl);if(a?.owningSystemUrl)return a.owningSystemUrl;const t=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const a=(await(0,n.A)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,l.QP)(e)}return null}(e);null!=i&&(t.portal=new c.A({url:i}));try{return await t.load({signal:e.signal})}catch(e){return(0,l.QP)(e),null}}(u),null==u.sceneLayerItem)return f(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const d=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const t=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:a})).find(e=>"Feature Service"===e.type)||null;if(!t)return null;const r=new o.default({portal:t.portal,id:t.id});return await r.load(),r}catch(e){return(0,l.QP)(e),null}}(u);if(!d?.url)throw new i.A("related-service-not-found","Could not find feature service through portal item relationship");u.featureServiceItem=d;const p=await f(d.url,u);return p.portalItem=d,p}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 t=await(0,n.A)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function f(e,a){const t=(0,s.qg)(e);if(!t)throw new i.A("invalid-feature-service-url","Invalid feature service url");const r=t.url.path,l=a.layerId;if(null==l)return{serverUrl:r};const c=y(a),o=a.featureServiceItem?await a.featureServiceItem.fetchData("json"):null,u=(o?.layers?.[0]||o?.tables?.[0])?.customParameters,f=e=>{const t={query:{f:"json",...u},responseType:"json",authMode:e,signal:a.signal};return(0,n.A)(r,t)},d=f("anonymous").catch(()=>f("no-prompt")),[p,L]=await Promise.all([d,c]),m=L?.layers,h=p.data&&p.data.layers;if(!Array.isArray(h))throw new Error("expected layers array");if(Array.isArray(m)){for(let e=0;e<Math.min(m.length,h.length);e++)if(m[e].id===l)return{serverUrl:r,layerId:h[e].id}}else if(null!=l&&l<h.length)return{serverUrl:r,layerId:h[l].id};throw new Error("could not find matching associated sublayer")}},98988:(e,a,t)=>{t.r(a),t.d(a,{canProjectWithoutEngine:()=>J,getTransformation:()=>D,getTransformations:()=>V,initializeProjection:()=>H,isEqualBaseGCS:()=>z,isLoaded:()=>O,isLoadedOrLoad:()=>k,isLoadedOrLoadFor:()=>j,load:()=>_,project:()=>E,projectExtent:()=>ie,projectMany:()=>x,projectMultipoint:()=>Q,projectOrLoad:()=>W,projectOrLoadMany:()=>F,projectPoint:()=>Z,projectPolygon:()=>re,projectPolyline:()=>ae,projectWithZConversion:()=>q,projectWithoutEngine:()=>Y,requiresLoad:()=>N,test:()=>B,tryProjectWithZConversion:()=>$,unload:()=>K});var r=t(49186),n=t(74887),i=t(62788),l=t(95488),s=t(51850),c=t(21276),o=t(73941),u=t(5443),y=t(48526),f=t(83290),d=t(86738),p=t(39829),L=t(82799),m=t(16930),h=t(9762),w=t(37539);function S(e,a,t,r,n,i){return g[0]=e,g[1]=a,g[2]=t,(0,h.projectBuffer)(g,r,0,n,i,0)}const g=(0,s.vt)();let I=0;class M{static fromGE(e){const a=new M;return a._wkt=e.wkt,a._wkid=e.wkid,a._isInverse=e.isInverse,a}constructor(e){this.uid=I++,e?(this._wkt=null!=e.wkt?e.wkt:null,this._wkid=null!=e.wkid?e.wkid:-1,this._isInverse=null!=e.isInverse&&!0===e.isInverse):(this._wkt=null,this._wkid=-1,this._isInverse=!1)}get wkt(){return this._wkt}set wkt(e){this._wkt=e,this.uid=I++}get wkid(){return this._wkid}set wkid(e){this._wkid=e,this.uid=I++}get isInverse(){return this._isInverse}set isInverse(e){this._isInverse=e,this.uid=I++}getInverse(){const e=new M;return e._wkt=this.wkt,e._wkid=this._wkid,e._isInverse=!this.isInverse,e}}class v{static cacheKey(e,a){return[e.wkid?.toString()??"-1",e.wkt?.toString()??"",e.wkt2?.toString()??"",a.wkid?.toString()??"-1",a.wkt?.toString()??"",a.wkt2?.toString()??""].join()}static fromGE(e){const a=new v;let t="";for(const r of e.steps){const e=M.fromGE(r);a.steps.push(e),t+=e.uid.toString()+","}return a._cachedProjection={},a._gtlistentry=null,a._chain=t,a}constructor(e){if(this.steps=[],this._cachedProjection={},this._chain="",this._gtlistentry=null,e?.steps)for(const a of e.steps)a instanceof M?this.steps.push(a):this.steps.push(new M({wkid:a.wkid,wkt:a.wkt,isInverse:a.isInverse}))}getInverse(){const e=new v;e.steps=[];for(let a=this.steps.length-1;a>=0;a--){const t=this.steps[a];e.steps.push(t.getInverse())}return e}getGTListEntry(){let e="";for(const a of this.steps)e+=a.uid.toString()+",";return e!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=e),this._gtlistentry}assignCachedGe(e,a,t){this._cachedProjection[v.cacheKey(e,a)]=t}getCachedGeTransformation(e,a){let t="";for(const e of this.steps)t+=e.uid.toString()+",";t!==this._chain&&(this._gtlistentry=null,this._cachedProjection={},this._chain=t);const r=this._cachedProjection[v.cacheKey(e,a)];return void 0===r?null:r}}var b=t(21325),T=t(62815);let G=null,P=null,A=null,R={};const C=new l.I;function O(){return!!G&&(0,f.i)()}function k(){return!!O()||((0,i.gc)(C),_(),!1)}function j(e,a){return!e||!a||J(e,a)||k()}function N(e,a){return!J(e,a)&&!O()}function _(e){return null==A&&(A=Promise.all([(0,f.l)(),t.e(9930).then(t.bind(t,49930)).then(e=>e.g),t.e(2731).then(t.bind(t,12731))])),A.then(([,a,{hydratedAdapter:t}])=>{(0,n.Te)(e),P=t,G=a.default,G._enableProjection(f.p),C.notify()})}function E(e,a,t=null,r=null){return Array.isArray(e)?0===e.length?[]:((0,c.H)(e),x(P,e,e[0].spatialReference,a,t,r)):((0,c.f)(e),x(P,[e],e.spatialReference,a,t,r)[0])}function x(e,a,t,r,n=null,i=null){if(null==t||null==r)return a;if(J(t,r,n))return a.map(e=>Y(e,t,r));if(null==n&&(0,o.jA)(t))return a.map(e=>Y(e,t,m.A.WGS84)).map(e=>$(e,r));if(null==n&&(0,o.jA)(r))return a.map(e=>$(e,m.A.WGS84)).map(e=>Y(e,m.A.WGS84,r));if(null==n){const e=v.cacheKey(t,r);void 0!==R[e]?n=R[e]:(null==(n=D(t,r,void 0))&&(n=new v),R[e]=n)}if(null==G||null==e)throw new U;return null!=i?G._project(e,a,t,r,n,i):G._project(e,a,t,r,n)}function W(e,a){const t=F([e],a);return null!=t.pending?{pending:t.pending,geometry:null}:null!=t.geometries?{pending:null,geometry:t.geometries[0]}:{pending:null,geometry:null}}function F(e,a){if(!O())for(const t of e)if(null!=t&&!(0,b.aI)(t.spatialReference,a)&&(0,b.fn)(t.spatialReference)&&(0,b.fn)(a)&&!J(t.spatialReference,a))return(0,i.gc)(C),{pending:_(),geometries:null};return{pending:null,geometries:e.map(e=>null==e?null:(0,b.aI)(e.spatialReference,a)?e:(0,b.fn)(e.spatialReference)&&(0,b.fn)(a)?$(e,a):null)}}function D(e,a,t=null){if(null==e||null==a)return null;if(null==G||null==P)throw new U;const r=G._getTransformation(P,e,a,t,t?.spatialReference);return null!==r?v.fromGE(r):null}function V(e,a,t=null){if(null==G||null==P)throw new U;const r=G._getTransformationBySuitability(P,e,a,t,t?.spatialReference);if(null!==r){const e=[];for(const a of r)e.push(v.fromGE(a));return e}return[]}class U extends r.A{constructor(){super("projection:not-loaded","projection engine not fully loaded yet, please call load()")}}function K(){G=null,P=null,A=null,R={}}const B={get loadPromise(){return A}};function $(e,a){try{const t=E(e,a);if(null==t)return null;"xmin"in e&&"xmin"in t&&(t.zmin=e.zmin,t.zmax=e.zmax);const r=(0,T.N)(t.type,e.spatialReference,a);return null!=r&&r(t),t}catch(e){if(!(e instanceof U))throw e;return null}}async function q(e,a,t){const r=e.spatialReference;return null!=r&&null!=a&&await H(r,a,null,t),$(e,a)}function J(e,a,t){return!t&&(!!(0,b.aI)(e,a)||(0,b.fn)(e)&&(0,b.fn)(a)&&!!(0,w.jd)(e,a))}function z(e,a){if((0,b.aI)(e,a))return!0;if(!(0,b.fn)(e)||!(0,b.fn)(a))return!1;const t=(0,b.oT)(e)||(0,b.K8)(e)||(0,b.x1)(e),r=(0,b.oT)(a)||(0,b.K8)(a)||(0,b.x1)(a);return t&&r}async function H(e,a,t,r){if(O())return(0,n.NO)(r);if(Array.isArray(e)){for(const{source:a,dest:t,geographicTransformation:n}of e)if(a&&t&&!J(a,t,n))return _(r)}else if(e&&a&&!J(e,a,t))return _(r);return(0,n.NO)(r)}function Y(e,a,t){return e?"x"in e?X(e,a,new d.A,t,0):"xmin"in e?le(e,a,new u.A,t,0):"rings"in e?ne(e,a,new p.A,t,0):"paths"in e?te(e,a,new L.A,t,0):"points"in e?ee(e,a,new y.A,t,0):null:null}function Z(e,a,t=a.spatialReference,r=0){return null!=t&&null!=e.spatialReference&&null!=X(e,e.spatialReference,a,t,r)}function X(e,a,t,r,n){ce[0]=e.x,ce[1]=e.y;const i=e.z;return ce[2]=void 0!==i?i:n,(0,h.projectBuffer)(ce,a,0,ce,r,0)?(t.x=ce[0],t.y=ce[1],t.spatialReference=r,void 0!==i||(0,o.xP)(r)?(t.z=ce[2],t.hasZ=!0):(t.z=void 0,t.hasZ=!1),void 0===e.m?(t.m=void 0,t.hasM=!1):(t.m=e.m,t.hasM=!0),t):null}function Q(e,a,t=a.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=ee(e,e.spatialReference,a,t,r)}function ee(e,a,t,r,n){const{points:i,hasZ:l,hasM:s}=e,c=[],u=i.length,y=[];for(const e of i)y.push(e[0],e[1],l?e[2]:n);if(!(0,h.projectBuffer)(y,a,0,y,r,0,u))return null;const f=l||(0,o.xP)(r);for(let e=0;e<u;++e){const a=3*e,t=y[a],r=y[a+1];f&&s?c.push([t,r,y[a+2],i[e][3]]):f?c.push([t,r,y[a+2]]):s?c.push([t,r,i[e][2]]):c.push([t,r])}return t.points=c,t.spatialReference=r,t.hasZ=l,t.hasM=s,t}function ae(e,a,t=a.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=te(e,e.spatialReference,a,t,r)}function te(e,a,t,r,n){const{paths:i,hasZ:l,hasM:s}=e,c=[];if(!se(i,l??!1,s??!1,a,c,r,n))return null;const u=l||(0,o.xP)(r);return t.paths=c,t.spatialReference=r,t.hasZ=u,t.hasM=s,t}function re(e,a,t=a.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=ne(e,e.spatialReference,a,t,r)}function ne(e,a,t,r,n){const{rings:i,hasZ:l,hasM:s}=e,c=[];if(!se(i,l??!1,s??!1,a,c,r,n))return null;const u=l||(0,o.xP)(r);return t.rings=c,t.spatialReference=r,t.hasZ=u,t.hasM=s,t}function ie(e,a,t=a.spatialReference,r=0){return null!=e.spatialReference&&null!=t&&null!=le(e,e.spatialReference,a,t,r)}function le(e,a,t,r,n){const{xmin:i,ymin:l,xmax:s,ymax:c,hasZ:u,hasM:y}=e;if(!S(i,l,u?e.zmin:n,a,ce,r))return null;const f=u||(0,o.xP)(r);return t.xmin=ce[0],t.ymin=ce[1],f&&(t.zmin=ce[2]),S(s,c,u?e.zmax:n,a,ce,r)?(t.xmax=ce[0],t.ymax=ce[1],f&&(t.zmax=ce[2]),y&&(t.mmin=e.mmin,t.mmax=e.mmax),t.spatialReference=r,t):null}function se(e,a,t,r,n,i,l=0){const s=new Array;for(const t of e)for(const e of t)s.push(e[0],e[1],a?e[2]:l);if(!(0,h.projectBuffer)(s,r,0,s,i,0))return!1;let c=0;n.length=0;const u=a||(0,o.xP)(i);for(const a of e){const e=new Array;for(const r of a)u&&t?e.push([s[c++],s[c++],s[c++],r[3]]):u?e.push([s[c++],s[c++],s[c++]]):t?(e.push([s[c++],s[c++],r[2]]),c++):(e.push([s[c++],s[c++]]),c++);n.push(e)}return!0}const ce=(0,s.vt)()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3813,8256],{4146:(t,e,i)=>{i.d(e,{A:()=>b});var r=i(31635),n=i(78888),s=i(49186),o=i(65529),l=i(4902),a=i(92474),u=i(53966),p=i(74887),h=i(84952),d=i(10107),c=(i(44208),i(87811),i(40608)),y=i(5443),g=i(16930),m=i(92602),f=i(64272);let v=0,b=class extends((0,o.Zt)((0,l.sA)(a.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+v++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await i.e(7982).then(i.bind(i,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await i.e(5613).then(i.bind(i,45613));try{return await r(e)}catch(t){const i=e?.portalItem,r=i?.id||"unset",n=i?.portal?.url||m.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch(t=>{(0,p.zf)(t)||u.A.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):"groundLayers"in t&&t.groundLayers.includes(e)?t.groundLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(t,e){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,n.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r.Cg)([(0,d.MZ)({type:String})],b.prototype,"attributionDataUrl",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"effectiveVisible",null),(0,r.Cg)([(0,d.MZ)({type:y.A})],b.prototype,"fullExtent",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"hasAttributionData",null),(0,r.Cg)([(0,d.MZ)({type:String,clonable:!1})],b.prototype,"id",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:["show","hide","hide-children"]})],b.prototype,"listMode",void 0),(0,r.Cg)([(0,d.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],b.prototype,"opacity",void 0),(0,r.Cg)([(0,d.MZ)({clonable:!1})],b.prototype,"parent",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0})],b.prototype,"parsedUrl",null),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],b.prototype,"persistenceEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean})],b.prototype,"attributionVisible",void 0),(0,r.Cg)([(0,d.MZ)({type:g.A})],b.prototype,"spatialReference",void 0),(0,r.Cg)([(0,d.MZ)({type:String})],b.prototype,"title",void 0),(0,r.Cg)([(0,d.MZ)({readOnly:!0,json:{read:!1}})],b.prototype,"type",void 0),(0,r.Cg)([(0,d.MZ)()],b.prototype,"url",void 0),(0,r.Cg)([(0,d.MZ)({type:f.T})],b.prototype,"visibilityTimeExtent",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,nonNullable:!0})],b.prototype,"visible",void 0),b=(0,r.Cg)([(0,c.$)("esri.layers.Layer")],b)},4902:(t,e,i)=>{i.d(e,{PH:()=>l,sA:()=>o});var r=i(31635),n=i(40608);let s=0;const o=t=>{const e=t;let i=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return i=(0,r.Cg)([(0,n.$)("esri.core.Identifiable")],i),i},l=t=>{const e=t;let i=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return i=(0,r.Cg)([(0,n.$)("esri.core.Identifiable.NumericIdentifiable")],i),i};o(class{})},62885:(t,e,i)=>{i.d(e,{H:()=>s,V:()=>n});var r=i(7762);function n(t,e,i=r.A){return e||(e=new i),e===t||e.destroyed||(e.removeAll(),(n=t)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?e.addMany(t):t&&e.add(t)),e;var n}function s(t){return t}},64272:(t,e,i)=>{i.d(e,{T:()=>d});var r,n=i(31635),s=i(25482),o=i(88930),l=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),u=i(40608),p=i(43937),h=i(98623);let d=class extends s.o{static{r=this}static get allTime(){return c}static get empty(){return y}static fromArray(t){return new r({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}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,i=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,n=t.end?.getTime()??t.end;return e===r&&i===n}expandTo(t,e=h.qU){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,o.lL)(i,t,e));let n=this.end;if(n){const i=(0,o.lL)(n,t,e);n=n.getTime()===i.getTime()?i:(0,o.S1)(i,1,t,e)}return new r({start:i,end:n})}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,i=this.end?.getTime()??1/0,n=t.start?.getTime()??-1/0,s=t.end?.getTime()??1/0;let o,l;return n>=e&&n<=i?o=n:e>=n&&e<=s&&(o=e),i>=n&&i<=s?l=i:s>=e&&s<=i&&(l=s),null==o||null==l||isNaN(o)||isNaN(l)?r.empty:new r({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(t,e,i=h.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new r,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.S1)(s,t,e,i)),null!=l&&(n.end=(0,o.S1)(l,t,e,i)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return c.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 r({start:e,end:i})}};(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,n.Cg)([(0,a.w)("end")],d.prototype,"readEnd",null),(0,n.Cg)([(0,p.K)("end")],d.prototype,"writeEnd",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,n.Cg)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,n.Cg)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,n.Cg)([(0,a.w)("start")],d.prototype,"readStart",null),(0,n.Cg)([(0,p.K)("start")],d.prototype,"writeStart",null),d=r=(0,n.Cg)([(0,u.$)("esri.time.TimeExtent")],d);const c=new d,y=new d({start:void 0,end:void 0})},68197:(t,e,i)=>{i.d(e,{A:()=>a});var r=i(40876),n=i(34727),s=i(56507);function o(t){return(0,n.qE)((0,s.Vr)(t),0,255)}function l(t,e){const i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}class a{static blendColors(t,e,i,r=new a){return r.r=Math.round(t.r+(e.r-t.r)*i),r.g=Math.round(t.g+(e.g-t.g)*i),r.b=Math.round(t.b+(e.b-t.b)*i),r.a=t.a+(e.a-t.a)*i,r._sanitize()}static fromRgb(t,e){const i=(0,r.lT)(t);return i?a.fromArray(i,e):null}static fromHex(t,e=new a){const i=(0,r.oW)(t);return i?a.fromArray(i,e):null}static fromArray(t,e=new a){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const i=(0,r.Eq)(t);return i?a.fromArray(i,e):null}static fromJSON(t){return null!=t?new a([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?a.fromString(t,this):Array.isArray(t)?a.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof a||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,i=t?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${l(this.r,r)}${l(this.g,r)}${l(this.b,r)}${n?l(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){const e=o(this.r),i=o(this.g),r=o(this.b);return 0===t||1!==this.a?[e,i,r,o(255*this.a)]:[e,i,r]}clone(){return new a(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,r.c1)(this.r),this.g=(0,r.c1)(this.g),this.b=(0,r.c1)(this.b),this.a=(0,r.G1)(this.a),this}_set(t,e,i,r){this.r=t,this.g=e,this.b=i,this.a=r}}a.prototype.declaredClass="esri.Color"},69052:(t,e,i)=>{i.d(e,{hr:()=>n,ie:()=>a,uC:()=>l});var r=i(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,i=!1){return s(this.range,this.min,this.max,t,e,i)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,i){return t<e?e:e+o(this.range,t-e,i)}minimalMonotonic(t,e,i){return s(this.range,t,t+this.range,e,i)}center(t,e,i){return e=this.monotonic(t,e,i),this.normalize((t+e)/2,i)}diff(t,e,i){return this.monotonic(t,e,i)-t}shortestSignedDiff(t,e){t=this.normalize(t);const i=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(i)<Math.abs(r)?i:r}contains(t,e,i){return e=this.minimalMonotonic(t,e),(i=this.minimalMonotonic(t,i))>t&&i<e}}function s(t,e,i,r,n=0,s=!1){return(r-=n)<e?r+=o(t,e-r):r>i&&(r-=o(t,r-i)),s&&r===i&&(r=e),r+n}function o(t,e,i=0){return Math.ceil((e-i)/t)*t+i}const l=new n(0,2*Math.PI),a=(new n(-Math.PI,Math.PI),new n(0,360))},71493:(t,e,i)=>{i.r(e),i.d(e,{default:()=>E});var r=i(31635),n=i(79608),s=i(68197),o=i(69540),l=i(25482),a=i(90629),u=i(10107),p=i(56507),h=(i(44208),i(87811),i(40608));let d=class extends((0,l.T)(o.P)){constructor(t){super(t),this.type="simple",this.color=new s.A("black"),this.lineSize=2,this.fontSize=10,this.textColor=new s.A("black"),this.textBackgroundColor=new s.A([255,255,255,.6])}equals(t){return this===t||this.color.equals(t.color)&&this.lineSize===t.lineSize&&this.fontSize===t.fontSize&&this.textColor.equals(t.textColor)&&this.textBackgroundColor.equals(t.textBackgroundColor)}};(0,r.Cg)([(0,u.MZ)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],d.prototype,"color",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,range:{min:(0,a.PN)(1)},json:{write:{isRequired:!0}}})],d.prototype,"lineSize",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,json:{write:{isRequired:!0}}})],d.prototype,"fontSize",void 0),(0,r.Cg)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],d.prototype,"textColor",void 0),(0,r.Cg)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],d.prototype,"textBackgroundColor",void 0),d=(0,r.Cg)([(0,h.$)("esri.analysis.DimensionSimpleStyle")],d);var c=i(69052),y=i(97768),g=i(79901),m=i(86738);let f=class extends((0,l.T)(o.P)){constructor(t){super(t),this.type="length",this.startPoint=null,this.endPoint=null,this.measureType="direct",this.offset=0,this.orientation=0}get valid(){return null!=this.startPoint&&null!=this.endPoint}equals(t){return this===t||(0,y.CM)(this.startPoint,t.startPoint)&&(0,y.CM)(this.endPoint,t.endPoint)&&this.measureType===t.measureType&&this.offset===t.offset&&this.orientation===t.orientation}};(0,r.Cg)([(0,u.MZ)({type:["length"],json:{write:{isRequired:!0}}})],f.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:m.A,json:{write:{isRequired:!0}}})],f.prototype,"startPoint",void 0),(0,r.Cg)([(0,u.MZ)({type:m.A,json:{write:{isRequired:!0}}})],f.prototype,"endPoint",void 0),(0,r.Cg)([(0,u.MZ)({type:["horizontal","vertical","direct"],nonNullable:!0,json:{write:{isRequired:!0}}})],f.prototype,"measureType",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],f.prototype,"offset",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,g.w)(t=>c.ie.normalize((0,p.GB)(t),0,!0))],f.prototype,"orientation",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],f.prototype,"valid",null),f=(0,r.Cg)([(0,h.$)("esri.analysis.LengthDimension")],f);var v=i(4576),b=i(7762),w=i(62885),M=i(36708),C=(i(53966),i(5443)),A=i(98988);const O=b.A.ofType(f);let S=class extends n.A{constructor(t){super(t),this.type="dimension",this.style=new d,this.extent=null}initialize(){this.addHandles((0,M.wB)(()=>this._computeExtent(),t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)},M.pc))}get dimensions(){return this._get("dimensions")||new O}set dimensions(t){this._set("dimensions",(0,w.V)(t,this.dimensions,O))}get spatialReference(){for(const t of this.dimensions){if(null!=t.startPoint)return t.startPoint.spatialReference;if(null!=t.endPoint)return t.endPoint.spatialReference}return null}get valid(){return this.dimensions.every(t=>t.valid)}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==t)return{pending:null,extent:null};const e=[];for(const t of this.dimensions)null!=t.startPoint&&e.push(t.startPoint),null!=t.endPoint&&e.push(t.endPoint);const i=(0,A.projectOrLoadMany)(e,t);if(null!=i.pending)return{pending:i.pending,extent:null};let r=null;return null!=i.geometries&&(r=i.geometries.reduce((t,e)=>null==t?null!=e?C.A.fromPoint(e):null:null!=e?t.union(C.A.fromPoint(e)):t,null)),{pending:null,extent:r}}clear(){this.dimensions.removeAll()}equals(t){return this===t||super.equals(t)&&this.style.equals(t.style)&&(0,v.aI)(this.dimensions.toArray(),t.dimensions.toArray(),(t,e)=>t.equals(e))}};(0,r.Cg)([(0,u.MZ)({type:["dimension"]})],S.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({cast:w.H,type:O,nonNullable:!0})],S.prototype,"dimensions",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"spatialReference",null),(0,r.Cg)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:d}},nonNullable:!0})],S.prototype,"style",void 0),(0,r.Cg)([(0,u.MZ)({value:null,readOnly:!0})],S.prototype,"extent",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],S.prototype,"valid",null),S=(0,r.Cg)([(0,h.$)("esri.analysis.DimensionAnalysis")],S);var Z=i(92071),x=i(43937),T=i(4146),_=i(16131);let N=class extends((0,_.q)((0,Z.P)(T.A))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new S,this.opacity=1,t){const{source:e,style:i}=t;e&&i&&(e.style=i)}}initialize(){this.addHandles([(0,M.wB)(()=>this.source,(t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)},M.pc)])}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new S)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,e,i,r){e.dimensions=t.filter(({startPoint:t,endPoint:e})=>null!=t&&null!=e).toJSON(r)}};(0,r.Cg)([(0,u.MZ)({json:{read:!1},readOnly:!0})],N.prototype,"type",void 0),(0,r.Cg)([(0,u.MZ)({type:["ArcGISDimensionLayer"]})],N.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,u.MZ)({nonNullable:!0})],N.prototype,"source",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],N.prototype,"spatialReference",null),(0,r.Cg)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:d}},json:{write:{ignoreOrigin:!0}}})],N.prototype,"style",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],N.prototype,"fullExtent",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],N.prototype,"opacity",void 0),(0,r.Cg)([(0,u.MZ)({type:["show","hide"]})],N.prototype,"listMode",void 0),(0,r.Cg)([(0,u.MZ)({type:b.A.ofType(f),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],N.prototype,"dimensions",null),(0,r.Cg)([(0,x.K)("web-scene","dimensions")],N.prototype,"writeDimensions",null),N=(0,r.Cg)([(0,h.$)("esri.layers.DimensionLayer")],N);const E=N},78553:(t,e,i)=>{i.d(e,{D:()=>s,p:()=>n});var r=i(56507);function n(t){const e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},79608:(t,e,i)=>{i.d(e,{A:()=>c});var r=i(31635),n=i(69540),s=i(10107),o=(i(44208),i(53966),i(87811),i(40608));let l=class extends n.P{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)()],l.prototype,"type",void 0),l=(0,r.Cg)([(0,o.$)("esri.analysis.support.AnalysisOriginWebScene")],l);const a=l;var u=i(65008),p=i(4902),h=i(25482);let d=0,c=class extends((0,h.T)((0,n.O)((0,p.sA)(u.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${d++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":case"viewshed":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}equals(t){return!0}};(0,r.Cg)([(0,s.MZ)({type:String,constructOnly:!0,clonable:!1})],c.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({clonable:!1,value:null})],c.prototype,"parent",null),(0,r.Cg)([(0,s.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":a}}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,o.$)("esri.analysis.Analysis")],c)},92071:(t,e,i)=>{i.d(e,{P:()=>v,L:()=>b});var r=i(31635),n=i(65008),s=i(76953),o=i(4718),l=i(35666);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new a,i=this._originStores[0];i&&i.forEach((t,i)=>{e.set(i,(0,o.o8)(t),0)});for(let i=2;i<l.AU;i++){const r=this._originStores[i];r&&r.forEach((r,n)=>{t&&t.has(n)||e.set(n,(0,o.o8)(r),i)})}return e}get(t,e){const i=void 0===e?this._values:this._originStores[e];return i?i.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,i=7){let r=this._originStores[i];if(r||(r=new Map,this._originStores[i]=r),r.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=i){const r=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,i),r!==e}return!1}delete(t,e=7){const i=this._originStores[e];if(!i)return;const r=i.get(t);if(i.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let i=e-1;i>=0;i--){const e=this._originStores[i];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,i);break}}}return r}has(t,e){const i=void 0===e?this._values:this._originStores[e];return!!i&&i.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const i=this._originStores[e],r=i?.get(t),n=this._values.get(t);return this._values.set(t,r),this._propertyOriginMap.set(t,e),n!==r}originOf(t){return this._propertyOriginMap.get(t)||0}isAtOrigin(t,e){return this.has(t,e)&&this.originOf(t)===e}isBelowOrigin(t,e){return!this.has(t)||this.originOf(t)<e}forEach(t){this._values.forEach(t)}}var u=i(45917),p=i(88620),h=i(40608);const d=t=>{const e=t;let i=class extends e{constructor(...t){super(...t);const e=(0,p.oY)(this),i=e.store,r=new a;e.store=r,(0,s.k)(e,i,r)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const i=c(this),r=(0,l.aB)(e);if("string"==typeof t)return i.get(t,r);const n={};return t.forEach(t=>{n[t]=i.get(t,r)}),n}originOf(t){return(0,l.OL)(this.originIdOf(t))}originIdOf(t){return c(this).originOf(t)}revert(t,e){const i=c(this),r=(0,l.aB)(e),n=(0,p.oY)(this);let s;s="string"==typeof t?"*"===t?i.keys(r):[t]:t,s.forEach(t=>{n.invalidate(t),i.revert(t,r),n.commit(t)})}};return i=(0,r.Cg)([(0,h.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],i),i};function c(t){return(0,p.oY)(t).store}d(n.A);var y=i(16649),g=i(49422);const m=t=>{const e=t;let i=class extends e{constructor(...t){super(...t)}clear(t,e="user"){(0,p.oY)(this).clearOrigin(t,(0,l.aB)(e))}write(t,e){return(0,g.M)(this,t=t||{},e),t}setAtOrigin(t,e,i){(0,p.oY)(this).setAtOrigin(t,e,(0,l.aB)(i))}removeOrigin(t){const e=f(this),i=(0,l.aB)(t),r=e.keys(i);for(const t of r)e.originOf(t)===i&&e.set(t,e.get(t,i),7)}updateOrigin(t,e){const i=f(this),r=(0,l.aB)(e),n=(0,y.Jt)(this,t);for(let e=r+1;e<l.AU;++e)i.delete(t,e);i.set(t,n,r)}toJSON(t){return this.write({},t)}};return i=(0,r.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],i),i.prototype.toJSON.isDefaultToJSON=!0,i};function f(t){return(0,p.oY)(t).store}const v=t=>{const e=m(d(t));let i=class extends e{constructor(...t){super(...t)}};return i=(0,r.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport")],i),i},b=v(n.A)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2763,8256],{4146:(t,e,n)=>{n.d(e,{A:()=>v});var r=n(31635),i=n(78888),o=n(49186),s=n(65529),a=n(4902),l=n(92474),u=n(53966),c=n(74887),h=n(84952),p=n(10107),d=(n(44208),n(87811),n(40608)),f=n(5443),m=n(16930),g=n(92602),y=n(64272);let x=0,v=class extends((0,s.Zt)((0,a.sA)(l.x_))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.A(-180,-90,180,90,m.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+x++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await n.e(7982).then(n.bind(n,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await n.e(5613).then(n.bind(n,45613));try{return await r(e)}catch(t){const n=e?.portalItem,r=n?.id||"unset",i=n?.portal?.url||g.A.portalUrl;throw u.A.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,c.zf)(t)||u.A.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):"groundLayers"in t&&t.groundLayers.includes(e)?t.groundLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get loaded(){return super.loaded}get parsedUrl(){return(0,h.An)(this.url)}createLayerView(t,e){return Promise.reject(new o.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,i.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new o.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r.Cg)([(0,p.MZ)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],v.prototype,"effectiveVisible",null),(0,r.Cg)([(0,p.MZ)({type:f.A})],v.prototype,"fullExtent",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,r.Cg)([(0,p.MZ)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,r.Cg)([(0,p.MZ)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,r.Cg)([(0,p.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,r.Cg)([(0,p.MZ)({clonable:!1})],v.prototype,"parent",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,r.Cg)([(0,p.MZ)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,r.Cg)([(0,p.MZ)({type:m.A})],v.prototype,"spatialReference",void 0),(0,r.Cg)([(0,p.MZ)({type:String})],v.prototype,"title",void 0),(0,r.Cg)([(0,p.MZ)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,r.Cg)([(0,p.MZ)()],v.prototype,"url",void 0),(0,r.Cg)([(0,p.MZ)({type:y.T})],v.prototype,"visibilityTimeExtent",void 0),(0,r.Cg)([(0,p.MZ)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,r.Cg)([(0,d.$)("esri.layers.Layer")],v)},4902:(t,e,n)=>{n.d(e,{PH:()=>a,sA:()=>s});var r=n(31635),i=n(40608);let o=0;const s=t=>{const e=t;let n=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+o++})}};return n=(0,r.Cg)([(0,i.$)("esri.core.Identifiable")],n),n},a=t=>{const e=t;let n=class extends e{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:o++})}};return n=(0,r.Cg)([(0,i.$)("esri.core.Identifiable.NumericIdentifiable")],n),n};s(class{})},6518:(t,e,n)=>{n.d(e,{F:()=>a});var r=n(44208),i=n(75503),o=n(19419);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.wq(9,(0,r.A)("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.Ie)();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()))}}},8303:(t,e,n)=>{n.d(e,{A:()=>_});var r=n(31635),i=n(92602),o=n(70333),s=n(78888),a=n(60999),l=n(49186),u=n(53966),c=n(97768),h=n(74887),p=n(84952),d=n(10107),f=(n(44208),n(87811),n(36005)),m=n(40608),g=n(43937),y=n(77548),x=n(20655),v=n(80812),M=n(41318),w=n(10407);const _=t=>{const e=t;let _=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,c.pR)(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 v.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 n.e(1204).then(n.bind(n,41204));return(0,h.Te)(e),await r({instance:this,supportedTypes:t.supportedTypes,validateItem:t.validateItem,supportsData:t.supportsData,layerModuleTypeMap:t.layerModuleTypeMap,populateGroupLayer:t.populateGroupLayer},e)}catch(t){throw(0,h.zf)(t)||u.A.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.QP)(t),!0)))}async setUserPrivileges(t,e){if(!i.A.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.QP)(t)}}async _fetchUserPrivileges(t,e){let n=this.portalItem;if(!t||!n||!n.loaded||n.sourceUrl)return this._fetchFallbackUserPrivileges(e);const r=!o.id?.findCredential(this.url),i=t===n.id;if(i&&n.portal.user)return this._getUserPrivileges(n,r);let s,a;if(i)s=n.portal.url;else try{s=await(0,y.wI)(this.url,e)}catch(t){(0,h.QP)(t)}if(!s||!(0,p.b8)(s,n.portal.url))return this._fetchFallbackUserPrivileges(e);try{const t=null!=e?e.signal:null;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:t}))}catch(t){(0,h.QP)(t)}const l=!0,u=!1,c=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:c}};try{if(i?await n.reload():(n=new v.default({id:t,portal:{url:s}}),await n.load(e)),n.portal.user)return this._getUserPrivileges(n,r)}catch(t){(0,h.QP)(t)}return{features:{edit:l,fullEdit:u},content:{updateItem:c}}}_getUserPrivileges(t,e){const n=(0,w.It)(t);return e&&(n.features.edit=!0),n}async _fetchFallbackUserPrivileges(t){let e=!0;try{e=await this._fetchUserHasEditingPrivileges(t)}catch(t){(0,h.QP)(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=b.credential===e?b.user:await this._fetchEditingUser(t);return b.credential=e,b.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=x.A.getDefault();if(i&&i.loaded&&(0,p.S8)(i.restUrl)===(0,p.S8)(r))return i.user;const l=`${r}/community/self`,u=null!=t?t.signal:null,c=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return c.ok?M.A.fromJSON(c.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||x.A.getDefault());return n&&r&&!(0,p.ut)(r.restUrl,n.restUrl)?(e.messages&&e.messages.push(new l.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(t,{...e,layer:this})}};return(0,r.Cg)([(0,d.MZ)({type:v.default})],_.prototype,"portalItem",null),(0,r.Cg)([(0,f.w)("web-document","portalItem",["itemId"])],_.prototype,"readPortalItem",null),(0,r.Cg)([(0,g.K)("web-document","portalItem",{itemId:{type:String}})],_.prototype,"writePortalItem",null),(0,r.Cg)([(0,d.MZ)({clonable:!1})],_.prototype,"resourceReferences",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasEditingPrivileges",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasFullEditingPrivileges",void 0),(0,r.Cg)([(0,d.MZ)({type:Boolean,readOnly:!0})],_.prototype,"userHasUpdateItemPrivileges",void 0),_=(0,r.Cg)([(0,m.$)("esri.layers.mixins.PortalLayer")],_),_},b={credential:null,user:null}},11006:(t,e,n)=>{function r(t,e,n,r,o){i(t,e,n||0,r||t.length-1,o||s)}function i(t,e,n,r,s){for(;r>n;){if(r-n>600){var a=r-n+1,l=e-n+1,u=Math.log(a),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1);i(t,e,Math.max(n,Math.floor(e-l*c/a+h)),Math.min(r,Math.floor(e+(a-l)*c/a+h)),s)}var p=t[e],d=n,f=r;for(o(t,n,e),s(t[r],p)>0&&o(t,n,r);d<f;){for(o(t,d,f),d++,f--;s(t[d],p)<0;)d++;for(;s(t[f],p)>0;)f--}0===s(t[n],p)?o(t,n,f):o(t,++f,r),f<=e&&(n=f+1),e<=f&&(r=f-1)}}function o(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function s(t,e){return t<e?-1:t>e?1:0}n.d(e,{q:()=>r})},13069:(t,e,n)=>{n.d(e,{AG:()=>a,lk:()=>i,vD:()=>s,yS:()=>o});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()}}`}function a(t){const e=t.toUpperCase();return t.startsWith("{")?e:`{${e}}`}},16494:(t,e,n)=>{n.d(e,{W5:()=>s});var r=n(37330);const i=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"].reduce((t,e)=>(t[e]=[],t),{}),o=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],s=new r.I({whiteList:i,onTagAttr:(t,e,n)=>{const r=`${e}="${n}"`;if(o.includes(e))return r},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)},19647:(t,e,n)=>{n.r(e),n.d(e,{default:()=>te});var r=n(31635),i=n(7762),o=n(49186),s=n(53966),a=n(92071),l=n(74887),u=n(10107),c=n(79901),h=(n(44208),n(87811),n(36005)),p=n(40608),d=n(43937),f=n(4146),m=n(63074),g=n(16131),y=n(8303),x=n(25036),v=n(69540),M=n(25482),w=n(77690),_=n(29242),b=n(37585),A=n(38954);const C=(0,n(51850).vt)(),P=(0,_.vt)(),S=(0,_.vt)(),I=(0,_.vt)();function O(t,e,n){return(0,A.i)(C,e[0],e[1],1),(0,A.o)(C,C,(0,w.mg)(P,n)),0===C[2]?(0,b.hZ)(t,C[0],C[1]):(0,b.hZ)(t,C[0]/C[2],C[1]/C[2])}function R(t,e,n){return E(S,e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]),E(I,n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7]),(0,w.lw)(t,(0,w.KC)(S,S),I),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 E(t,e,n,r,i,o,s,a,l){(0,w.hZ)(t,e,r,o,n,i,s,1,1,1),(0,A.i)(C,a,l,1),(0,w.KC)(P,t);const[u,c,h]=(0,A.o)(C,C,(0,w.mg)(P,P));return(0,w.hZ)(P,u,0,0,0,c,0,0,0,h),(0,w.lw)(t,P,t)}var T=n(90629),L=n(48163),Z=n(86738),B=n(39829),j=n(98988),$=n(16930);let N=class extends v.P{projectOrWarn(t,e){if(null==t)return t;const{geometry:n,pending:r}=(0,j.projectOrLoad)(t,e);return r?null:r||n?n:(s.A.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:t,sourceSpatialReference:t.spatialReference,targetSpatialReference:e}),null)}};N=(0,r.Cg)([(0,p.$)("esri.layers.support.GeoreferenceBase")],N);const U=(0,_.vt)(),q=(0,L.vt)();let Y=class extends M.o{};(0,r.Cg)([(0,u.MZ)({type:Number,json:{write:{isRequired:!0}}})],Y.prototype,"x",void 0),(0,r.Cg)([(0,u.MZ)({type:Number,json:{write:{isRequired:!0}}})],Y.prototype,"y",void 0),Y=(0,r.Cg)([(0,p.$)("esri.layers.support.ControlPointsGeoreference.ControlPointJSONType")],Y);let F=class extends v.P{constructor(){super(...arguments),this.sourcePoint=null,this.mapPoint=null}};(0,r.Cg)([(0,u.MZ)()],F.prototype,"sourcePoint",void 0),(0,r.Cg)([(0,u.MZ)({type:Z.A})],F.prototype,"mapPoint",void 0),F=(0,r.Cg)([(0,p.$)("esri.layers.support.ControlPointsGeoreference.ControlPoint")],F);let X=class extends((0,M.T)(N)){constructor(t){super(t),this.controlPoints=null,this.height=0,this.type="control-points",this.width=0}readControlPoints(t,e){const n=$.A.fromJSON(e.spatialReference),r=(0,_.fA)(...e.coefficients,1);return t.map(t=>((0,b.hZ)(q,t.x,t.y),O(q,q,r),{sourcePoint:t,mapPoint:new Z.A({x:q[0],y:q[1],spatialReference:n})}))}writeControlPoints(t,e,n,r){if(null==this.transform){const t=new o.A("web-document-write:invalid-georeference","Invalid 'controlPoints', 'width', 'height' configuration. Make sure the parent media element is loaded i.e. the ImageElement or VideoElement set as 'MediaLayer.source'.",{layer:r?.layer,georeference:this});return void(r?.messages?r.messages.push(t):s.A.getLogger(this).error(t.name,t.message))}null!=t&&D(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))}get coords(){if(null==this.controlPoints)return null;const t=this._updateTransform(U);if(null==t||!D(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return function(t,e,n,r){const i=(0,L.fA)(0,n),o=(0,L.fA)(0,0),s=(0,L.fA)(e,0),a=(0,L.fA)(e,n);return O(i,i,t),O(o,o,t),O(s,s,t),O(a,a,t),new B.A({rings:[[i,o,s,a,i]],spatialReference:r})}(t,this.width,this.height,e)}set coords(t){if(null==this.controlPoints||!D(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,T.tc)(0,r),mapPoint:new Z.A({x:i[0],y:i[1],spatialReference:e})},u={sourcePoint:(0,T.tc)(0,0),mapPoint:new Z.A({x:o[0],y:o[1],spatialReference:e})},c={sourcePoint:(0,T.tc)(n,0),mapPoint:new Z.A({x:s[0],y:s[1],spatialReference:e})},h={sourcePoint:(0,T.tc)(n,r),mapPoint:new Z.A({x:a[0],y:a[1],spatialReference:e})};D(l)&&D(u)&&D(c)&&D(h)&&(et(U,l,u,c,h),this.controlPoints=this.controlPoints.map(({sourcePoint:t})=>((0,b.hZ)(q,t.x,t.y),O(q,q,U),{sourcePoint:t,mapPoint:new Z.A({x:q[0],y:q[1],spatialReference:e})})))}get inverseTransform(){return null==this.transform?null:(0,w.B8)((0,_.vt)(),this.transform)}get transform(){return this._updateTransform()}toMap(t){if(null==t||null==this.transform||null==this.controlPoints||!D(this.controlPoints[0]))return null;(0,b.hZ)(q,t.x,t.y);const e=this.controlPoints[0].mapPoint.spatialReference;return O(q,q,this.transform),new Z.A({x:q[0],y:q[1],spatialReference:e})}toSource(t){if(null==t||null==this.inverseTransform||null==this.controlPoints||!D(this.controlPoints[0]))return null;const e=this.controlPoints[0].mapPoint.spatialReference;return t=t.normalize(),null==(t=(0,j.projectOrLoad)(t,e).geometry)?null:((0,b.hZ)(q,t.x,t.y),O(q,q,this.inverseTransform),(0,T.tc)(q[0],q[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(!D(i))return null;const l=i.mapPoint.spatialReference,u=this._projectControlPoint(o,l),c=this._projectControlPoint(s,l),h=this._projectControlPoint(a,l);if(!u.valid||!c.valid||!h.valid)return null;if(!D(u.controlPoint))return null;null==t&&(t=(0,_.vt)());let p=null;return p=D(c.controlPoint)&&D(h.controlPoint)?et(t,i,u.controlPoint,c.controlPoint,h.controlPoint):D(c.controlPoint)?function(t,e,n,r){return tt(z,W,e),tt(k,G,n),tt(H,J,r),(0,b.Cc)(V,z,k,.5),(0,b.e$)(V,H,V,Math.PI),(0,b.Cc)(K,W,G,.5),(0,b.e$)(K,J,K,Math.PI),ot(t,z,k,H,V,W,G,J,K)}(t,i,u.controlPoint,c.controlPoint):function(t,e,n){return tt(z,W,e),tt(k,G,n),(0,b.e$)(H,k,z,Q),(0,b.e$)(V,z,k,Q),(0,b.e$)(J,G,W,-Q),(0,b.e$)(K,W,G,-Q),ot(t,z,k,H,V,W,G,J,K)}(t,i,u.controlPoint),p.every(t=>0===t)?null:p}_projectControlPoint(t,e){if(!D(t))return{valid:!0,controlPoint:t};const{sourcePoint:n,mapPoint:r}=t,{geometry:i,pending:o}=(0,j.projectOrLoad)(r,e);return o?{valid:!1,controlPoint:null}:o||i?{valid:!0,controlPoint:{sourcePoint:n,mapPoint:i}}:(s.A.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 D(t){return null!=t?.sourcePoint&&null!=t.mapPoint}(0,r.Cg)([(0,u.MZ)({type:[F],json:{write:{allowNull:!1,isRequired:!0,target:{controlPoints:{type:[Y],isRequired:!0},coefficients:{type:[Number],isRequired:!0},spatialReference:{type:$.A,isRequired:!0}}}}})],X.prototype,"controlPoints",void 0),(0,r.Cg)([(0,h.w)("controlPoints")],X.prototype,"readControlPoints",null),(0,r.Cg)([(0,d.K)("controlPoints")],X.prototype,"writeControlPoints",null),(0,r.Cg)([(0,u.MZ)({clonable:!1})],X.prototype,"coords",null),(0,r.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],X.prototype,"height",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],X.prototype,"inverseTransform",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],X.prototype,"transform",null),(0,r.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],X.prototype,"width",void 0),X=(0,r.Cg)([(0,p.$)("esri.layers.support.ControlPointsGeoreference")],X);const z=(0,L.vt)(),k=(0,L.vt)(),H=(0,L.vt)(),V=(0,L.vt)(),W=(0,L.vt)(),G=(0,L.vt)(),J=(0,L.vt)(),K=(0,L.vt)(),Q=Math.PI/2;function tt(t,e,n){(0,b.hZ)(t,n.sourcePoint.x,n.sourcePoint.y),(0,b.hZ)(e,n.mapPoint.x,n.mapPoint.y)}function et(t,e,n,r,i){return tt(z,W,e),tt(k,G,n),tt(H,J,r),tt(V,K,i),ot(t,z,k,H,V,W,G,J,K)}const nt=new Array(8).fill(0),rt=new Array(8).fill(0);function it(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 ot(t,e,n,r,i,o,s,a,l){return R(t,it(nt,e,n,r,i),it(rt,o,s,a,l))}var st=n(78888),at=n(21287),lt=n(84952),ut=n(13069),ct=n(4902),ht=n(92474),pt=n(35666),dt=n(5443),ft=n(21325);const mt=(0,L.vt)();let gt=class extends N{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 B.A({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 Z.A({x:r[0],y:r[1],spatialReference:n}),this.topLeft=new Z.A({x:i[0],y:i[1],spatialReference:n}),this.topRight=new Z.A({x:o[0],y:o[1],spatialReference:n}),this.bottomRight=new Z.A({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,j.projectOrLoad)(t,o).geometry;if(null==s)return null;(0,b.hZ)(mt,s.x,s.y);const a=R((0,_.vt)(),[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 O(mt,mt,a),(0,T.tc)(mt[0],mt[1])}};(0,r.Cg)([(0,u.MZ)({clonable:!1})],gt.prototype,"coords",null),(0,r.Cg)([(0,u.MZ)({type:Z.A})],gt.prototype,"bottomLeft",void 0),(0,r.Cg)([(0,u.MZ)({type:Z.A})],gt.prototype,"bottomRight",void 0),(0,r.Cg)([(0,u.MZ)({type:Z.A})],gt.prototype,"topLeft",void 0),(0,r.Cg)([(0,u.MZ)({type:Z.A})],gt.prototype,"topRight",void 0),gt=(0,r.Cg)([(0,p.$)("esri.layers.support.CornersGeoreference")],gt);const yt=gt;var xt=n(34727),vt=n(34304);let Mt=class extends N{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=wt(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 B.A({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,xt.KJ)(Math.PI/2-Math.atan2(r[1]-n[1],r[0]-n[0])),l=wt(o,s,-a),[u,c]=l(n[0],n[1]),[h,p]=l(i[0],i[1]);this.extent=new dt.A({xmin:u,ymin:c,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 u=(0,j.projectOrLoad)(t,l).geometry;if(null==u)return null;let c=u.x,h=u.y;return n&&([c,h]=wt(a.x,a.y,-n)(c,h)),(0,T.tc)((0,xt.hs)(c,r,o,0,1),(0,xt.hs)(h,s,i,0,1))}};function wt(t,e,n){const r=(0,vt.DF)(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]}function _t(t,e){const n=(0,pt.aB)(e);return function(t){return"media"===t?.type}(t)&&!!t.portalItem&&null!=n&&n>3}function bt(t,e,n){return{enabled:!_t(n?.layer,n?.origin),ignoreOrigin:!0}}(0,r.Cg)([(0,u.MZ)({clonable:!1})],Mt.prototype,"coords",null),(0,r.Cg)([(0,u.MZ)({type:dt.A})],Mt.prototype,"extent",void 0),(0,r.Cg)([(0,u.MZ)({type:Number})],Mt.prototype,"rotation",void 0),Mt=(0,r.Cg)([(0,p.$)("esri.layers.support.ExtentAndRotationGeoreference")],Mt);const At={json:{name:"url",type:String,write:{overridePolicy:bt}}},Ct={readOnly:!0,json:{read:!1,write:{target:"mediaType",overridePolicy:bt}}},Pt={types:{key:"type",base:N,typeMap:{"control-points":X,corners:yt,"extent-and-rotation":Mt}},json:{types:{key:"type",base:N,typeMap:{"control-points":X}},write:{overridePolicy:()=>({enabled:!0,ignoreOrigin:!0})}}};let St=class extends((0,ct.PH)((0,a.P)(ht.x_))){constructor(t){super(t),this.georeference=null,this.opacity=1}readGeoreference(t){return X.fromJSON(t)}writeGeoreference(t,e,n,r){const i=r?.resources?.pendingOperations,a=()=>{const i=function(t,e,n){if(!t||"control-points"===t.type)return t;const{coords:r}=t;if(5!==r?.rings[0]?.length)return null;const[i,o,s,a]=r.rings[0],{spatialReference:l}=r;return new X({controlPoints:[{mapPoint:new Z.A({x:i[0],y:i[1],spatialReference:l}),sourcePoint:(0,T.tc)(0,n)},{mapPoint:new Z.A({x:o[0],y:o[1],spatialReference:l}),sourcePoint:(0,T.tc)(0,0)},{mapPoint:new Z.A({x:s[0],y:s[1],spatialReference:l}),sourcePoint:(0,T.tc)(e,0)},{mapPoint:new Z.A({x:a[0],y:a[1],spatialReference:l}),sourcePoint:(0,T.tc)(e,n)}],width:e,height:n})}(this.georeference,this.contentWidth,this.contentHeight);if(i){if("control-points"!==t.type&&s.A.getLogger(this).warn(`only georeference of type 'control-points' may be persisted. The georeference of type '${t.type}' has been automatically converted.`),4!==i.controlPoints?.length&&r?.messages)return void r.messages.push(new o.A("property:unsupported","only 'control-points' georeference with 4 control points may be persisted."));e[n]=i.write({},r)}};if("control-points"!==t.type&&!this.loaded&&i)return e[n]={},void i.push(this.load().then(a));a()}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.Cg)([(0,u.MZ)(Pt)],St.prototype,"georeference",void 0),(0,r.Cg)([(0,h.w)("georeference")],St.prototype,"readGeoreference",null),(0,r.Cg)([(0,d.K)("georeference")],St.prototype,"writeGeoreference",null),(0,r.Cg)([(0,u.MZ)({json:{read:!1,write:!1}})],St.prototype,"opacity",void 0),St=(0,r.Cg)([(0,p.$)("esri.layers.support.MediaElementBase")],St);var It=n(85648);const Ot=Symbol("ImageElementInstance"),Rt=Symbol("VideoElementInstance");function Et(t){return function(t){return null!=t&&"object"==typeof t&&Ot in t}(t)||function(t){return null!=t&&"object"==typeof t&&Rt in t}(t)}var Tt,Lt=n(97159);let Zt=class extends St{static{Tt=Ot}constructor(t){super(t),this.animationOptions=null,this.content=null,this.image=null,this.type="image",this[Tt]=!0,this.image=null}load(){const t=this.image;if("string"==typeof t){const e=(0,at.M5)(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.A("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,Lt.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,Lt.t)(t,r)));const s=function(t){return"string"==typeof t&&!(0,lt.DB)(t)&&!(0,lt.w8)(t)}(t)?t:null;if(s){if(null==(0,Lt.i)(s))return void(e[n]=s);const t=(0,Lt.t)(s,{...r,verifyItemRelativeUrls:r?.verifyItemRelativeUrls?{writtenUrls:r.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1);if(i&&t&&!(0,lt.oP)(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,lt.DB)(t)?(0,lt.N9)(t):(await(0,st.A)(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,ut.lk)(),r=`${(0,lt.fj)("media",n)}.${(0,It.n)({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}})}))}};(0,r.Cg)([(0,u.MZ)()],Zt.prototype,"animationOptions",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Zt.prototype,"content",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Zt.prototype,"contentWidth",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Zt.prototype,"contentHeight",null),(0,r.Cg)([(0,u.MZ)(At)],Zt.prototype,"image",void 0),(0,r.Cg)([(0,h.w)("image",["url"])],Zt.prototype,"readImage",null),(0,r.Cg)([(0,d.K)("image")],Zt.prototype,"writeImage",null),(0,r.Cg)([(0,u.MZ)(Ct)],Zt.prototype,"type",void 0),Zt=(0,r.Cg)([(0,p.$)("esri.layers.support.ImageElement")],Zt);var Bt=n(62885),jt=n(65529),$t=n(61893),Nt=n(36708),Ut=n(19419),qt=n(12176),Yt=n(6518),Ft=n(65008),Xt=n(89056);let Dt=class extends Ft.A{constructor(t){super(t)}get bounds(){const t=this.coords;return null==t?.extent?null:(0,Ut.VY)(t.extent)}get coords(){const t=this.element.georeference?.coords;return(0,j.projectOrLoad)(t,this.spatialReference).geometry}get normalizedCoords(){return B.A.fromJSON((0,Xt.jZ)(this.coords))}get normalizedBounds(){const t=null!=this.normalizedCoords?this.normalizedCoords.extent:null;return null!=t?(0,Ut.VY)(t):null}};(0,r.Cg)([(0,u.MZ)()],Dt.prototype,"spatialReference",void 0),(0,r.Cg)([(0,u.MZ)()],Dt.prototype,"element",void 0),(0,r.Cg)([(0,u.MZ)()],Dt.prototype,"bounds",null),(0,r.Cg)([(0,u.MZ)()],Dt.prototype,"coords",null),(0,r.Cg)([(0,u.MZ)()],Dt.prototype,"normalizedCoords",null),(0,r.Cg)([(0,u.MZ)()],Dt.prototype,"normalizedBounds",null),Dt=(0,r.Cg)([(0,p.$)("esri.layers.support.MediaElementView")],Dt);var zt,kt=n(16494),Ht=n(38969);const Vt=Symbol("canplay");let Wt=class extends St{static{zt=Rt}constructor(t){super(t),this.autoplay=!0,this.content=null,this.type="video",this[zt]=!0}load(){const t=this.video;return"string"==typeof t?this.addResolvingPromise(this._preProcessVideoUrl(t).then(async t=>{const e=document.createElement("video");return e.src=kt.W5.sanitizeUrl((0,lt.s2)(t)),e.crossOrigin="anonymous",e.autoplay=this.autoplay,e.muted=!0,e.loop=!0,e.playsInline=!0,this._loadVideo(e).then(()=>{this._set("content",e)})})):t instanceof HTMLVideoElement?this.addResolvingPromise(this._loadVideo(t).then(()=>{this._set("content",t)})):this.addResolvingPromise(Promise.reject(new o.A("video-element:invalid-video-type","Invalid video type",{video:t}))),Promise.resolve(this)}get contentWidth(){return this.content?.videoWidth??0}get contentHeight(){return this.content?.videoHeight??0}get currentTime(){return this.content?.currentTime}set currentTime(t){if(!this.content)return;const e=(0,xt.qE)(t,0,this.content.duration);"fastSeek"in this.content?this.content.fastSeek(e):this.content.currentTime=e,this.content.play().then(()=>{this.content?.pause()}).catch(()=>{})}get duration(){return this.content?.duration}set video(t){"not-loaded"===this.loadStatus?this._set("video",t):s.A.getLogger(this).error("#video","video cannot be changed after the element is loaded.")}writeVideo(t,e,n,r){if(!t)return void(r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source is missing")));const i=function(t){return"string"==typeof t&&!(0,lt.DB)(t)&&!(0,lt.w8)(t)}(t)?t:null;if(!i)return void(r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source must be an absolute url")));!(0,lt.oP)(i)&&r?.blockedRelativeUrls&&r.blockedRelativeUrls.push(i);const s=(0,lt.s2)(i);(0,Lt.i)(s)?r?.messages&&r.messages.push(new o.A("video-element:unsupported-video","video source cannot be an item resource")):e[n]=s}async _preProcessVideoUrl(t){if((0,lt.zs)(t))return(0,lt.yM)(t);try{return await(0,st.A)(t,{method:"head"}),t}catch{try{return(0,lt.yM)(t,!0)}catch{return t}}}async _loadVideo(t){"anonymous"!==t.crossOrigin&&(t.crossOrigin="anonymous",(0,lt.w8)(t.src)||(t.src=t.src));try{await(0,Ht.i)(t,t=>this.addHandles(t,Vt)),this.autoplay&&await t.play().catch(t=>{throw console.error(t),t})}finally{this.removeHandles(Vt)}}};(0,r.Cg)([(0,u.MZ)()],Wt.prototype,"autoplay",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Wt.prototype,"content",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Wt.prototype,"contentWidth",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Wt.prototype,"contentHeight",null),(0,r.Cg)([(0,u.MZ)({type:Number})],Wt.prototype,"currentTime",null),(0,r.Cg)([(0,u.MZ)({type:Number})],Wt.prototype,"duration",null),(0,r.Cg)([(0,u.MZ)(At)],Wt.prototype,"video",null),(0,r.Cg)([(0,d.K)("video")],Wt.prototype,"writeVideo",null),(0,r.Cg)([(0,u.MZ)(Ct)],Wt.prototype,"type",void 0),Wt=(0,r.Cg)([(0,p.$)("esri.layers.support.VideoElement")],Wt);const Gt={key:"type",defaultKeyValue:"image",base:St,typeMap:{image:Zt,video:Wt}},Jt=i.A.ofType(Gt);let Kt=class extends((0,ht.WV)((0,$t.g)(jt.nJ))){constructor(t){super(t),this._index=new Yt.F,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 Dt({spatialReference:e,element:n});this._elementViewsMap.set(n,t);const r=(0,Nt.wB)(()=>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 Jt}async load(t){if((0,l.Te)(t),!this.spatialReference){const t=this.elements.find(t=>null!=t.georeference?.coords);this._set("spatialReference",t?t.georeference.coords.spatialReference:$.A.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,Bt.V)(t,this._get("elements"),Jt))}get fullExtent(){if("not-loaded"===this.loadStatus)return null;const t=this._index.fullBounds;return null==t?null:new dt.A({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.A.getLogger(this).error("#spatialReference","spatialReference cannot be changed after the source is loaded.")}async queryElements(t,e){await this.load(),await(0,j.initializeProjection)(t.spatialReference,this.spatialReference,null,e);const n=(0,ft.aI)(t.spatialReference,this.spatialReference)?t:(0,j.project)(t,this.spatialReference);if(!n)return[];const r=n.normalize(),i=[];for(const t of r)this._index.forEachInBounds((0,Ut.VY)(t),({normalizedCoords:e,element:n})=>{null!=e&&(0,qt.fA)(t,e)&&i.push(n)});return i.sort((t,e)=>this._elementsIndexes.get(t)-this._elementsIndexes.get(e)),i}hasElement(t){return this.elements.includes(t)}_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.Cg)([(0,u.MZ)()],Kt.prototype,"elements",null),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Kt.prototype,"fullExtent",null),(0,r.Cg)([(0,u.MZ)()],Kt.prototype,"spatialReference",null),Kt=(0,r.Cg)([(0,p.$)("esri.layers.support.LocalMediaElementSource")],Kt);let Qt=class extends((0,m.dM)((0,x.j)((0,g.q)((0,y.A)((0,a.P)(f.A)))))){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.sg)(async(t,e,r)=>{const{save:i,saveAs:o}=await n.e(3561).then(n.bind(n,63561));switch(t){case 0:return i(this,e);case 1:return o(this,r,e)}}),this.source=new Kt}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.A("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"),this.setAtOrigin("source",n,"web-scene"),e=n);const r=Et(e)?new Kt({elements:new i.A([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.effectiveSource!==this.source&&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}get loaded(){return super.loaded}get source(){return this._get("source")}set source(t){"loaded"!==this.loadStatus&&"failed"!==this.loadStatus?this._set("source",t):s.A.getLogger(this).error("#source","source cannot be changed after the layer is loaded.")}castSource(t){return t?Array.isArray(t)?new Kt({elements:new i.A(t)}):t instanceof i.A?new Kt({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){if(t&&t instanceof Kt){const e=t.elements.length;if(1!==e)return void(r?.messages&&r.messages.push(new o.A("media-layer:unsupported-source",`local media element source can only be persisted if it contains exactly one ImageElement, but it has ${e}.`)));t=t.elements.at(0)}Et(t)?t.write(e,r):r?.messages&&(t?r.messages.push(new o.A("media-layer:unsupported-source","only media elements of type 'ImageElement' or 'VideoElement' can be persisted")):r.messages.push(new o.A("media-layer:unsupported-source","the media layer is missing a source")))}async save(t){return this._debouncedSaveOperations(0,t)}async saveAs(t,e){return this._debouncedSaveOperations(1,e,t)}_createSource(t){if("mediaType"in t)switch(t.mediaType){case"image":return new Zt;case"video":return new Wt}return null}_getSourceOverride(t,e){if(Et(t)&&3===this.originIdOf("source")&&e&&(5===this.originIdOf("georeference")||4===this.originIdOf("georeference"))){const n=t.toJSON(),r=this._createSource(n);return r.read({...n},{origin:"portal-item"}),r.read({georeference:e},{origin:"web-map"}),r.read({georeference:e},{origin:"web-scene"}),r}return null}};(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Qt.prototype,"effectiveSource",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{"web-document":{read:!0}}}})],Qt.prototype,"georeference",void 0),(0,r.Cg)([(0,h.w)("web-document","georeference")],Qt.prototype,"readGeoreference",null),(0,r.Cg)([(0,u.MZ)({type:String})],Qt.prototype,"copyright",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Qt.prototype,"fullExtent",null),(0,r.Cg)([(0,u.MZ)({type:["MediaLayer"]})],Qt.prototype,"operationalLayerType",void 0),(0,r.Cg)([(0,u.MZ)({type:["show","hide"]})],Qt.prototype,"listMode",void 0),(0,r.Cg)([(0,u.MZ)({nonNullable:!0,json:{write:{enabled:!0,allowNull:!1,target:{url:{type:String},mediaType:{type:["image","video"]},georeference:{type:X}},overridePolicy(t,e,n){return{enabled:!0,allowNull:!1,ignoreOrigin:_t(this,n?.origin)&&Et(t)&&!!t.georeference&&t.originIdOf("georeference")>3}}}}})],Qt.prototype,"source",null),(0,r.Cg)([(0,c.w)("source")],Qt.prototype,"castSource",null),(0,r.Cg)([(0,h.w)("source",["url"])],Qt.prototype,"readSource",null),(0,r.Cg)([(0,d.K)("source")],Qt.prototype,"writeSource",null),(0,r.Cg)([(0,u.MZ)()],Qt.prototype,"spatialReference",void 0),(0,r.Cg)([(0,u.MZ)({readOnly:!0})],Qt.prototype,"type",void 0),Qt=(0,r.Cg)([(0,p.$)("esri.layers.MediaLayer")],Qt);const te=Qt},21287:(t,e,n)=>{n.d(e,{M5:()=>h,eV:()=>c});var r=n(78888),i=n(49186),o=n(74887),s=n(84952),a=n(26306);let l=null,u=!0;function c(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(t,e,n)}catch(t){u=!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:u}=await async function(t,e){const n=(0,s.r$)(t);if(n?.isBase64)return{arrayBuffer:(0,a.M)(n.data),mediaType:n.mediaType};const i=await(0,r.A)(t,{responseType:"array-buffer",...e});return{arrayBuffer:i.data,mediaType:i.getHeader?.("Content-Type")??""}}(t,e),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:t,parseGif:r}=await n.e(820).then(n.bind(n,10820));if(t(l))return r(l,e)}if(c){const{isAnimatedPNG:t,parseApng:r}=await n.e(2390).then(n.bind(n,22390));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.A)(n,{...e,responseType:"image"});return t}catch(t){if(!(0,o.zf)(t))throw new i.A("invalid-image",`Could not fetch requested image at ${n}`);throw t}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),e)}},25036:(t,e,n)=>{n.d(e,{j:()=>s});var r=n(31635),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608));const s=t=>{const e=t;let n=class extends e{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.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"minScale",void 0),(0,r.Cg)([(0,i.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],n.prototype,"maxScale",void 0),(0,r.Cg)([(0,i.MZ)({readOnly:!0})],n.prototype,"effectiveScaleRange",null),n=(0,r.Cg)([(0,o.$)("esri.layers.mixins.ScaleRangeLayer")],n),n}},29242:(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,{fA:()=>i,vt:()=>r,zK:()=>o});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,fromValues:i},Symbol.toStringTag,{value:"Module"}))},37585:(t,e,n)=>{n.d(e,{C:()=>i,Cc:()=>g,Io:()=>h,S8:()=>m,WQ:()=>s,aI:()=>M,e$:()=>x,hZ:()=>o,hs:()=>c,jb:()=>_,l0:()=>y,t2:()=>v});var r=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t,e,n){return t[0]=e,t[1]=n,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,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function c(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function h(t,e){const n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}function p(t,e){const n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function d(t){const e=t[0],n=t[1];return Math.sqrt(e*e+n*n)}function f(t){const e=t[0],n=t[1];return e*e+n*n}function m(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}function g(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 y(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 x(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}function v(t,e){return t[0]===e[0]&&t[1]===e[1]}function M(t,e){const n=t[0],i=t[1],o=e[0],s=e[1],a=(0,r.FD)();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))}const w=d,_=a,b=l,A=u,C=h,P=p,S=f;Object.freeze(Object.defineProperty({__proto__:null,add:s,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:i,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:C,distance:h,div:A,divide:u,dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},equals:M,exactEquals:v,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:w,length:d,lerp:g,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:b,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:m,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=1){const n=2*(0,r.Ov)()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},rotate:x,round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},scale:c,scaleAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},set:o,sqrDist:P,sqrLen:S,squaredDistance:p,squaredLength:f,str:function(t){return"vec2("+t[0]+", "+t[1]+")"},sub:_,subtract:a,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:y,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"}))},38954:(t,e,n)=>{n.d(e,{A:()=>f,B:()=>d,C:()=>c,D:()=>h,E:()=>L,F:()=>$,H:()=>U,a:()=>Z,b:()=>y,c:()=>s,d:()=>u,e:()=>A,f:()=>l,g:()=>g,h:()=>C,i:()=>a,j:()=>x,k:()=>M,l:()=>o,m:()=>P,n:()=>b,o:()=>I,q:()=>T,r:()=>_,s:()=>v,t:()=>S,u:()=>w,v:()=>O,w:()=>p,x:()=>N,y:()=>q,z:()=>m});var r=n(51850),i=n(34304);function o(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function c(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function d(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function f(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function g(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y(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}function x(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)}function v(t,e){const n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function M(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function w(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function _(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function b(t,e){const n=e[0],r=e[1],i=e[2];let o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2];return t[0]=i*l-o*a,t[1]=o*s-r*l,t[2]=r*a-i*s,t}function P(t,e,n,r){const i=e[0],o=e[1],s=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=s+r*(n[2]-s),t}function S(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12],t[1]=n[1]*r+n[5]*i+n[9]*o+n[13],t[2]=n[2]*r+n[6]*i+n[10]*o+n[14],t}function I(t,e,n){const r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function O(t,e,n){const r=n[0],i=n[1],o=n[2],s=n[3],a=e[0],l=e[1],u=e[2],c=i*u-o*l,h=o*a-r*u,p=r*l-i*a,d=i*p-o*h,f=o*c-r*p,m=r*h-i*c,g=2*s;return t[0]=a+c*g+2*d,t[1]=l+h*g+2*f,t[2]=u+p*g+2*m,t}const R=(0,r.vt)(),E=(0,r.vt)();function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e,n){const r=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2];let s=r*r+i*i+o*o;return s>0?(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=o*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const Z=u,B=c,j=h,$=x,N=v,U=o,q=M;Object.freeze(Object.defineProperty({__proto__:null,abs:p,add:l,angle:function(t,e){b(R,t),b(E,e);const n=A(R,E);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,i,o){const s=1-o,a=s*s,l=o*o,u=a*s,c=3*o*a,h=3*l*s,p=l*o;return t[0]=e[0]*u+n[0]*c+r[0]*h+i[0]*p,t[1]=e[1]*u+n[1]*c+r[1]*h+i[1]*p,t[2]=e[2]*u+n[2]*c+r[2]*h+i[2]*p,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:s,cross:C,crossAndNormalize:function(t,e,n){const r=e[0],i=e[1],o=e[2],s=n[0],a=n[1],l=n[2],u=i*l-o*a,c=o*s-r*l,h=r*a-i*s,p=Math.sqrt(u*u+c*c+h*h);return t[0]=u/p,t[1]=c/p,t[2]=h/p,t},direction:L,dist:$,distance:x,div:j,divide:h,dot:A,equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],s=e[0],a=e[1],l=e[2],u=(0,i.FD)();return Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-a)<=u*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(o-l)<=u*Math.max(1,Math.abs(o),Math.abs(l))},exactEquals:T,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,i,o){const s=o*o,a=s*(2*o-3)+1,l=s*(o-2)+o,u=s*(o-1),c=s*(3-2*o);return t[0]=e[0]*a+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*a+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*a+n[2]*l+r[2]*u+i[2]*c,t},inverse:_,len:U,length:o,lerp:P,max:m,min:f,mul:B,multiply:c,negate:w,normalize:b,random:function(t,e=1){const n=i.Ov,r=2*n()*Math.PI,o=2*n()-1,s=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(r)*s,t[1]=Math.sin(r)*s,t[2]=o*e,t},rotateX:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateY:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},rotateZ:function(t,e,n,r){const i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:g,scaleAndAdd:y,set:a,sign:d,sqrDist:N,sqrLen:q,squaredDistance:v,squaredLength:M,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:Z,subtract:u,transformMat3:I,transformMat4:S,transformQuat:O},Symbol.toStringTag,{value:"Module"}))},38969:(t,e,n)=>{n.d(e,{i:()=>i});var r=n(37955);function i(t,e){return new Promise((n,i)=>{t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?n():(e((0,r.Oo)(t,"canplay",n)),e((0,r.Oo)(t,"error",i)))})}},48163:(t,e,n)=>{function r(){return[0,0]}function i(t){return[t[0],t[1]]}function o(t,e){return[t,e]}function s(){return o(1,1)}function a(){return o(1,0)}function l(){return o(0,1)}n.d(e,{Un:()=>u,fA:()=>o,o8:()=>i,vt:()=>r});const u=s(),c=a(),h=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:c,UNIT_Y:h,ZEROS:[0,0],clone:i,create:r,freeze:function(t,e){return[t,e]},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:o,ones:s,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},62885:(t,e,n)=>{n.d(e,{H:()=>o,V:()=>i});var r=n(7762);function i(t,e,n=r.A){return e||(e=new n),e===t||e.destroyed||(e.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?e.addMany(t):t&&e.add(t)),e;var i}function o(t){return t}},63074:(t,e,n)=>{n.d(e,{LF:()=>c,dM:()=>h,sU:()=>l});var r=n(31635),i=n(10107),o=(n(44208),n(53966),n(87811),n(40608)),s=n(89317),a=n(76369);const l={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:{layerContainerTypes:s.K}},"portal-item":{read:!0,write:{layerContainerTypes:s.K}}}}},u={read:{reader:a.LF},write:{allowNull:!0,writer:a.M9,layerContainerTypes:s.K}},c={json:{read:!1,write:!1,origins:{"web-map":u,"portal-item":u}}},h=t=>{const e=t;let n=class extends e{constructor(){super(...arguments),this.blendMode="normal",this.effect=null}};return(0,r.Cg)([(0,i.MZ)(l)],n.prototype,"blendMode",void 0),(0,r.Cg)([(0,i.MZ)(c)],n.prototype,"effect",void 0),n=(0,r.Cg)([(0,o.$)("esri.layers.mixins.BlendLayer")],n),n}},64272:(t,e,n)=>{n.d(e,{T:()=>p});var r,i=n(31635),o=n(25482),s=n(88930),a=n(10107),l=(n(44208),n(53966),n(87811),n(36005)),u=n(40608),c=n(43937),h=n(98623);let p=class extends o.o{static{r=this}static get allTime(){return d}static get empty(){return f}static fromArray(t){return new r({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}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.qU){if(this.isEmpty||this.isAllTime)return this.clone();let n=this.start;n&&(n=(0,s.lL)(n,t,e));let i=this.end;if(i){const n=(0,s.lL)(i,t,e);i=i.getTime()===n.getTime()?n:(0,s.S1)(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.qU){if(this.isEmpty||this.isAllTime)return this.clone();const i=new r,{start:o,end:a}=this;return null!=o&&(i.start=(0,s.S1)(o,t,e,n)),null!=a&&(i.end=(0,s.S1)(a,t,e,n)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}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.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i.Cg)([(0,l.w)("end")],p.prototype,"readEnd",null),(0,i.Cg)([(0,c.K)("end")],p.prototype,"writeEnd",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i.Cg)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i.Cg)([(0,l.w)("start")],p.prototype,"readStart",null),(0,i.Cg)([(0,c.K)("start")],p.prototype,"writeStart",null),p=r=(0,i.Cg)([(0,u.$)("esri.time.TimeExtent")],p);const d=new p,f=new p({start:void 0,end:void 0})},75503:(t,e,n)=>{n.d(e,{EC:()=>C,wq:()=>a});var r=n(4576),i=n(21818),o=(n(44208),n(15142)),s=n(11006);class a{constructor(t=9,e){this._compareMinX=p,this._compareMinY=d,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(),w.prune(),_.prune(),b.prune(),A.prune()}all(t){l(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(v(t,n))for(w.clear();n;){for(let i=0,o=n.children.length;i<o;i++){const o=n.children[i],s=n.leaf?r(o):o;v(t,s)&&(n.leaf?e(o):x(t,s)?l(o,e):w.push(o))}n=w.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!v(t,e))return!1;for(w.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(v(t,o)){if(e.leaf||x(t,o))return!0;w.push(i)}}e=w.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-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 S([]),this}remove(t){if(!t)return this;let e,n=this._data,o=null,s=0,a=!1;const l=this._toBBox(t);for(b.clear(),A.clear();n||b.length>0;){if(n||(n=b.pop(),o=b.data[b.length-1],s=A.pop()??0,a=!0),n.leaf&&(e=(0,r.qh)(n.children,(0,i.zI)(t),n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),b.push(n),this._condense(b),this;a||n.leaf||!x(n,l)?o?(s++,n=o.children[s],a=!1):n=null:(b.push(n),A.push(s),s=0,o=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_build(t,e,n,r){const i=n-e+1;let o=this._maxEntries;if(i<=o){const r=new S(t.slice(e,n+1));return u(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(o)),o=Math.ceil(i/o**(r-1)));const s=new I([]);s.height=r;const a=Math.ceil(i/o),l=a*Math.ceil(Math.sqrt(o));M(t,e,n,l,this._compareMinX);for(let i=e;i<=n;i+=l){const e=Math.min(i+l-1,n);M(t,i,e,a,this._compareMinY);for(let n=i;n<=e;n+=a){const i=Math.min(n+a-1,e);s.children.push(this._build(t,n,i,r-1))}}return u(s,this._toBBox),s}_insert(t,e,n){const r=this._toBBox,i=n?t:r(t);b.clear();const o=function(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=f(s),l=g(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}(i,this._data,e,b);for(o.children.push(t),h(o,i);e>=0&&b.data[e].children.length>this._maxEntries;)this._split(b,e),e--;!function(t,e,n){for(let r=n;r>=0;r--)h(e.data[r],t)}(i,b,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;const s=n.children.splice(o,n.children.length-o),a=n.leaf?new S(s):new I(s);a.height=n.height,u(n,this._toBBox),u(a,this._toBBox),e?t.data[e-1].children.push(a):this._splitRoot(n,a)}_splitRoot(t,e){this._data=new I([t,e]),this._data.height=t.height+1,u(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=c(t,0,s,this._toBBox),a=c(t,s,n,this._toBBox),l=y(e,a),u=f(e)+f(a);l<r?(r=l,o=s,i=u<i?u:i):l===r&&u<i&&(i=u,o=s)}return o}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:p,i=t.leaf?this._compareMinY:d;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=c(t,0,e,i),s=c(t,n-e,n,i);let a=m(o)+m(s);for(let r=e;r<n-e;r++){const e=t.children[r];h(o,t.leaf?i(e):e),a+=m(o)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];h(s,t.leaf?i(e):e),a+=m(s)}return a}_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.qh)(o,n,o.length,i.indexHint),1)}else this.clear();else u(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 l(t,e){let n=t;for(_.clear();n;){if(!0===n.leaf)for(const t of n.children)e((0,i.zI)(t));else _.pushArray(n.children);n=_.pop()??null}}function u(t,e){c(t,0,t.children.length,e,t)}function c(t,e,n,r,i){i||(i=new S([])),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],h(i,t.leaf?r(o):o);return i}function h(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 p(t,e){return t.minX-e.minX}function d(t,e){return t.minY-e.minY}function f(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function m(t){return t.maxX-t.minX+(t.maxY-t.minY)}function g(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 y(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 x(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function v(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function M(t,e,n,r,i){const o=[e,n];for(;o.length;){const e=o.pop(),n=o.pop();if(e-n<=r)continue;const a=n+Math.ceil((e-n)/r/2)*r;(0,s.q)(t,a,n,e,i),o.push(n,a,a,e)}}const w=new o.A,_=new o.A,b=new o.A,A=new o.A({deallocator:void 0});class C{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class P extends C{constructor(){super(...arguments),this.height=1,this.indexHint=new r.vW}}class S extends P{constructor(t){super(),this.children=t,this.leaf=!0}}class I extends P{constructor(t){super(),this.children=t,this.leaf=!1}}},76369:(t,e,n)=>{n.d(e,{LF:()=>_,M9:()=>b});var r=n(49186),i=n(93637),o=n(40876),s=n(59247),a=n(27865);class l extends SyntaxError{constructor(t,e,n,r){super(t),this.expected=e,this.found=n,this.location=r,this.name="SyntaxError"}format(t){let e="Error: "+this.message;if(this.location){let n=null;const r=t.find(t=>t.source===this.location.source);r&&(n=r.text.split(/\r\n|\n|\r/g));const i=this.location.start,o=this.location.source&&"function"==typeof this.location.source.offset?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(n){const t=this.location.end,r="".padEnd(o.line.toString().length," "),a=n[i.line-1],l=(i.line===t.line?t.column:a.length+1)-i.column||1;e+="\n --\x3e "+s+"\n"+r+" |\n"+o.line+" | "+a+"\n"+r+" | "+"".padEnd(i.column-1," ")+"".padEnd(l,"^")}else e+="\n at "+s}return e}static buildMessage(t,e){function n(t){return t.codePointAt(0).toString(16).toUpperCase()}const r=Object.prototype.hasOwnProperty.call(RegExp.prototype,"unicode")?new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]","gu"):null;function i(t){return r?t.replace(r,t=>"\\u{"+n(t)+"}"):t}function o(t){return i(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,t=>"\\x0"+n(t)).replace(/[\x10-\x1F\x7F-\x9F]/g,t=>"\\x"+n(t)))}function s(t){return i(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,t=>"\\x0"+n(t)).replace(/[\x10-\x1F\x7F-\x9F]/g,t=>"\\x"+n(t)))}const a={literal:t=>'"'+o(t.text)+'"',class(t){const e=t.parts.map(t=>Array.isArray(t)?s(t[0])+"-"+s(t[1]):s(t));return"["+(t.inverted?"^":"")+e.join("")+"]"+(t.unicode?"u":"")},any:()=>"any character",end:()=>"end of input",other:t=>t.description};function l(t){return a[t.type](t)}return"Expected "+function(t){const e=t.map(l);if(e.sort(),e.length>0){let t=1;for(let n=1;n<e.length;n++)e[n-1]!==e[n]&&(e[t]=e[n],t++);e.length=t}switch(e.length){case 1:return e[0];case 2:return e[0]+" or "+e[1];default:return e.slice(0,-1).join(", ")+", or "+e[e.length-1]}}(t)+" but "+function(t){return t?'"'+o(t)+'"':"end of input"}(e)+" found."}}function u(t){if(!t||0===t.length)return null;if("string"==typeof t){const e=c(t);return e&&0!==e.length?e:null}const e=t.map(t=>{if(!Number.isFinite(t.scale)||t.scale<=0)throw new r.A("effect:invalid-scale","scale must be finite and greater than 0",{stop:t});return{scale:t.scale,effects:c(t.value)}});e.sort((t,e)=>e.effects.length-t.effects.length);for(let t=0;t<e.length-1;t++){if(!(0,a.mj)(e[t].effects,e[t+1].effects))throw new r.A("effect:interpolation-impossible","Cannot interpolate by scale between 2 lists of mixed effects",{a:e[t].effects,b:e[t+1].effects});(0,a.O9)(e[t].effects,e[t+1].effects)}return e.sort((t,e)=>e.scale-t.scale),e}function c(t){let e;if(!t)return[];try{e=function(t,e){const n={},r=(e=void 0!==e?e:{}).grammarSource,i={start:wt};let o=wt;const s="none",a=")",u=",",c="(",h="%",p="px",d="cm",f="mm",m="in",g="pt",y="pc",x="deg",v="rad",M="grad",w="turn",_="#",b=".",A="e",C=/^[ \t\n\r]/,P=/^[a-z\-]/,S=/^[0-9a-fA-F]/,I=/^[+\-]/,O=/^[0-9]/,R=yt("none"),E=mt("none",!1),T=mt(")",!1),L=mt(",",!1),Z=gt([" ","\t","\n","\r"],!1,!1,!1),B=yt("function"),j=mt("(",!1),$=yt("identifier"),N=gt([["a","z"],"-"],!1,!1,!1),U=yt("percentage"),q=mt("%",!1),Y=yt("length"),F=mt("px",!1),X=mt("cm",!1),D=mt("mm",!1),z=mt("in",!1),k=mt("pt",!1),H=mt("pc",!1),V=yt("angle"),W=mt("deg",!1),G=mt("rad",!1),J=mt("grad",!1),K=mt("turn",!1),Q=yt("number"),tt=yt("color"),et=mt("#",!1),nt=gt([["0","9"],["a","f"],["A","F"]],!1,!1,!1),rt=gt(["+","-"],!1,!1,!1),it=gt([["0","9"]],!1,!1,!1),ot=mt(".",!1),st=mt("e",!1);let at=0|e.peg$currPos,lt=at;const ut=[{line:1,column:1}];let ct,ht=at,pt=e.peg$maxFailExpected||[],dt=0|e.peg$silentFails;if(e.startRule){if(!(e.startRule in i))throw new Error("Can't start parsing from rule \""+e.startRule+'".');o=i[e.startRule]}function ft(){return t.substring(lt,at)}function mt(t,e){return{type:"literal",text:t,ignoreCase:e}}function gt(t,e,n,r){return{type:"class",parts:t,inverted:e,ignoreCase:n,unicode:r}}function yt(t){return{type:"other",description:t}}function xt(e){let n,r=ut[e];if(r)return r;if(e>=ut.length)n=ut.length-1;else for(n=e;!ut[--n];);for(r=ut[n],r={line:r.line,column:r.column};n<e;)10===t.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return ut[e]=r,r}function vt(t,e,n){const i=xt(t),o=xt(e);return{source:r,start:{offset:t,line:i.line,column:i.column},end:{offset:e,line:o.line,column:o.column}}}function Mt(t){at<ht||(at>ht&&(ht=at,pt=[]),pt.push(t))}function wt(){let t;return t=_t(),t===n&&(t=function(){let t,e;if(t=[],e=bt(),e!==n)for(;e!==n;)t.push(e),e=bt();else t=n;return t}()),t}function _t(){let e,r;return dt++,e=at,Ct(),t.substr(at,4)===s?(r=s,at+=4):(r=n,0===dt&&Mt(E)),r!==n?(Ct(),lt=e,e=[]):(at=e,e=n),dt--,e===n&&0===dt&&Mt(R),e}function bt(){let e,r,i,o;return e=at,Ct(),r=function(){let e,r,i;return dt++,e=at,r=Pt(),r!==n?(40===t.charCodeAt(at)?(i=c,at++):(i=n,0===dt&&Mt(j)),i!==n?(lt=e,e=r):(at=e,e=n)):(at=e,e=n),dt--,e===n&&(r=n,0===dt&&Mt(B)),e}(),r!==n?(Ct(),i=function(){let e,r,i,o,s,a,l,c;if(e=at,r=At(),r!==n){for(i=[],o=at,s=Ct(),44===t.charCodeAt(at)?(a=u,at++):(a=n,0===dt&&Mt(L)),a===n&&(a=null),l=Ct(),c=At(),c!==n?(s=[s,a,l,c],o=s):(at=o,o=n);o!==n;)i.push(o),o=at,s=Ct(),44===t.charCodeAt(at)?(a=u,at++):(a=n,0===dt&&Mt(L)),a===n&&(a=null),l=Ct(),c=At(),c!==n?(s=[s,a,l,c],o=s):(at=o,o=n);lt=e,e=function(t,e){return e.length>0?function(t,e){return[t].concat(function(t){return t.map(function(t){return t[3]})}(e))}(t,e):[t]}(r,i)}else at=e,e=n;return e}(),i===n&&(i=null),Ct(),41===t.charCodeAt(at)?(o=a,at++):(o=n,0===dt&&Mt(T)),o!==n?(Ct(),lt=e,e=function(t,e){return{type:"function",name:t,parameters:e||[]}}(r,i)):(at=e,e=n)):(at=e,e=n),e}function At(){let t,e;return t=at,e=St(),e===n&&(e=It(),e===n&&(e=Ot(),e===n&&(e=function(){let t,e;return dt++,t=at,Ct(),e=Et(),e!==n?(lt=t,t=function(t){return{value:t,unit:null}}(e)):(at=t,t=n),dt--,t===n&&0===dt&&Mt(Q),t}()))),e!==n&&(lt=t,e=function(t){return{type:"quantity",value:t.value,unit:t.unit}}(e)),t=e,t===n&&(t=at,e=Rt(),e!==n&&(lt=t,e=function(t){return{type:"color",colorType:t.type,value:t.value}}(e)),t=e),t}function Ct(){let e,r;for(dt++,e=[],r=t.charAt(at),C.test(r)?at++:(r=n,0===dt&&Mt(Z));r!==n;)e.push(r),r=t.charAt(at),C.test(r)?at++:(r=n,0===dt&&Mt(Z));return dt--,e}function Pt(){let e,r,i;if(dt++,e=at,r=[],i=t.charAt(at),P.test(i)?at++:(i=n,0===dt&&Mt(N)),i!==n)for(;i!==n;)r.push(i),i=t.charAt(at),P.test(i)?at++:(i=n,0===dt&&Mt(N));else r=n;return r!==n&&(lt=e,r=ft()),e=r,dt--,e===n&&(r=n,0===dt&&Mt($)),e}function St(){let e,r,i;return dt++,e=at,Ct(),r=Et(),r!==n?(37===t.charCodeAt(at)?(i=h,at++):(i=n,0===dt&&Mt(q)),i!==n?(lt=e,e=function(t){return{value:t,unit:"%"}}(r)):(at=e,e=n)):(at=e,e=n),dt--,e===n&&0===dt&&Mt(U),e}function It(){let e,r,i;return dt++,e=at,Ct(),r=Et(),r!==n?(t.substr(at,2)===p?(i=p,at+=2):(i=n,0===dt&&Mt(F)),i!==n?(lt=e,e=function(t){return{value:t,unit:"px"}}(r)):(at=e,e=n)):(at=e,e=n),e===n&&(e=at,Ct(),r=Et(),r!==n?(t.substr(at,2)===d?(i=d,at+=2):(i=n,0===dt&&Mt(X)),i!==n?(lt=e,e=function(t){return{value:t,unit:"cm"}}(r)):(at=e,e=n)):(at=e,e=n),e===n&&(e=at,Ct(),r=Et(),r!==n?(t.substr(at,2)===f?(i=f,at+=2):(i=n,0===dt&&Mt(D)),i!==n?(lt=e,e=function(t){return{value:t,unit:"mm"}}(r)):(at=e,e=n)):(at=e,e=n),e===n&&(e=at,Ct(),r=Et(),r!==n?(t.substr(at,2)===m?(i=m,at+=2):(i=n,0===dt&&Mt(z)),i!==n?(lt=e,e=function(t){return{value:t,unit:"in"}}(r)):(at=e,e=n)):(at=e,e=n),e===n&&(e=at,Ct(),r=Et(),r!==n?(t.substr(at,2)===g?(i=g,at+=2):(i=n,0===dt&&Mt(k)),i!==n?(lt=e,e=function(t){return{value:t,unit:"pt"}}(r)):(at=e,e=n)):(at=e,e=n),e===n&&(e=at,Ct(),r=Et(),r!==n?(t.substr(at,2)===y?(i=y,at+=2):(i=n,0===dt&&Mt(H)),i!==n?(lt=e,e=function(t){return{value:t,unit:"pc"}}(r)):(at=e,e=n)):(at=e,e=n)))))),dt--,e===n&&0===dt&&Mt(Y),e}function Ot(){let e,r,i;return dt++,e=at,r=Et(),r!==n?(t.substr(at,3)===x?(i=x,at+=3):(i=n,0===dt&&Mt(W)),i!==n?(lt=e,e=function(t){return{value:t,unit:"deg"}}(r)):(at=e,e=n)):(at=e,e=n),e===n&&(e=at,r=Et(),r!==n?(t.substr(at,3)===v?(i=v,at+=3):(i=n,0===dt&&Mt(G)),i!==n?(lt=e,e=function(t){return{value:t,unit:"rad"}}(r)):(at=e,e=n)):(at=e,e=n),e===n&&(e=at,r=Et(),r!==n?(t.substr(at,4)===M?(i=M,at+=4):(i=n,0===dt&&Mt(J)),i!==n?(lt=e,e=function(t){return{value:t,unit:"grad"}}(r)):(at=e,e=n)):(at=e,e=n),e===n&&(e=at,r=Et(),r!==n?(t.substr(at,4)===w?(i=w,at+=4):(i=n,0===dt&&Mt(K)),i!==n?(lt=e,e=function(t){return{value:t,unit:"turn"}}(r)):(at=e,e=n)):(at=e,e=n)))),dt--,e===n&&(r=n,0===dt&&Mt(V)),e}function Rt(){let e,r,i,o;if(dt++,e=at,35===t.charCodeAt(at)?(r=_,at++):(r=n,0===dt&&Mt(et)),r!==n){if(i=[],o=t.charAt(at),S.test(o)?at++:(o=n,0===dt&&Mt(nt)),o!==n)for(;o!==n;)i.push(o),o=t.charAt(at),S.test(o)?at++:(o=n,0===dt&&Mt(nt));else i=n;i!==n?(lt=e,e={type:"hex",value:ft()}):(at=e,e=n)}else at=e,e=n;return e===n&&(e=at,r=bt(),r!==n&&(lt=e,r=function(t){return{type:"function",value:t}}(r)),e=r,e===n&&(e=at,r=Pt(),r!==n&&(lt=e,r={type:"named",value:ft()}),e=r)),dt--,e===n&&(r=n,0===dt&&Mt(tt)),e}function Et(){let e,r,i,o,s,a,l,u;for(e=at,r=t.charAt(at),I.test(r)?at++:(r=n,0===dt&&Mt(rt)),r===n&&(r=null),i=at,o=[],s=t.charAt(at),O.test(s)?at++:(s=n,0===dt&&Mt(it));s!==n;)o.push(s),s=t.charAt(at),O.test(s)?at++:(s=n,0===dt&&Mt(it));if(46===t.charCodeAt(at)?(s=b,at++):(s=n,0===dt&&Mt(ot)),s!==n){if(a=[],l=t.charAt(at),O.test(l)?at++:(l=n,0===dt&&Mt(it)),l!==n)for(;l!==n;)a.push(l),l=t.charAt(at),O.test(l)?at++:(l=n,0===dt&&Mt(it));else a=n;a!==n?(o=[o,s,a],i=o):(at=i,i=n)}else at=i,i=n;if(i===n)if(i=[],o=t.charAt(at),O.test(o)?at++:(o=n,0===dt&&Mt(it)),o!==n)for(;o!==n;)i.push(o),o=t.charAt(at),O.test(o)?at++:(o=n,0===dt&&Mt(it));else i=n;if(i!==n){if(o=at,101===t.charCodeAt(at)?(s=A,at++):(s=n,0===dt&&Mt(st)),s!==n){if(a=t.charAt(at),I.test(a)?at++:(a=n,0===dt&&Mt(rt)),a===n&&(a=null),l=[],u=t.charAt(at),O.test(u)?at++:(u=n,0===dt&&Mt(it)),u!==n)for(;u!==n;)l.push(u),u=t.charAt(at),O.test(u)?at++:(u=n,0===dt&&Mt(it));else l=n;l!==n?(s=[s,a,l],o=s):(at=o,o=n)}else at=o,o=n;o===n&&(o=null),lt=e,e=parseFloat(ft())}else at=e,e=n;return e}ct=o();const Tt=ct!==n&&at===t.length;function Lt(){throw ct!==n&&at<t.length&&Mt({type:"end"}),function(t,e,n){return new l(l.buildMessage(t,e),t,e,n)}(pt,ht<t.length?function(e=at){const n=t.codePointAt(e);return void 0===n?"":String.fromCodePoint(n)}(ht):null,ht<t.length?vt(ht,ht+1):vt(ht,ht))}return e.peg$library?{peg$result:ct,peg$currPos:at,peg$FAILED:n,peg$maxFailExpected:pt,peg$maxFailPos:ht,peg$success:Tt,peg$throw:Tt?void 0:Lt}:Tt?ct:void Lt()}(t)}catch(e){throw new r.A("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 h(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new s.yG(t.name,e)}(t);case"opacity":return function(t){let e=1;return h(t.parameters,1),1===t.parameters.length&&(e=g(t.parameters[0])),new s.jm(e)}(t);case"hue-rotate":return function(t){let e=0;return h(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!=f[t.unit]))throw new r.A("effect:type-error",`Expected <angle>, Actual: ${p(t)}`,{term:t})}(t),t.value*f[t.unit]||0}(t.parameters[0])),new s.Nd(e)}(t);case"blur":return function(t){let e=0;return h(t.parameters,1),1===t.parameters.length&&(e=y(t.parameters[0]),d(e,t.parameters[0])),new s.Fk(e)}(t);case"drop-shadow":return function(t){const e=[];let n=null;for(const i of t.parameters)if("color"===i.type){if(e.length&&Object.freeze(e),n)throw new r.A("effect:type-error","Accepts only one color",{});n=x(i)}else{const t=y(i);if(Object.isFrozen(e))throw new r.A("effect:type-error","<length> parameters not consecutive",{lengths:e});e.push(t),3===e.length&&d(t,i)}if(e.length<2||e.length>3)throw new r.A("effect:type-error",`Expected <length>{2,3}, Actual: <length>{${e.length}}`,{lengths:e});return new s.$b(e[0],e[1],e[2]||0,n||v("black"))}(t);case"bloom":return function(t){let e=1,n=0,r=0;return h(t.parameters,3),t.parameters[0]&&(e=g(t.parameters[0])),t.parameters[1]&&(n=y(t.parameters[1]),d(n,t.parameters[1])),t.parameters[2]&&(r=g(t.parameters[2])),new s.bv(e,n,r)}(t)}}catch(e){throw e.details.filter=t,e}throw new r.A("effect:unknown-effect",`Effect '${t.name}' is not supported`,{effect:t})}(t))}function h(t,e){if(t.length>e)throw new r.A("effect:type-error",`Function supports up to ${e} parameters, Actual: ${t.length}`,{parameters:t})}function p(t){if("color"===t.type)return"<color>";if(t.unit){if(t.unit in m)return"<length>";if(t.unit in f)return"<angle>";if("%"===t.unit)return"<percentage>"}return"<double>"}function d(t,e){if(t<0)throw new r.A("effect:type-error",`Negative values are not allowed, Actual: ${t}`,{term:e})}const f={deg:1,grad:.9,rad:180/Math.PI,turn:360},m={px:1,cm:96/2.54,mm:96/2.54/10,in:96,pc:16,pt:96/72};function g(t){!function(t){if("quantity"!==t.type||null!==t.unit&&"%"!==t.unit)throw new r.A("effect:type-error",`Expected <double> or <percentage>, Actual: ${p(t)}`,{term:t})}(t);const e=t.value;return d(e,t),"%"===t.unit?.01*e:e}function y(t){return function(t){if("quantity"!==t.type||!(0===t.value&&null===t.unit||t.unit&&null!=m[t.unit]))throw new r.A("effect:type-error",`Expected <length>, Actual: ${p(t)}`,{term:t})}(t),t.value*m[t.unit]||0}function x(t){switch(t.colorType){case"hex":return(0,o.j5)(t.value);case"named":return v(t.value);case"function":return function(t){if(h(t.parameters,4),M.test(t.name))return[g(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1];if(w.test(t.name))return(0,o.ay)(function(t){return function(t){if("quantity"!==t.type||null!==t.unit)throw new r.A("effect:type-error",`Expected <double>, Actual: ${p(t)}`,{term:t})}(t),d(t.value,t),t.value}(t.parameters[0]),g(t.parameters[1]),g(t.parameters[2]),t.parameters[3]?g(t.parameters[3]):1);throw new r.A("effect:syntax-error",`Invalid color function '${t.name}'`,{colorFunction:t})}(t.value)}}function v(t){if(!(0,o.V6)(t))throw new r.A("effect:unknown-color",`color '${t}' isn't valid`,{namedColor:t});return(0,o.c4)(t)}const M=/^rgba?/i,w=/^hsla?/i;function _(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:A(n.value)});return e}return A(t)}(t)}catch(t){n?.messages?.push(t)}return null}function b(t,e,n,r){try{const r=function(t){const e=u(t);return e?(0,a.dw)(e)?e.map(t=>t.toJSON()):e.map(({scale:t,effects:e})=>({scale:t,value:e.map(t=>t.toJSON())})):null}(t);(0,i.sM)(n,r,e)}catch(t){r.messages&&r.messages.push(t)}}function A(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=[C(n,"amount")];break;case"blur":t=[C(n,"radius","pt")];break;case"hue-rotate":t=[C(n,"angle","deg")];break;case"drop-shadow":t=[C(n,"xoffset","pt"),C(n,"yoffset","pt"),C(n,"blurRadius","pt"),P(n,"color")];break;case"bloom":t=[C(n,"strength"),C(n,"radius","pt"),C(n,"threshold")]}const r=`${n.type}(${t.filter(Boolean).join(" ")})`;u(r),e.push(r)}return e.join(" ")}function C(t,e,n){if(null==t[e])throw new r.A("effect:missing-parameter",`Missing parameter '${e}' in ${t.type} effect`,{effect:t});return n?t[e]+n:""+t[e]}function P(t,e){if(null==t[e])throw new r.A("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})`}},77690:(t,e,n)=>{n.d(e,{B8:()=>a,Ge:()=>p,I0:()=>h,KC:()=>l,hZ:()=>o,hs:()=>c,lw:()=>u,mg:()=>s,z0:()=>i});var r=n(34304);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,u){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]=u,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],u=e[7],c=e[8],h=c*s-a*u,p=-c*o+a*l,d=u*o-s*l;let f=n*h+r*p+i*d;return f?(f=1/f,t[0]=h*f,t[1]=(-c*r+i*u)*f,t[2]=(a*r-i*s)*f,t[3]=p*f,t[4]=(c*n-i*l)*f,t[5]=(-a*n+i*o)*f,t[6]=d*f,t[7]=(-u*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],u=e[7],c=e[8];return t[0]=s*c-a*u,t[1]=i*u-r*c,t[2]=r*a-i*s,t[3]=a*l-o*c,t[4]=n*c-i*l,t[5]=i*o-n*a,t[6]=o*u-s*l,t[7]=r*l-n*u,t[8]=n*s-r*o,t}function u(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],l=e[5],u=e[6],c=e[7],h=e[8],p=n[0],d=n[1],f=n[2],m=n[3],g=n[4],y=n[5],x=n[6],v=n[7],M=n[8];return t[0]=p*r+d*s+f*u,t[1]=p*i+d*a+f*c,t[2]=p*o+d*l+f*h,t[3]=m*r+g*s+y*u,t[4]=m*i+g*a+y*c,t[5]=m*o+g*l+y*h,t[6]=x*r+v*s+M*u,t[7]=x*i+v*a+M*c,t[8]=x*o+v*l+M*h,t}function c(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,u=n*s,c=r*s,h=r*a,p=i*s,d=i*a,f=i*l,m=o*s,g=o*a,y=o*l;return t[0]=1-h-f,t[3]=c-y,t[6]=p+g,t[1]=c+y,t[4]=1-u-f,t[7]=d-m,t[2]=p-g,t[5]=d+m,t[8]=1-u-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],u=e[7],c=e[8],h=e[9],p=e[10],d=e[11],f=e[12],m=e[13],g=e[14],y=e[15],x=n*a-r*s,v=n*l-i*s,M=n*u-o*s,w=r*l-i*a,_=r*u-o*a,b=i*u-o*l,A=c*m-h*f,C=c*g-p*f,P=c*y-d*f,S=h*g-p*m,I=h*y-d*m,O=p*y-d*g;let R=x*O-v*I+M*S+w*P-_*C+b*A;return R?(R=1/R,t[0]=(a*O-l*I+u*S)*R,t[1]=(l*P-s*O-u*C)*R,t[2]=(s*I-a*P+u*A)*R,t[3]=(i*I-r*O-o*S)*R,t[4]=(n*O-i*P+o*C)*R,t[5]=(r*P-n*I-o*A)*R,t[6]=(m*b-g*_+y*w)*R,t[7]=(g*M-f*b-y*v)*R,t[8]=(f*_-m*M+y*x)*R,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}const f=u,m=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],u=t[8];return e*(u*o-s*l)+n*(-u*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],u=t[6],c=t[7],h=t[8],p=e[0],d=e[1],f=e[2],m=e[3],g=e[4],y=e[5],x=e[6],v=e[7],M=e[8],w=(0,r.FD)();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-g)<=w*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(l-y)<=w*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-x)<=w*Math.max(1,Math.abs(u),Math.abs(x))&&Math.abs(c-v)<=w*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(h-M)<=w*Math.max(1,Math.abs(h),Math.abs(M))},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:function(t){const e=(0,r.FD)(),n=t[0],i=t[1],o=t[2],s=t[3],a=t[4],l=t[5],u=t[6],c=t[7],h=t[8];return Math.abs(1-(n*n+s*s+u*u))<=e&&Math.abs(1-(i*i+a*a+c*c))<=e&&Math.abs(1-(o*o+l*l+h*h))<=e},mul:f,multiply:u,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],u=e[9],c=e[10],h=c*s-a*u,p=-c*o+a*l,d=u*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]=(-c*r+i*u)*m,t[2]=(a*r-i*s)*m,t[3]=p*m,t[4]=(c*n-i*l)*m,t[5]=(-a*n+i*o)*m,t[6]=d*m,t[7]=(-u*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],u=e[6],c=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]=u,t[7]=c,t[8]=h,t},scale:c,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:m,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],u=e[6],c=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+u,t[7]=p*i+d*a+c,t[8]=p*o+d*l+h,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},78553:(t,e,n)=>{n.d(e,{D:()=>o,p:()=>i});var r=n(56507);function i(t){const e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function o(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},80754:(t,e,n)=>{n.d(e,{j7:()=>s,kS:()=>l,kd:()=>a,r8:()=>u});var r=n(82799),i=n(16930),o=n(65864);const s={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function a(t,e){return Math.ceil((t-e)/(2*e))}function l(t,e){const n=u(t);for(const t of n)for(const n of t)n[0]+=e;return t}function u(t){return(0,o.Bi)(t)?t.rings:t.paths}},85648:(t,e,n)=>{n.d(e,{n:()=>i});var r=n(84952);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.Zo)(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},89056:(t,e,n)=>{n.d(e,{b3:()=>h,jZ:()=>c});var r=n(12195),i=n(19419),o=n(537),s=n(95108),a=n(65864),l=n(80754),u=n(21325);function c(t){return p(t,!0)}function h(t){return p(t,!1)}function p(t,e){if(null==t)return null;const n=t.spatialReference,i=(0,u.Vp)(n),s=(0,r.W)(t)?t.toJSON():t;if(!i)return s;const c=(0,u.K8)(n)?102100:4326,h=l.j7[c].maxX,p=l.j7[c].minX;if((0,a.fT)(s))return f(s,h,p);if((0,a.U9)(s))return s.points=s.points.map(t=>f(t,h,p)),s;if((0,a.ZC)(s))return d(s,i);if((0,a.Bi)(s)||(0,a.Rg)(s)){const t=(0,o.Rg)(M,s),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,l.kd)(n.xmin,p)*(2*h),i=0===r?s:(0,l.kS)(s,r);return n.xmin+=r,n.xmax+=r,n.xmax>h?x(i,h,e):n.xmin<p?x(i,p,e):i}return s}function d(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:r,ymax:i,xmin:o,xmax:s}=t,a=t.xmax-t.xmin,[l,u]=e.valid,{x:c,frameId:h}=m(t.xmin,e),{x:p,frameId:d}=m(t.xmax,e),f=c===p&&a>0;if(a>2*u){const t={xmin:o<s?c:p,ymin:r,xmax:u,ymax:i},e={xmin:l,ymin:r,xmax:o<s?p:c,ymax:i},a={xmin:0,ymin:r,xmax:u,ymax:i},f={xmin:l,ymin:r,xmax:0,ymax:i},m=[],y=[];g(t,a)&&m.push(h),g(t,f)&&y.push(h),g(e,a)&&m.push(d),g(e,f)&&y.push(d);for(let t=h+1;t<d;t++)m.push(t),y.push(t);n.push(new v(t,[h]),new v(e,[d]),new v(a,m),new v(f,y))}else c>p||f?n.push(new v({xmin:c,ymin:r,xmax:u,ymax:i},[h]),new v({xmin:l,ymin:r,xmax:p,ymax:i},[d])):n.push(new v({xmin:c,ymin:r,xmax:p,ymax:i},[h]));return n}(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]])}}function f(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,l.kd)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,l.kd)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,l.kd)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,l.kd)(r,n);t.x+=e*(-2*n)}}return t}function m(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 g(t,e){const{xmin:n,ymin:r,xmax:i,ymax:o}=e;return y(t,n,r)&&y(t,n,o)&&y(t,i,o)&&y(t,i,r)}function y(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function x(t,e,n=!0){const r=!(0,a.Rg)(t);if(r&&(0,s.m3)(t),n)return(new w).cut(t,e);const i=r?t.rings:t.paths,o=r?4:2,l=i.length,u=-2*e;for(let t=0;t<l;t++){const e=i[t];if(e&&e.length>=o){const t=[];for(const n of e)t.push([n[0]+u,n[1]]);i.push(t)}}return r?t.rings=i:t.paths=i,t}class v{constructor(t,e){this.extent=t,this.frameIds=e}}const M=(0,i.vt)();class w{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._lineIn,n<=0?t:this._xCut,e),_(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]))}_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=[]}}function _(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])}},92071:(t,e,n)=>{n.d(e,{P:()=>x,L:()=>v});var r=n(31635),i=n(65008),o=n(76953),s=n(4718),a=n(35666);class l{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(a.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new l,n=this._originStores[0];n&&n.forEach((t,n)=>{e.set(n,(0,s.o8)(t),0)});for(let n=2;n<a.AU;n++){const r=this._originStores[n];r&&r.forEach((r,i)=>{t&&t.has(i)||e.set(i,(0,s.o8)(r),n)})}return e}get(t,e){const n=void 0===e?this._values:this._originStores[e];return n?n.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,n=7){let r=this._originStores[n];if(r||(r=new Map,this._originStores[n]=r),r.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=n){const r=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,n),r!==e}return!1}delete(t,e=7){const n=this._originStores[e];if(!n)return;const r=n.get(t);if(n.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let n=e-1;n>=0;n--){const e=this._originStores[n];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,n);break}}}return r}has(t,e){const n=void 0===e?this._values:this._originStores[e];return!!n&&n.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const n=this._originStores[e],r=n?.get(t),i=this._values.get(t);return this._values.set(t,r),this._propertyOriginMap.set(t,e),i!==r}originOf(t){return this._propertyOriginMap.get(t)||0}isAtOrigin(t,e){return this.has(t,e)&&this.originOf(t)===e}isBelowOrigin(t,e){return!this.has(t)||this.originOf(t)<e}forEach(t){this._values.forEach(t)}}var u=n(45917),c=n(88620),h=n(40608);const p=t=>{const e=t;let n=class extends e{constructor(...t){super(...t);const e=(0,c.oY)(this),n=e.store,r=new l;e.store=r,(0,o.k)(e,n,r)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const n=d(this),r=(0,a.aB)(e);if("string"==typeof t)return n.get(t,r);const i={};return t.forEach(t=>{i[t]=n.get(t,r)}),i}originOf(t){return(0,a.OL)(this.originIdOf(t))}originIdOf(t){return d(this).originOf(t)}revert(t,e){const n=d(this),r=(0,a.aB)(e),i=(0,c.oY)(this);let o;o="string"==typeof t?"*"===t?n.keys(r):[t]:t,o.forEach(t=>{i.invalidate(t),n.revert(t,r),i.commit(t)})}};return n=(0,r.Cg)([(0,h.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],n),n};function d(t){return(0,c.oY)(t).store}p(i.A);var f=n(16649),m=n(49422);const g=t=>{const e=t;let n=class extends e{constructor(...t){super(...t)}clear(t,e="user"){(0,c.oY)(this).clearOrigin(t,(0,a.aB)(e))}write(t,e){return(0,m.M)(this,t=t||{},e),t}setAtOrigin(t,e,n){(0,c.oY)(this).setAtOrigin(t,e,(0,a.aB)(n))}removeOrigin(t){const e=y(this),n=(0,a.aB)(t),r=e.keys(n);for(const t of r)e.originOf(t)===n&&e.set(t,e.get(t,n),7)}updateOrigin(t,e){const n=y(this),r=(0,a.aB)(e),i=(0,f.Jt)(this,t);for(let e=r+1;e<a.AU;++e)n.delete(t,e);n.set(t,i,r)}toJSON(t){return this.write({},t)}};return n=(0,r.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],n),n.prototype.toJSON.isDefaultToJSON=!0,n};function y(t){return(0,c.oY)(t).store}const x=t=>{const e=g(p(t));let n=class extends e{constructor(...t){super(...t)}};return n=(0,r.Cg)([(0,h.$)("esri.core.MultiOriginJSONSupport")],n),n},v=x(i.A)}}]);