@arcgis/core 4.28.0-next.20231003 → 4.28.0-rc.0

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 (211) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/02120d192eafd7612475.js +1 -0
  3. package/assets/esri/core/workers/chunks/0beebbb0c6dad0e742d7.js +1 -0
  4. package/assets/esri/core/workers/chunks/112e89da628bdea5355c.js +1 -0
  5. package/assets/esri/core/workers/chunks/{5e9edd06e624f385fa4b.js → 121a9e148509f2fe2210.js} +1 -1
  6. package/assets/esri/core/workers/chunks/1856d16d738f44f58084.js +1 -0
  7. package/assets/esri/core/workers/chunks/{0526d623d0b4c12929bd.js → 18ab9cc85a1a7988fdfd.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{7c960a2694c4c3123acf.js → 1a36703ebe934749646e.js} +1 -1
  9. package/assets/esri/core/workers/chunks/24a0cf405195421c0d06.js +1 -0
  10. package/assets/esri/core/workers/chunks/24ff267cf253feac22de.js +1 -0
  11. package/assets/esri/core/workers/chunks/{3c8613596659801fd6ab.js → 29cab345819ec02ed60a.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{169a61c6e128b8a16021.js → 2c560a075d9ef2069ed1.js} +1 -1
  13. package/assets/esri/core/workers/chunks/2f8e71dac98135bbc3e6.js +1 -0
  14. package/assets/esri/core/workers/chunks/341fb51b2165522963b3.js +1 -0
  15. package/assets/esri/core/workers/chunks/{ad8e0f82cb1feafa9e2f.js → 36ab90fb34b9716a9983.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{2688213bbff536da7917.js → 3ea0b872436fce84b927.js} +1 -1
  17. package/assets/esri/core/workers/chunks/40633064c290dc2af9ea.js +1 -0
  18. package/assets/esri/core/workers/chunks/42ec4c80b0c2944cd65c.js +1 -0
  19. package/assets/esri/core/workers/chunks/44b870cb53ba68b17c32.js +1 -0
  20. package/assets/esri/core/workers/chunks/{8a7fa4e8b0d14da7c9eb.js → 4cc680fe4c9c39d2f853.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{6730c9f0890191a95fdb.js → 4d81aa50d90f5701a343.js} +1 -1
  22. package/assets/esri/core/workers/chunks/4e0bf30da4281070e453.js +1 -0
  23. package/assets/esri/core/workers/chunks/4e6bf1efe3b0b474cbb4.js +1 -0
  24. package/assets/esri/core/workers/chunks/52cef7cd3aaaa4f45c94.js +1 -0
  25. package/assets/esri/core/workers/chunks/5e907ec0ee1565b5fbbc.js +1 -0
  26. package/assets/esri/core/workers/chunks/66ba749ab0a631bbfdec.js +1 -0
  27. package/assets/esri/core/workers/chunks/6b14d89d689a21014aec.js +1 -0
  28. package/assets/esri/core/workers/chunks/6b1856303d1562f05100.js +1 -0
  29. package/assets/esri/core/workers/chunks/{576269fd1f9049876aa1.js → 6b7b5544ed1f9a84623f.js} +1 -1
  30. package/assets/esri/core/workers/chunks/710a6268de62003af825.js +1 -0
  31. package/assets/esri/core/workers/chunks/77923afde29ae1ff10ca.js +1 -0
  32. package/assets/esri/core/workers/chunks/784ffd52315a4d55d683.js +1 -0
  33. package/assets/esri/core/workers/chunks/7cf7f2b991a7cbdad2ce.js +1 -0
  34. package/assets/esri/core/workers/chunks/{70dffbf49b0633b1a5f1.js → 8f3680fee85a05839489.js} +1 -1
  35. package/assets/esri/core/workers/chunks/97aecf210938015cc7a3.js +1 -0
  36. package/assets/esri/core/workers/chunks/{c7ebd5d431fb996bfcee.js → 9f8207c82a17508a87a8.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{557305b91f77569ce664.js → a01ffe03b1465c21b9e6.js} +1 -1
  38. package/assets/esri/core/workers/chunks/a298c9031962951e55a9.js +1 -0
  39. package/assets/esri/core/workers/chunks/{329669a9beda89b028dd.js → a5a7bbdd8298016535bc.js} +1 -1
  40. package/assets/esri/core/workers/chunks/a877a4826cd6a46ec99b.js +1 -0
  41. package/assets/esri/core/workers/chunks/ad38e456a7cee940a165.js +1 -0
  42. package/assets/esri/core/workers/chunks/adfbc168be8c49b51e1b.js +1 -0
  43. package/assets/esri/core/workers/chunks/b0526633a93ef69ec47b.js +1 -0
  44. package/assets/esri/core/workers/chunks/b99bc08a01e9250b0a31.js +1 -0
  45. package/assets/esri/core/workers/chunks/{36c4b4c3eca57417da2c.js → c260ad3434bb00ba64a7.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{39922ce232338de076ae.js → c459c8d8630eb4b955b1.js} +1 -1
  47. package/assets/esri/core/workers/chunks/c92e75b79aff7b505b31.js +1 -0
  48. package/assets/esri/core/workers/chunks/ca85e88dad30b5f2956b.js +1 -0
  49. package/assets/esri/core/workers/chunks/{8e56d40691b6bf75d7cc.js → ce409944221a784ddb61.js} +1 -1
  50. package/assets/esri/core/workers/chunks/d13f75f233cf313e5a1d.js +1 -0
  51. package/assets/esri/core/workers/chunks/d60d5f006375f7fcc88c.js +1 -0
  52. package/assets/esri/core/workers/chunks/{77958089748dc31757cf.js → d6ded127949160103f69.js} +1 -1
  53. package/assets/esri/core/workers/chunks/d8c696da42f8f8919b83.js +1 -0
  54. package/assets/esri/core/workers/chunks/{304c81f6297ecba3a324.js → d95eed98316e59f8f35d.js} +1 -1
  55. package/assets/esri/core/workers/chunks/df7267892b6e0493e1d7.js +1 -0
  56. package/assets/esri/core/workers/chunks/{52dca349e1a45555954d.js → e52d5a48e83d8df36f92.js} +1 -1
  57. package/assets/esri/core/workers/chunks/e8688b6cc3b3c1010b43.js +1 -0
  58. package/assets/esri/core/workers/chunks/e8c7cc974420c0b92d0e.js +1 -0
  59. package/assets/esri/core/workers/chunks/{b6847d68c35e7dbf6004.js → e93442c6d92229f3a4b0.js} +1 -1
  60. package/assets/esri/core/workers/chunks/f2718e260f594537f7fd.js +1 -0
  61. package/assets/esri/core/workers/chunks/f6b7036114b1d754fdd9.js +1 -0
  62. package/assets/esri/core/workers/chunks/{c4631241dc777ca77aaa.js → f6c0680c535c5a3c73ee.js} +1 -1
  63. package/assets/esri/core/workers/chunks/fac3e57784d7f37053af.js +1 -0
  64. package/assets/esri/t9n/common.json +1 -1
  65. package/assets/esri/t9n/common_ar.json +1 -1
  66. package/assets/esri/t9n/common_bg.json +1 -1
  67. package/assets/esri/t9n/common_bs.json +1 -1
  68. package/assets/esri/t9n/common_ca.json +1 -1
  69. package/assets/esri/t9n/common_cs.json +1 -1
  70. package/assets/esri/t9n/common_da.json +1 -1
  71. package/assets/esri/t9n/common_de.json +1 -1
  72. package/assets/esri/t9n/common_el.json +1 -1
  73. package/assets/esri/t9n/common_en.json +1 -1
  74. package/assets/esri/t9n/common_es.json +1 -1
  75. package/assets/esri/t9n/common_et.json +1 -1
  76. package/assets/esri/t9n/common_fi.json +1 -1
  77. package/assets/esri/t9n/common_fr.json +1 -1
  78. package/assets/esri/t9n/common_he.json +1 -1
  79. package/assets/esri/t9n/common_hr.json +1 -1
  80. package/assets/esri/t9n/common_hu.json +1 -1
  81. package/assets/esri/t9n/common_id.json +1 -1
  82. package/assets/esri/t9n/common_it.json +1 -1
  83. package/assets/esri/t9n/common_ja.json +1 -1
  84. package/assets/esri/t9n/common_ko.json +1 -1
  85. package/assets/esri/t9n/common_lt.json +1 -1
  86. package/assets/esri/t9n/common_lv.json +1 -1
  87. package/assets/esri/t9n/common_nb.json +1 -1
  88. package/assets/esri/t9n/common_nl.json +1 -1
  89. package/assets/esri/t9n/common_pl.json +1 -1
  90. package/assets/esri/t9n/common_pt-BR.json +1 -1
  91. package/assets/esri/t9n/common_pt-PT.json +1 -1
  92. package/assets/esri/t9n/common_ro.json +1 -1
  93. package/assets/esri/t9n/common_ru.json +1 -1
  94. package/assets/esri/t9n/common_sk.json +1 -1
  95. package/assets/esri/t9n/common_sl.json +1 -1
  96. package/assets/esri/t9n/common_sr.json +1 -1
  97. package/assets/esri/t9n/common_sv.json +1 -1
  98. package/assets/esri/t9n/common_th.json +1 -1
  99. package/assets/esri/t9n/common_tr.json +1 -1
  100. package/assets/esri/t9n/common_uk.json +1 -1
  101. package/assets/esri/t9n/common_vi.json +1 -1
  102. package/assets/esri/t9n/common_zh-CN.json +1 -1
  103. package/assets/esri/t9n/common_zh-HK.json +1 -1
  104. package/assets/esri/t9n/common_zh-TW.json +1 -1
  105. package/assets/esri/themes/base/widgets/_DirectionalPad.scss +2 -1
  106. package/assets/esri/themes/base/widgets/_FeatureForm.scss +0 -1
  107. package/assets/esri/themes/dark/main.css +1 -1
  108. package/assets/esri/themes/light/main.css +1 -1
  109. package/assets/esri/themes/light/view.css +1 -1
  110. package/config.js +1 -1
  111. package/core/pbf.js +1 -1
  112. package/interfaces.d.ts +0 -32
  113. package/kernel.js +1 -1
  114. package/layers/GroupLayer.js +1 -1
  115. package/layers/SceneLayer.js +1 -1
  116. package/layers/graphics/editingSupport.js +1 -1
  117. package/layers/graphics/sources/WFSSourceWorker.js +1 -1
  118. package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
  119. package/layers/graphics/sources/support/CSVSourceWorker.js +1 -1
  120. package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
  121. package/layers/mixins/OperationalLayer.js +1 -1
  122. package/layers/save/featureLayerUtils.js +1 -1
  123. package/layers/save/groupLayerUtils.js +5 -0
  124. package/layers/save/utils.js +1 -1
  125. package/layers/support/LayerLoadContext.js +5 -0
  126. package/layers/support/featureLayerUtils.js +1 -1
  127. package/layers/support/labelFormatUtils.js +1 -1
  128. package/layers/support/layersCreator.js +1 -1
  129. package/package.json +1 -1
  130. package/portal/schemas/definitions.js +1 -1
  131. package/portal/support/jsonContext.js +1 -1
  132. package/portal/support/layersLoader.js +1 -1
  133. package/portal/support/loadUtils.js +5 -0
  134. package/portal/support/portalItemUtils.js +1 -1
  135. package/portal/support/portalLayers.js +1 -1
  136. package/renderers/support/RasterSymbolizer.js +1 -1
  137. package/support/basemapUtils.js +1 -1
  138. package/support/revision.js +1 -1
  139. package/symbols/PolygonSymbol3D.js +1 -1
  140. package/views/2d/engine/imagery/RasterBitmap.js +1 -1
  141. package/views/2d/engine/imagery/colorizer/shadedrelief.js +1 -1
  142. package/views/2d/engine/imagery/colorizer/stretch.js +1 -1
  143. package/views/2d/input/handlers/KeyPan.js +1 -1
  144. package/views/2d/input/handlers/KeyRotate.js +1 -1
  145. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  146. package/views/2d/layers/features/support/FeatureSetReaderPBFIndirect.js +1 -1
  147. package/views/3d/input/handlers/KeyboardNavigation.js +1 -1
  148. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  149. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  150. package/views/3d/layers/graphics/Graphics3DMeshObject3DGraphicLayer.js +1 -1
  151. package/views/3d/layers/i3s/featureEditing.js +1 -1
  152. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  153. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  154. package/views/DOMContainer.js +1 -1
  155. package/views/input/VisibilityChange.js +5 -0
  156. package/webdoc/support/saveUtils.js +1 -1
  157. package/webdoc/webdocSaveUtils.js +1 -1
  158. package/widgets/DirectionalPad/DirectionalPadViewModel.js +1 -1
  159. package/widgets/DirectionalPad/constants.js +1 -1
  160. package/widgets/DirectionalPad.js +1 -1
  161. package/widgets/FeatureForm/FieldInput.js +1 -1
  162. package/widgets/FeatureForm/featureFormUtils.js +1 -1
  163. package/widgets/FeatureForm.js +1 -1
  164. package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
  165. package/widgets/FeatureTable/FieldColumn.js +1 -1
  166. package/widgets/support/dateUtils.js +1 -1
  167. package/assets/esri/core/workers/chunks/027f8b57565c65fbccda.js +0 -1
  168. package/assets/esri/core/workers/chunks/048265fb5953350e3e33.js +0 -1
  169. package/assets/esri/core/workers/chunks/0b9cf14f8aafb76c578b.js +0 -1
  170. package/assets/esri/core/workers/chunks/10fd951bd296b2beeeba.js +0 -1
  171. package/assets/esri/core/workers/chunks/1224475f3eefdfd59c76.js +0 -1
  172. package/assets/esri/core/workers/chunks/162b0220e24e9ba72655.js +0 -1
  173. package/assets/esri/core/workers/chunks/1e611cad53b745ee146f.js +0 -1
  174. package/assets/esri/core/workers/chunks/29ed31fd4f9d5cf53686.js +0 -1
  175. package/assets/esri/core/workers/chunks/2b6d1c8e4ed759767827.js +0 -1
  176. package/assets/esri/core/workers/chunks/34b44b0fab88f838885c.js +0 -1
  177. package/assets/esri/core/workers/chunks/364f55294a1d7bf163d7.js +0 -1
  178. package/assets/esri/core/workers/chunks/3714ab435dd5ccf9e694.js +0 -1
  179. package/assets/esri/core/workers/chunks/3788009a5ece453011f3.js +0 -1
  180. package/assets/esri/core/workers/chunks/3aafe8160b3bfbaa6935.js +0 -1
  181. package/assets/esri/core/workers/chunks/3e6255ab48b561af131e.js +0 -1
  182. package/assets/esri/core/workers/chunks/41c002e4c42c581cda8d.js +0 -1
  183. package/assets/esri/core/workers/chunks/47be4c75dd6372b96fe4.js +0 -1
  184. package/assets/esri/core/workers/chunks/4e8d1e6051f6654a5e83.js +0 -1
  185. package/assets/esri/core/workers/chunks/53746e9976758630159b.js +0 -1
  186. package/assets/esri/core/workers/chunks/5449fdd69e12e5cbd12a.js +0 -1
  187. package/assets/esri/core/workers/chunks/57ce4ece0147afb0d43c.js +0 -1
  188. package/assets/esri/core/workers/chunks/5e83d21400a5dec05c81.js +0 -1
  189. package/assets/esri/core/workers/chunks/6047f4487dcd37cca98e.js +0 -1
  190. package/assets/esri/core/workers/chunks/6967d2b3721678b38774.js +0 -1
  191. package/assets/esri/core/workers/chunks/6ac5ca7de651e3d672a1.js +0 -1
  192. package/assets/esri/core/workers/chunks/6b7ee9164149428edb9e.js +0 -1
  193. package/assets/esri/core/workers/chunks/6c495077cc79e1898927.js +0 -1
  194. package/assets/esri/core/workers/chunks/6d43648d5326e01b4474.js +0 -1
  195. package/assets/esri/core/workers/chunks/74fb07de0f990d45af89.js +0 -1
  196. package/assets/esri/core/workers/chunks/8e9a52062ce059153a89.js +0 -1
  197. package/assets/esri/core/workers/chunks/919a57d372419785cd5e.js +0 -1
  198. package/assets/esri/core/workers/chunks/939f0a1a7d605e389e45.js +0 -1
  199. package/assets/esri/core/workers/chunks/9932f23ba6589df14a3d.js +0 -1
  200. package/assets/esri/core/workers/chunks/a25a38c9f338e0beffef.js +0 -1
  201. package/assets/esri/core/workers/chunks/a97581e584336b46ede7.js +0 -1
  202. package/assets/esri/core/workers/chunks/b04eb35e06b1c5759ad0.js +0 -1
  203. package/assets/esri/core/workers/chunks/b1cb932cfadc4dc3f1e4.js +0 -1
  204. package/assets/esri/core/workers/chunks/be3fb6113b0b27b94537.js +0 -1
  205. package/assets/esri/core/workers/chunks/c37119f5692e19aa1ce2.js +0 -1
  206. package/assets/esri/core/workers/chunks/c685f16435d9861bbbd0.js +0 -1
  207. package/assets/esri/core/workers/chunks/e6416a2684866d677b3e.js +0 -1
  208. package/assets/esri/core/workers/chunks/eb01f4cdb9b918cc61e7.js +0 -1
  209. package/assets/esri/core/workers/chunks/eb4aed4fdb44495a4fe6.js +0 -1
  210. package/assets/esri/core/workers/chunks/ec8258c9dc1491e97fc8.js +0 -1
  211. package/assets/esri/core/workers/chunks/eeac53da496de4cd4182.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4925,6030,5732,661,5234,2596],{5732:(t,e,n)=>{n.d(e,{c:()=>r,g:()=>i});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}},46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,n,r,i,a,o,s,l){return[t,e,n,r,i,a,o,s,l]}function a(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>r,c:()=>a,f:()=>i}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:a,fromValues:i},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,n)=>{n.d(e,{A:()=>m,a:()=>b,b:()=>u,c:()=>p,d:()=>d,e:()=>_,f:()=>g,g:()=>o,i:()=>l,k:()=>f,m:()=>c,s:()=>a,t:()=>s,w:()=>h,y:()=>v,z:()=>w});var r=n(65617),i=n(46851);function a(t,e,n,r,i,a,o,s,l,c,h,u,f,d,p,m,M){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=c,t[9]=h,t[10]=u,t[11]=f,t[12]=d,t[13]=p,t[14]=m,t[15]=M,t}function o(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function s(t,e){if(t===e){const n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function l(t,e){const n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],h=e[8],u=e[9],f=e[10],d=e[11],p=e[12],m=e[13],M=e[14],y=e[15],g=n*s-r*o,x=n*l-i*o,_=n*c-a*o,b=r*l-i*s,w=r*c-a*s,v=i*c-a*l,S=h*m-u*p,B=h*M-f*p,R=h*y-d*p,X=u*M-f*m,Y=u*y-d*m,O=f*y-d*M;let j=g*O-x*Y+_*X+b*R-w*B+v*S;return j?(j=1/j,t[0]=(s*O-l*Y+c*X)*j,t[1]=(i*Y-r*O-a*X)*j,t[2]=(m*v-M*w+y*b)*j,t[3]=(f*w-u*v-d*b)*j,t[4]=(l*R-o*O-c*B)*j,t[5]=(n*O-i*R+a*B)*j,t[6]=(M*_-p*v-y*x)*j,t[7]=(h*v-f*_+d*x)*j,t[8]=(o*Y-s*R+c*S)*j,t[9]=(r*R-n*Y-a*S)*j,t[10]=(p*w-m*_+y*g)*j,t[11]=(u*_-h*w-d*g)*j,t[12]=(s*B-o*X-l*S)*j,t[13]=(n*X-r*B+i*S)*j,t[14]=(m*x-p*b-M*g)*j,t[15]=(h*b-u*x+f*g)*j,t):null}function c(t,e,n){const r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],h=e[7],u=e[8],f=e[9],d=e[10],p=e[11],m=e[12],M=e[13],y=e[14],g=e[15];let x=n[0],_=n[1],b=n[2],w=n[3];return t[0]=x*r+_*s+b*u+w*m,t[1]=x*i+_*l+b*f+w*M,t[2]=x*a+_*c+b*d+w*y,t[3]=x*o+_*h+b*p+w*g,x=n[4],_=n[5],b=n[6],w=n[7],t[4]=x*r+_*s+b*u+w*m,t[5]=x*i+_*l+b*f+w*M,t[6]=x*a+_*c+b*d+w*y,t[7]=x*o+_*h+b*p+w*g,x=n[8],_=n[9],b=n[10],w=n[11],t[8]=x*r+_*s+b*u+w*m,t[9]=x*i+_*l+b*f+w*M,t[10]=x*a+_*c+b*d+w*y,t[11]=x*o+_*h+b*p+w*g,x=n[12],_=n[13],b=n[14],w=n[15],t[12]=x*r+_*s+b*u+w*m,t[13]=x*i+_*l+b*f+w*M,t[14]=x*a+_*c+b*d+w*y,t[15]=x*o+_*h+b*p+w*g,t}function h(t,e,n){const r=n[0],i=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*a+e[12],t[13]=e[1]*r+e[5]*i+e[9]*a+e[13],t[14]=e[2]*r+e[6]*i+e[10]*a+e[14],t[15]=e[3]*r+e[7]*i+e[11]*a+e[15];else{const n=e[0],o=e[1],s=e[2],l=e[3],c=e[4],h=e[5],u=e[6],f=e[7],d=e[8],p=e[9],m=e[10],M=e[11];t[0]=n,t[1]=o,t[2]=s,t[3]=l,t[4]=c,t[5]=h,t[6]=u,t[7]=f,t[8]=d,t[9]=p,t[10]=m,t[11]=M,t[12]=n*r+c*i+d*a+e[12],t[13]=o*r+h*i+p*a+e[13],t[14]=s*r+u*i+m*a+e[14],t[15]=l*r+f*i+M*a+e[15]}return t}function u(t,e,n){const r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function f(t,e,n,r){let a,o,s,l,c,h,u,f,d,p,m,M,y,g,x,_,b,w,v,S,B,R,X,Y,O=r[0],j=r[1],Z=r[2],A=Math.sqrt(O*O+j*j+Z*Z);return A<(0,i.g)()?null:(A=1/A,O*=A,j*=A,Z*=A,a=Math.sin(n),o=Math.cos(n),s=1-o,l=e[0],c=e[1],h=e[2],u=e[3],f=e[4],d=e[5],p=e[6],m=e[7],M=e[8],y=e[9],g=e[10],x=e[11],_=O*O*s+o,b=j*O*s+Z*a,w=Z*O*s-j*a,v=O*j*s-Z*a,S=j*j*s+o,B=Z*j*s+O*a,R=O*Z*s+j*a,X=j*Z*s-O*a,Y=Z*Z*s+o,t[0]=l*_+f*b+M*w,t[1]=c*_+d*b+y*w,t[2]=h*_+p*b+g*w,t[3]=u*_+m*b+x*w,t[4]=l*v+f*S+M*B,t[5]=c*v+d*S+y*B,t[6]=h*v+p*S+g*B,t[7]=u*v+m*S+x*B,t[8]=l*R+f*X+M*Y,t[9]=c*R+d*X+y*Y,t[10]=h*R+p*X+g*Y,t[11]=u*R+m*X+x*Y,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function p(t,e,n){if(0===e)return o(t);let r,a,s,l=n[0],c=n[1],h=n[2],u=Math.sqrt(l*l+c*c+h*h);return u<(0,i.g)()?null:(u=1/u,l*=u,c*=u,h*=u,r=Math.sin(e),a=Math.cos(e),s=1-a,t[0]=l*l*s+a,t[1]=c*l*s+h*r,t[2]=h*l*s-c*r,t[3]=0,t[4]=l*c*s-h*r,t[5]=c*c*s+a,t[6]=h*c*s+l*r,t[7]=0,t[8]=l*h*s+c*r,t[9]=c*h*s-l*r,t[10]=h*h*s+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function m(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e,n){const r=e[0],i=e[1],a=e[2],o=e[3],s=r+r,l=i+i,c=a+a,h=r*s,u=r*l,f=r*c,d=i*l,p=i*c,m=a*c,M=o*s,y=o*l,g=o*c;return t[0]=1-(d+m),t[1]=u+g,t[2]=f-y,t[3]=0,t[4]=u-g,t[5]=1-(h+m),t[6]=p+M,t[7]=0,t[8]=f+y,t[9]=p-M,t[10]=1-(h+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const y=(0,r.c)();function g(t,e,n,r){const i=e[0],a=e[1],o=e[2],s=e[3],l=i+i,c=a+a,h=o+o,u=i*l,f=i*c,d=i*h,p=a*c,m=a*h,M=o*h,y=s*l,g=s*c,x=s*h,_=r[0],b=r[1],w=r[2];return t[0]=(1-(p+M))*_,t[1]=(f+x)*_,t[2]=(d-g)*_,t[3]=0,t[4]=(f-x)*b,t[5]=(1-(u+M))*b,t[6]=(m+y)*b,t[7]=0,t[8]=(d+g)*w,t[9]=(m-y)*w,t[10]=(1-(u+p))*w,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function x(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[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}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[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function b(t,e){if(t===e)return!0;const n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],l=t[5],c=t[6],h=t[7],u=t[8],f=t[9],d=t[10],p=t[11],m=t[12],M=t[13],y=t[14],g=t[15],x=e[0],_=e[1],b=e[2],w=e[3],v=e[4],S=e[5],B=e[6],R=e[7],X=e[8],Y=e[9],O=e[10],j=e[11],Z=e[12],A=e[13],C=e[14],P=e[15],z=(0,i.g)();return Math.abs(n-x)<=z*Math.max(1,Math.abs(n),Math.abs(x))&&Math.abs(r-_)<=z*Math.max(1,Math.abs(r),Math.abs(_))&&Math.abs(a-b)<=z*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(o-w)<=z*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(s-v)<=z*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(l-S)<=z*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(c-B)<=z*Math.max(1,Math.abs(c),Math.abs(B))&&Math.abs(h-R)<=z*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(u-X)<=z*Math.max(1,Math.abs(u),Math.abs(X))&&Math.abs(f-Y)<=z*Math.max(1,Math.abs(f),Math.abs(Y))&&Math.abs(d-O)<=z*Math.max(1,Math.abs(d),Math.abs(O))&&Math.abs(p-j)<=z*Math.max(1,Math.abs(p),Math.abs(j))&&Math.abs(m-Z)<=z*Math.max(1,Math.abs(m),Math.abs(Z))&&Math.abs(M-A)<=z*Math.max(1,Math.abs(M),Math.abs(A))&&Math.abs(y-C)<=z*Math.max(1,Math.abs(y),Math.abs(C))&&Math.abs(g-P)<=z*Math.max(1,Math.abs(g),Math.abs(P))}function w(t){const e=(0,i.g)(),n=t[0],r=t[1],a=t[2],o=t[4],s=t[5],l=t[6],c=t[8],h=t[9],u=t[10];return Math.abs(1-(n*n+o*o+c*c))<=e&&Math.abs(1-(r*r+s*s+h*h))<=e&&Math.abs(1-(a*a+l*l+u*u))<=e}function v(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const S=c,B=x;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[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],h=e[8],u=e[9],f=e[10],d=e[11],p=e[12],m=e[13],M=e[14],y=e[15];return t[0]=s*(f*y-d*M)-u*(l*y-c*M)+m*(l*d-c*f),t[1]=-(r*(f*y-d*M)-u*(i*y-a*M)+m*(i*d-a*f)),t[2]=r*(l*y-c*M)-s*(i*y-a*M)+m*(i*c-a*l),t[3]=-(r*(l*d-c*f)-s*(i*d-a*f)+u*(i*c-a*l)),t[4]=-(o*(f*y-d*M)-h*(l*y-c*M)+p*(l*d-c*f)),t[5]=n*(f*y-d*M)-h*(i*y-a*M)+p*(i*d-a*f),t[6]=-(n*(l*y-c*M)-o*(i*y-a*M)+p*(i*c-a*l)),t[7]=n*(l*d-c*f)-o*(i*d-a*f)+h*(i*c-a*l),t[8]=o*(u*y-d*m)-h*(s*y-c*m)+p*(s*d-c*u),t[9]=-(n*(u*y-d*m)-h*(r*y-a*m)+p*(r*d-a*u)),t[10]=n*(s*y-c*m)-o*(r*y-a*m)+p*(r*c-a*s),t[11]=-(n*(s*d-c*u)-o*(r*d-a*u)+h*(r*c-a*s)),t[12]=-(o*(u*M-f*m)-h*(s*M-l*m)+p*(s*f-l*u)),t[13]=n*(u*M-f*m)-h*(r*M-i*m)+p*(r*f-i*u),t[14]=-(n*(s*M-l*m)-o*(r*M-i*m)+p*(r*l-i*s)),t[15]=n*(s*f-l*u)-o*(r*f-i*u)+h*(r*l-i*s),t},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[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],h=t[9],u=t[10],f=t[11],d=t[12],p=t[13],m=t[14],M=t[15];return(e*o-n*a)*(u*M-f*m)-(e*s-r*a)*(h*M-f*p)+(e*l-i*a)*(h*m-u*p)+(n*s-r*o)*(c*M-f*d)-(n*l-i*o)*(c*m-u*d)+(r*l-i*s)*(c*p-h*d)},equals:b,exactEquals:_,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+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,l=i+i,c=n*o,h=r*o,u=r*s,f=i*o,d=i*s,p=i*l,m=a*o,M=a*s,y=a*l;return t[0]=1-u-p,t[1]=h+y,t[2]=f-M,t[3]=0,t[4]=h-y,t[5]=1-c-p,t[6]=d+m,t[7]=0,t[8]=f+M,t[9]=d-m,t[10]=1-c-u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=y,r=-e[0],i=-e[1],a=-e[2],o=e[3],s=e[4],l=e[5],c=e[6],h=e[7],u=r*r+i*i+a*a+o*o;return u>0?(n[0]=2*(s*o+h*r+l*a-c*i)/u,n[1]=2*(l*o+h*i+c*r-s*a)/u,n[2]=2*(c*o+h*a+s*i-l*r)/u):(n[0]=2*(s*o+h*r+l*a-c*i),n[1]=2*(l*o+h*i+c*r-s*a),n[2]=2*(c*o+h*a+s*i-l*r)),M(t,e,n),t},fromRotation:p,fromRotationTranslation:M,fromRotationTranslationScale:g,fromRotationTranslationScaleOrigin:function(t,e,n,r,i){const a=e[0],o=e[1],s=e[2],l=e[3],c=a+a,h=o+o,u=s+s,f=a*c,d=a*h,p=a*u,m=o*h,M=o*u,y=s*u,g=l*c,x=l*h,_=l*u,b=r[0],w=r[1],v=r[2],S=i[0],B=i[1],R=i[2],X=(1-(m+y))*b,Y=(d+_)*b,O=(p-x)*b,j=(d-_)*w,Z=(1-(f+y))*w,A=(M+g)*w,C=(p+x)*v,P=(M-g)*v,z=(1-(f+m))*v;return t[0]=X,t[1]=Y,t[2]=O,t[3]=0,t[4]=j,t[5]=Z,t[6]=A,t[7]=0,t[8]=C,t[9]=P,t[10]=z,t[11]=0,t[12]=n[0]+S-(X*S+j*B+C*R),t[13]=n[1]+B-(Y*S+Z*B+P*R),t[14]=n[2]+R-(O*S+A*B+z*R),t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:d,fromXRotation:m,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,r,i,a,o){const s=1/(n-e),l=1/(i-r),c=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*l,t[10]=(o+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*c,t[15]=0,t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},getScaling:function(t,e){const n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],l=e[8],c=e[9],h=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(a*a+o*o+s*s),t[2]=Math.sqrt(l*l+c*c+h*h),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:v,identity:o,invert:l,invertOrIdentity:function(t,e){return l(t,e)||o(t),t},isOrthoNormal:w,lookAt:function(t,e,n,r){const a=e[0],s=e[1],l=e[2];let c=a-n[0],h=s-n[1],u=l-n[2];const f=(0,i.g)();if(Math.abs(c)<f&&Math.abs(h)<f&&Math.abs(u)<f)return void o(t);let d=1/Math.sqrt(c*c+h*h+u*u);c*=d,h*=d,u*=d;const p=r[0],m=r[1],M=r[2];let y=m*u-M*h,g=M*c-p*u,x=p*h-m*c;d=Math.sqrt(y*y+g*g+x*x),d?(d=1/d,y*=d,g*=d,x*=d):(y=0,g=0,x=0);let _=h*x-u*g,b=u*y-c*x,w=c*g-h*y;d=Math.sqrt(_*_+b*b+w*w),d?(d=1/d,_*=d,b*=d,w*=d):(_=0,b=0,w=0),t[0]=y,t[1]=_,t[2]=c,t[3]=0,t[4]=g,t[5]=b,t[6]=h,t[7]=0,t[8]=x,t[9]=w,t[10]=u,t[11]=0,t[12]=-(y*a+g*s+x*l),t[13]=-(_*a+b*s+w*l),t[14]=-(c*a+h*s+u*l),t[15]=1},mul:S,multiply:c,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*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[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,a,o){const s=1/(e-n),l=1/(r-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(o+a)*c,t[15]=1,t},perspective:function(t,e,n,r,i){const a=1/Math.tan(e/2);let o;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),c=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:f,rotateX:function(t,e,n){const r=Math.sin(n),i=Math.cos(n),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],h=e[9],u=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*r,t[5]=o*i+h*r,t[6]=s*i+u*r,t[7]=l*i+f*r,t[8]=c*i-a*r,t[9]=h*i-o*r,t[10]=u*i-s*r,t[11]=f*i-l*r,t},rotateY:function(t,e,n){const r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],h=e[9],u=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-c*r,t[1]=o*i-h*r,t[2]=s*i-u*r,t[3]=l*i-f*r,t[8]=a*r+c*i,t[9]=o*r+h*i,t[10]=s*r+u*i,t[11]=l*r+f*i,t},rotateZ:function(t,e,n){const r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],h=e[5],u=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*r,t[1]=o*i+h*r,t[2]=s*i+u*r,t[3]=l*i+f*r,t[4]=c*i-a*r,t[5]=h*i-o*r,t[6]=u*i-s*r,t[7]=f*i-l*r,t},scale:u,set:a,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:B,subtract:x,targetTo:function(t,e,n,r){const i=e[0],a=e[1],o=e[2],s=r[0],l=r[1],c=r[2];let h=i-n[0],u=a-n[1],f=o-n[2],d=h*h+u*u+f*f;d>0&&(d=1/Math.sqrt(d),h*=d,u*=d,f*=d);let p=l*f-c*u,m=c*h-s*f,M=s*u-l*h;return d=p*p+m*m+M*M,d>0&&(d=1/Math.sqrt(d),p*=d,m*=d,M*=d),t[0]=p,t[1]=m,t[2]=M,t[3]=0,t[4]=u*M-f*m,t[5]=f*p-h*M,t[6]=h*m-u*p,t[7]=0,t[8]=h,t[9]=u,t[10]=f,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t},translate:h,transpose:s},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}function a(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>o,a:()=>r,b:()=>i,c:()=>a});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,createView:a,fromValues:function(t,e,n,r,i,a,o,s,l,c,h,u,f,d,p,m){return[t,e,n,r,i,a,o,s,l,c,h,u,f,d,p,m]}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}function a(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>o,a:()=>r,b:()=>i,c:()=>a});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,createView:a,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},88764:(t,e,n)=>{n.d(e,{q:()=>l});var r,i,a,o=n(5732),s={exports:{}};r=s,i=function(){function t(n,r,i,a,o){for(;a>i;){if(a-i>600){var s=a-i+1,l=r-i+1,c=Math.log(s),h=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*h*(s-h)/s)*(l-s/2<0?-1:1);t(n,r,Math.max(i,Math.floor(r-l*h/s+u)),Math.min(a,Math.floor(r+(s-l)*h/s+u)),o)}var f=n[r],d=i,p=a;for(e(n,i,r),o(n[a],f)>0&&e(n,i,a);d<p;){for(e(n,d,p),d++,p--;o(n[d],f)<0;)d++;for(;o(n[p],f)>0;)p--}0===o(n[i],f)?e(n,i,p):e(n,++p,a),p<=r&&(i=p+1),r<=p&&(a=p-1)}}function e(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function n(t,e){return t<e?-1:t>e?1:0}return function(e,r,i,a,o){t(e,r,i||0,a||e.length-1,o||n)}},void 0!==(a=i())&&(r.exports=a);const l=(0,o.g)(s.exports)},20773:(t,e,n)=>{n.d(e,{a:()=>s,b:()=>o,c:()=>i,d:()=>h,e:()=>l,n:()=>u,s:()=>c,t:()=>a});var r=n(72220);function i(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,a=i){if(t.length/i!==Math.ceil(e.length/a))return r.c.error("source and destination buffers need to have the same number of elements"),t;const o=t.length/i,s=n[0],l=n[1],c=n[2],h=n[4],u=n[5],f=n[6],d=n[8],p=n[9],m=n[10],M=n[12],y=n[13],g=n[14];let x=0,_=0;for(let n=0;n<o;n++){const n=e[x],r=e[x+1],o=e[x+2];t[_]=s*n+h*r+d*o+M,t[_+1]=l*n+u*r+p*o+y,t[_+2]=c*n+f*r+m*o+g,x+=a,_+=i}return t}function o(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,i=3,a=i){if(t.length/i!==Math.ceil(e.length/a))return void r.c.error("source and destination buffers need to have the same number of elements");const o=t.length/i,s=n[0],l=n[1],c=n[2],h=n[3],u=n[4],f=n[5],d=n[6],p=n[7],m=n[8];let M=0,y=0;for(let n=0;n<o;n++){const n=e[M],r=e[M+1],o=e[M+2];t[y]=s*n+h*r+d*o,t[y+1]=l*n+u*r+p*o,t[y+2]=c*n+f*r+m*o,M+=a,y+=i}}function l(t,e,n){c(t.typedBuffer,e,n,t.typedBufferStride)}function c(t,e,n,r=3){const i=Math.min(t.length/r,e.count),a=e.typedBuffer,o=e.typedBufferStride;let s=0,l=0;for(let e=0;e<i;e++)t[l]=n*a[s],t[l+1]=n*a[s+1],t[l+2]=n*a[s+2],s+=o,l+=r}function h(t,e){u(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n=3,r=n){const i=Math.min(t.length/n,e.length/r);let a=0,o=0;for(let s=0;s<i;s++){const i=e[a],s=e[a+1],l=e[a+2],c=i*i+s*s+l*l;if(c>0){const e=1/Math.sqrt(c);t[o]=e*i,t[o+1]=e*s,t[o+2]=e*l}a+=r,o+=n}}Object.freeze(Object.defineProperty({__proto__:null,normalize:u,normalizeView:h,scale:c,scaleView:l,shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),i=t.typedBuffer,a=t.typedBufferStride,o=e.typedBuffer,s=e.typedBufferStride;let l=0,c=0;for(let t=0;t<r;t++)i[c]=o[l]>>n,i[c+1]=o[l+1]>>n,i[c+2]=o[l+2]>>n,l+=s,c+=a},transformMat3:s,transformMat3View:o,transformMat4:a,transformMat4View:i},Symbol.toStringTag,{value:"Module"}))},2368:(t,e,n)=>{n.d(e,{J:()=>h,j:()=>u});var r=n(43697),i=n(92036),a=(n(80442),n(22974)),o=(n(92604),n(70586)),s=n(31263),l=n(1153),c=n(52011);const h=t=>{let e=class extends t{clone(){const t=(0,l.vw)(this);(0,o.O3)(t,"unable to clone instance of non-accessor class");const e=t.metadatas,n=t.store,r={},i=new Map;for(const t in e){const o=e[t],l=n?.originOf(t),c=o.clonable;if(o.readOnly||!1===c||l!==s.s3.USER&&l!==s.s3.DEFAULTS&&l!==s.s3.WEB_MAP&&l!==s.s3.WEB_SCENE)continue;const h=this[t];let u=null;u="function"==typeof c?c(h):"reference"===c?h:(0,a.Vo)(h),null!=h&&null==u||(l===s.s3.DEFAULTS?i.set(t,u):r[t]=u)}const c=new(0,Object.getPrototypeOf(this).constructor)(r);if(i.size){const t=(0,l.vw)(c)?.store;if(t)for(const[e,n]of i)t.set(e,n,s.s3.DEFAULTS)}return c}};return e=(0,r._)([(0,c.j)("esri.core.Clonable")],e),e};let u=class extends(h(i.Z)){};u=(0,r._)([(0,c.j)("esri.core.Clonable")],u)},90578:(t,e,n)=>{n.d(e,{p:()=>l});var r=n(75215),i=n(7628);const a=Object.prototype.toString;function o(t){const e="__accessorMetadata__"in t?(0,r.se)(t):t;return function(...t){if(t.push(e),"number"==typeof t[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return s.apply(this,t)}}function s(t,e,n,r){(0,i.Oe)(t,e).cast=r}function l(...t){if(3!==t.length||"string"!=typeof t[1])return 1===t.length&&"[object Function]"===a.call(t[0])?o(t[0]):1===t.length&&"string"==typeof t[0]?function(t){return(e,n)=>{(0,i.Oe)(e,t).cast=e[n]}}(t[0]):void 0}},36030:(t,e,n)=>{n.d(e,{J:()=>a});var r=n(35454),i=n(5600);function a(t,e={}){const n=t instanceof r.X?t:new r.X(t,e),a={type:e?.ignoreUnknown??1?n.apiValues:String,json:{type:n.jsonValues,read:!e?.readOnly&&{reader:n.read},write:{writer:n.write}}};return void 0!==e?.readOnly&&(a.readOnly=!!e.readOnly),void 0!==e?.default&&(a.json.default=e.default),void 0!==e?.name&&(a.json.name=e.name),void 0!==e?.nonNullable&&(a.nonNullable=e.nonNullable),(0,i.Cb)(a)}},71715:(t,e,n)=>{n.d(e,{r:()=>i});var r=n(5600);function i(t,e,n){let i,a;return void 0===e||Array.isArray(e)?(a=t,n=e,i=[void 0]):(a=e,i=Array.isArray(t)?t:[t]),(t,e)=>{const o=t.constructor.prototype;i.forEach((i=>{const s=(0,r.CJ)(t,i,a);s.read&&"object"==typeof s.read||(s.read={}),s.read.reader=o[e],n&&(s.read.source=(s.read.source||[]).concat(n))}))}}},10661:(t,e,n)=>{n.d(e,{s:()=>i});var r=n(42100);class i extends r.s{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},24133:(t,e,n)=>{n.d(e,{Q:()=>o});var r=n(67676),i=n(44553),a=n(88764);class o{constructor(t=9,e){this._compareMinX=h,this._compareMinY=u,this._toBBox=t=>t,this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&("function"==typeof e?this._toBBox=e:this._initFormat(e)),this.clear()}destroy(){this.clear(),x.prune(),_.prune(),b.prune(),w.prune()}all(t){this._all(this._data,t)}search(t,e){let n=this._data;const r=this._toBBox;if(y(t,n))for(x.clear();n;){for(let i=0,a=n.children.length;i<a;i++){const a=n.children[i],o=n.leaf?r(a):a;y(t,o)&&(n.leaf?e(a):M(t,o)?this._all(a,e):x.push(a))}n=x.pop()}}collides(t){let e=this._data;const n=this._toBBox;if(!y(t,e))return!1;for(x.clear();e;){for(let r=0,i=e.children.length;r<i;r++){const i=e.children[r],a=e.leaf?n(i):i;if(y(t,a)){if(e.leaf||M(t,a))return!0;x.push(i)}}e=x.pop()}return!1}load(t){if(!t.length)return this;if(t.length<this._minEntries){for(let e=0,n=t.length;e<n;e++)this.insert(t[e]);return this}let e=this._build(t.slice(0,t.length),0,t.length-1,0);if(this._data.children.length)if(this._data.height===e.height)this._splitRoot(this._data,e);else{if(this._data.height<e.height){const t=this._data;this._data=e,e=t}this._insert(e,this._data.height-e.height-1,!0)}else this._data=e;return this}insert(t){return t&&this._insert(t,this._data.height-1),this}clear(){return this._data=new B([]),this}remove(t){if(!t)return this;let e,n=this._data,i=null,a=0,o=!1;const s=this._toBBox(t);for(b.clear(),w.clear();n||b.length>0;){if(n||(n=b.pop(),i=b.data[b.length-1],a=w.pop()??0,o=!0),n.leaf&&(e=(0,r.cq)(n.children,t,n.children.length,n.indexHint),-1!==e))return n.children.splice(e,1),b.push(n),this._condense(b),this;o||n.leaf||!M(n,s)?i?(a++,n=i.children[a],o=!1):n=null:(b.push(n),w.push(a),a=0,i=n,n=n.children[0])}return this}toJSON(){return this._data}fromJSON(t){return this._data=t,this}_all(t,e){let n=t;for(_.clear();n;){if(!0===n.leaf)for(const t of n.children)e(t);else _.pushArray(n.children);n=_.pop()??null}}_build(t,e,n,r){const i=n-e+1;let a=this._maxEntries;if(i<=a){const r=new B(t.slice(e,n+1));return s(r,this._toBBox),r}r||(r=Math.ceil(Math.log(i)/Math.log(a)),a=Math.ceil(i/a**(r-1)));const o=new R([]);o.height=r;const l=Math.ceil(i/a),c=l*Math.ceil(Math.sqrt(a));g(t,e,n,c,this._compareMinX);for(let i=e;i<=n;i+=c){const e=Math.min(i+c-1,n);g(t,i,e,l,this._compareMinY);for(let n=i;n<=e;n+=l){const i=Math.min(n+l-1,e);o.children.push(this._build(t,n,i,r-1))}}return s(o,this._toBBox),o}_chooseSubtree(t,e,n,r){for(;r.push(e),!0!==e.leaf&&r.length-1!==n;){let n,r=1/0,i=1/0;for(let a=0,o=e.children.length;a<o;a++){const o=e.children[a],s=f(o),l=p(t,o)-s;l<i?(i=l,r=s<r?s:r,n=o):l===i&&s<r&&(r=s,n=o)}e=n||e.children[0]}return e}_insert(t,e,n){const r=this._toBBox,i=n?t:r(t);b.clear();const a=this._chooseSubtree(i,this._data,e,b);for(a.children.push(t),c(a,i);e>=0&&b.data[e].children.length>this._maxEntries;)this._split(b,e),e--;this._adjustParentBBoxes(i,b,e)}_split(t,e){const n=t.data[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);const a=this._chooseSplitIndex(n,i,r);if(!a)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const o=n.children.splice(a,n.children.length-a),l=n.leaf?new B(o):new R(o);l.height=n.height,s(n,this._toBBox),s(l,this._toBBox),e?t.data[e-1].children.push(l):this._splitRoot(n,l)}_splitRoot(t,e){this._data=new R([t,e]),this._data.height=t.height+1,s(this._data,this._toBBox)}_chooseSplitIndex(t,e,n){let r,i,a;r=i=1/0;for(let o=e;o<=n-e;o++){const e=l(t,0,o,this._toBBox),s=l(t,o,n,this._toBBox),c=m(e,s),h=f(e)+f(s);c<r?(r=c,a=o,i=h<i?h:i):c===r&&h<i&&(i=h,a=o)}return a}_chooseSplitAxis(t,e,n){const r=t.leaf?this._compareMinX:h,i=t.leaf?this._compareMinY:u;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,a=l(t,0,e,i),o=l(t,n-e,n,i);let s=d(a)+d(o);for(let r=e;r<n-e;r++){const e=t.children[r];c(a,t.leaf?i(e):e),s+=d(a)}for(let r=n-e-1;r>=e;r--){const e=t.children[r];c(o,t.leaf?i(e):e),s+=d(o)}return s}_adjustParentBBoxes(t,e,n){for(let r=n;r>=0;r--)c(e.data[r],t)}_condense(t){for(let e=t.length-1;e>=0;e--){const n=t.data[e];if(0===n.children.length)if(e>0){const i=t.data[e-1],a=i.children;a.splice((0,r.cq)(a,n,a.length,i.indexHint),1)}else this.clear();else s(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 s(t,e){l(t,0,t.children.length,e,t)}function l(t,e,n,r,i){i||(i=new B([])),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(let a,o=e;o<n;o++)a=t.children[o],c(i,t.leaf?r(a):a);return i}function c(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function h(t,e){return t.minX-e.minX}function u(t,e){return t.minY-e.minY}function f(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function p(t,e){return(Math.max(e.maxX,t.maxX)-Math.min(e.minX,t.minX))*(Math.max(e.maxY,t.maxY)-Math.min(e.minY,t.minY))}function m(t,e){const n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY),i=Math.min(t.maxX,e.maxX),a=Math.min(t.maxY,e.maxY);return Math.max(0,i-n)*Math.max(0,a-r)}function M(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function y(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function g(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 s=n+Math.ceil((e-n)/r/2)*r;(0,a.q)(t,s,n,e,i),o.push(n,s,s,e)}}const x=new i.Z,_=new i.Z,b=new i.Z,w=new i.Z({deallocator:void 0});class v{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class S extends v{constructor(){super(...arguments),this.height=1,this.indexHint=new r.SO}}class B extends S{constructor(t){super(),this.children=t,this.leaf=!0}}class R extends S{constructor(t){super(),this.children=t,this.leaf=!1}}},9361:(t,e,n)=>{n.d(e,{Z:()=>h});var r=n(43697),i=n(96674),a=n(5600),o=(n(75215),n(67676),n(80442),n(71715)),s=n(52011),l=n(82971);let c=class extends i.wq{constructor(...t){super(...t),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=l.Z.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(t,e){if(t instanceof l.Z)return t;if(null!=t){const n=new l.Z;return n.read(t,e),n}return t}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(t){return this.cache[t]}setCacheValue(t,e){this.cache[t]=e}};(0,r._)([(0,a.Cb)()],c.prototype,"type",void 0),(0,r._)([(0,a.Cb)({readOnly:!0})],c.prototype,"cache",null),(0,r._)([(0,a.Cb)({readOnly:!0})],c.prototype,"extent",null),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],c.prototype,"hasM",void 0),(0,r._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],c.prototype,"hasZ",void 0),(0,r._)([(0,a.Cb)({type:l.Z,json:{write:!0},value:l.Z.WGS84})],c.prototype,"spatialReference",void 0),(0,r._)([(0,o.r)("spatialReference")],c.prototype,"readSpatialReference",null),c=(0,r._)([(0,s.j)("esri.geometry.Geometry")],c);const h=c},94139:(t,e,n)=>{n.d(e,{Z:()=>x});var r,i=n(43697),a=n(92604),o=n(5600),s=n(90578),l=(n(67676),n(80442),n(71715)),c=n(52011),h=n(30556),u=n(75215),f=n(9361),d=n(82971),p=n(8744),m=n(40488);const M=[0,0];function y(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}let g=r=class extends f.Z{static copy(t,e){e._set("x",t._get("x")),e._set("y",t._get("y")),e._set("z",t._get("z")),e._set("m",t._get("m"));const n=t._get("spatialReference");e._set("spatialReference",Object.isFrozen(n)?n:n.clone())}constructor(...t){super(...t),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(t,e,n,r,i){let o;if(Array.isArray(t))o=t,i=e,t=o[0],e=o[1],n=o[2],r=o[3];else if(t&&"object"==typeof t){if(o=t,t=null!=o.x?o.x:o.longitude,e=null!=o.y?o.y:o.latitude,n=o.z,r=o.m,(i=o.spatialReference)&&"esri.geometry.SpatialReference"!==i.declaredClass&&(i=new d.Z(i)),null!=o.longitude||null!=o.latitude)if(null==o.longitude)a.Z.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==o.latitude)a.Z.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&i&&i.isWebMercator){const n=(0,m.hG)(o.longitude,o.latitude,M);t=n[0],e=n[1]}}else y(n)?(i=n,n=null):y(r)&&(i=r,r=null);const s={x:t,y:e};return null==s.x&&null!=s.y?a.Z.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==s.y&&null!=s.x&&a.Z.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=i&&(s.spatialReference=i),null!=n&&(s.z=n),null!=r&&(s.m=r),s}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(t){t!==(void 0!==this._get("m"))&&(this._set("m",t?0:void 0),this._set("hasM",t))}get hasZ(){return void 0!==this.z}set hasZ(t){t!==(void 0!==this._get("z"))&&(this._set("z",t?0:void 0),this._set("hasZ",t))}get latitude(){const{spatialReference:t,x:e,y:n}=this;if(t){if(t.isWebMercator)return(0,m.R6)(e,n,M)[1];if(t.isGeographic)return n}return null}set latitude(t){const{spatialReference:e,x:n}=this;null!=t&&e&&(e.isWebMercator?this._set("y",(0,m.hG)(n,t,M)[1]):e.isGeographic&&this._set("y",t),this._set("latitude",t))}get longitude(){const{x:t,y:e,spatialReference:n}=this;if(n){if(n.isWebMercator)return(0,m.R6)(t,e,M)[0];if(n.isGeographic)return t}return null}set longitude(t){const{y:e,spatialReference:n}=this;null!=t&&n&&(n.isWebMercator?this._set("x",(0,m.hG)(t,e,M)[0]):n.isGeographic&&this._set("x",t),this._set("longitude",t))}writeX(t,e,n){e[n]=isNaN(t)?"NaN":t}readX(t){return"string"==typeof t?NaN:t}clone(){const t=new r;return t.x=this.x,t.y=this.y,t.z=this.z,t.m=this.m,t.spatialReference=this.spatialReference,t}copy(t){return r.copy(t,this),this}equals(t){if(null==t)return!1;const{x:e,y:n,z:r,m:i,spatialReference:a}=this,{z:o,m:s}=t;let{x:l,y:c,spatialReference:h}=t;if(!a.equals(h))if(a.isWebMercator&&h.isWGS84)[l,c]=(0,m.hG)(l,c),h=a;else{if(!a.isWGS84||!h.isWebMercator)return!1;[l,c]=(0,m.R6)(l,c),h=a}return e===l&&n===c&&r===o&&i===s&&a.wkid===h.wkid}offset(t,e,n){return this.x+=t,this.y+=e,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const t=(0,p.C5)(this.spatialReference);if(!t)return this;let e=this.x;const[n,r]=t.valid,i=2*r;let a;return e>r?(a=Math.ceil(Math.abs(e-r)/i),e-=a*i):e<n&&(a=Math.ceil(Math.abs(e-n)/i),e+=a*i),this._set("x",e),this}distance(t){return function(t,e){const n=t.x-e.x,r=t.y-e.y,i=t.hasZ&&e.hasZ?t.z-e.z:0;return Math.sqrt(n*n+r*r+i*i)}(this,t)}toArray(){const t=this.hasZ,e=this.hasM;return t&&e?[this.x,this.y,this.z,this.m]:t?[this.x,this.y,this.z]:e?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(t){return this.write({},t)}};(0,i._)([(0,o.Cb)({readOnly:!0})],g.prototype,"cache",null),(0,i._)([(0,o.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],g.prototype,"hasM",null),(0,i._)([(0,o.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],g.prototype,"hasZ",null),(0,i._)([(0,o.Cb)({type:Number})],g.prototype,"latitude",null),(0,i._)([(0,o.Cb)({type:Number})],g.prototype,"longitude",null),(0,i._)([(0,o.Cb)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,s.p)((t=>isNaN(t)?t:(0,u.q9)(t)))],g.prototype,"x",void 0),(0,i._)([(0,h.c)("x")],g.prototype,"writeX",null),(0,i._)([(0,l.r)("x")],g.prototype,"readX",null),(0,i._)([(0,o.Cb)({type:Number,json:{write:!0}})],g.prototype,"y",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],g.prototype,"z",void 0),(0,i._)([(0,o.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],g.prototype,"m",void 0),g=r=(0,i._)([(0,c.j)("esri.geometry.Point")],g),g.prototype.toJSON.isDefaultToJSON=!0;const x=g},62155:(t,e,n)=>{var r;n.d(e,{R:()=>r}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(r||(r={}))},83025:(t,e,n)=>{n.d(e,{JK:()=>s,QZ:()=>a,Rq:()=>o,bg:()=>i,mB:()=>l});var r=n(1533);function i(t,e=!1){return t<=r.c8?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function a(t){return((0,r.kJ)(t)?t.length:t.byteLength/8)<=r.c8?Array.from(t):new Float64Array(t)}function o(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function s(t,e){for(let n=0;n<e.length;++n)t[n]=e[n];return t}function l(t){return Array.isArray(t)?new Float64Array(t):t}},85872:(t,e,n)=>{n.d(e,{Z:()=>f});var r=n(43697),i=n(2368),a=n(96674),o=n(5600),s=(n(75215),n(67676),n(80442),n(36030)),l=n(52011),c=n(65617),h=n(94139);let u=class extends((0,i.J)(a.wq)){constructor(t){super(t),this.type="georeferenced-relative",this.isRelative=!0,this.isGeoreferenced=!0,this.origin=(0,c.c)()}getOriginPoint(t){const[e,n,r]=this.origin;return new h.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFromPoint({x:t,y:e,z:n}){this.origin=(0,c.f)(t,e,n??0)}};(0,r._)([(0,s.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],u.prototype,"type",void 0),(0,r._)([(0,o.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r._)([(0,l.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],u);const f=u},84555:(t,e,n)=>{n.d(e,{Z:()=>f});var r=n(43697),i=n(2368),a=n(96674),o=n(5600),s=(n(75215),n(67676),n(80442),n(36030)),l=n(52011),c=n(65617),h=n(94139);let u=class extends((0,i.J)(a.wq)){constructor(t){super(t),this.type="local",this.isRelative=!0,this.isGeoreferenced=!1,this.origin=(0,c.c)()}getOriginPoint(t){const[e,n,r]=this.origin;return new h.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFromPoint({x:t,y:e,z:n}){this.origin=(0,c.f)(t,e,n??0)}};(0,r._)([(0,s.J)({local:"local"},{readOnly:!0})],u.prototype,"type",void 0),(0,r._)([(0,o.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],u.prototype,"origin",void 0),u=(0,r._)([(0,l.j)("esri.geometry.support.MeshLocalVertexSpace")],u);const f=u},72220:(t,e,n)=>{n.d(e,{c:()=>r});const r=n(92604).Z.getLogger("esri.views.3d.support.buffer.math")},61787:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(80442),i=n(24133),a=n(66459);class o{async createIndex(t,e){const n=new Array;if(!t.vertexAttributes?.position)return new i.Q;const r=this._createMeshData(t),a=null!=e?await e.invoke("createIndexThread",r,{transferList:n}):this.createIndexThread(r).result;return this._createPooledRBush().fromJSON(a)}createIndexThread(t){const e=new Float64Array(t.position),n=this._createPooledRBush();return t.components?this._createIndexComponentsThread(n,e,t.components.map((t=>new Uint32Array(t)))):this._createIndexAllThread(n,e)}_createIndexAllThread(t,e){const n=new Array(e.length/9);let r=0;for(let t=0;t<e.length;t+=9)n[r++]=s(e,t,t+3,t+6);return t.load(n),{result:t.toJSON()}}_createIndexComponentsThread(t,e,n){let r=0;for(const t of n)r+=t.length/3;const i=new Array(r);let a=0;for(const t of n)for(let n=0;n<t.length;n+=3)i[a++]=s(e,3*t[n],3*t[n+1],3*t[n+2]);return t.load(i),{result:t.toJSON()}}_createMeshData(t){const e=(t.vertexSpace.isRelative?(0,a.I5)({position:t.vertexAttributes.position,normal:null,tangent:null},t.vertexSpace,t.transform,t.spatialReference).position:t.vertexAttributes.position).buffer;return!t.components||t.components.some((t=>!t.faces))?{position:e}:{position:e,components:t.components.map((t=>t.faces))}}_createPooledRBush(){return new i.Q(9,(0,r.Z)("esri-csp-restrictions")?t=>t:[".minX",".minY",".maxX",".maxY"])}}function s(t,e,n,r){return{minX:Math.min(t[e],t[n],t[r]),maxX:Math.max(t[e],t[n],t[r]),minY:Math.min(t[e+1],t[n+1],t[r+1]),maxY:Math.max(t[e+1],t[n+1],t[r+1]),p0:[t[e],t[e+1],t[e+2]],p1:[t[n],t[n+1],t[n+2]],p2:[t[r],t[r+1],t[r+2]]}}},40488:(t,e,n)=>{n.d(e,{$:()=>x,Q8:()=>m,R6:()=>g,Sx:()=>_,hG:()=>y,iV:()=>M,mZ:()=>u});var r=n(22974),i=n(82971),a=n(68441),o=n(8744);const s=57.29577951308232,l=.017453292519943;function c(t){return t*s}function h(t){return t*l}function u(t){return Math.PI/2-2*Math.atan(Math.exp(-t/a.sv.radius))}function f(t){return null!=t.wkid||null!=t.wkt}const d=[0,0];function p(t,e,n,r,i){const a=t,o=i;if(o.spatialReference=n,"x"in a&&"x"in o)[o.x,o.y]=e(a.x,a.y,d,r);else if("xmin"in a&&"xmin"in o)[o.xmin,o.ymin]=e(a.xmin,a.ymin,d,r),[o.xmax,o.ymax]=e(a.xmax,a.ymax,d,r);else if("paths"in a&&"paths"in o||"rings"in a&&"rings"in o){const t="paths"in a?a.paths:a.rings,n=[];let i;for(let a=0;a<t.length;a++){const o=t[a];i=[],n.push(i);for(let t=0;t<o.length;t++)i.push(e(o[t][0],o[t][1],[0,0],r)),o[t].length>2&&i[t].push(o[t][2]),o[t].length>3&&i[t].push(o[t][3])}"paths"in o?o.paths=n:o.rings=n}else if("points"in a&&"points"in o){const t=a.points,n=[];for(let i=0;i<t.length;i++)n[i]=e(t[i][0],t[i][1],[0,0],r),t[i].length>2&&n[i].push(t[i][2]),t[i].length>3&&n[i].push(t[i][3]);o.points=n}return i}function m(t,e){const n=t&&(f(t)?t:t.spatialReference),r=e&&(f(e)?e:e.spatialReference);return!(t&&"type"in t&&"mesh"===t.type||e&&"type"in e&&"mesh"===e.type||!n||!r)&&(!!(0,o.fS)(r,n)||(0,o.sS)(r)&&(0,o.oR)(n)||(0,o.sS)(n)&&(0,o.oR)(r))}function M(t,e){if(null==t)return null;const n=t.spatialReference,a=e&&(f(e)?e:e.spatialReference);return m(n,a)?(0,o.fS)(n,a)?(0,r.d9)(t):(0,o.sS)(a)?p(t,y,i.Z.WebMercator,!1,(0,r.d9)(t)):(0,o.oR)(a)?p(t,g,i.Z.WGS84,!1,(0,r.d9)(t)):null:null}function y(t,e,n=[0,0]){e>89.99999?e=89.99999:e<-89.99999&&(e=-89.99999);const r=h(e);return n[0]=h(t)*a.sv.radius,n[1]=a.sv.halfSemiMajorAxis*Math.log((1+Math.sin(r))/(1-Math.sin(r))),n}function g(t,e,n=[0,0],r=!1){const i=c(t/a.sv.radius);return n[0]=r?i:i-360*Math.floor((i+180)/360),n[1]=c(Math.PI/2-2*Math.atan(Math.exp(-e/a.sv.radius))),n}function x(t,e=!1,n=(0,r.d9)(t)){return p(t,y,i.Z.WebMercator,e,n)}function _(t,e=!1,n=(0,r.d9)(t)){return p(t,g,i.Z.WGS84,e,n)}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3230,6030],{25929:(e,t,r)=>{r.d(t,{M:()=>f,a:()=>h,e:()=>d,f:()=>o,i:()=>c,p:()=>p,r:()=>i,t:()=>a,w:()=>s});var n=r(17452);function o(e,t){const r=t?.url?.path;if(e&&r&&(e=(0,n.hF)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,n.PF)(e,t.portalItem.itemUrl);null!=r&&u.test(r)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return y(e,t?.portal)}function a(e,t,r=f.YES){if(null==e)return e;!(0,n.YP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let o=(0,n.hF)(e);if(t){const r=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(r){const a=y(r,t.portal),i=y(o,t.portal);o=(0,n.PF)(i,a,a),null!=o&&o!==i&&o!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(o)}}return o=d(o,t?.portal),(0,n.YP)(o)&&(o=(0,n.Fv)(o)),t?.resources&&t?.portalItem&&!(0,n.YP)(o)&&!(0,n.HK)(o)&&r===f.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(o),compress:!1}),o}function i(e,t,r){return o(e,r)}function s(e,t,r,n){const o=a(e,n);void 0!==o&&(t[r]=o)}const l=/\/items\/([^\/]+)\/resources\/(.*)/,u=/^\.\/resources\//;function c(e){const t=e?.match(l)??null;return t?.[1]??null}function p(e){const t=e?.match(l)??null;if(null==t)return null;const r=t[2],o=r.lastIndexOf("/");if(-1===o){const{path:e,extension:t}=(0,n.fZ)(r);return{prefix:null,filename:e,extension:t}}const{path:a,extension:i}=(0,n.fZ)(r.slice(o+1));return{prefix:r.slice(0,o),filename:a,extension:i}}function d(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,n.Ie)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function y(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,o=(0,n.TI)();return(0,n.D6)(o,`${o.scheme}://${r}`)?(0,n.Ie)(e,t.portalHostname,r):(0,n.Ie)(e,r,t.portalHostname)}var f,m;(m=f||(f={}))[m.YES=0]="YES",m[m.NO=1]="NO";const h=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return f},ensureMainOnlineDomain:d,fromJSON:o,itemIdFromResourceUrl:c,prefixAndFilenameFromResourceUrl:p,read:i,toJSON:a,write:s},Symbol.toStringTag,{value:"Module"}))},36030:(e,t,r)=>{r.d(t,{J:()=>a});var n=r(35454),o=r(5600);function a(e,t={}){const r=e instanceof n.X?e:new n.X(e,t),a={type:t?.ignoreUnknown??1?r.apiValues:String,json:{type:r.jsonValues,read:!t?.readOnly&&{reader:r.read},write:{writer:r.write}}};return void 0!==t?.readOnly&&(a.readOnly=!!t.readOnly),void 0!==t?.default&&(a.json.default=t.default),void 0!==t?.name&&(a.json.name=t.name),void 0!==t?.nonNullable&&(a.nonNullable=t.nonNullable),(0,o.Cb)(a)}},66643:(e,t,r)=>{r.d(t,{Ed:()=>u,UI:()=>c,mt:()=>f,q6:()=>y,vr:()=>m});var n=r(43697),o=r(92036),a=r(70586),i=r(95330),s=r(5600),l=r(52011);function u(e,t,r){return(0,i.as)(e.map(((e,n)=>t.apply(r,[e,n]))))}async function c(e,t,r){return(await(0,i.as)(e.map(((e,n)=>t.apply(r,[e,n]))))).map((e=>e.value))}function p(e){return{ok:!0,value:e}}function d(e){return{ok:!1,error:e}}async function y(e){if(null==e)return{ok:!1,error:new Error("no promise provided")};try{return p(await e)}catch(e){return d(e)}}async function f(e){try{return p(await e)}catch(e){return(0,i.r9)(e),d(e)}}function m(e,t){return new h(e,t)}let h=class extends o.Z{get value(){return null!=(e=this._result)&&!0===e.ok?e.value:null;var e}get error(){return null!=(e=this._result)&&!1===e.ok?e.error:null;var e}get finished(){return null!=this._result}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=(0,a.IM)(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;const{signal:r}=this._abortController;this.promise=e(r),this.promise.then((e=>{this._result=p(e),this._cleanup()}),(e=>{this._result=d(e),this._cleanup()})),this._abortHandle=(0,i.fu)(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=(0,a.hw)(this._abortHandle),this._abortController=null}};(0,n._)([(0,s.Cb)()],h.prototype,"value",null),(0,n._)([(0,s.Cb)()],h.prototype,"error",null),(0,n._)([(0,s.Cb)()],h.prototype,"finished",null),(0,n._)([(0,s.Cb)()],h.prototype,"promise",void 0),(0,n._)([(0,s.Cb)()],h.prototype,"_result",void 0),h=(0,n._)([(0,l.j)("esri.core.asyncUtils.ReactiveTask")],h)},43230:(e,t,r)=>{r.r(t),r.d(t,{default:()=>m});var n=r(66643),o=r(20102),a=r(92604),i=r(95330),s=r(8744),l=r(98732),u=r(37427),c=r(92722),p=r(23095),d=r(78089),y=r(99514),f=r(25031);class m{constructor(){this._queryEngine=null,this._customParameters=null}destroy(){this._queryEngine?.destroy(),this._queryEngine=null}async load(e,t){const{getFeatureUrl:n,getFeatureOutputFormat:a,fields:s,geometryType:l,featureType:c,objectIdField:p,customParameters:m}=e,{spatialReference:h,getFeatureSpatialReference:g}=(0,d.fU)(n,c,e.spatialReference);this._featureType=c,this._customParameters=m,this._getFeatureUrl=n,this._getFeatureOutputFormat=a,this._getFeatureSpatialReference=g;try{await(0,u._W)(g,h)}catch{throw new o.Z("unsupported-projection","Projection not supported",{inSpatialReference:g,outSpatialReference:h})}(0,i.k_)(t);const w=y.Z.fromLayerJSON({fields:s,dateFieldsTimeReference:s.some((e=>"esriFieldTypeDate"===e.type))?{timeZoneIANA:f.pt}:null}),[b,{QueryEngine:v,FeatureStore:S}]=await Promise.all([this._snapshotFeatures({fieldsIndex:w,geometryType:l,objectIdField:p,spatialReference:h},t.signal),Promise.all([r.e(8968),r.e(5286),r.e(8767),r.e(6148)]).then(r.bind(r,3922))]);return this._queryEngine=new v({fieldsIndex:w,geometryType:l,hasM:!1,hasZ:!1,objectIdField:p,spatialReference:h,timeInfo:null,featureStore:new S({geometryType:l,hasM:!1,hasZ:!1})}),this._queryEngine.featureStore.addMany(b),{extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async applyEdits(){throw new o.Z("wfs-source:editing-not-supported","applyEdits() is not supported on WFSLayer")}async queryFeatures(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQuery(e,t.signal)}async queryFeatureCount(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForCount(e,t.signal)}async queryObjectIds(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForIds(e,t.signal)}async queryExtent(e={},t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForExtent(e,t.signal)}async querySnapping(e,t={}){return await this._waitSnapshotComplete(),this._queryEngine.executeQueryForSnapping(e,t.signal)}async refresh(e){return this._customParameters=e,this._snapshotTask?.abort(),this._snapshotTask=(0,n.vr)((e=>this._snapshotFeatures(this._queryEngine,e))),this._snapshotTask.promise.then((e=>{this._queryEngine.featureStore.clear(),e&&this._queryEngine.featureStore.addMany(e)}),(e=>{this._queryEngine.featureStore.clear(),(0,i.D_)(e)||a.Z.getLogger("esri.layers.WFSLayer").error(new o.Z("wfs-layer:getfeature-error","An error occurred during the GetFeature request",{error:e}))})),await this._waitSnapshotComplete(),{extent:(await this._queryEngine.fetchRecomputedExtents()).fullExtent}}async _waitSnapshotComplete(){if(this._snapshotTask&&!this._snapshotTask.finished){try{await this._snapshotTask.promise}catch{}return this._waitSnapshotComplete()}}async _snapshotFeatures({objectIdField:e,geometryType:t,spatialReference:r,fieldsIndex:n},o){const a=await(0,d.Bm)(this._getFeatureUrl??"",this._featureType.typeName,this._getFeatureSpatialReference,this._getFeatureOutputFormat,{customParameters:this._customParameters,signal:o});(0,c.O3)(a,this._getFeatureSpatialReference.wkid),(0,i.k_)(o);const y=(0,c.lG)(a,{geometryType:t,hasZ:!1,objectIdField:e});if(!(0,s.fS)(r,this._getFeatureSpatialReference))for(const e of y)null!=e.geometry&&(e.geometry=(0,l.GH)((0,u.iV)((0,l.di)(e.geometry,t,!1,!1),this._getFeatureSpatialReference,r)));let f=1;for(const t of y){const r={};(0,p.O0)(n,r,t.attributes,!0),t.attributes=r,null==r[e]&&(t.objectId=r[e]=f++)}return y}}},92722:(e,t,r)=>{r.d(t,{O3:()=>F,lG:()=>T,my:()=>C,q9:()=>c});var n=r(20188),o=r(20102),a=r(8744),i=r(70272),s=r(5428),l=r(35671);const u={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return u[e]}function*p(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*d(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function y(e){for(const t of e)if(t.length>2)return!0;return!1}function f(e){let t=0;for(let r=0;r<e.length;r++){const n=e[r],o=e[(r+1)%e.length];t+=n[0]*o[1]-o[0]*n[1]}return t<=0}function m(e){const t=e[0],r=e[e.length-1];return t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]||e.push(t),e}function h(e,t,r){switch(t.type){case"LineString":case"MultiPoint":return function(e,t,r){return b(e,t.coordinates,r),e}(e,t,r);case"MultiLineString":return function(e,t,r){for(const n of t.coordinates)b(e,n,r);return e}(e,t,r);case"MultiPolygon":return function(e,t,r){for(const n of t.coordinates){g(e,n[0],r);for(let t=1;t<n.length;t++)w(e,n[t],r)}return e}(e,t,r);case"Point":return function(e,t,r){return S(e,t.coordinates,r),e}(e,t,r);case"Polygon":return function(e,t,r){const n=t.coordinates;g(e,n[0],r);for(let t=1;t<n.length;t++)w(e,n[t],r);return e}(e,t,r)}}function g(e,t,r){const n=m(t);!function(e){return!f(e)}(n)?b(e,n,r):v(e,n,r)}function w(e,t,r){const n=m(t);!function(e){return f(e)}(n)?b(e,n,r):v(e,n,r)}function b(e,t,r){for(const n of t)S(e,n,r);e.lengths.push(t.length)}function v(e,t,r){for(let n=t.length-1;n>=0;n--)S(e,t[n],r);e.lengths.push(t.length)}function S(e,t,r){const[n,o,a]=t;e.coords.push(n,o),r.hasZ&&e.coords.push(a||0)}function _(e){switch(typeof e){case"string":return(0,n.o)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function F(e,t=4326){if(!e)throw new o.Z("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new o.Z("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:r}=e;if(!r)return;const n="string"==typeof r?r:"name"===r.type?r.properties.name:"EPSG"===r.type?r.properties.code:null,i=(0,a.oR)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!n||!i.test(n))throw new o.Z("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:r})}function C(e,t={}){const r=[],n=new Set,o=new Set;let a,i=!1,s=null,u=!1,{geometryType:f=null}=t,m=!1;for(const t of p(e)){const{geometry:e,properties:p,id:h}=t;if((!e||(f||(f=c(e.type)),c(e.type)===f))&&(i||(i=y(d(e))),u||(u=null!=h,u&&(a=typeof h,p&&(s=Object.keys(p).filter((e=>p[e]===h))))),p&&s&&u&&null!=h&&(s.length>1?s=s.filter((e=>p[e]===h)):1===s.length&&(s=p[s[0]]===h?s:[])),!m&&p)){let e=!0;for(const t in p){if(n.has(t))continue;const a=p[t];if(null==a){e=!1,o.add(t);continue}const i=_(a);if("unknown"===i){o.add(t);continue}o.delete(t),n.add(t);const s=(0,l.q6)(t);s&&r.push({name:s,alias:t,type:i})}m=e}}const h=(0,l.q6)(1===s?.length&&s[0]||null)??void 0;if(h)for(const e of r)if(e.name===h&&(0,l.H7)(e)){e.type="esriFieldTypeOID";break}return{fields:r,geometryType:f,hasZ:i,objectIdFieldName:h,objectIdFieldType:a,unknownFields:Array.from(o)}}function T(e,t){return Array.from(function*(e,t={}){const{geometryType:r,objectIdField:n}=t;for(const o of e){const{geometry:e,properties:a,id:l}=o;if(e&&c(e.type)!==r)continue;const u=a||{};let p;n&&(p=u[n],null==l||p||(u[n]=p=l));const d=new i.u_(e?h(new s.Z,e,t):null,u,null,p??void 0);yield d}}(p(e),t))}},78089:(e,t,r)=>{r.d(t,{Bm:()=>A,FU:()=>k,be:()=>O,eB:()=>V,fU:()=>$,ft:()=>I,u2:()=>w}),r(66577);var n=r(3172),o=r(20102),a=r(66374),i=r(17452),s=r(73615),l=r(8744),u=r(86973),c=r(92722),p=r(88724),d=r(66677),y=r(1231),f=r(82971),m=r(6570);const h="xlink:href",g="2.0.0",w="__esri_wfs_id__",b="wfs-layer:getWFSLayerTypeInfo-error",v="wfs-layer:empty-service",S="wfs-layer:feature-type-not-found",_="wfs-layer:geojson-not-supported",F="wfs-layer:kvp-encoding-not-supported",C="wfs-layer:malformed-json",T="wfs-layer:unknown-geometry-type",x="wfs-layer:unknown-field-type",R="wfs-layer:unsupported-spatial-reference",P="wfs-layer:unsupported-wfs-version";async function k(e,t){const r=function(e){const t=M(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==g)throw new o.Z(P,`Unsupported WFS version ${t}. Supported version: ${g}`)})(t),L(t);const r=t.firstElementChild,n=(0,a.Fs)(function(e){return(0,p.H)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},r=new Set;return(0,p.h)(e,{Name:e=>{const{name:r,prefix:n}=D(e.textContent);t.typeName=`${n}:${r}`,t.name=r,t.namespacePrefix=n,t.namespaceUri=e.lookupNamespaceURI(n)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=function(e){let t,r,n,o;for(const a of e.children)switch(a.localName){case"LowerCorner":[t,r]=a.textContent.split(" ").map((e=>Number.parseFloat(e)));break;case"UpperCorner":[n,o]=a.textContent.split(" ").map((e=>Number.parseFloat(e)))}return{xmin:t,ymin:r,xmax:n,ymax:o,spatialReference:l.Zn}}(e)},DefaultCRS:e=>{const n=N(e);n&&(t.defaultSpatialReference=n,r.add(n))},OtherCRS:e=>{const t=N(e);t&&r.add(t)}}),t.title||(t.title=t.name),r.add(4326),t.supportedSpatialReferences.push(...r),t}}})}(r));return{operations:j(r),get featureTypes(){return Array.from(n())},readFeatureTypes:n}}((await(0,n.Z)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:g,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,i.$U)(e)&&((0,i.D6)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,i.hO)(t.operations.DescribeFeatureType.url)),(0,i.D6)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,i.hO)(t.operations.GetFeature.url)))}(e,r),r}const E=new Set(["json","application/json","geojson","application/json; subtype=geojson"]);function j(e){let t=!1;const r={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}};if((0,p.h)(e,{OperationsMetadata:{Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{r.GetCapabilities.url=e.getAttribute(h)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{r.DescribeFeatureType.url=e.getAttribute(h)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{r.GetFeature.url=e.getAttribute(h)}}},Parameter:e=>{if("outputFormat"===e.getAttribute("name"))return{AllowedValues:{Value:e=>{const t=e.textContent;t&&E.has(t.toLowerCase())&&(r.GetFeature.outputFormat=t)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{r.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),!t)throw new o.Z(F,"WFS service doesn't support key/value pair (KVP) encoding");if(null==r.GetFeature.outputFormat)throw new o.Z(_,"WFS service doesn't support GeoJSON output format");return r}function N(e){const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function I(e,t,r){return(0,a.sE)(e,(e=>r?e.name===t&&e.namespaceUri===r:e.typeName===t||e.name===t))}async function O(e,t,r,n={}){const{featureType:a,extent:i}=await async function(e,t,r,n={}){const a=e.readFeatureTypes(),i=t?I(a,t,r):a.next().value,{spatialReference:u=new f.Z({wkid:i?.defaultSpatialReference})}=n;if(null==i)throw t?new o.Z(S,`The type '${t}' could not be found in the service`):new o.Z(v,"The service is empty");let c=new m.Z({...i.extent,spatialReference:f.Z.WGS84});if(!(0,l.fS)(c.spatialReference,u))try{await(0,s.initializeProjection)(c.spatialReference,u,void 0,n),c=(0,s.project)(c,u)}catch{throw new o.Z(R,"Projection not supported")}return{extent:c,spatialReference:u,featureType:i}}(e,t,r,n),{spatialReference:u}=$(e.operations.GetFeature.url,a,n.spatialReference),{fields:c,geometryType:p,swapXY:d,objectIdField:y,geometryField:h}=await async function(e,t,r,n={}){const{typeName:a}=t,[i,s]=await Promise.allSettled([G(e.operations.DescribeFeatureType.url,a,n),Z(e,a,r,n)]),l=e=>new o.Z(b,`An error occurred while getting info about the feature type '${a}'`,{error:e});if("rejected"===i.status)throw l(i.reason);if("rejected"===s.status)throw l(s.reason);const{fields:u,errors:c}=i.value??{},p=i.value?.geometryType||s.value?.geometryType,d=s.value?.swapXY??!1;if(null==p)throw new o.Z(T,`The geometry type could not be determined for type '${a}`,{typeName:a,geometryType:p,fields:u,errors:c});return{...V(u??[]),geometryType:p,swapXY:d}}(e,a,u,n);return{url:e.operations.GetCapabilities.url,name:a.name,namespaceUri:a.namespaceUri,fields:c,geometryField:h,geometryType:p,objectIdField:y,spatialReference:n.spatialReference??new f.Z({wkid:a.defaultSpatialReference}),extent:i,swapXY:d,wfsCapabilities:e,customParameters:n.customParameters}}function V(e){const t=e.find((e=>"geometry"===e.type));let r=e.find((e=>"oid"===e.type));return e=e.filter((e=>"geometry"!==e.type)),r||(r=new y.Z({name:w,type:"oid",alias:w}),e.unshift(r)),{geometryField:t?.name??null,objectIdField:r.name,fields:e}}async function Z(e,t,r,o={}){let a,i=!1;const[s,l]=await Promise.all([A(e.operations.GetFeature.url,t,r,e.operations.GetFeature.outputFormat,{...o,count:1}),(0,n.Z)(e.operations.GetFeature.url,{responseType:"text",query:q(t,r,void 0,{...o,count:1}),signal:o?.signal})]),p="FeatureCollection"===s.type&&s.features[0]?.geometry;if(p){let e;switch(a=u.M.fromJSON((0,c.q9)(p.type)),p.type){case"Point":e=p.coordinates;break;case"LineString":case"MultiPoint":e=p.coordinates[0];break;case"MultiLineString":case"Polygon":e=p.coordinates[0][0];break;case"MultiPolygon":e=p.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){const r=e[0].toFixed(3),n=e[1].toFixed(3),o=parseFloat(t[1]).toFixed(3);r===parseFloat(t[2]).toFixed(3)&&n===o&&(i=!0)}}return{geometryType:a,swapXY:i}}async function G(e,t,r){return function(e,t){const{name:r}=D(e),n=M(t);L(n);const i=(0,a.sE)((0,p.H)(n.firstElementChild,{element:e=>({name:e.getAttribute("name"),typeName:D(e.getAttribute("type")).name})}),(({name:e})=>e===r));if(null!=i){const e=(0,a.sE)((0,p.H)(n.firstElementChild,{complexType:e=>e}),(e=>e.getAttribute("name")===i.typeName));if(null!=e)return function(e){const t=[],r=[];let n;const a=(0,p.H)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const i of a){const a=i.getAttribute("name");if(!a)continue;let s,l;if(i.hasAttribute("type")?s=D(i.getAttribute("type")).name:(0,p.h)(i,{simpleType:{restriction:e=>(s=D(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!s)continue;const u="true"===i.getAttribute("nillable");let c=!1;switch(s.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":r.push(new y.Z({name:a,alias:a,type:"integer",nullable:u}));break;case"float":case"double":case"decimal":r.push(new y.Z({name:a,alias:a,type:"double",nullable:u}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":r.push(new y.Z({name:a,alias:a,type:"string",nullable:u,length:l??255}));break;case"datetime":case"date":r.push(new y.Z({name:a,alias:a,type:"date",nullable:u,length:l??36}));break;case"pointpropertytype":n="point",c=!0;break;case"multipointpropertytype":n="multipoint",c=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":n="polyline",c=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":n="polygon",c=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":c=!0,t.push(new o.Z(T,`geometry type '${s}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new o.Z(x,`Unknown field type '${s}'`,{type:(new XMLSerializer).serializeToString(e)}))}c&&r.push(new y.Z({name:a,alias:a,type:"geometry",nullable:u}))}for(const e of r)if("integer"===e.type&&!e.nullable&&U.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:n,fields:r,errors:t}}(e)}throw new o.Z(S,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(n)})}(t,(await(0,n.Z)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:g,TYPENAME:t,...r?.customParameters},signal:r?.signal})).data)}const U=new Set(["objectid","fid"]);async function A(e,t,r,a,i){let{data:s}=await(0,n.Z)(e,{responseType:"text",query:q(t,r,a,i),signal:i?.signal});s=s.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(s)}catch(e){throw new o.Z(C,"Error while parsing the response",{response:s,error:e})}}function q(e,t,r,n){const o="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:g,TYPENAMES:e,OUTPUTFORMAT:r,SRSNAME:"EPSG:"+o,STARTINDEX:n?.startIndex,COUNT:n?.count,...n?.customParameters}}function M(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function D(e){const[t,r]=e.split(":");return{prefix:r?t:"",name:r??t}}function L(e){let t="",r="";if((0,p.h)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{r=e.textContent}})}),t)throw new o.Z(`wfs-layer:${t}`,r)}function $(e,t,r){const n={wkid:t.defaultSpatialReference},o=null!=r?.wkid?{wkid:r.wkid}:n;return{spatialReference:o,getFeatureSpatialReference:(0,d.B5)(e)||o.wkid&&t.supportedSpatialReferences.includes(o.wkid)?{wkid:o.wkid}:{wkid:t.defaultSpatialReference}}}},88724:(e,t,r)=>{function n(e,t){if(e&&t)for(const r of e.children)if(r.localName in t){const e=t[r.localName];if("function"==typeof e){const t=e(r);t&&n(r,t)}else n(r,e)}}function*o(e,t){for(const r of e.children)if(r.localName in t){const e=t[r.localName];"function"==typeof e?yield e(r):yield*o(r,e)}}r.d(t,{H:()=>o,h:()=>n})},1231:(e,t,r)=>{r.d(t,{Z:()=>h});var n,o=r(43697),a=r(35454),i=r(96674),s=r(5600),l=r(75215),u=(r(67676),r(80442),r(36030)),c=r(71715),p=r(52011),d=r(72729),y=r(86719);const f=new a.X({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let m=n=class extends i.wq{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=-1,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?f.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain&&this.domain.clone()||null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],m.prototype,"alias",void 0),(0,o._)([(0,s.Cb)({type:[String,Number],json:{write:{allowNull:!0}}})],m.prototype,"defaultValue",void 0),(0,o._)([(0,s.Cb)()],m.prototype,"description",void 0),(0,o._)([(0,c.r)("description")],m.prototype,"readDescription",null),(0,o._)([(0,s.Cb)({types:d.V5,json:{read:{reader:d.im},write:!0}})],m.prototype,"domain",void 0),(0,o._)([(0,s.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"editable",void 0),(0,o._)([(0,s.Cb)({type:l.z8,json:{write:!0}})],m.prototype,"length",void 0),(0,o._)([(0,s.Cb)({type:String,json:{write:!0}})],m.prototype,"name",void 0),(0,o._)([(0,s.Cb)({type:Boolean,json:{write:!0}})],m.prototype,"nullable",void 0),(0,o._)([(0,u.J)(y.v)],m.prototype,"type",void 0),(0,o._)([(0,s.Cb)()],m.prototype,"valueType",void 0),(0,o._)([(0,c.r)("valueType",["description"])],m.prototype,"readValueType",null),(0,o._)([(0,s.Cb)({type:Boolean,json:{read:!1}})],m.prototype,"visible",void 0),m=n=(0,o._)([(0,p.j)("esri.layers.support.Field")],m);const h=m},66677:(e,t,r)=>{r.d(t,{B5:()=>c,DR:()=>d,G:()=>b,M8:()=>m,Nm:()=>h,Qc:()=>p,XG:()=>g,a7:()=>f,ld:()=>y,wH:()=>w});var n=r(17452),o=r(25929);const a={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},i=Object.values(a),s=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${i.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),l=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${i.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),u=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function c(e){return!!s.test(e)}function p(e){if(null==e)return null;const t=(0,n.mN)(e),r=t?.path.match(s)||t?.path.match(l);if(!r)return null;const[,o,i,u,c]=r,p=i.indexOf("/");return{title:y(-1!==p?i.slice(p+1):i),serverType:a[u.toLowerCase()],sublayer:null!=c&&""!==c?parseInt(c,10):null,url:{path:o}}}function d(e){const t=(0,n.mN)(e).path.match(u);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function y(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function f(e,t){const r=[];if(e){const t=p(e);null!=t&&t.title&&r.push(t.title)}if(t){const e=y(t);r.push(e)}if(2===r.length){if(r[0].toLowerCase().includes(r[1].toLowerCase()))return r[0];if(r[1].toLowerCase().includes(r[0].toLowerCase()))return r[1]}return r.join(" - ")}function m(e){if(!e)return!1;const t=(e=e.toLowerCase()).includes(".arcgis.com/"),r=e.includes("//services")||e.includes("//tiles")||e.includes("//features");return t&&r}function h(e,t){return e?(0,n.Qj)((0,n.Hu)(e,t)):e}function g(e){let{url:t}=e;if(!t)return{url:t};t=(0,n.Hu)(t,e.logger);const r=(0,n.mN)(t),o=p(r.path);let a;if(null!=o)null!=o.sublayer&&null==e.layer.layerId&&(a=o.sublayer),t=o.url.path;else if(e.nonStandardUrlAllowed){const e=d(r.path);null!=e&&(t=e.serviceUrl,a=e.sublayerId)}return{url:(0,n.Qj)(t),layerId:a}}function w(e,t,r,a,i){(0,o.w)(t,a,"url",i),a.url&&null!=e.layerId&&(a.url=(0,n.v_)(a.url,r,e.layerId.toString()))}function b(e){if(!e)return!1;const t=e.toLowerCase(),r=t.includes("/services/"),n=t.includes("/mapserver/wmsserver"),o=t.includes("/imageserver/wmsserver"),a=t.includes("/wmsserver");return r&&(n||o||a)}},72729:(e,t,r)=>{r.d(t,{im:()=>C,V5:()=>F}),r(80442);var n,o=r(43697),a=r(22974),i=r(5600),s=(r(75215),r(36030)),l=r(52011),u=r(96674);r(67676);let c=n=class extends u.wq{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,o._)([(0,i.Cb)({type:String,json:{write:!0}})],c.prototype,"name",void 0),(0,o._)([(0,i.Cb)({type:[String,Number],json:{write:!0}})],c.prototype,"code",void 0),c=n=(0,o._)([(0,l.j)("esri.layers.support.CodedValue")],c);const p=new(r(35454).X)({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends u.wq{constructor(e){super(e),this.name=null,this.type=null}};(0,o._)([(0,i.Cb)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,o._)([(0,s.J)(p)],d.prototype,"type",void 0),d=(0,o._)([(0,l.j)("esri.layers.support.Domain")],d);const y=d;var f;let m=f=class extends y{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new f({codedValues:(0,a.d9)(this.codedValues),name:this.name})}};(0,o._)([(0,i.Cb)({type:[c],json:{write:!0}})],m.prototype,"codedValues",void 0),(0,o._)([(0,s.J)({codedValue:"coded-value"})],m.prototype,"type",void 0),m=f=(0,o._)([(0,l.j)("esri.layers.support.CodedValueDomain")],m);const h=m;var g;r(92604),r(20102);let w=g=class extends y{constructor(e){super(e),this.type="inherited"}clone(){return new g}};(0,o._)([(0,s.J)({inherited:"inherited"})],w.prototype,"type",void 0),w=g=(0,o._)([(0,l.j)("esri.layers.support.InheritedDomain")],w);const b=w;var v;let S=v=class extends y{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new v({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,i.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]}}}})],S.prototype,"maxValue",void 0),(0,o._)([(0,i.Cb)({type:Number,json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]}}}})],S.prototype,"minValue",void 0),(0,o._)([(0,s.J)({range:"range"})],S.prototype,"type",void 0),S=v=(0,o._)([(0,l.j)("esri.layers.support.RangeDomain")],S);const _=S,F={key:"type",base:y,typeMap:{range:S,"coded-value":h,inherited:b}};function C(e){if(!e?.type)return null;switch(e.type){case"range":return _.fromJSON(e);case"codedValue":return h.fromJSON(e);case"inherited":return b.fromJSON(e)}return null}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2971],{83305:(e,r,t)=>{t.d(r,{P:()=>l,a:()=>u,g:()=>_,h:()=>p,i:()=>f,j:()=>O,l:()=>a,p:()=>N});var o=t(99880),n=t(80442);let i,s=null;function f(){return!!s}function a(){return i||(i=t.e(6774).then(t.bind(t,66774)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,o.V)(`esri/geometry/support/${e}`)}))).then((e=>{R(e)})),i)}var _,u,l,c;!function(e){function r(e,r,t){s.ensureCache.prepare();const o=m(t),n=t===o,i=s.ensureFloat64(o),f=s._pe_geog_to_proj(s.getPointer(e),r,i);return f&&G(t,r,i,n),f}function t(e,r,t){return o(e,r,t,0)}function o(e,r,t,o){s.ensureCache.prepare();const n=m(t),i=t===n,f=s.ensureFloat64(n),a=s._pe_proj_to_geog_center(s.getPointer(e),r,f,o);return a&&G(t,r,f,i),a}e.geogToProj=r,e.projGeog=function(e,o,n,i){switch(i){case u.PE_TRANSFORM_P_TO_G:return t(e,o,n);case u.PE_TRANSFORM_G_TO_P:return r(e,o,n)}return 0},e.projToGeog=t,e.projToGeogCenter=o}(_||(_={})),(c=u||(u={})).init=function(){c.PE_BUFFER_MAX=s.PeDefs.prototype.PE_BUFFER_MAX,c.PE_NAME_MAX=s.PeDefs.prototype.PE_NAME_MAX,c.PE_MGRS_MAX=s.PeDefs.prototype.PE_MGRS_MAX,c.PE_USNG_MAX=s.PeDefs.prototype.PE_USNG_MAX,c.PE_DD_MAX=s.PeDefs.prototype.PE_DD_MAX,c.PE_DDM_MAX=s.PeDefs.prototype.PE_DDM_MAX,c.PE_DMS_MAX=s.PeDefs.prototype.PE_DMS_MAX,c.PE_UTM_MAX=s.PeDefs.prototype.PE_UTM_MAX,c.PE_PARM_MAX=s.PeDefs.prototype.PE_PARM_MAX,c.PE_TYPE_NONE=s.PeDefs.prototype.PE_TYPE_NONE,c.PE_TYPE_GEOGCS=s.PeDefs.prototype.PE_TYPE_GEOGCS,c.PE_TYPE_PROJCS=s.PeDefs.prototype.PE_TYPE_PROJCS,c.PE_TYPE_GEOGTRAN=s.PeDefs.prototype.PE_TYPE_GEOGTRAN,c.PE_TYPE_COORDSYS=s.PeDefs.prototype.PE_TYPE_COORDSYS,c.PE_TYPE_UNIT=s.PeDefs.prototype.PE_TYPE_UNIT,c.PE_TYPE_LINUNIT=s.PeDefs.prototype.PE_TYPE_LINUNIT,c.PE_STR_OPTS_NONE=s.PeDefs.prototype.PE_STR_OPTS_NONE,c.PE_STR_AUTH_NONE=s.PeDefs.prototype.PE_STR_AUTH_NONE,c.PE_STR_AUTH_TOP=s.PeDefs.prototype.PE_STR_AUTH_TOP,c.PE_STR_NAME_CANON=s.PeDefs.prototype.PE_STR_NAME_CANON,c.PE_STR_FMT_WKT=s.PeDefs.prototype.PE_STR_FMT_WKT,c.PE_STR_FMT_WKT2=s.PeDefs.prototype.PE_STR_FMT_WKT2,c.PE_PARM_X0=s.PeDefs.prototype.PE_PARM_X0,c.PE_PARM_ND=s.PeDefs.prototype.PE_PARM_ND,c.PE_TRANSFORM_1_TO_2=s.PeDefs.prototype.PE_TRANSFORM_1_TO_2,c.PE_TRANSFORM_2_TO_1=s.PeDefs.prototype.PE_TRANSFORM_2_TO_1,c.PE_TRANSFORM_P_TO_G=s.PeDefs.prototype.PE_TRANSFORM_P_TO_G,c.PE_TRANSFORM_G_TO_P=s.PeDefs.prototype.PE_TRANSFORM_G_TO_P,c.PE_HORIZON_RECT=s.PeDefs.prototype.PE_HORIZON_RECT,c.PE_HORIZON_POLY=s.PeDefs.prototype.PE_HORIZON_POLY,c.PE_HORIZON_LINE=s.PeDefs.prototype.PE_HORIZON_LINE,c.PE_HORIZON_DELTA=s.PeDefs.prototype.PE_HORIZON_DELTA},function(e){const r={},t={},o=e=>{if(e){const r=e.getType();switch(r){case u.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case u.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case u.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:r&u.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}}return e};function n(e,t){let n=null,i=r[e];if(i||(i={},r[e]=i),i.hasOwnProperty(String(t)))n=i[t];else{const r=s.PeFactory.prototype.factoryByType(e,t);s.compare(r,s.NULL)||(n=r,i[t]=n)}return n=o(n),n}e.initialize=function(){s.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return n(u.PE_TYPE_COORDSYS,e)},e.factoryByType=n,e.fromString=function(e,r){let n=null,i=t[e];if(i||(i={},t[e]=i),i.hasOwnProperty(r))n=i[r];else{const t=s.PeFactory.prototype.fromString(e,r);s.compare(t,s.NULL)||(n=t,i[r]=n)}return n=o(n),n},e.geogcs=function(e){return n(u.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return n(u.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return s.PeFactory.prototype.getCode(e)},e.projcs=function(e){return n(u.PE_TYPE_PROJCS,e)},e.unit=function(e){return n(u.PE_TYPE_UNIT,e)}}(l||(l={}));let P=null;var E,S,p,d,T,g,M,O,h;function R(e){function r(e,r,t){e[r]=t(e[r])}s=e,u.init(),E.init(),T.init(),M.init(),O.init(),P=class extends s.PeGCSExtent{destroy(){s.destroy(this)}};const t=[s.PeDatum,s.PeGeogcs,s.PeGeogtran,s.PeObject,s.PeParameter,s.PePrimem,s.PeProjcs,s.PeSpheroid,s.PeUnit];for(const e of t)r(e.prototype,"getName",(e=>function(){return e.call(this,new Array(u.PE_NAME_MAX))}));for(const e of[s.PeGeogtran,s.PeProjcs])r(e.prototype,"getParameters",(e=>function(){const r=new Array(u.PE_PARM_MAX);let t=e.call(this);for(let e=0;e<r.length;e++){const o=s.getValue(t,"*");r[e]=o?s.wrapPointer(o,s.PeParameter):null,t+=Int32Array.BYTES_PER_ELEMENT}return r}));r(s.PeHorizon.prototype,"getCoord",(e=>function(){const r=this.getSize();if(!r)return null;const t=[];return G(t,r,e.call(this)),t})),r(s.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const r=s._pe_getPeGTlistExtendedGTsSize();return function(){let t=null;const o=e.call(this);if(!s.compare(o,s.NULL)){t=[o];const e=this.getSteps();if(e>1){const n=s.getPointer(o);for(let o=1;o<e;o++)t.push(s.wrapPointer(n+r*o,s.PeGTlistExtendedGTs))}}return t}}));const o=s._pe_getPeHorizonSize(),n=e=>function(){let r=this._cache;if(r||(r=new Map,this._cache=r),r.has(e))return r.get(e);let t=null;const n=e.call(this);if(!s.compare(n,s.NULL)){t=[n];const e=n.getNump();if(e>1){const r=s.getPointer(n);for(let n=1;n<e;n++)t.push(s.wrapPointer(r+o*n,s.PeHorizon))}}return r.set(e,t),t};r(s.PeProjcs.prototype,"horizonGcsGenerate",n),r(s.PeProjcs.prototype,"horizonPcsGenerate",n),s.PeObject.prototype.toString=function(e=u.PE_STR_OPTS_NONE){s.ensureCache.prepare();const r=s.getPointer(this),t=s.ensureInt8(new Array(u.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(r,e,t))}}function y(e){if(!e)return;const r=s.getClass(e);if(!r)return;const t=s.getCache(r);if(!t)return;const o=s.getPointer(e);o&&delete t[o]}function A(e,r){const t=[],o=new Array(r);for(let r=0;r<e;r++)t.push(s.ensureInt8(o));return t}function m(e){let r;return Array.isArray(e[0])?(r=[],e.forEach((e=>{r.push(e[0],e[1])}))):r=e,r}function G(e,r,t,o=!1){if(o)for(let o=0;o<2*r;o++)e[o]=s.getValue(t+o*Float64Array.BYTES_PER_ELEMENT,"double");else{const o=0===e.length;for(let n=0;n<r;n++)o&&(e[n]=new Array(2)),e[n][0]=s.getValue(t,"double"),e[n][1]=s.getValue(t+Float64Array.BYTES_PER_ELEMENT,"double"),t+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let r;e.init=function(){e.PE_GTLIST_OPTS_COMMON=s.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,r=s._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,t,o,n,i,f){let a=null;const _=new s.PeInteger(f);try{const u=s.PeGTlistExtended.prototype.getGTlist(e,t,o,n,i,_);if((f=_.val)&&(a=[u],f>1)){const e=s.getPointer(u);for(let t=1;t<f;t++)a.push(s.wrapPointer(e+r*t,s.PeGTlistExtendedEntry))}}finally{s.destroy(_)}return a}}(E||(E={})),function(e){e.destroy=function(e){if(e?.length){for(const r of e)y(r),r.getEntries().forEach((e=>{y(e);const r=e.getGeogtran();y(r),r.getParameters().forEach(y),[r.getGeogcs1(),r.getGeogcs2()].forEach((e=>{y(e);const r=e.getDatum();y(r),y(r.getSpheroid()),y(e.getPrimem()),y(e.getUnit())}))}));s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(S||(S={})),function(e){e.geogToGeog=function(e,r,t,o,n){s.ensureCache.prepare();const i=m(t),f=t===i,a=s.ensureFloat64(i);let _=0;o&&(_=s.ensureFloat64(o));const u=s._pe_geog_to_geog(s.getPointer(e),r,a,_,n);return u&&G(t,r,a,f),u}}(p||(p={})),function(e){const r=(e,r,t,o,n,i)=>{let f,a;switch(s.ensureCache.prepare(),e){case"dd":f=s._pe_geog_to_dd,a=u.PE_DD_MAX;break;case"ddm":f=s._pe_geog_to_ddm,a=u.PE_DDM_MAX;break;case"dms":f=s._pe_geog_to_dms,a=u.PE_DMS_MAX}let _=0;r&&(_=s.getPointer(r));const l=m(o),c=s.ensureFloat64(l),P=A(t,a),E=f(_,t,c,n,s.ensureInt32(P));if(E)for(let e=0;e<t;e++)i[e]=s.UTF8ToString(P[e]);return E},t=(e,r,t,o,n)=>{let i;switch(s.ensureCache.prepare(),e){case"dd":i=s._pe_dd_to_geog;break;case"ddm":i=s._pe_ddm_to_geog;break;case"dms":i=s._pe_dms_to_geog}let f=0;r&&(f=s.getPointer(r));const a=o.map((e=>s.ensureString(e))),_=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*t)),l=i(f,t,_,u);return l&&G(n,t,u),l};e.geogToDms=function(e,t,o,n,i){return r("dms",e,t,o,n,i)},e.dmsToGeog=function(e,r,o,n){return t("dms",e,r,o,n)},e.geogToDdm=function(e,t,o,n,i){return r("ddm",e,t,o,n,i)},e.ddmToGeog=function(e,r,o,n){return t("ddm",e,r,o,n)},e.geogToDd=function(e,t,o,n,i){return r("dd",e,t,o,n,i)},e.ddToGeog=function(e,r,o,n){return t("dd",e,r,o,n)}}(d||(d={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=s.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=s.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,r,t,o,n,i,f){s.ensureCache.prepare();let a=0;e&&(a=s.getPointer(e));const _=m(t),l=s.ensureFloat64(_),c=A(r,u.PE_MGRS_MAX),P=s.ensureInt32(c),E=s._pe_geog_to_mgrs_extended(a,r,l,o,n,i,P);if(E)for(let e=0;e<r;e++)f[e]=s.UTF8ToString(c[e]);return E},e.mgrsToGeogExtended=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const f=t.map((e=>s.ensureString(e))),a=s.ensureInt32(f),_=s.ensureFloat64(new Array(2*r)),u=s._pe_mgrs_to_geog_extended(i,r,a,o,_);return u&&G(n,r,_),u}}(T||(T={})),function(e){e.geogToUsng=function(e,r,t,o,n,i,f){s.ensureCache.prepare();let a=0;e&&(a=s.getPointer(e));const _=m(t),l=s.ensureFloat64(_),c=A(r,u.PE_MGRS_MAX),P=s.ensureInt32(c),E=s._pe_geog_to_usng(a,r,l,o,n,i,P);if(E)for(let e=0;e<r;e++)f[e]=s.UTF8ToString(c[e]);return E},e.usngToGeog=function(e,r,t,o){s.ensureCache.prepare();let n=0;e&&(n=s.getPointer(e));const i=t.map((e=>s.ensureString(e))),f=s.ensureInt32(i),a=s.ensureFloat64(new Array(2*r)),_=s._pe_usng_to_geog(n,r,f,a);return _&&G(o,r,a),_}}(g||(g={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=s.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=s.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=s.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const f=m(t),a=s.ensureFloat64(f),_=A(r,u.PE_UTM_MAX),l=s.ensureInt32(_),c=s._pe_geog_to_utm(i,r,a,o,l);if(c)for(let e=0;e<r;e++)n[e]=s.UTF8ToString(_[e]);return c},e.utmToGeog=function(e,r,t,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const f=t.map((e=>s.ensureString(e))),a=s.ensureInt32(f),_=s.ensureFloat64(new Array(2*r)),u=s._pe_utm_to_geog(i,r,a,o,_);return u&&G(n,r,_),u}}(M||(M={})),function(e){const r=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=s.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=s.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(t,o=e.PE_PCSINFO_OPTION_DOMAIN){let n=null,i=null;return r.has(t)&&(i=r.get(t),i[o]&&(n=i[o])),n||(n=s.PePCSInfo.prototype.generate(t,o),i||(i=[],r.set(t,i)),i[o]=n),n}}(O||(O={})),function(e){e.versionString=function(){return s.PeVersion.prototype.version_string()}}(h||(h={}));const N=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return _},get PeDefs(){return u},get PeFactory(){return l},get PeGCSExtent(){return P},get PeGTTransformations(){return p},get PeGTlistExtended(){return E},get PeGTlistExtendedEntry(){return S},get PeNotationDms(){return d},get PeNotationMgrs(){return T},get PeNotationUsng(){return g},get PeNotationUtm(){return M},get PePCSInfo(){return O},get PeVersion(){return h},_init:R,get _pe(){return s},isLoaded:f,isSupported:function(){return!!(0,n.Z)("esri-wasm")},load:a},Symbol.toStringTag,{value:"Module"}))},30556:(e,r,t)=>{t.d(r,{c:()=>n});var o=t(5600);function n(e,r,t){let n,i;return void 0===r?(i=e,n=[void 0]):"string"!=typeof r?(i=e,n=[void 0],t=r):(i=r,n=Array.isArray(e)?e:[e]),(e,r)=>{const s=e.constructor.prototype;for(const f of n){const n=(0,o.CJ)(e,f,i);n.write&&"object"==typeof n.write||(n.write={}),t&&(n.write.target=t),n.write.writer=s[r]}}}},35454:(e,r,t)=>{t.d(r,{X:()=>n,w:()=>i});var o=t(78286);class n{constructor(e,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=this._invertMap(e),this.apiValues=this._getKeysSorted(this._apiToJSON),this.jsonValues=this._getKeysSorted(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,r,t)=>{const n=this.toJSON(e);void 0!==n&&(0,o.RB)(t,n,r)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const r=this._apiToJSON[e];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}_invertMap(e){const r={};for(const t in e)r[e[t]]=t;return r}_getKeysSorted(e){const r=[];for(const t in e)r.push(t);return r.sort(),r}}function i(){return function(e,r){return new n(e,{ignoreUnknown:!0,...r})}}},67900:(e,r,t)=>{t.d(r,{$C:()=>R,CN:()=>b,En:()=>O,Jo:()=>W,_R:()=>y,c9:()=>m,cM:()=>A,gV:()=>I,hd:()=>a,qE:()=>w,r6:()=>G,ty:()=>h}),t(80442);var o=t(35454),n=t(2109),i=t(68441),s=t(8744),f=t(58116);const a=39.37,_=i.sv.radius*Math.PI/200,u=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,l=f.Z,c=/UNIT\[([^\]]+)]/i,P=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),E=(0,o.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),S=e=>e*e,p=e=>e*e*e,d={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:S(.001)},"square-centimeters":{inBaseUnits:S(.01)},"square-decimeters":{inBaseUnits:S(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:S(1e3)},"square-inches":{inBaseUnits:S(.0254)},"square-feet":{inBaseUnits:S(.3048)},"square-yards":{inBaseUnits:S(.9144)},"square-miles":{inBaseUnits:S(1609.344)},"square-us-feet":{inBaseUnits:S(1200/3937)},acres:{inBaseUnits:.0015625*S(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*p(.001)},"cubic-centimeters":{inBaseUnits:1e3*p(.01)},"cubic-decimeters":{inBaseUnits:1e3*p(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*p(1e3)},"cubic-inches":{inBaseUnits:1e3*p(.0254)},"cubic-feet":{inBaseUnits:1e3*p(.3048)},"cubic-yards":{inBaseUnits:1e3*p(.9144)},"cubic-miles":{inBaseUnits:1e3*p(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},T=(()=>{const e={};for(const r in d)for(const t in d[r].units)e[t]=r;return e})();function g(e){const r=T[e];if(!r)throw new Error("unknown type");return r}function M(e,r=null){return r=r||g(e),d[r].baseUnit===e}function O(e,r,t){if(r===t)return e;const o=g(r);if(o!==g(t))throw new Error("incompatible units");const n=M(r,o)?e:function(e,r,t){return e*d[t].units[r].inBaseUnits}(e,r,o);return M(t,o)?n:function(e,r,t){return e/d[t].units[r].inBaseUnits}(n,t,o)}function h(e,r,t){return O(e,r,"meters")/(t*Math.PI/180)}function R(e){return E.fromJSON(e.toLowerCase())||null}function y(e){if(null!=e&&!(0,s.N$)(e))return 1;const r=m(e);return r>1e5?1:r}function A(e){return m(e)>=(0,n.Iu)(e).metersPerDegree?"meters":w(e)}function m(e,r=i.sv.metersPerDegree){return function(e,r=!1){const t=e?.wkid??null,o=e?.wkt2??e?.wkt??null;let n=null;if(t){if((0,s.o$)(t))return i.yr.metersPerDegree;if((0,s.ME)(t))return i.Z1.metersPerDegree;n=l.values[l[t]],!n&&r&&P.has(t)&&(n=_)}else o&&(U(o)?n=N(u.exec(o),n):k(o)&&(n=N(c.exec(o),n)));return n}(e,!0)??r}function G(e){return(0,s.sT)(e)?1:m(e)}function N(e,r){return e?.[1]?C(e[1]):r}function C(e){return parseFloat(e.split(",")[1])}function w(e){const r=e?.wkid??null,t=e?.wkt2??e?.wkt??null;let o=null;if(r)o=l.units[l[r]];else if(t){const e=U(t)?u:k(t)?c:null;if(e){const r=e.exec(t);r?.[1]&&(o=function(e){const r=/[\\"']{1}([^\\"']+)/.exec(e);let t=r?.[1];if(!t||!l.units.includes(t)){const r=C(e);t=null;const o=l.values;for(let e=0;e<o.length;++e)if(Math.abs(r-o[e])<D){t=l.units[e];break}}return t}(r[1]))}}return null!=o?R(o):null}function k(e){return/^GEOCCS/i.test(e)}function U(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const D=1e-7,I=(0,o.w)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),W=(0,o.w)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),b=(0,o.w)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},82971:(e,r,t)=>{t.d(r,{Z:()=>E});var o,n=t(43697),i=t(96674),s=t(22974),f=t(67900),a=t(75215),_=t(5600),u=t(52011),l=t(30556),c=t(8744);let P=o=class extends i.wq{static fromJSON(e){if(!e)return null;if(e.wkid){if(102100===e.wkid)return o.WebMercator;if(4326===e.wkid)return o.WGS84}const r=new o;return r.read(e),r}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){return e&&"object"==typeof e?e:{["string"==typeof e?"wkt":"wkid"]:e}}get isWGS84(){return(0,c.oR)(this)}get isWebMercator(){return(0,c.sS)(this)}get isGeographic(){return(0,c.sT)(this)}get isWrappable(){return(0,c.MP)(this)}get metersPerUnit(){return(0,f.c9)(this)}get unit(){return(0,f.qE)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,r){this.wkid||(r.wkt=e)}clone(){if(this===o.WGS84)return o.WGS84;if(this===o.WebMercator)return o.WebMercator;const e=new o;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,s.d9)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:r,referenceServiceName:t}=e.imageCoordinateSystem,{geodataXform:o}=e.imageCoordinateSystem,n=this.imageCoordinateSystem;return null==r||o?JSON.stringify(n)===JSON.stringify(e.imageCoordinateSystem):t?n.id===r&&n.referenceServiceName===t:n.id===r}return(0,c.fS)(this,e)}toJSON(e){return this.write(void 0,e)}};P.GCS_NAD_1927=null,P.WGS84=null,P.WebMercator=null,P.PlateCarree=null,(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"isWGS84",null),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"isWebMercator",null),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"isGeographic",null),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"isWrappable",null),(0,n._)([(0,_.Cb)({type:a.z8,json:{write:!0}})],P.prototype,"latestWkid",void 0),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"metersPerUnit",null),(0,n._)([(0,_.Cb)({readOnly:!0})],P.prototype,"unit",null),(0,n._)([(0,_.Cb)({type:a.z8,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],P.prototype,"wkid",void 0),(0,n._)([(0,_.Cb)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],P.prototype,"wkt",void 0),(0,n._)([(0,l.c)("wkt"),(0,l.c)("web-scene","wkt")],P.prototype,"writeWkt",null),(0,n._)([(0,_.Cb)({type:String,json:{write:!1}})],P.prototype,"wkt2",void 0),(0,n._)([(0,_.Cb)({type:a.z8,json:{write:!0}})],P.prototype,"vcsWkid",void 0),(0,n._)([(0,_.Cb)({type:a.z8,json:{write:!0}})],P.prototype,"latestVcsWkid",void 0),(0,n._)([(0,_.Cb)()],P.prototype,"imageCoordinateSystem",void 0),P=o=(0,n._)([(0,u.j)("esri.geometry.SpatialReference")],P),P.prototype.toJSON.isDefaultToJSON=!0,P.GCS_NAD_1927=new P({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'}),P.WGS84=new P(c.Zn),P.WebMercator=new P(c.R_),P.PlateCarree=new P(c.WR),Object.freeze&&(Object.freeze(P.GCS_NAD_1927),Object.freeze(P.WGS84),Object.freeze(P.WebMercator));const E=P},2109:(e,r,t)=>{t.d(r,{Iu:()=>u,JL:()=>f,e8:()=>l,fY:()=>c,kU:()=>s,mM:()=>a,oe:()=>P,pn:()=>_});var o=t(68441),n=t(8744);function i(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const s=i(o.sv),f=i(o.yr),a=i(o.Z1),_={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${o.sv.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`};function u(e){return null!=e&&((0,n.BZ)(e)||(0,n.fS)(e,f))?o.yr:null!=e&&((0,n.V2)(e)||(0,n.fS)(e,a))?o.Z1:o.sv}function l(e){return(0,n.o$)(e)?o.yr:(0,n.ME)(e)?o.Z1:o.sv}function c(e){return(0,n.fS)(e,s)}function P(e){return c(e)||(0,n.fS)(e,f)||(0,n.fS)(e,a)}},68441:(e,r,t)=>{t.d(r,{Z1:()=>s,sv:()=>n,yr:()=>i});class o{constructor(e,r,t,o){this.semiMajorAxis=e,this.flattening=r,this.outerAtmosphereRimWidth=t;const n=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*n,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=o||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const n=new o(6378137,1/298.257223563,3e5,.006694379990137799),i=new o(3396190,1/169.8944472236118,23e4),s=new o(1737400,0,0)},56726:(e,r,t)=>{var o;t.d(r,{W:()=>o}),function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"}(o||(o={}))},58116:(e,r,t)=>{let o;t.d(r,{Z:()=>n});const n={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,27700:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1};for(o=2e3;o<=2045;o++)n[o]=0;for(o=2056;o<=2065;o++)n[o]=0;for(o=2067;o<=2135;o++)n[o]=0;for(o=2137;o<=2154;o++)n[o]=0;for(o=2161;o<=2170;o++)n[o]=0;for(o=2172;o<=2193;o++)n[o]=0;for(o=2195;o<=2198;o++)n[o]=0;for(o=2200;o<=2203;o++)n[o]=0;for(o=2205;o<=2217;o++)n[o]=0;for(o=2222;o<=2224;o++)n[o]=1;for(o=2225;o<=2250;o++)n[o]=2;for(o=2251;o<=2253;o++)n[o]=1;for(o=2257;o<=2264;o++)n[o]=2;for(o=2274;o<=2279;o++)n[o]=2;for(o=2280;o<=2282;o++)n[o]=1;for(o=2283;o<=2289;o++)n[o]=2;for(o=2290;o<=2292;o++)n[o]=0;for(o=2308;o<=2313;o++)n[o]=0;for(o=2315;o<=2491;o++)n[o]=0;for(o=2494;o<=2866;o++)n[o]=0;for(o=2867;o<=2869;o++)n[o]=1;for(o=2870;o<=2888;o++)n[o]=2;for(o=2891;o<=2895;o++)n[o]=2;for(o=2896;o<=2898;o++)n[o]=1;for(o=2902;o<=2908;o++)n[o]=2;for(o=2915;o<=2920;o++)n[o]=2;for(o=2921;o<=2923;o++)n[o]=1;for(o=2924;o<=2930;o++)n[o]=2;for(o=2931;o<=2962;o++)n[o]=0;for(o=2964;o<=2968;o++)n[o]=2;for(o=2969;o<=2973;o++)n[o]=0;for(o=2975;o<=2991;o++)n[o]=0;for(o=2995;o<=3051;o++)n[o]=0;for(o=3054;o<=3079;o++)n[o]=0;for(o=3081;o<=3088;o++)n[o]=0;for(o=3092;o<=3101;o++)n[o]=0;for(o=3106;o<=3138;o++)n[o]=0;for(o=3146;o<=3151;o++)n[o]=0;for(o=3153;o<=3166;o++)n[o]=0;for(o=3168;o<=3172;o++)n[o]=0;for(o=3174;o<=3203;o++)n[o]=0;for(o=3294;o<=3358;o++)n[o]=0;for(o=3367;o<=3403;o++)n[o]=0;for(o=3408;o<=3416;o++)n[o]=0;for(o=3417;o<=3438;o++)n[o]=2;for(o=3441;o<=3446;o++)n[o]=2;for(o=3447;o<=3450;o++)n[o]=0;for(o=3451;o<=3459;o++)n[o]=2;for(o=3460;o<=3478;o++)n[o]=0;for(o=3554;o<=3559;o++)n[o]=0;for(o=3560;o<=3570;o++)n[o]=2;for(o=3571;o<=3581;o++)n[o]=0;for(o=3594;o<=3597;o++)n[o]=0;for(o=3601;o<=3604;o++)n[o]=0;for(o=3637;o<=3639;o++)n[o]=0;for(o=3665;o<=3667;o++)n[o]=0;for(o=3693;o<=3695;o++)n[o]=0;for(o=3701;o<=3727;o++)n[o]=0;for(o=3728;o<=3739;o++)n[o]=2;for(o=3740;o<=3751;o++)n[o]=0;for(o=3753;o<=3760;o++)n[o]=2;for(o=3761;o<=3773;o++)n[o]=0;for(o=3775;o<=3777;o++)n[o]=0;for(o=3779;o<=3781;o++)n[o]=0;for(o=3783;o<=3785;o++)n[o]=0;for(o=3788;o<=3791;o++)n[o]=0;for(o=3797;o<=3802;o++)n[o]=0;for(o=3814;o<=3816;o++)n[o]=0;for(o=3825;o<=3829;o++)n[o]=0;for(o=3832;o<=3841;o++)n[o]=0;for(o=3844;o<=3852;o++)n[o]=0;for(o=3873;o<=3885;o++)n[o]=0;for(o=3890;o<=3893;o++)n[o]=0;for(o=3907;o<=3912;o++)n[o]=0;for(o=3942;o<=3950;o++)n[o]=0;for(o=3968;o<=3970;o++)n[o]=0;for(o=3973;o<=3976;o++)n[o]=0;for(o=3986;o<=3989;o++)n[o]=0;for(o=3994;o<=3997;o++)n[o]=0;for(o=4048;o<=4051;o++)n[o]=0;for(o=4056;o<=4063;o++)n[o]=0;for(o=4093;o<=4096;o++)n[o]=0;for(o=4390;o<=4398;o++)n[o]=0;for(o=4399;o<=4413;o++)n[o]=2;for(o=4418;o<=4433;o++)n[o]=2;for(o=4455;o<=4457;o++)n[o]=2;for(o=4484;o<=4489;o++)n[o]=0;for(o=4491;o<=4554;o++)n[o]=0;for(o=4568;o<=4589;o++)n[o]=0;for(o=4652;o<=4656;o++)n[o]=0;for(o=4766;o<=4800;o++)n[o]=0;for(o=5014;o<=5016;o++)n[o]=0;for(o=5069;o<=5072;o++)n[o]=0;for(o=5105;o<=5130;o++)n[o]=0;for(o=5167;o<=5188;o++)n[o]=0;for(o=5253;o<=5259;o++)n[o]=0;for(o=5269;o<=5275;o++)n[o]=0;for(o=5292;o<=5311;o++)n[o]=0;for(o=5329;o<=5331;o++)n[o]=0;for(o=5343;o<=5349;o++)n[o]=0;for(o=5355;o<=5357;o++)n[o]=0;for(o=5387;o<=5389;o++)n[o]=0;for(o=5459;o<=5463;o++)n[o]=0;for(o=5479;o<=5482;o++)n[o]=0;for(o=5518;o<=5520;o++)n[o]=0;for(o=5530;o<=5539;o++)n[o]=0;for(o=5550;o<=5552;o++)n[o]=0;for(o=5562;o<=5583;o++)n[o]=0;for(o=5623;o<=5625;o++)n[o]=2;for(o=5631;o<=5639;o++)n[o]=0;for(o=5649;o<=5653;o++)n[o]=0;for(o=5663;o<=5680;o++)n[o]=0;for(o=5682;o<=5685;o++)n[o]=0;for(o=5875;o<=5877;o++)n[o]=0;for(o=5896;o<=5899;o++)n[o]=0;for(o=5921;o<=5940;o++)n[o]=0;for(o=6050;o<=6125;o++)n[o]=0;for(o=6244;o<=6275;o++)n[o]=0;for(o=6328;o<=6348;o++)n[o]=0;for(o=6350;o<=6356;o++)n[o]=0;for(o=6366;o<=6372;o++)n[o]=0;for(o=6381;o<=6387;o++)n[o]=0;for(o=6393;o<=6404;o++)n[o]=0;for(o=6480;o<=6483;o++)n[o]=0;for(o=6511;o<=6514;o++)n[o]=0;for(o=6579;o<=6581;o++)n[o]=0;for(o=6619;o<=6624;o++)n[o]=0;for(o=6625;o<=6627;o++)n[o]=2;for(o=6628;o<=6632;o++)n[o]=0;for(o=6634;o<=6637;o++)n[o]=0;for(o=6669;o<=6692;o++)n[o]=0;for(o=6707;o<=6709;o++)n[o]=0;for(o=6720;o<=6723;o++)n[o]=0;for(o=6732;o<=6738;o++)n[o]=0;for(o=6931;o<=6933;o++)n[o]=0;for(o=6956;o<=6959;o++)n[o]=0;for(o=7005;o<=7007;o++)n[o]=0;for(o=7057;o<=7070;o++)n[o]=2;for(o=7074;o<=7082;o++)n[o]=0;for(o=7109;o<=7118;o++)n[o]=0;for(o=7119;o<=7127;o++)n[o]=1;for(o=7374;o<=7376;o++)n[o]=0;for(o=7528;o<=7586;o++)n[o]=0;for(o=7587;o<=7645;o++)n[o]=2;for(o=7692;o<=7696;o++)n[o]=0;for(o=7755;o<=7787;o++)n[o]=0;for(o=7791;o<=7795;o++)n[o]=0;for(o=7799;o<=7801;o++)n[o]=0;for(o=7803;o<=7805;o++)n[o]=0;for(o=7825;o<=7831;o++)n[o]=0;for(o=7845;o<=7859;o++)n[o]=0;for(o=8013;o<=8032;o++)n[o]=0;for(o=8065;o<=8068;o++)n[o]=1;for(o=8518;o<=8529;o++)n[o]=2;for(o=8533;o<=8536;o++)n[o]=2;for(o=8538;o<=8540;o++)n[o]=2;for(o=8677;o<=8679;o++)n[o]=0;for(o=8836;o<=8840;o++)n[o]=0;for(o=8857;o<=8859;o++)n[o]=0;for(o=8908;o<=8910;o++)n[o]=0;for(o=9154;o<=9159;o++)n[o]=0;for(o=9205;o<=9218;o++)n[o]=0;for(o=9271;o<=9273;o++)n[o]=0;for(o=9295;o<=9297;o++)n[o]=0;for(o=9356;o<=9360;o++)n[o]=0;for(o=9404;o<=9407;o++)n[o]=0;for(o=9476;o<=9482;o++)n[o]=0;for(o=9487;o<=9494;o++)n[o]=0;for(o=9697;o<=9699;o++)n[o]=0;for(o=9821;o<=9865;o++)n[o]=0;for(o=10285;o<=10291;o++)n[o]=0;for(o=10314;o<=10317;o++)n[o]=0;for(o=10448;o<=10465;o++)n[o]=0;for(o=11114;o<=11118;o++)n[o]=0;for(o=20004;o<=20032;o++)n[o]=0;for(o=20047;o<=20049;o++)n[o]=0;for(o=20062;o<=20092;o++)n[o]=0;for(o=20135;o<=20138;o++)n[o]=0;for(o=20248;o<=20258;o++)n[o]=0;for(o=20348;o<=20358;o++)n[o]=0;for(o=20436;o<=20440;o++)n[o]=0;for(o=20822;o<=20824;o++)n[o]=0;for(o=20904;o<=20932;o++)n[o]=0;for(o=20934;o<=20936;o++)n[o]=0;for(o=21004;o<=21032;o++)n[o]=0;for(o=21035;o<=21037;o++)n[o]=0;for(o=21095;o<=21097;o++)n[o]=0;for(o=21148;o<=21150;o++)n[o]=0;for(o=21207;o<=21264;o++)n[o]=0;for(o=21307;o<=21364;o++)n[o]=0;for(o=21413;o<=21423;o++)n[o]=0;for(o=21453;o<=21463;o++)n[o]=0;for(o=21473;o<=21483;o++)n[o]=0;for(o=21780;o<=21782;o++)n[o]=0;for(o=21891;o<=21894;o++)n[o]=0;for(o=21896;o<=21899;o++)n[o]=0;for(o=22171;o<=22177;o++)n[o]=0;for(o=22181;o<=22187;o++)n[o]=0;for(o=22191;o<=22197;o++)n[o]=0;for(o=22207;o<=22222;o++)n[o]=0;for(o=22229;o<=22232;o++)n[o]=0;for(o=22234;o<=22236;o++)n[o]=0;for(o=22243;o<=22250;o++)n[o]=0;for(o=22262;o<=22265;o++)n[o]=0;for(o=22307;o<=22322;o++)n[o]=0;for(o=22348;o<=22357;o++)n[o]=0;for(o=22407;o<=22422;o++)n[o]=0;for(o=22462;o<=22465;o++)n[o]=0;for(o=22521;o<=22525;o++)n[o]=0;for(o=22607;o<=22622;o++)n[o]=0;for(o=22641;o<=22646;o++)n[o]=0;for(o=22648;o<=22657;o++)n[o]=0;for(o=22707;o<=22722;o++)n[o]=0;for(o=22762;o<=22765;o++)n[o]=0;for(o=22807;o<=22822;o++)n[o]=0;for(o=22991;o<=22994;o++)n[o]=0;for(o=23028;o<=23038;o++)n[o]=0;for(o=23301;o<=23333;o++)n[o]=2;for(o=23830;o<=23853;o++)n[o]=0;for(o=23866;o<=23872;o++)n[o]=0;for(o=23877;o<=23884;o++)n[o]=0;for(o=23886;o<=23894;o++)n[o]=0;for(o=23946;o<=23948;o++)n[o]=0;for(o=24311;o<=24313;o++)n[o]=0;for(o=24342;o<=24347;o++)n[o]=0;for(o=24370;o<=24374;o++)n[o]=10;for(o=24375;o<=24381;o++)n[o]=0;for(o=24718;o<=24721;o++)n[o]=0;for(o=24817;o<=24821;o++)n[o]=0;for(o=24877;o<=24882;o++)n[o]=0;for(o=24891;o<=24893;o++)n[o]=0;for(o=25391;o<=25395;o++)n[o]=0;for(o=25828;o<=25838;o++)n[o]=0;for(o=26191;o<=26195;o++)n[o]=0;for(o=26391;o<=26393;o++)n[o]=0;for(o=26701;o<=26722;o++)n[o]=0;for(o=26729;o<=26799;o++)n[o]=2;for(o=26801;o<=26803;o++)n[o]=2;for(o=26811;o<=26813;o++)n[o]=2;for(o=26847;o<=26870;o++)n[o]=2;for(o=26891;o<=26899;o++)n[o]=0;for(o=26901;o<=26923;o++)n[o]=0;for(o=26929;o<=26946;o++)n[o]=0;for(o=26948;o<=26998;o++)n[o]=0;for(o=27037;o<=27040;o++)n[o]=0;for(o=27205;o<=27232;o++)n[o]=0;for(o=27258;o<=27260;o++)n[o]=0;for(o=27391;o<=27398;o++)n[o]=0;for(o=27561;o<=27564;o++)n[o]=0;for(o=27571;o<=27574;o++)n[o]=0;for(o=27581;o<=27584;o++)n[o]=0;for(o=27591;o<=27594;o++)n[o]=0;for(o=28191;o<=28193;o++)n[o]=0;for(o=28348;o<=28358;o++)n[o]=0;for(o=28402;o<=28432;o++)n[o]=0;for(o=28462;o<=28492;o++)n[o]=0;for(o=29118;o<=29122;o++)n[o]=0;for(o=29168;o<=29172;o++)n[o]=0;for(o=29177;o<=29185;o++)n[o]=0;for(o=29187;o<=29195;o++)n[o]=0;for(o=29900;o<=29903;o++)n[o]=0;for(o=30161;o<=30179;o++)n[o]=0;for(o=30491;o<=30494;o++)n[o]=0;for(o=30729;o<=30732;o++)n[o]=0;for(o=31251;o<=31259;o++)n[o]=0;for(o=31265;o<=31268;o++)n[o]=0;for(o=31275;o<=31279;o++)n[o]=0;for(o=31281;o<=31297;o++)n[o]=0;for(o=31461;o<=31469;o++)n[o]=0;for(o=31491;o<=31495;o++)n[o]=0;for(o=31917;o<=31922;o++)n[o]=0;for(o=31965;o<=32e3;o++)n[o]=0;for(o=32001;o<=32003;o++)n[o]=2;for(o=32005;o<=32031;o++)n[o]=2;for(o=32033;o<=32060;o++)n[o]=2;for(o=32064;o<=32067;o++)n[o]=2;for(o=32074;o<=32077;o++)n[o]=2;for(o=32081;o<=32086;o++)n[o]=0;for(o=32107;o<=32130;o++)n[o]=0;for(o=32133;o<=32159;o++)n[o]=0;for(o=32164;o<=32167;o++)n[o]=2;for(o=32180;o<=32199;o++)n[o]=0;for(o=32201;o<=32260;o++)n[o]=0;for(o=32301;o<=32360;o++)n[o]=0;for(o=32401;o<=32460;o++)n[o]=0;for(o=32501;o<=32560;o++)n[o]=0;for(o=32601;o<=32662;o++)n[o]=0;for(o=32664;o<=32667;o++)n[o]=2;for(o=32701;o<=32761;o++)n[o]=0;for(o=53001;o<=53004;o++)n[o]=0;for(o=53008;o<=53019;o++)n[o]=0;for(o=53021;o<=53032;o++)n[o]=0;for(o=53034;o<=53037;o++)n[o]=0;for(o=53042;o<=53046;o++)n[o]=0;for(o=53074;o<=53080;o++)n[o]=0;for(o=54001;o<=54004;o++)n[o]=0;for(o=54008;o<=54019;o++)n[o]=0;for(o=54021;o<=54032;o++)n[o]=0;for(o=54034;o<=54037;o++)n[o]=0;for(o=54042;o<=54046;o++)n[o]=0;for(o=54048;o<=54053;o++)n[o]=0;for(o=54074;o<=54080;o++)n[o]=0;for(o=54098;o<=54101;o++)n[o]=0;for(o=102001;o<=102040;o++)n[o]=0;for(o=102042;o<=102063;o++)n[o]=0;for(o=102065;o<=102067;o++)n[o]=0;for(o=102070;o<=102117;o++)n[o]=0;for(o=102122;o<=102216;o++)n[o]=0;for(o=102221;o<=102377;o++)n[o]=0;for(o=102382;o<=102388;o++)n[o]=0;for(o=102389;o<=102398;o++)n[o]=2;for(o=102399;o<=102444;o++)n[o]=0;for(o=102445;o<=102447;o++)n[o]=2;for(o=102448;o<=102458;o++)n[o]=0;for(o=102459;o<=102468;o++)n[o]=2;for(o=102469;o<=102499;o++)n[o]=0;for(o=102500;o<=102519;o++)n[o]=1;for(o=102520;o<=102524;o++)n[o]=0;for(o=102525;o<=102529;o++)n[o]=2;for(o=102530;o<=102588;o++)n[o]=0;for(o=102590;o<=102598;o++)n[o]=0;for(o=102601;o<=102603;o++)n[o]=0;for(o=102605;o<=102628;o++)n[o]=0;for(o=102629;o<=102646;o++)n[o]=2;for(o=102648;o<=102700;o++)n[o]=2;for(o=102701;o<=102703;o++)n[o]=0;for(o=102707;o<=102730;o++)n[o]=2;for(o=102733;o<=102758;o++)n[o]=2;for(o=102767;o<=102900;o++)n[o]=0;for(o=102901;o<=102933;o++)n[o]=2;for(o=102934;o<=102950;o++)n[o]=13;for(o=102951;o<=102955;o++)n[o]=0;for(o=102961;o<=102963;o++)n[o]=0;for(o=102965;o<=102969;o++)n[o]=0;for(o=102971;o<=102973;o++)n[o]=0;for(o=102975;o<=102989;o++)n[o]=0;for(o=102990;o<=102992;o++)n[o]=1;for(o=102997;o<=103002;o++)n[o]=0;for(o=103003;o<=103008;o++)n[o]=2;for(o=103009;o<=103011;o++)n[o]=0;for(o=103012;o<=103014;o++)n[o]=2;for(o=103019;o<=103021;o++)n[o]=0;for(o=103022;o<=103024;o++)n[o]=2;for(o=103029;o<=103031;o++)n[o]=0;for(o=103032;o<=103034;o++)n[o]=2;for(o=103065;o<=103068;o++)n[o]=0;for(o=103074;o<=103076;o++)n[o]=0;for(o=103077;o<=103079;o++)n[o]=1;for(o=103080;o<=103082;o++)n[o]=0;for(o=103083;o<=103085;o++)n[o]=2;for(o=103090;o<=103093;o++)n[o]=0;for(o=103097;o<=103099;o++)n[o]=0;for(o=103100;o<=103102;o++)n[o]=2;for(o=103107;o<=103109;o++)n[o]=0;for(o=103110;o<=103112;o++)n[o]=2;for(o=103113;o<=103116;o++)n[o]=0;for(o=103117;o<=103120;o++)n[o]=2;for(o=103153;o<=103157;o++)n[o]=0;for(o=103158;o<=103162;o++)n[o]=2;for(o=103163;o<=103165;o++)n[o]=0;for(o=103166;o<=103168;o++)n[o]=1;for(o=103169;o<=103171;o++)n[o]=2;for(o=103186;o<=103188;o++)n[o]=0;for(o=103189;o<=103191;o++)n[o]=2;for(o=103192;o<=103195;o++)n[o]=0;for(o=103196;o<=103199;o++)n[o]=2;for(o=103200;o<=103224;o++)n[o]=0;for(o=103225;o<=103227;o++)n[o]=1;for(o=103232;o<=103237;o++)n[o]=0;for(o=103238;o<=103243;o++)n[o]=2;for(o=103244;o<=103246;o++)n[o]=0;for(o=103247;o<=103249;o++)n[o]=2;for(o=103254;o<=103256;o++)n[o]=0;for(o=103257;o<=103259;o++)n[o]=2;for(o=103264;o<=103266;o++)n[o]=0;for(o=103267;o<=103269;o++)n[o]=2;for(o=103300;o<=103375;o++)n[o]=0;for(o=103381;o<=103383;o++)n[o]=0;for(o=103384;o<=103386;o++)n[o]=1;for(o=103387;o<=103389;o++)n[o]=0;for(o=103390;o<=103392;o++)n[o]=2;for(o=103397;o<=103399;o++)n[o]=0;for(o=103400;o<=103471;o++)n[o]=2;for(o=103476;o<=103478;o++)n[o]=0;for(o=103479;o<=103481;o++)n[o]=2;for(o=103486;o<=103488;o++)n[o]=0;for(o=103489;o<=103491;o++)n[o]=2;for(o=103492;o<=103495;o++)n[o]=0;for(o=103496;o<=103499;o++)n[o]=2;for(o=103528;o<=103543;o++)n[o]=0;for(o=103544;o<=103548;o++)n[o]=2;for(o=103549;o<=103551;o++)n[o]=0;for(o=103552;o<=103554;o++)n[o]=1;for(o=103555;o<=103557;o++)n[o]=2;for(o=103558;o<=103560;o++)n[o]=0;for(o=103571;o<=103573;o++)n[o]=0;for(o=103574;o<=103576;o++)n[o]=2;for(o=103577;o<=103580;o++)n[o]=0;for(o=103581;o<=103583;o++)n[o]=2;for(o=103595;o<=103694;o++)n[o]=0;for(o=103696;o<=103699;o++)n[o]=0;for(o=103700;o<=103793;o++)n[o]=2;for(o=103794;o<=103890;o++)n[o]=0;for(o=103891;o<=103896;o++)n[o]=2;for(o=103900;o<=103971;o++)n[o]=2;for(o=103972;o<=103977;o++)n[o]=0;for(o=112e3;o<=112101;o++)n[o]=0},8744:(e,r,t)=>{t.d(r,{B9:()=>E,BZ:()=>R,C5:()=>P,JY:()=>G,ME:()=>y,MP:()=>m,N$:()=>p,QM:()=>O,R_:()=>C,V2:()=>A,WR:()=>w,Zn:()=>N,fS:()=>c,o$:()=>h,oR:()=>d,sS:()=>M,sT:()=>S,xl:()=>T,yW:()=>g});var o=t(19153),n=(t(83305),t(56726)),i=t(58116);const s={102113:!0,102100:!0,3857:!0,3785:!0},f={4326:!0,3785:!0,3857:!0,102113:!0,102100:!0,104905:!0,104971:!0},a='PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',_=[-20037508.342788905,20037508.342788905],u=[-20037508.342787,20037508.342787],l={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:_,origin:u,dx:1e-5},102100:{wkTemplate:a,valid:_,origin:u,dx:1e-5},3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:_,origin:u,dx:1e-5},3857:{wkTemplate:a,valid:_,origin:u,dx:1e-5},4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5}};function c(e,r){if(e===r)return!0;if(null==e||null==r)return!1;if(null!=e.wkid||null!=r.wkid)return e.wkid===r.wkid||M(e)&&M(r)||null!=r.latestWkid&&e.wkid===r.latestWkid||null!=e.latestWkid&&r.wkid===e.latestWkid;const t=e.wkt2??e.wkt,o=r.wkt2??r.wkt;return!(!t||!o)&&t.toUpperCase()===o.toUpperCase()}function P(e){return G(e)&&e.wkid&&l[e.wkid]||null}function E(e){if(!e)return;if(e.wkid)return String(e.wkid);const r=e.wkt||e.wkt2;return JSON.stringify(r?{wkt:r}:{})}function S(e){if(!G(e))return!1;if(e.wkid)return null==i.Z[e.wkid];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function p(e){return!(R(e)||A(e))}function d(e){return G(e)&&4326===e.wkid}function T(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function g(e){return G(e)&&e.wkid===n.W.CGCS2000}function M(e){return G(e)&&null!=e.wkid&&!0===s[e.wkid]}function O(e){return G(e)&&32662===e.wkid}function h(e){return e===n.W.GCSMARS2000||e===n.W.GCSMARS2000_SPHERE}function R(e){return G(e)&&null!=e.wkid&&h(e.wkid)}function y(e){return e===n.W.GCSMOON2000}function A(e){return G(e)&&null!=e.wkid&&y(e.wkid)}function m(e){return G(e)&&null!=e.wkid&&!0===f[e.wkid]}function G(e){return null!=e&&(null!=e.wkid&&e.wkid>=2e3||null!=e.wkt2||null!=e.wkt)}const N={wkid:4326,wkt:(0,o.gx)(l[4326].wkTemplate,{Central_Meridian:"0.0"})},C={wkid:102100,latestWkid:3857},w={wkid:32662}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8008,8062],{71592:(e,a,t)=>{t.d(a,{w:()=>u});var r=t(40330),n=t(3172),i=t(20102),l=t(95330),s=t(66677),c=t(48522),o=t(15235);async function u(e,a){const t=(0,s.Qc)(e);if(!t)throw new i.Z("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.Z)(t,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(a)return a}catch(e){(0,l.r9)(e)}return null}(e);null!=i&&(t.portal=new c.Z({url:i}));try{return t.load({signal:e.signal})}catch(e){return(0,l.r9)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const f=await async function({sceneLayerItem:e,signal:a}){if(!e)return null;try{const 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.r9)(e),null}}(u);if(!f?.url)throw new i.Z("related-service-not-found","Could not find feature service through portal item relationship");const p=await d(f.url,u);return p.portalItem=f,p}async function y(e){if(e.rootDocument)return e.rootDocument;const a={query:{f:"json",token:e.apiKey},responseType:"json",signal:e.signal};try{const t=await(0,n.Z)(e.sceneServerUrl,a);e.rootDocument=t.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,a){const t=(0,s.Qc)(e);if(!t)throw new i.Z("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=e=>{const t={query:{f:"json"},responseType:"json",authMode:e,signal:a.signal};return(0,n.Z)(r,t)},u=o("anonymous").catch((()=>o("no-prompt"))),[d,f]=await Promise.all([u,c]),p=f?.layers,m=d.data&&d.data.layers;if(!Array.isArray(m))throw new Error("expected layers array");if(Array.isArray(p)){for(let e=0;e<Math.min(p.length,m.length);e++)if(p[e].id===l)return{serverUrl:r,layerId:m[e].id}}else if(null!=l&&l<m.length)return{serverUrl:r,layerId:m[l].id};throw new Error("could not find matching associated sublayer")}},52104:(e,a,t)=>{t.d(a,{V:()=>n});var r=t(96187);async function n(e,a){const t=await(0,r.T)(e,a);t.layers=t.layers.filter(i);const n={serviceJSON:t};if((t.currentVersion??0)<10.5)return n;const l=await(0,r.T)(e+"/layers",a);return n.layersJSON={layers:l.layers.filter(i),tables:l.tables},n}function i(e){return!e.type||"Feature Layer"===e.type||"Oriented Imagery Layer"===e.type}},87344:(e,a,t)=>{t.d(a,{T:()=>r});const r={BingMapsLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(8153)]).then(t.bind(t,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(4680),t.e(9238),t.e(6170),t.e(3975),t.e(1161),t.e(3554)]).then(t.bind(t,30223))).default,CSVLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(4680),t.e(9238),t.e(3584)]).then(t.bind(t,45425))).default,DimensionLayer:async()=>(await Promise.all([t.e(163),t.e(6874),t.e(81)]).then(t.bind(t,40081))).default,ElevationLayer:async()=>(await Promise.all([t.e(163),t.e(6569),t.e(9016),t.e(2763)]).then(t.bind(t,65665))).default,FeatureLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(4680),t.e(9238),t.e(7520)]).then(t.bind(t,19238))).default,GeoJSONLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(9069)]).then(t.bind(t,23477))).default,GeoRSSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(9281)]).then(t.bind(t,3723))).default,GroupLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9059)]).then(t.bind(t,40504))).default,ImageryLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(6569),t.e(4165),t.e(4599),t.e(6610),t.e(3663),t.e(4608)]).then(t.bind(t,60590))).default,ImageryTileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(6569),t.e(6610),t.e(4136),t.e(3663),t.e(5913)]).then(t.bind(t,74878))).default,IntegratedMeshLayer:async()=>(await Promise.all([t.e(163),t.e(3975),t.e(1537)]).then(t.bind(t,9310))).default,KMLLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(1423),t.e(6472)]).then(t.bind(t,42756))).default,LineOfSightLayer:async()=>(await Promise.all([t.e(163),t.e(6874),t.e(1786)]).then(t.bind(t,21786))).default,LinkChartLayer:async()=>(await Promise.all([t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(6569),t.e(1423),t.e(4165),t.e(6404),t.e(8968),t.e(5286),t.e(801)]).then(t.bind(t,19087))).default,MapImageLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(1423),t.e(4165),t.e(3778),t.e(4599),t.e(2863),t.e(7374)]).then(t.bind(t,27374))).default,MapNotesLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(4680),t.e(9238),t.e(2575)]).then(t.bind(t,62128))).default,MediaLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(4828)]).then(t.bind(t,57765))).default,OGCFeatureLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(2341)]).then(t.bind(t,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9971),t.e(6237)]).then(t.bind(t,66237))).default,OrientedImageryLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(4680),t.e(9238),t.e(3681)]).then(t.bind(t,44958))).default,PointCloudLayer:async()=>(await Promise.all([t.e(163),t.e(8775),t.e(3975),t.e(8643),t.e(7863)]).then(t.bind(t,10608))).default,RouteLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(1423),t.e(261)]).then(t.bind(t,40153))).default,SceneLayer:async()=>(await Promise.all([t.e(163),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(1423),t.e(4165),t.e(3778),t.e(6170),t.e(3975),t.e(1161),t.e(1174)]).then(t.bind(t,57476))).default,StreamLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(7132)]).then(t.bind(t,88387))).default,SubtypeGroupLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(1423),t.e(4165),t.e(3778),t.e(4680),t.e(8324),t.e(2596)]).then(t.bind(t,20697))).default,TileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(1423),t.e(4165),t.e(3778),t.e(4599),t.e(9016),t.e(2863),t.e(8636)]).then(t.bind(t,98636))).default,UnknownLayer:async()=>(await t.e(4166).then(t.bind(t,44166))).default,UnsupportedLayer:async()=>(await t.e(9296).then(t.bind(t,39296))).default,VectorTileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9016),t.e(4325),t.e(9805),t.e(5481)]).then(t.bind(t,94756))).default,VoxelLayer:async()=>(await Promise.all([t.e(163),t.e(8775),t.e(3975),t.e(9327)]).then(t.bind(t,28865))).default,WFSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(3928),t.e(4467),t.e(6569),t.e(1423),t.e(4165),t.e(3778),t.e(6404),t.e(6506)]).then(t.bind(t,12653))).default,WMSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9790),t.e(8775),t.e(1574)]).then(t.bind(t,25906))).default,WMTSLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9971),t.e(2594)]).then(t.bind(t,72594))).default,WebTileLayer:async()=>(await Promise.all([t.e(163),t.e(4609),t.e(9971)]).then(t.bind(t,16199))).default}},33516:(e,a,t)=>{t.d(a,{Y:()=>l,h:()=>i});var r=t(17452),n=t(48522);function i(e){return{origin:"portal-item",url:(0,r.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function l(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,r.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}},18062:(e,a,t)=>{t.d(a,{$O:()=>b,CD:()=>p,Ld:()=>d,Ok:()=>g,Q4:()=>S,XX:()=>v,_Y:()=>I,load:()=>f});var r=t(20102),n=t(66677),i=t(71592),l=t(52104),s=t(87344),c=t(48522),o=t(33516),u=t(40555),y=t(96187);class d{constructor(){this._serviceMetadatas=new Map}async fetchServiceMetadata(e,a){const t=this._serviceMetadatas.get(e);if(t)return t;const r=await(0,y.T)(e,a);return this._serviceMetadatas.set(e,r),r}}async function f(e,a){const t=e.instance.portalItem;if(t?.id)return await t.load(a),function(e){const a=e.instance.portalItem;if(!a?.type||!e.supportedTypes.includes(a.type))throw new r.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:a?.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,a){const t=e.instance,n=t.portalItem;if(!n)return;const{url:i,title:s}=n,c=(0,o.h)(n);if("group"===t.type)return t.read({title:s},c),async function(e,a){let t;const{portalItem:n}=e;if(!n)return;const i=n.type,s=a.layerModuleTypeMap;switch(i){case"Feature Service":case"Feature Collection":t=s.FeatureLayer;break;case"Stream Service":t=s.StreamLayer;break;case"Scene Service":t=s.SceneLayer;break;default:throw new r.Z("portal:unsupported-item-type-as-group",`The item type '${i}' is not supported as a 'IGroupLayer'`)}const c=new d;let[o,u]=await Promise.all([t(),L(a,c)]),f=()=>o;if("Feature Service"===i){u=n.url?await b(u,n.url,c):{};const a=v(u),t=I(u),r=[];if(a.length||t?.length){a.length&&r.push("SubtypeGroupLayer"),t?.length&&r.push("OrientedImageryLayer");const e=[];for(const a of r){const t=s[a];e.push(t())}const n=await Promise.all(e),i=new Map;r.forEach(((e,a)=>{i.set(e,n[a])})),f=e=>e.layerType?i.get(e.layerType)??o:o}const i=await async function(e){const{layersJSON:a}=await(0,l.V)(e);if(!a)return null;const t=[...a.layers,...a.tables];return e=>t.find((a=>a.id===e.id))}(n.url);return await w(e,f,u,i)}return"Scene Service"===i&&n.url&&(u=await p(n,u,c)),S(u)>0?await w(e,f,u):await async function(e,a){const{portalItem:t}=e;if(!t?.url)return;const r=await(0,y.T)(t.url);r&&w(e,a,{layers:r.layers?.map(m),tables:r.tables?.map(m)})}(e,f)}(t,e);i&&t.read({url:i},c);const f=new d,h=await L(e,f,a);return h&&t.read(h,c),t.resourceReferences={portalItem:n,paths:c.readResourcePaths??[]},"subtype-group"!==t.type&&t.read({title:s},c),(0,u.y)(t,c)}(e,a)}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(m)}const{serverUrl:r,portalItem:n}=await(0,i.w)(e.url,{sceneLayerItem:e}).catch((()=>({serverUrl:null,portalItem:null})));if(null==r)return a.tables=[],a;if(!a.tables&&n){const e=await n.fetchData();if(e?.tables)a.tables=e.tables.map(m);else{const e=await t.fetchServiceMetadata(r);a.tables=e?.tables?.map(m)}}if(a.tables)for(const e of a.tables)e.url=`${r}/${e.id}`;return a}function m(e){const a={id:e.id,name:e.name};return"Oriented Imagery Layer"===e.type&&(a.layerType="OrientedImageryLayer"),a}async function w(e,a,t,r){let n=t.layers||[];const i=t.tables||[];if("Feature Collection"===e.portalItem?.type?(n.forEach(((e,a)=>{e.id=a,"Table"===e?.layerDefinition?.type&&i.push(e)})),n=n.filter((e=>"Table"!==e?.layerDefinition?.type))):(n.reverse(),i.reverse()),n.forEach((n=>{const i=r?.(n);if(i||!r){const r=h(e,a(n),t,n,i);e.add(r)}})),i.length){const a=await s.T.FeatureLayer();i.forEach((n=>{const i=r?.(n);if(i||!r){const r=h(e,a,t,n,i);e.tables.add(r)}}))}}function h(e,a,t,r,n){const i=e.portalItem,l={portalItem:i.clone(),layerId:r.id};null!=r.url&&(l.url=r.url);const s=new a(l);if("sourceJSON"in s&&(s.sourceJSON=n),"subtype-group"!==s.type&&(s.sublayerTitleMode="service-name"),"Feature Collection"===i.type){const e={origin:"portal-item",portal:i.portal||c.Z.getDefault()};s.read(r,e);const a=t.showLegend;null!=a&&s.read({showLegend:a},e)}return s}async function L(e,a,t){if(!1===e.supportsData)return;const r=e.instance,i=r.portalItem;if(!i)return;let l=null;try{l=await i.fetchData("json",t)}catch(e){}if(function(e){return"stream"!==e.type&&"layerId"in e}(r)){let e=null;const t=await async function(e,a,t){if(a?.layers&&a?.tables)return S(a);const r=(0,n.Qc)(e.url);if(!r)return 1;const i=await t.fetchServiceMetadata(r.url.path).catch((()=>null));return(a?.layers?.length??i?.layers?.length??0)+(a?.tables?.length??i?.tables?.length??0)}(i,l,a);if((l?.layers||l?.tables)&&t>0){if(null==r.layerId){const e=v(l);r.layerId="subtype-group"===r.type?e?.[0]:g(l)}e=function(e,a){const{layerId:t}=a,r=e.layers?.find((e=>e.id===t))||e.tables?.find((e=>e.id===t));return r&&function(e,a){return!("feature"===a.type&&"layerType"in e&&"SubtypeGroupLayer"===e.layerType||"subtype-group"===a.type&&!("layerType"in e))}(r,a)?r:null}(l,r),e&&null!=l.showLegend&&(e.showLegend=l.showLegend)}return t>1&&"sublayerTitleMode"in r&&"service-name"!==r.sublayerTitleMode&&(r.sublayerTitleMode="item-title-and-service-name"),e}return l}async function b(e,a,t){if(null==e?.layers||null==e?.tables){const r=await t.fetchServiceMetadata(a);(e=e||{}).layers=e.layers||r?.layers?.map(m),e.tables=e.tables||r?.tables?.map(m)}return e}function g(e){const a=e.layers;if(a?.length)return a[0].id;const t=e.tables;return t?.length?t[0].id:null}function S(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function v(e){const a=[];return e?.layers?.forEach((e=>{"SubtypeGroupLayer"===e.layerType&&a.push(e.id)})),a}function I(e){return e?.layers?.filter((({layerType:e})=>"OrientedImageryLayer"===e)).map((({id:e})=>e))}},28008:(e,a,t)=>{t.d(a,{fromItem:()=>u,v:()=>y});var r=t(20102),n=t(71592),i=t(84230),l=t(87344),s=t(15235),c=t(18062),o=t(14661);async function u(e){!e.portalItem||e.portalItem instanceof s.default||(e={...e,portalItem:new s.default(e.portalItem)});const a=await async function(e){await e.load();const a=new c.Ld;return async function(e){const a=e.className,t=l.T[a];return{constructor:await t(),properties:e.properties}}(await y(e,a))}(e.portalItem);return new(0,a.constructor)({portalItem:e.portalItem,...a.properties})}async function y(e,a){switch(e.type){case"Map Service":return async function(e,a){return await async function(e,a){return(await a.fetchServiceMetadata(e.url)).tileInfo}(e,a)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,a);case"Feature Service":return async function(e,a){const t=await d(e,a);if("object"==typeof t){const e={};return null!=t.id&&(e.layerId=t.id),{className:t.className||"FeatureLayer",properties:e}}return{className:"GroupLayer"}}(e,a);case"Feature Collection":return async function(e){await e.load();const a=(0,o._$)(e,"Map Notes"),t=(0,o._$)(e,"Markup");if(a||t)return{className:"MapNotesLayer"};if((0,o._$)(e,"Route Layer"))return{className:"RouteLayer"};const r=await e.fetchData();return 1===(0,c.Q4)(r)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Scene Service":return async function(e,a){const t=await d(e,a,(async()=>{try{if(!e.url)return[];const{serverUrl:t}=await(0,n.w)(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(i.fb))if(e.typeKeywords.includes(a))return{className:i.fb[a]};const l=await a.fetchServiceMetadata(n);return{className:i.fb[l?.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"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 e.fetchData(),n=r?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const i=await a.fetchServiceMetadata(e.url),l=i.cacheType?.toLowerCase(),s=i.capabilities?.toLowerCase().includes("tilesonly");return"map"===l||s?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,a);case"Stream Service":case"Feed":return{className:"StreamLayer"};case"Vector Tile Service":return{className:"VectorTileLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"CSV":return{className:"CSVLayer"};case"KML":return{className:"KMLLayer"};case"WFS":return{className:"WFSLayer"};case"WMTS":return{className:"WMTSLayer"};case"WMS":return{className:"WMSLayer"};default:throw new r.Z("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function d(e,a,t){const r=e.url;if(!r||/\/\d+$/.test(r))return{};await e.load();let n=await e.fetchData();if("Feature Service"===e.type){const e=await(0,c.$O)(n,r,a),t=f(e);if("object"==typeof t){const a=(0,c.XX)(e),r=(0,c._Y)(e);t.className=null!=t.id&&a.includes(t.id)?"SubtypeGroupLayer":null!=t.id&&r?.includes(t.id)?"OrientedImageryLayer":"FeatureLayer"}return t}if("Scene Service"===e.type&&(n=await(0,c.CD)(e,n,a)),(0,c.Q4)(n)>0)return f(n);const i=await a.fetchServiceMetadata(r);return t&&(i.tables=await t()),f(i)}function f(e){return 1===(0,c.Q4)(e)&&{id:(0,c.Ok)(e)}}},40555:(e,a,t)=>{t.d(a,{y:()=>l});var r=t(66643),n=t(95330),i=t(20941);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.q6)(l.populateFromStyle());if((0,n.k_)(t),!1===s.ok){const t=s.error;a?.messages&&a.messages.push(new i.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${t.message}`,{error:t,context:a})),e.clear("renderer",a?.origin)}}}},96187:(e,a,t)=>{t.d(a,{T:()=>n});var r=t(3172);async function n(e,a){const{data:t}=await(0,r.Z)(e,{responseType:"json",query:{f:"json",...a?.customParameters,token:a?.apiKey}});return t}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7132,5732,5935,2596],{84552:(e,t,r)=>{r.d(t,{Z:()=>c});var i=r(43697),n=r(2368),s=r(96674),o=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(36030)),u=r(52011),d=r(78981);let p=class extends((0,n.J)(s.wq)){constructor(e){super(e),this.unit="milliseconds",this.value=0}toMilliseconds(){return(0,o.rJ)(this.value,this.unit,"milliseconds")}};(0,i._)([(0,l.J)(d.v,{nonNullable:!0})],p.prototype,"unit",void 0),(0,i._)([(0,a.Cb)({type:Number,json:{write:!0},nonNullable:!0})],p.prototype,"value",void 0),p=(0,i._)([(0,u.j)("esri.TimeInterval")],p);const c=p},5732:(e,t,r)=>{r.d(t,{c:()=>i,g:()=>n});var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},88387:(e,t,r)=>{r.r(t),r.d(t,{default:()=>X});var i,n=r(43697),s=(r(66577),r(51773)),o=(r(16050),r(12501),r(28756),r(92271),r(72529),r(5499),r(84382),r(81571),r(91423)),a=r(32400),l=r(3172),u=r(2368),d=r(20102),p=r(50758),c=r(22974),y=r(92604),h=r(16453),f=r(95330),m=r(5600),w=r(75215),b=r(71715),v=r(52011),g=r(86973),S=r(87085),_=r(17287),I=r(71612),C=r(17017),x=r(69637),j=r(6404),E=r(38009),R=r(16859),F=r(34760),T=r(72965),O=r(28294),Z=r(21506),P=r(50957),A=r(1231),N=r(53518),M=r(35671),D=r(54306),L=r(30707),U=r(96674);r(67676),r(80442);let q=i=class extends U.wq{constructor(){super(...arguments),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}clone(){return new i({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,n._)([(0,m.Cb)({type:Number,json:{write:!0}})],q.prototype,"age",void 0),(0,n._)([(0,m.Cb)({type:Number,json:{write:!0}})],q.prototype,"ageReceived",void 0),(0,n._)([(0,m.Cb)({type:Number,json:{write:!0}})],q.prototype,"displayCount",void 0),(0,n._)([(0,m.Cb)({type:Number,json:{write:!0}})],q.prototype,"maxObservations",void 0),q=i=(0,n._)([(0,v.j)("esri.layers.support.PurgeOptions")],q);const k=q;var V=r(40555),G=r(14165),J=r(32163),B=r(86787),Q=r(12259),z=r(82971),H=r(6570);const W=(0,N.v)();function $(e,t){return new d.Z("layer:unsupported",`Layer (${e.title}, ${e.id}) of type '${e.declaredClass}' ${t}`,{layer:e})}let Y=class extends((0,j.M)((0,x.b)((0,I.h)((0,O.n)((0,T.M)((0,F.Q)((0,_.Y)((0,E.q)((0,R.I)((0,h.R)((0,C.N)((0,u.J)(S.Z))))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new k,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=z.Z.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.useViewTime=!0,this.webSocketUrl=null,this._debouncedSaveOperations=(0,f.Ds)((async(e,t,i)=>{const{save:n,saveAs:s}=await r.e(4330).then(r.bind(r,94330));switch(e){case Q.x.SAVE:return n(this,t);case Q.x.SAVE_AS:return s(this,i,t)}}))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new d.Z("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(f.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,M.YN)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){t=t.layerDefinition||t;const i=t.drawingInfo?.renderer;if(i){const e=(0,o.a)(i,t,r)||void 0;return e||y.Z.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}return(0,P.Ob)(t,r)}async connect(e){const[{createConnection:t}]=await Promise.all([Promise.all([r.e(4599),r.e(5660)]).then(r.bind(r,95047)),this.load()]),i=this.geometryType?g.M.toJSON(this.geometryType):null,{customParameters:n=null,definitionExpression:s=null,geometryDefinition:o=null,maxReconnectionAttempts:a=0,maxReconnectionInterval:l=20,spatialReference:u=this.spatialReference}=e||this.createConnectionParameters(),d=t(this.parsedUrl,this.spatialReference,u,i,{geometry:o,where:s},a,l,n??void 0),c=(0,p.AL)([this.on("send-message-to-socket",(e=>d.sendMessageToSocket(e))),this.on("send-message-to-client",(e=>d.sendMessageToClient(e)))]);return d.once("destroy",c.remove),d}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,J.eZ)(this,e)}createQuery(){const e=new G.Z;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let r=null;return this.fields.some((t=>(t.name===e&&(r=t.domain),!!r))),r}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}async save(e){return this._debouncedSaveOperations(Q.x.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(Q.x.SAVE_AS,t,e)}write(e,t){const r=t?.messages;return this.webSocketUrl?(r?.push($(this,"using a custom websocket connection cannot be written to web scenes and web maps")),null):this.parsedUrl?super.write(e,t):(r?.push($(this,"using a client-side only connection without a url cannot be written to web scenes and web maps")),null)}async _fetchService(e){if(!this.webSocketUrl&&this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,l.Z)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new d.Z("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField){const e=this.fields.find((e=>"oid"===e.type))?.name;if(!e)throw new d.Z("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");this.objectIdField=e}if(!this.fields)throw new d.Z("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields.some((e=>e.name===this.objectIdField))||this.fields.push(new A.Z({name:this.objectIdField,alias:this.objectIdField,type:"oid"})),!this.geometryType)throw new d.Z("stream-layer:missing-metadata","The stream layer geometryType must be specified.");this.webSocketUrl&&(this.url=this.webSocketUrl)}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,M.YN)(this.renderer,this.fieldsIndex),(0,M.UF)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField="__esri_stream_id__"),(0,V.y)(this,{origin:"service"})}};(0,n._)([(0,m.Cb)({type:String})],Y.prototype,"copyright",void 0),(0,n._)([(0,m.Cb)({readOnly:!0})],Y.prototype,"defaultPopupTemplate",null),(0,n._)([(0,m.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],Y.prototype,"definitionExpression",void 0),(0,n._)([(0,m.Cb)({type:String})],Y.prototype,"displayField",void 0),(0,n._)([(0,m.Cb)({type:B.Z})],Y.prototype,"elevationInfo",void 0),(0,n._)([(0,m.Cb)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],Y.prototype,"featureReduction",null),(0,n._)([(0,m.Cb)(W.fields)],Y.prototype,"fields",void 0),(0,n._)([(0,m.Cb)(W.fieldsIndex)],Y.prototype,"fieldsIndex",void 0),(0,n._)([(0,m.Cb)({type:H.Z,json:{name:"layerDefinition.definitionGeometry",write:!0}})],Y.prototype,"geometryDefinition",void 0),(0,n._)([(0,m.Cb)({type:g.M.apiValues,json:{read:{reader:g.M.read}}})],Y.prototype,"geometryType",void 0),(0,n._)([(0,m.Cb)(Z.iR)],Y.prototype,"labelsVisible",void 0),(0,n._)([(0,m.Cb)({type:[D.Z],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:L.r},write:!0}})],Y.prototype,"labelingInfo",void 0),(0,n._)([(0,m.Cb)(Z.rn)],Y.prototype,"legendEnabled",void 0),(0,n._)([(0,m.Cb)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],Y.prototype,"listMode",void 0),(0,n._)([(0,m.Cb)({type:w.z8})],Y.prototype,"maxReconnectionAttempts",void 0),(0,n._)([(0,m.Cb)({type:w.z8})],Y.prototype,"maxReconnectionInterval",void 0),(0,n._)([(0,m.Cb)(Z.u1)],Y.prototype,"maxScale",void 0),(0,n._)([(0,m.Cb)(Z.rO)],Y.prototype,"minScale",void 0),(0,n._)([(0,m.Cb)({type:String})],Y.prototype,"objectIdField",void 0),(0,n._)([(0,m.Cb)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],Y.prototype,"operationalLayerType",void 0),(0,n._)([(0,m.Cb)(Z.C_)],Y.prototype,"popupEnabled",void 0),(0,n._)([(0,m.Cb)({type:s.Z,json:{name:"popupInfo",write:!0}})],Y.prototype,"popupTemplate",void 0),(0,n._)([(0,m.Cb)({type:k})],Y.prototype,"purgeOptions",void 0),(0,n._)([(0,m.Cb)({json:{read:!1,write:!1}})],Y.prototype,"refreshInterval",void 0),(0,n._)([(0,m.Cb)({types:a.A,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:a.o,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],Y.prototype,"renderer",null),(0,n._)([(0,b.r)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,b.r)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],Y.prototype,"readRenderer",null),(0,n._)([(0,m.Cb)((()=>{const e=(0,c.d9)(Z.YI);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],Y.prototype,"screenSizePerspectiveEnabled",void 0),(0,n._)([(0,m.Cb)()],Y.prototype,"sourceJSON",void 0),(0,n._)([(0,m.Cb)({type:z.Z,json:{origins:{service:{read:{source:"spatialReference"}}}}})],Y.prototype,"spatialReference",void 0),(0,n._)([(0,m.Cb)({json:{read:!1}})],Y.prototype,"type",void 0),(0,n._)([(0,m.Cb)(Z.HQ)],Y.prototype,"url",void 0),(0,n._)([(0,m.Cb)({type:Number})],Y.prototype,"updateInterval",void 0),(0,n._)([(0,m.Cb)({json:{read:!1,write:!1}})],Y.prototype,"useViewTime",void 0),(0,n._)([(0,m.Cb)({type:String})],Y.prototype,"webSocketUrl",void 0),Y=(0,n._)([(0,v.j)("esri.layers.StreamLayer")],Y);const X=Y},17287:(e,t,r)=>{r.d(t,{Y:()=>l});var i=r(43697),n=r(92604),s=r(5600),o=(r(75215),r(67676),r(80442),r(52011)),a=r(66677);const l=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.Qc)(this.url);if(null!=e&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Nm)(e,n.Z.getLogger(this)))}};return(0,i._)([(0,s.Cb)()],t.prototype,"title",null),(0,i._)([(0,s.Cb)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,o.j)("esri.layers.mixins.ArcGISService")],t),t}},17017:(e,t,r)=>{r.d(t,{N:()=>o});var i=r(43697),n=r(5600),s=(r(75215),r(67676),r(80442),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},69637:(e,t,r)=>{r.d(t,{b:()=>E});var i,n=r(43697),s=r(5600),o=(r(75215),r(67676),r(80442),r(52011)),a=r(20102),l=r(96674),u=r(78286),d=r(67760),p=r(66577),c=r(92835),y=r(35454),h=r(22974),f=r(14165);const m=new y.X({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),w=new y.X({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let b=i=class extends l.wq{constructor(e){super(e),this.where=null,this.geometry=null,this.spatialRelationship="intersects",this.distance=void 0,this.objectIds=null,this.units=null,this.timeExtent=null}createQuery(e={}){const{where:t,geometry:r,spatialRelationship:i,timeExtent:n,objectIds:s,units:o,distance:a}=this;return new f.Z({geometry:(0,h.d9)(r),objectIds:(0,h.d9)(s),spatialRelationship:i,timeExtent:(0,h.d9)(n),where:t,units:o,distance:a,...e})}clone(){const{where:e,geometry:t,spatialRelationship:r,timeExtent:n,objectIds:s,units:o,distance:a}=this;return new i({geometry:(0,h.d9)(t),objectIds:(0,h.d9)(s),spatialRelationship:r,timeExtent:(0,h.d9)(n),where:e,units:o,distance:a})}};(0,n._)([(0,s.Cb)({type:String,json:{write:!0}})],b.prototype,"where",void 0),(0,n._)([(0,s.Cb)({types:p.qM,json:{write:!0}})],b.prototype,"geometry",void 0),(0,n._)([(0,s.Cb)({type:m.apiValues,json:{name:"spatialRel",read:{reader:m.read},write:{allowNull:!1,writer:m.write,overridePolicy(){return{enabled:null!=this.geometry}}}}})],b.prototype,"spatialRelationship",void 0),(0,n._)([(0,s.Cb)({type:Number,json:{write:{overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],b.prototype,"distance",void 0),(0,n._)([(0,s.Cb)({type:[Number],json:{write:!0}})],b.prototype,"objectIds",void 0),(0,n._)([(0,s.Cb)({type:w.apiValues,json:{read:w.read,write:{writer:w.write,overridePolicy(e){return{enabled:null!=e&&null!=this.geometry}}}}})],b.prototype,"units",void 0),(0,n._)([(0,s.Cb)({type:c.Z,json:{write:!0}})],b.prototype,"timeExtent",void 0),b=i=(0,n._)([(0,o.j)("esri.layers.support.FeatureFilter")],b);const v=b;var g;const S={read:{reader:d.ij},write:{writer:d.cW,overridePolicy(){return{allowNull:null!=this.excludedEffect,isRequired:null==this.excludedEffect}}}},_={read:{reader:d.ij},write:{writer:d.cW,overridePolicy(){return{allowNull:null!=this.includedEffect,isRequired:null==this.includedEffect}}}},I={name:"showExcludedLabels",default:!0};let C=g=class extends l.wq{constructor(e){super(e),this.filter=null,this.includedEffect=null,this.excludedEffect=null,this.excludedLabelsVisible=!1}write(e,t){const r=super.write(e,t);if(t?.origin){if(r.filter){const e=Object.keys(r.filter);if(e.length>1||"where"!==e[0])return t.messages?.push(new a.Z("web-document-write:unsupported-feature-effect","Invalid feature effect 'filter'. A filter can only contain a 'where' property",{layer:t.layer,effect:this})),null}if("showExcludedLabels"in r)return t.messages?.push(new a.Z("web-document-write:unsupported-feature-effect","Invalid value for property 'excludedLabelsVisible' which should always be 'true'",{layer:t.layer,effect:this})),null}return r}clone(){return new g({filter:null!=this.filter?this.filter.clone():null,includedEffect:this.includedEffect,excludedEffect:this.excludedEffect,excludedLabelsVisible:this.excludedLabelsVisible})}};(0,n._)([(0,s.Cb)({type:v,json:{write:{allowNull:!0,writer(e,t,r,i){const n=e?.write({},i);n&&0!==Object.keys(n).length?(0,u.RB)(r,n,t):(0,u.RB)(r,null,t)}}}})],C.prototype,"filter",void 0),(0,n._)([(0,s.Cb)({json:{write:!0,origins:{"web-map":S,"portal-item":S}}})],C.prototype,"includedEffect",void 0),(0,n._)([(0,s.Cb)({json:{write:!0,origins:{"web-map":_,"portal-item":_}}})],C.prototype,"excludedEffect",void 0),(0,n._)([(0,s.Cb)({type:Boolean,json:{write:!0,name:"showExcludedLabels",origins:{"web-map":I,"portal-item":I}}})],C.prototype,"excludedLabelsVisible",void 0),C=g=(0,n._)([(0,o.j)("esri.layers.support.FeatureEffect")],C);const x=C,j={write:{allowNull:!0}},E=e=>{let t=class extends e{constructor(){super(...arguments),this.featureEffect=null}};return(0,n._)([(0,s.Cb)({type:x,json:{origins:{"web-map":j,"portal-item":j}}})],t.prototype,"featureEffect",void 0),t=(0,n._)([(0,o.j)("esri.layers.mixins.FeatureEffectLayer")],t),t}},34760:(e,t,r)=>{r.d(t,{Q:()=>v});var i=r(43697),n=r(92604),s=r(95330),o=r(5600),a=r(90578),l=(r(67676),r(80442),r(52011)),u=r(82960),d=r(46791),p=(r(66643),r(20102),r(26258),r(87538));const c=new d.Z,y=new WeakMap;function h(e){(function(e){return null!=e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e})(e)&&c.push(new WeakRef(e))}function f(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:f(t,e%t):0}let m=0,w=0;function b(){const e=Date.now();let t=!1;for(const r of c){const i=r.deref();i?i.refreshInterval&&e-(y.get(i)??0)+5>=6e4*i.refreshInterval&&(y.set(i,e),i.refresh(e)):t=!0}if(t)for(let e=c.length-1;e>=0;e--)c.at(e).deref()||c.removeAt(e)}(0,p.EH)((()=>{const e=Date.now();let t=0;for(const r of c){const i=r.deref();i&&(t=f(Math.round(6e4*i.refreshInterval),t),i.refreshInterval?y.get(i)||y.set(i,e):y.delete(i))}if(t!==w){if(w=t,clearInterval(m),0===w)return void(m=0);m=setInterval(b,w)}}));const v=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,s.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{this.destroyed||h(this)}),(()=>{}))}destroy(){!function(e){const t=c.find((t=>t.deref()===e));t&&c.remove(t)}(this)}castRefreshInterval(e){return e>=.1?e:e<=0?0:.1}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,s.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{n.Z.getLogger(this).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}get test(){const e=this;return{set refreshInterval(t){e._set("refreshInterval",t)}}}};return(0,i._)([(0,o.Cb)({type:Number,json:{write:!0,origins:{"web-scene":{write:{enabled:!0,layerContainerTypes:u.C}}}}})],t.prototype,"refreshInterval",void 0),(0,i._)([(0,a.p)("refreshInterval")],t.prototype,"castRefreshInterval",null),(0,i._)([(0,o.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,i._)([(0,o.Cb)({readOnly:!0})],t.prototype,"refreshParameters",null),t=(0,i._)([(0,l.j)("esri.layers.mixins.RefreshableLayer")],t),t}},28294:(e,t,r)=>{r.d(t,{n:()=>c});var i=r(43697),n=r(92835),s=r(84552),o=r(5600),a=(r(75215),r(67676),r(80442),r(71715)),l=r(52011),u=r(35671),d=r(76259),p=r(78981);const c=e=>{let t=class extends e{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=p.v.fromJSON(r.timeOffsetUnits);return i&&n?new s.Z({value:i,unit:n}):null}set timeInfo(e){(0,u.UF)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i._)([(0,o.Cb)({type:n.Z,json:{write:!1}})],t.prototype,"timeExtent",void 0),(0,i._)([(0,o.Cb)({type:s.Z})],t.prototype,"timeOffset",void 0),(0,i._)([(0,a.r)("service","timeOffset",["timeInfo.exportOptions"])],t.prototype,"readOffset",null),(0,i._)([(0,o.Cb)({value:null,type:d.Z,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],t.prototype,"timeInfo",null),(0,i._)([(0,o.Cb)({type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation"},origins:{"web-scene":{read:!1,write:!1}}}})],t.prototype,"useViewTime",void 0),t=(0,i._)([(0,l.j)("esri.layers.mixins.TemporalLayer")],t),t}},76259:(e,t,r)=>{r.d(t,{Z:()=>f});var i=r(43697),n=r(92835),s=r(84552),o=r(2368),a=r(96674),l=r(5600),u=(r(75215),r(67676),r(80442),r(71715)),d=r(52011),p=r(30556),c=r(25031);function y(e,t){return s.Z.fromJSON({value:e,unit:t})}let h=class extends((0,o.J)(a.wq)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0}readFullTimeExtent(e,t){if(!t.timeExtent||!Array.isArray(t.timeExtent)||2!==t.timeExtent.length)return null;const r=new Date(t.timeExtent[0]),i=new Date(t.timeExtent[1]);return new n.Z({start:r,end:i})}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=[e.start.getTime(),e.end.getTime()]:t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?y(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?y(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],h.prototype,"cumulative",void 0),(0,i._)([(0,l.Cb)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"endField",void 0),(0,i._)([(0,l.Cb)({type:n.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"fullTimeExtent",void 0),(0,i._)([(0,u.r)("fullTimeExtent",["timeExtent"])],h.prototype,"readFullTimeExtent",null),(0,i._)([(0,p.c)("fullTimeExtent")],h.prototype,"writeFullTimeExtent",null),(0,i._)([(0,l.Cb)({type:Boolean,json:{write:!0}})],h.prototype,"hasLiveData",void 0),(0,i._)([(0,l.Cb)({type:s.Z,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"interval",void 0),(0,i._)([(0,u.r)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],h.prototype,"readInterval",null),(0,i._)([(0,p.c)("interval")],h.prototype,"writeInterval",null),(0,i._)([(0,l.Cb)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],h.prototype,"startField",void 0),(0,i._)([(0,l.Cb)((0,c.mi)("timeReference",!0))],h.prototype,"timeZone",void 0),(0,i._)([(0,l.Cb)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],h.prototype,"trackIdField",void 0),(0,i._)([(0,l.Cb)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],h.prototype,"useTime",void 0),h=(0,i._)([(0,d.j)("esri.layers.support.TimeInfo")],h);const f=h},50957:(e,t,r)=>{r.d(t,{C9:()=>R,Ci:()=>_,FV:()=>S,Fr:()=>f,JD:()=>m,JY:()=>P,Jj:()=>v,KE:()=>j,Ob:()=>L,SU:()=>I,VG:()=>x,Y5:()=>b,gG:()=>F,kZ:()=>Z,kp:()=>E,nU:()=>N,rP:()=>T,rk:()=>O,sX:()=>M,tD:()=>C,uA:()=>U,uj:()=>g});var i=r(40330),n=r(9790),s=r(20102),o=r(35454),a=r(42033),l=r(63213),u=r(84230),d=r(84382),p=r(81571),c=r(56545),y=r(14165),h=r(75935);const f=new o.X({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function m(e,t,r,i){const n=await A(e);if(await w(e,t,i),!n.addAttachment)throw new s.Z(i,"Layer source does not support addAttachment capability");return n.addAttachment(t,r)}function w(e,t,r){const{attributes:i}=t,{objectIdField:n}=e;return e.capabilities?.data?.supportsAttachment?t?i?n&&i[n]?Promise.resolve():Promise.reject(new s.Z(r,`feature is missing the identifying attribute ${n}`)):Promise.reject(new s.Z(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new s.Z(r,"A feature is required to add/delete/update attachments")):Promise.reject(new s.Z(r,"this layer doesn't support attachments"))}async function b(e,t,r,i,n){const o=await A(e);if(await w(e,t,n),!o.updateAttachment)throw new s.Z(n,"Layer source does not support updateAttachment capability");return o.updateAttachment(t,r,i)}async function v(e,t,i){const{applyEdits:n}=await r.e(4720).then(r.bind(r,14720)),s=await e.load();return n(s,s.source,t,i)}async function g(e,t,i){const{uploadAssets:n}=await r.e(4720).then(r.bind(r,14720)),s=await e.load();return n(s,s.source,t,i)}async function S(e,t,r,i){const n=await A(e);if(await w(e,t,i),!n.deleteAttachments)throw new s.Z(i,"Layer source does not support deleteAttachments capability");return n.deleteAttachments(t,r)}async function _(e,t,r){const i=(await e.load({signal:t?.signal})).source;if(!i.fetchRecomputedExtents)throw new s.Z(r,"Layer source does not support fetchUpdates capability");return i.fetchRecomputedExtents(t)}async function I(e,t,r,i){t=c.Z.from(t),await e.load();const n=e.source,o=e.capabilities;if(!o?.data?.supportsAttachment)throw new s.Z(i,"this layer doesn't support attachments");const{attachmentTypes:a,objectIds:l,globalIds:u,num:d,size:p,start:y,where:h}=t;if(!o?.operations?.supportsQueryAttachments&&(a?.length>0||u?.length>0||p?.length>0||d||y||h))throw new s.Z(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",t);if(!(l?.length||u?.length||h))throw new s.Z(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",t);if(!n.queryAttachments)throw new s.Z(i,"Layer source does not support queryAttachments capability",t);return n.queryAttachments(t)}async function C(e,t,r,i){const n=await A(e);if(!n.queryObjectIds)throw new s.Z(i,"Layer source does not support queryObjectIds capability");return n.queryObjectIds(y.Z.from(t)??e.createQuery(),r)}async function x(e,t,r,i){const n=await A(e);if(!n.queryFeatureCount)throw new s.Z(i,"Layer source does not support queryFeatureCount capability");return n.queryFeatureCount(y.Z.from(t)??e.createQuery(),r)}async function j(e,t,r,i){const n=await A(e);if(!n.queryExtent)throw new s.Z(i,"Layer source does not support queryExtent capability");return n.queryExtent(y.Z.from(t)??e.createQuery(),r)}async function E(e,t,r,i){const n=await A(e);if(!n.queryRelatedFeatures)throw new s.Z(i,"Layer source does not support queryRelatedFeatures capability");return n.queryRelatedFeatures(h.default.from(t),r)}async function R(e,t,r,i){const n=await A(e);if(!n.queryRelatedFeaturesCount)throw new s.Z(i,"Layer source does not support queryRelatedFeaturesCount capability");return n.queryRelatedFeaturesCount(h.default.from(t),r)}async function F(e){const t=e.source;if(t?.refresh)try{const{dataChanged:r,updates:i}=await t.refresh();if(null!=i&&(e.sourceJSON={...e.sourceJSON,...i},e.read(i,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,a.E)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function T(e){const t=new y.Z,r=e.capabilities?.data,i=e.capabilities?.query;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,i&&(t.compactGeometryEnabled=i.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=i.supportsDefaultSpatialReference),r&&(r.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),r.supportsM&&null!=e.returnM&&(t.returnM=e.returnM)),t.outFields=["*"];const{timeOffset:n,timeExtent:s}=e;return t.timeExtent=null!=n&&null!=s?s.offset(-n.value,n.unit):s||null,t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null,t}function O(e){const{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function Z(e){const{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(const e of r)if("esriFieldTypeOID"===e.type)return e.name}function P(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}async function A(e){return(await e.load()).source}async function N(e,t,r){const n=e.parsedUrl?.path;n&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id)return;if(i.id.findCredential(e))return;let r;try{const n=await(0,u.oP)(e,t);n&&(r=await i.id.checkSignInStatus(`${n}/sharing`))}catch(e){}if(r)try{const r=null!=t?t.signal:null;await i.id.getCredential(e,{signal:r})}catch(e){}}(n,r)}function M(e){return!e.sourceJSON?.isMultiServicesView&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const D=(0,l.d)({types:n.QT});function L(e,t){if(e.defaultSymbol)return e.types?.length?new p.Z({defaultSymbol:D(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map((e=>({id:e.id,symbol:D(e.symbol,e,t)})))}):new d.Z({symbol:D(e.defaultSymbol,e,t)})}function U(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;const r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}},53518:(e,t,r)=>{r.d(t,{v:()=>l});var i=r(80442),n=r(92604),s=r(1231),o=r(99514),a=r(35671);function l(){return{fields:{type:[s.Z],value:null,set:function(e){if((0,i.Z)("big-integer-warning-enabled"))for(const t of e??[])("big-integer"===t.type||"oid"===t.type&&t.length>=8)&&n.Z.getLogger("esri.layers.support.fieldProperties").warnOnce("field-attributes-layer:big-integer-field",`Layer references a big-integer field '${t.name}', support for which is currently experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} are supported. Integers larger than this value may result in degraded performance or broken functionality. Disable this warning message by setting the esriConfig flag big-integer-warning-enabled to false.`,{layer:this,field:t});this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return o.Z.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||n.Z.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.Q0)(this.fieldsIndex,e)}}}}},78981:(e,t,r)=>{r.d(t,{v:()=>i});const i=(0,r(35454).w)()({esriTimeUnitsMilliseconds:"milliseconds",esriTimeUnitsSeconds:"seconds",esriTimeUnitsMinutes:"minutes",esriTimeUnitsHours:"hours",esriTimeUnitsDays:"days",esriTimeUnitsWeeks:"weeks",esriTimeUnitsMonths:"months",esriTimeUnitsYears:"years",esriTimeUnitsDecades:"decades",esriTimeUnitsCenturies:"centuries",esriTimeUnitsUnknown:void 0})},40555:(e,t,r)=>{r.d(t,{y:()=>o});var i=r(66643),n=r(95330),s=r(20941);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const a=await(0,i.q6)(o.populateFromStyle());if((0,n.k_)(r),!1===a.ok){const r=a.error;t?.messages&&t.messages.push(new s.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},75935:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var i,n=r(43697),s=(r(66577),r(96674)),o=r(22974),a=r(5600),l=r(75215),u=r(52011),d=r(30556),p=r(10158),c=r(82971);let y=i=class extends s.wq{constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new i((0,o.d9)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment.getTime()),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnM:this.returnM}))}};(0,n._)([(0,a.Cb)({type:Boolean,json:{write:!0}})],y.prototype,"cacheHint",void 0),(0,n._)([(0,a.Cb)({type:p.n,json:{write:!0}})],y.prototype,"dynamicDataSource",void 0),(0,n._)([(0,a.Cb)({type:String,json:{write:!0}})],y.prototype,"gdbVersion",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"geometryPrecision",void 0),(0,n._)([(0,a.Cb)({type:Date})],y.prototype,"historicMoment",void 0),(0,n._)([(0,d.c)("historicMoment")],y.prototype,"_writeHistoricMoment",null),(0,n._)([(0,a.Cb)({type:Number,json:{write:!0}})],y.prototype,"maxAllowableOffset",void 0),(0,n._)([(0,a.Cb)({type:[Number],json:{write:!0}})],y.prototype,"objectIds",void 0),(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],y.prototype,"orderByFields",void 0),(0,n._)([(0,a.Cb)({type:[String],json:{write:!0}})],y.prototype,"outFields",void 0),(0,n._)([(0,a.Cb)({type:c.Z,json:{read:{source:"outSR"},write:{target:"outSR"}}})],y.prototype,"outSpatialReference",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],y.prototype,"relationshipId",void 0),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultOffset"}}})],y.prototype,"start",void 0),(0,n._)([(0,d.c)("start"),(0,d.c)("num")],y.prototype,"writeStart",null),(0,n._)([(0,a.Cb)({type:Number,json:{read:{source:"resultRecordCount"}}})],y.prototype,"num",void 0),(0,n._)([(0,a.Cb)({json:{write:!0}})],y.prototype,"returnGeometry",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnM",void 0),(0,n._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],y.prototype,"returnZ",void 0),(0,n._)([(0,a.Cb)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],y.prototype,"where",void 0),y=i=(0,n._)([(0,u.j)("esri.rest.support.RelationshipQuery")],y),y.from=(0,l.se)(y);const h=y},58333:(e,t,r)=>{r.d(t,{ET:()=>s,I4:()=>n,eG:()=>l,lF:()=>o,lj:()=>d,qP:()=>a,wW:()=>u});const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},s={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i},o={type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},a={type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},l={type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},u={type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},d={type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null}},12259:(e,t,r)=>{var i;r.d(t,{x:()=>i}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(i||(i={}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[24,8008,8062],{25929:(e,r,a)=>{a.d(r,{M:()=>f,a:()=>m,e:()=>d,f:()=>n,i:()=>u,p:()=>y,r:()=>l,t:()=>i,w:()=>s});var t=a(17452);function n(e,r){const a=r?.url?.path;if(e&&a&&(e=(0,t.hF)(e,a,{preserveProtocolRelative:!0}),r.portalItem&&r.readResourcePaths)){const a=(0,t.PF)(e,r.portalItem.itemUrl);null!=a&&c.test(a)&&r.readResourcePaths.push(r.portalItem.resourceFromPath(a).path)}return p(e,r?.portal)}function i(e,r,a=f.YES){if(null==e)return e;!(0,t.YP)(e)&&r?.blockedRelativeUrls&&r.blockedRelativeUrls.push(e);let n=(0,t.hF)(e);if(r){const a=r.verifyItemRelativeUrls?.rootPath||r.url?.path;if(a){const i=p(a,r.portal),l=p(n,r.portal);n=(0,t.PF)(l,i,i),null!=n&&n!==l&&n!==e&&r.verifyItemRelativeUrls&&r.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=d(n,r?.portal),(0,t.YP)(n)&&(n=(0,t.Fv)(n)),r?.resources&&r?.portalItem&&!(0,t.YP)(n)&&!(0,t.HK)(n)&&a===f.YES&&r.resources.toKeep.push({resource:r.portalItem.resourceFromPath(n),compress:!1}),n}function l(e,r,a){return n(e,a)}function s(e,r,a,t){const n=i(e,t);void 0!==n&&(r[a]=n)}const o=/\/items\/([^\/]+)\/resources\/(.*)/,c=/^\.\/resources\//;function u(e){const r=e?.match(o)??null;return r?.[1]??null}function y(e){const r=e?.match(o)??null;if(null==r)return null;const a=r[2],n=a.lastIndexOf("/");if(-1===n){const{path:e,extension:r}=(0,t.fZ)(a);return{prefix:null,filename:e,extension:r}}const{path:i,extension:l}=(0,t.fZ)(a.slice(n+1));return{prefix:a.slice(0,n),filename:i,extension:l}}function d(e,r){return r&&!r.isPortal&&r.urlKey&&r.customBaseUrl?(0,t.Ie)(e,`${r.urlKey}.${r.customBaseUrl}`,r.portalHostname):e}function p(e,r){if(!r||r.isPortal||!r.urlKey||!r.customBaseUrl)return e;const a=`${r.urlKey}.${r.customBaseUrl}`,n=(0,t.TI)();return(0,t.D6)(n,`${n.scheme}://${a}`)?(0,t.Ie)(e,r.portalHostname,a):(0,t.Ie)(e,a,r.portalHostname)}var f,L;(L=f||(f={}))[L.YES=0]="YES",L[L.NO=1]="NO";const m=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return f},ensureMainOnlineDomain:d,fromJSON:n,itemIdFromResourceUrl:u,prefixAndFilenameFromResourceUrl:y,read:l,toJSON:i,write:s},Symbol.toStringTag,{value:"Module"}))},66677:(e,r,a)=>{a.d(r,{B5:()=>u,DR:()=>d,G:()=>h,M8:()=>L,Nm:()=>m,Qc:()=>y,XG:()=>S,a7:()=>f,ld:()=>p,wH:()=>w});var t=a(17452),n=a(25929);const i={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer"},l=Object.values(i),s=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${l.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),o=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^\\/\\n]+)\\/(${l.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function u(e){return!!s.test(e)}function y(e){if(null==e)return null;const r=(0,t.mN)(e),a=r?.path.match(s)||r?.path.match(o);if(!a)return null;const[,n,l,c,u]=a,y=l.indexOf("/");return{title:p(-1!==y?l.slice(y+1):l),serverType:i[c.toLowerCase()],sublayer:null!=u&&""!==u?parseInt(u,10):null,url:{path:n}}}function d(e){const r=(0,t.mN)(e).path.match(c);return r?{serviceUrl:r[1],sublayerId:Number(r[2])}:null}function p(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function f(e,r){const a=[];if(e){const r=y(e);null!=r&&r.title&&a.push(r.title)}if(r){const e=p(r);a.push(e)}if(2===a.length){if(a[0].toLowerCase().includes(a[1].toLowerCase()))return a[0];if(a[1].toLowerCase().includes(a[0].toLowerCase()))return a[1]}return a.join(" - ")}function L(e){if(!e)return!1;const r=(e=e.toLowerCase()).includes(".arcgis.com/"),a=e.includes("//services")||e.includes("//tiles")||e.includes("//features");return r&&a}function m(e,r){return e?(0,t.Qj)((0,t.Hu)(e,r)):e}function S(e){let{url:r}=e;if(!r)return{url:r};r=(0,t.Hu)(r,e.logger);const a=(0,t.mN)(r),n=y(a.path);let i;if(null!=n)null!=n.sublayer&&null==e.layer.layerId&&(i=n.sublayer),r=n.url.path;else if(e.nonStandardUrlAllowed){const e=d(a.path);null!=e&&(r=e.serviceUrl,i=e.sublayerId)}return{url:(0,t.Qj)(r),layerId:i}}function w(e,r,a,i,l){(0,n.w)(r,i,"url",l),i.url&&null!=e.layerId&&(i.url=(0,t.v_)(i.url,a,e.layerId.toString()))}function h(e){if(!e)return!1;const r=e.toLowerCase(),a=r.includes("/services/"),t=r.includes("/mapserver/wmsserver"),n=r.includes("/imageserver/wmsserver"),i=r.includes("/wmsserver");return a&&(t||n||i)}},71592:(e,r,a)=>{a.d(r,{w:()=>u});var t=a(40330),n=a(3172),i=a(20102),l=a(95330),s=a(66677),o=a(48522),c=a(15235);async function u(e,r){const a=(0,s.Qc)(e);if(!a)throw new i.Z("invalid-url","Invalid scene service url");const u={...r,sceneServerUrl:a.url.path,layerId:a.sublayer??void 0};if(u.sceneLayerItem??=await async function(e){const r=(await y(e)).serviceItemId;if(!r)return null;const a=new c.default({id:r,apiKey:e.apiKey}),i=await async function(e){const r=t.id?.findServerInfo(e.sceneServerUrl);if(r?.owningSystemUrl)return r.owningSystemUrl;const a=e.sceneServerUrl.replace(/(.*\/rest)\/.*/i,"$1")+"/info";try{const r=(await(0,n.Z)(a,{query:{f:"json"},responseType:"json",signal:e.signal})).data.owningSystemUrl;if(r)return r}catch(e){(0,l.r9)(e)}return null}(e);null!=i&&(a.portal=new o.Z({url:i}));try{return a.load({signal:e.signal})}catch(e){return(0,l.r9)(e),null}}(u),null==u.sceneLayerItem)return d(u.sceneServerUrl.replace("/SceneServer","/FeatureServer"),u);const p=await async function({sceneLayerItem:e,signal:r}){if(!e)return null;try{const a=(await e.fetchRelatedItems({relationshipType:"Service2Service",direction:"reverse"},{signal:r})).find((e=>"Feature Service"===e.type))||null;if(!a)return null;const t=new c.default({portal:a.portal,id:a.id});return await t.load(),t}catch(e){return(0,l.r9)(e),null}}(u);if(!p?.url)throw new i.Z("related-service-not-found","Could not find feature service through portal item relationship");const f=await d(p.url,u);return f.portalItem=p,f}async function y(e){if(e.rootDocument)return e.rootDocument;const r={query:{f:"json",token:e.apiKey},responseType:"json",signal:e.signal};try{const a=await(0,n.Z)(e.sceneServerUrl,r);e.rootDocument=a.data}catch{e.rootDocument={}}return e.rootDocument}async function d(e,r){const a=(0,s.Qc)(e);if(!a)throw new i.Z("invalid-feature-service-url","Invalid feature service url");const t=a.url.path,l=r.layerId;if(null==l)return{serverUrl:t};const o=y(r),c=e=>{const a={query:{f:"json"},responseType:"json",authMode:e,signal:r.signal};return(0,n.Z)(t,a)},u=c("anonymous").catch((()=>c("no-prompt"))),[d,p]=await Promise.all([u,o]),f=p?.layers,L=d.data&&d.data.layers;if(!Array.isArray(L))throw new Error("expected layers array");if(Array.isArray(f)){for(let e=0;e<Math.min(f.length,L.length);e++)if(f[e].id===l)return{serverUrl:t,layerId:L[e].id}}else if(null!=l&&l<L.length)return{serverUrl:t,layerId:L[l].id};throw new Error("could not find matching associated sublayer")}},52104:(e,r,a)=>{a.d(r,{V:()=>n});var t=a(96187);async function n(e,r){const a=await(0,t.T)(e,r);a.layers=a.layers.filter(i);const n={serviceJSON:a};if((a.currentVersion??0)<10.5)return n;const l=await(0,t.T)(e+"/layers",r);return n.layersJSON={layers:l.layers.filter(i),tables:l.tables},n}function i(e){return!e.type||"Feature Layer"===e.type||"Oriented Imagery Layer"===e.type}},70024:(e,r,a)=>{a.d(r,{populateOperationalLayers:()=>u});var t=a(46791),n=(a(80442),a(87344)),i=a(15235);function l(e,r){return!(!e.layerType||"ArcGISFeatureLayer"!==e.layerType)&&e.featureCollectionType===r}var s=a(18062),o=a(28008),c=a(40555);async function u(e,r,a){if(!r)return;const t=[];for(const e of r)t.push(v(e,a));const n=await Promise.allSettled(t);for(const r of n)"rejected"===r.status||r.value&&e.add(r.value)}const y={ArcGISDimensionLayer:"DimensionLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",PointCloudLayer:"PointCloudLayer",ArcGISSceneServiceLayer:"SceneLayer",IntegratedMeshLayer:"IntegratedMeshLayer",OGCFeatureLayer:"OGCFeatureLayer",BuildingSceneLayer:"BuildingSceneLayer",ArcGISTiledElevationServiceLayer:"ElevationLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",GroupLayer:"GroupLayer",GeoJSON:"GeoJSONLayer",WebTiledLayer:"WebTileLayer",CSV:"CSVLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer",KML:"KMLLayer",RasterDataLayer:"UnsupportedLayer",Voxel:"VoxelLayer",LineOfSightLayer:"LineOfSightLayer"},d={ArcGISTiledElevationServiceLayer:"ElevationLayer",DefaultTileLayer:"ElevationLayer",RasterDataElevationLayer:"UnsupportedLayer"},p={ArcGISFeatureLayer:"FeatureLayer"},f={ArcGISTiledMapServiceLayer:"TileLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",OpenStreetMap:"OpenStreetMapLayer",WebTiledLayer:"WebTileLayer",VectorTileLayer:"VectorTileLayer",ArcGISImageServiceLayer:"UnsupportedLayer",WMS:"UnsupportedLayer",ArcGISMapServiceLayer:"UnsupportedLayer",ArcGISSceneServiceLayer:"SceneLayer",DefaultTileLayer:"TileLayer"},L={ArcGISAnnotationLayer:"UnsupportedLayer",ArcGISDimensionLayer:"UnsupportedLayer",ArcGISFeatureLayer:"FeatureLayer",ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISStreamLayer:"StreamLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",CSV:"CSVLayer",DefaultTileLayer:"TileLayer",GeoRSS:"GeoRSSLayer",GeoJSON:"GeoJSONLayer",GroupLayer:"GroupLayer",KML:"KMLLayer",MediaLayer:"MediaLayer",OGCFeatureLayer:"OGCFeatureLayer",OrientedImageryLayer:"OrientedImageryLayer",SubtypeGroupLayer:"SubtypeGroupLayer",VectorTileLayer:"VectorTileLayer",WFS:"WFSLayer",WMS:"WMSLayer",WebTiledLayer:"WebTileLayer"},m={ArcGISFeatureLayer:"FeatureLayer"},S={ArcGISImageServiceLayer:"ImageryLayer",ArcGISImageServiceVectorLayer:"ImageryLayer",ArcGISMapServiceLayer:"MapImageLayer",ArcGISTiledImageServiceLayer:"ImageryTileLayer",ArcGISTiledMapServiceLayer:"TileLayer",OpenStreetMap:"OpenStreetMapLayer",VectorTileLayer:"VectorTileLayer",WebTiledLayer:"WebTileLayer",BingMapsAerial:"BingMapsLayer",BingMapsRoad:"BingMapsLayer",BingMapsHybrid:"BingMapsLayer",WMS:"WMSLayer",DefaultTileLayer:"TileLayer"},w={...L,LinkChartLayer:"LinkChartLayer"},h={...m},I={...S};async function v(e,r){return async function(e,r,a){const l=new e;return l.read(r,a.context),"group"===l.type&&("GroupLayer"===r.layerType?await async function(e,r,a){const n=new t.Z,i=u(n,Array.isArray(r.layers)?r.layers:[],a);try{try{if(await i,"group"===e.type)return e.layers.addMany(n),e}catch(r){e.destroy();for(const e of n)e.destroy();throw r}}catch(e){throw e}}(l,r,a):b(r)?function(e,r,a){r.itemId&&(e.portalItem=new i.default({id:r.itemId,portal:a?.portal}),e.when((()=>{const t=t=>{const n=t.layerId;M(t,e,r,n,a);const i=r.featureCollection?.layers?.[n];i&&t.read(i,a)};e.layers?.forEach(t),e.tables?.forEach(t)})))}(l,r,a.context):g(r)&&await async function(e,r,a){const t=n.T.FeatureLayer,i=await t(),l=r.featureCollection,s=l?.showLegend,o=l?.layers?.map(((t,n)=>{const l=new i;l.read(t,a);const o={...a,ignoreDefaults:!0};return M(l,e,r,n,o),null!=s&&l.read({showLegend:s},o),l}));e.layers.addMany(o??[])}(l,r,a.context)),await(0,c.y)(l,a.context),l}(await async function(e,r){const a=r.context,t=T(a);let c=e.layerType||e.type;!c&&r?.defaultLayerType&&(c=r.defaultLayerType);const u=t[c];let y=u?n.T[u]:n.T.UnknownLayer;if(b(e)){const r=a?.portal;if(e.itemId){const a=new i.default({id:e.itemId,portal:r});await a.load();const t=(await(0,o.v)(a,new s.Ld)).className||"UnknownLayer";y=n.T[t]}}else"ArcGISFeatureLayer"===c?function(e){return l(e,"notes")}(e)||function(e){return l(e,"markup")}(e)?y=n.T.MapNotesLayer:function(e){return l(e,"route")}(e)?y=n.T.RouteLayer:g(e)&&(y=n.T.GroupLayer):e.wmtsInfo?.url&&e.wmtsInfo.layerIdentifier?y=n.T.WMTSLayer:"WFS"===c&&"2.0.0"!==e.wfsInfo?.version&&(y=n.T.UnsupportedLayer);return y()}(e,r),e,r)}function g(e){return"ArcGISFeatureLayer"===e.layerType&&!b(e)&&(e.featureCollection?.layers?.length??0)>1}function b(e){return"Feature Collection"===e.type}function T(e){let r;switch(e.origin){case"web-scene":switch(e.layerContainerType){case"basemap":r=f;break;case"ground":r=d;break;case"tables":r=p;break;default:r=y}break;case"link-chart":switch(e.layerContainerType){case"basemap":r=I;break;case"tables":r=h;break;default:r=w}break;default:switch(e.layerContainerType){case"basemap":r=S;break;case"tables":r=m;break;default:r=L}}return r}function M(e,r,a,t,n){e.read({id:`${r.id}-sublayer-${t}`,visibility:a.visibleLayers?.includes(t)??!0},n)}},87344:(e,r,a)=>{a.d(r,{T:()=>t});const t={BingMapsLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(8153)]).then(a.bind(a,2723))).default,BuildingSceneLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(6569),a.e(1423),a.e(4165),a.e(3778),a.e(6404),a.e(4680),a.e(9238),a.e(6170),a.e(3975),a.e(1161),a.e(3554)]).then(a.bind(a,30223))).default,CSVLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(6569),a.e(1423),a.e(4165),a.e(3778),a.e(6404),a.e(4680),a.e(9238),a.e(3584)]).then(a.bind(a,45425))).default,DimensionLayer:async()=>(await Promise.all([a.e(163),a.e(6874),a.e(81)]).then(a.bind(a,40081))).default,ElevationLayer:async()=>(await Promise.all([a.e(163),a.e(6569),a.e(9016),a.e(2763)]).then(a.bind(a,65665))).default,FeatureLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(6569),a.e(1423),a.e(4165),a.e(3778),a.e(6404),a.e(4680),a.e(9238),a.e(7520)]).then(a.bind(a,19238))).default,GeoJSONLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(6569),a.e(1423),a.e(4165),a.e(3778),a.e(6404),a.e(9069)]).then(a.bind(a,23477))).default,GeoRSSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(9281)]).then(a.bind(a,3723))).default,GroupLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9059)]).then(a.bind(a,40504))).default,ImageryLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(6569),a.e(4165),a.e(4599),a.e(6610),a.e(3663),a.e(4608)]).then(a.bind(a,60590))).default,ImageryTileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(6569),a.e(6610),a.e(4136),a.e(3663),a.e(5913)]).then(a.bind(a,74878))).default,IntegratedMeshLayer:async()=>(await Promise.all([a.e(163),a.e(3975),a.e(1537)]).then(a.bind(a,9310))).default,KMLLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(1423),a.e(6472)]).then(a.bind(a,42756))).default,LineOfSightLayer:async()=>(await Promise.all([a.e(163),a.e(6874),a.e(1786)]).then(a.bind(a,21786))).default,LinkChartLayer:async()=>(await Promise.all([a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(6569),a.e(1423),a.e(4165),a.e(6404),a.e(8968),a.e(5286),a.e(801)]).then(a.bind(a,19087))).default,MapImageLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(1423),a.e(4165),a.e(3778),a.e(4599),a.e(2863),a.e(7374)]).then(a.bind(a,27374))).default,MapNotesLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(6569),a.e(1423),a.e(4165),a.e(3778),a.e(6404),a.e(4680),a.e(9238),a.e(2575)]).then(a.bind(a,62128))).default,MediaLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(4828)]).then(a.bind(a,57765))).default,OGCFeatureLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(1423),a.e(4165),a.e(3778),a.e(6404),a.e(2341)]).then(a.bind(a,88068))).default,OpenStreetMapLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9971),a.e(6237)]).then(a.bind(a,66237))).default,OrientedImageryLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(6569),a.e(1423),a.e(4165),a.e(3778),a.e(6404),a.e(4680),a.e(9238),a.e(3681)]).then(a.bind(a,44958))).default,PointCloudLayer:async()=>(await Promise.all([a.e(163),a.e(8775),a.e(3975),a.e(8643),a.e(7863)]).then(a.bind(a,10608))).default,RouteLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(1423),a.e(261)]).then(a.bind(a,40153))).default,SceneLayer:async()=>(await Promise.all([a.e(163),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(1423),a.e(4165),a.e(3778),a.e(6170),a.e(3975),a.e(1161),a.e(1174)]).then(a.bind(a,57476))).default,StreamLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(1423),a.e(4165),a.e(3778),a.e(6404),a.e(7132)]).then(a.bind(a,88387))).default,SubtypeGroupLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(1423),a.e(4165),a.e(3778),a.e(4680),a.e(8324),a.e(2596)]).then(a.bind(a,20697))).default,TileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(1423),a.e(4165),a.e(3778),a.e(4599),a.e(9016),a.e(2863),a.e(8636)]).then(a.bind(a,98636))).default,UnknownLayer:async()=>(await a.e(4166).then(a.bind(a,44166))).default,UnsupportedLayer:async()=>(await a.e(9296).then(a.bind(a,39296))).default,VectorTileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9016),a.e(4325),a.e(9805),a.e(5481)]).then(a.bind(a,94756))).default,VoxelLayer:async()=>(await Promise.all([a.e(163),a.e(8775),a.e(3975),a.e(9327)]).then(a.bind(a,28865))).default,WFSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(3928),a.e(4467),a.e(6569),a.e(1423),a.e(4165),a.e(3778),a.e(6404),a.e(6506)]).then(a.bind(a,12653))).default,WMSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9790),a.e(8775),a.e(1574)]).then(a.bind(a,25906))).default,WMTSLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9971),a.e(2594)]).then(a.bind(a,72594))).default,WebTileLayer:async()=>(await Promise.all([a.e(163),a.e(4609),a.e(9971)]).then(a.bind(a,16199))).default}},33516:(e,r,a)=>{a.d(r,{Y:()=>l,h:()=>i});var t=a(17452),n=a(48522);function i(e){return{origin:"portal-item",url:(0,t.mN)(e.itemUrl),portal:e.portal||n.Z.getDefault(),portalItem:e,readResourcePaths:[]}}function l(e){return{origin:"portal-item",messages:[],writtenProperties:[],url:e.itemUrl?(0,t.mN)(e.itemUrl):null,portal:e.portal||n.Z.getDefault(),portalItem:e}}},18062:(e,r,a)=>{a.d(r,{$O:()=>h,CD:()=>f,Ld:()=>d,Ok:()=>I,Q4:()=>v,XX:()=>g,_Y:()=>b,load:()=>p});var t=a(20102),n=a(66677),i=a(71592),l=a(52104),s=a(87344),o=a(48522),c=a(33516),u=a(40555),y=a(96187);class d{constructor(){this._serviceMetadatas=new Map}async fetchServiceMetadata(e,r){const a=this._serviceMetadatas.get(e);if(a)return a;const t=await(0,y.T)(e,r);return this._serviceMetadatas.set(e,t),t}}async function p(e,r){const a=e.instance.portalItem;if(a?.id)return await a.load(r),function(e){const r=e.instance.portalItem;if(!r?.type||!e.supportedTypes.includes(r.type))throw new t.Z("portal:invalid-layer-item-type","Invalid layer item type '${type}', expected '${expectedType}'",{type:r?.type,expectedType:e.supportedTypes.join(", ")})}(e),async function(e,r){const a=e.instance,n=a.portalItem;if(!n)return;const{url:i,title:s}=n,o=(0,c.h)(n);if("group"===a.type)return a.read({title:s},o),async function(e,r){let a;const{portalItem:n}=e;if(!n)return;const i=n.type,s=r.layerModuleTypeMap;switch(i){case"Feature Service":case"Feature Collection":a=s.FeatureLayer;break;case"Stream Service":a=s.StreamLayer;break;case"Scene Service":a=s.SceneLayer;break;default:throw new t.Z("portal:unsupported-item-type-as-group",`The item type '${i}' is not supported as a 'IGroupLayer'`)}const o=new d;let[c,u]=await Promise.all([a(),w(r,o)]),p=()=>c;if("Feature Service"===i){u=n.url?await h(u,n.url,o):{};const r=g(u),a=b(u),t=[];if(r.length||a?.length){r.length&&t.push("SubtypeGroupLayer"),a?.length&&t.push("OrientedImageryLayer");const e=[];for(const r of t){const a=s[r];e.push(a())}const n=await Promise.all(e),i=new Map;t.forEach(((e,r)=>{i.set(e,n[r])})),p=e=>e.layerType?i.get(e.layerType)??c:c}const i=await async function(e){const{layersJSON:r}=await(0,l.V)(e);if(!r)return null;const a=[...r.layers,...r.tables];return e=>a.find((r=>r.id===e.id))}(n.url);return await m(e,p,u,i)}return"Scene Service"===i&&n.url&&(u=await f(n,u,o)),v(u)>0?await m(e,p,u):await async function(e,r){const{portalItem:a}=e;if(!a?.url)return;const t=await(0,y.T)(a.url);t&&m(e,r,{layers:t.layers?.map(L),tables:t.tables?.map(L)})}(e,p)}(a,e);i&&a.read({url:i},o);const p=new d,S=await w(e,p,r);return S&&a.read(S,o),a.resourceReferences={portalItem:n,paths:o.readResourcePaths??[]},"subtype-group"!==a.type&&a.read({title:s},o),(0,u.y)(a,o)}(e,r)}async function f(e,r,a){if(!e?.url)return r??{};if(r??={},!r.layers){const t=await a.fetchServiceMetadata(e.url);r.layers=t.layers?.map(L)}const{serverUrl:t,portalItem:n}=await(0,i.w)(e.url,{sceneLayerItem:e}).catch((()=>({serverUrl:null,portalItem:null})));if(null==t)return r.tables=[],r;if(!r.tables&&n){const e=await n.fetchData();if(e?.tables)r.tables=e.tables.map(L);else{const e=await a.fetchServiceMetadata(t);r.tables=e?.tables?.map(L)}}if(r.tables)for(const e of r.tables)e.url=`${t}/${e.id}`;return r}function L(e){const r={id:e.id,name:e.name};return"Oriented Imagery Layer"===e.type&&(r.layerType="OrientedImageryLayer"),r}async function m(e,r,a,t){let n=a.layers||[];const i=a.tables||[];if("Feature Collection"===e.portalItem?.type?(n.forEach(((e,r)=>{e.id=r,"Table"===e?.layerDefinition?.type&&i.push(e)})),n=n.filter((e=>"Table"!==e?.layerDefinition?.type))):(n.reverse(),i.reverse()),n.forEach((n=>{const i=t?.(n);if(i||!t){const t=S(e,r(n),a,n,i);e.add(t)}})),i.length){const r=await s.T.FeatureLayer();i.forEach((n=>{const i=t?.(n);if(i||!t){const t=S(e,r,a,n,i);e.tables.add(t)}}))}}function S(e,r,a,t,n){const i=e.portalItem,l={portalItem:i.clone(),layerId:t.id};null!=t.url&&(l.url=t.url);const s=new r(l);if("sourceJSON"in s&&(s.sourceJSON=n),"subtype-group"!==s.type&&(s.sublayerTitleMode="service-name"),"Feature Collection"===i.type){const e={origin:"portal-item",portal:i.portal||o.Z.getDefault()};s.read(t,e);const r=a.showLegend;null!=r&&s.read({showLegend:r},e)}return s}async function w(e,r,a){if(!1===e.supportsData)return;const t=e.instance,i=t.portalItem;if(!i)return;let l=null;try{l=await i.fetchData("json",a)}catch(e){}if(function(e){return"stream"!==e.type&&"layerId"in e}(t)){let e=null;const a=await async function(e,r,a){if(r?.layers&&r?.tables)return v(r);const t=(0,n.Qc)(e.url);if(!t)return 1;const i=await a.fetchServiceMetadata(t.url.path).catch((()=>null));return(r?.layers?.length??i?.layers?.length??0)+(r?.tables?.length??i?.tables?.length??0)}(i,l,r);if((l?.layers||l?.tables)&&a>0){if(null==t.layerId){const e=g(l);t.layerId="subtype-group"===t.type?e?.[0]:I(l)}e=function(e,r){const{layerId:a}=r,t=e.layers?.find((e=>e.id===a))||e.tables?.find((e=>e.id===a));return t&&function(e,r){return!("feature"===r.type&&"layerType"in e&&"SubtypeGroupLayer"===e.layerType||"subtype-group"===r.type&&!("layerType"in e))}(t,r)?t:null}(l,t),e&&null!=l.showLegend&&(e.showLegend=l.showLegend)}return a>1&&"sublayerTitleMode"in t&&"service-name"!==t.sublayerTitleMode&&(t.sublayerTitleMode="item-title-and-service-name"),e}return l}async function h(e,r,a){if(null==e?.layers||null==e?.tables){const t=await a.fetchServiceMetadata(r);(e=e||{}).layers=e.layers||t?.layers?.map(L),e.tables=e.tables||t?.tables?.map(L)}return e}function I(e){const r=e.layers;if(r?.length)return r[0].id;const a=e.tables;return a?.length?a[0].id:null}function v(e){return(e?.layers?.length??0)+(e?.tables?.length??0)}function g(e){const r=[];return e?.layers?.forEach((e=>{"SubtypeGroupLayer"===e.layerType&&r.push(e.id)})),r}function b(e){return e?.layers?.filter((({layerType:e})=>"OrientedImageryLayer"===e)).map((({id:e})=>e))}},14661:(e,r,a)=>{a.d(r,{$o:()=>u,Fj:()=>o,Kz:()=>y,Ss:()=>d,_$:()=>s,ck:()=>c,qj:()=>l});var t=a(73615),n=a(82971),i=a(40488);function l(e,r){if(!s(e,r)){const a=e.typeKeywords;a?a.push(r):e.typeKeywords=[r]}}function s(e,r){return!!e.typeKeywords?.includes(r)}function o(e){return s(e,y.HOSTED_SERVICE)}function c(e,r){const a=e.typeKeywords;if(a){const e=a.indexOf(r);e>-1&&a.splice(e,1)}}async function u(e){const r=e.clone().normalize();let a;if(r.length>1)for(const e of r)a?e.width>a.width&&(a=e):a=e;else a=r[0];return async function(e){const r=e.spatialReference;if(r.isWGS84)return e.clone();if(r.isWebMercator)return(0,i.Sx)(e);const a=n.Z.WGS84;return await(0,t.initializeProjection)(r,a),(0,t.project)(e,a)}(a)}const y={DEVELOPER_BASEMAP:"DeveloperBasemap",JSAPI:"ArcGIS API for JavaScript",METADATA:"Metadata",MULTI_LAYER:"Multilayer",SINGLE_LAYER:"Singlelayer",TABLE:"Table",HOSTED_SERVICE:"Hosted Service",LOCAL_SCENE:"ViewingMode-Local",TILED_IMAGERY:"Tiled Imagery"};function d(e){const{portal:r,isOrgItem:a,itemControl:t}=e,n=r.user?.privileges;let i=!n||n.includes("features:user:edit"),l=!!a&&!!n?.includes("features:user:fullEdit");const s="update"===t||"admin"===t;return s?l=i=!0:l&&(i=!0),{features:{edit:i,fullEdit:l},content:{updateItem:s}}}},28008:(e,r,a)=>{a.d(r,{fromItem:()=>u,v:()=>y});var t=a(20102),n=a(71592),i=a(84230),l=a(87344),s=a(15235),o=a(18062),c=a(14661);async function u(e){!e.portalItem||e.portalItem instanceof s.default||(e={...e,portalItem:new s.default(e.portalItem)});const r=await async function(e){await e.load();const r=new o.Ld;return async function(e){const r=e.className,a=l.T[r];return{constructor:await a(),properties:e.properties}}(await y(e,r))}(e.portalItem);return new(0,r.constructor)({portalItem:e.portalItem,...r.properties})}async function y(e,r){switch(e.type){case"Map Service":return async function(e,r){return await async function(e,r){return(await r.fetchServiceMetadata(e.url)).tileInfo}(e,r)?{className:"TileLayer"}:{className:"MapImageLayer"}}(e,r);case"Feature Service":return async function(e,r){const a=await d(e,r);if("object"==typeof a){const e={};return null!=a.id&&(e.layerId=a.id),{className:a.className||"FeatureLayer",properties:e}}return{className:"GroupLayer"}}(e,r);case"Feature Collection":return async function(e){await e.load();const r=(0,c._$)(e,"Map Notes"),a=(0,c._$)(e,"Markup");if(r||a)return{className:"MapNotesLayer"};if((0,c._$)(e,"Route Layer"))return{className:"RouteLayer"};const t=await e.fetchData();return 1===(0,o.Q4)(t)?{className:"FeatureLayer"}:{className:"GroupLayer"}}(e);case"Scene Service":return async function(e,r){const a=await d(e,r,(async()=>{try{if(!e.url)return[];const{serverUrl:a}=await(0,n.w)(e.url,{sceneLayerItem:e}),t=await r.fetchServiceMetadata(a);return t?.tables??[]}catch{return[]}}));if("object"==typeof a){const t={};let n;if(null!=a.id?(t.layerId=a.id,n=`${e.url}/layers/${a.id}`):n=e.url,e.typeKeywords?.length)for(const r of Object.keys(i.fb))if(e.typeKeywords.includes(r))return{className:i.fb[r]};const l=await r.fetchServiceMetadata(n);return{className:i.fb[l?.layerType]||"SceneLayer",properties:t}}if(!1===a){const a=await r.fetchServiceMetadata(e.url);if("Voxel"===a?.layerType)return{className:"VoxelLayer"}}return{className:"GroupLayer"}}(e,r);case"Image Service":return async function(e,r){await e.load();const a=e.typeKeywords?.map((e=>e.toLowerCase()))??[];if(a.includes("elevation 3d layer"))return{className:"ElevationLayer"};if(a.includes("tiled imagery"))return{className:"ImageryTileLayer"};const t=await e.fetchData(),n=t?.layerType;if("ArcGISTiledImageServiceLayer"===n)return{className:"ImageryTileLayer"};if("ArcGISImageServiceLayer"===n)return{className:"ImageryLayer"};const i=await r.fetchServiceMetadata(e.url),l=i.cacheType?.toLowerCase(),s=i.capabilities?.toLowerCase().includes("tilesonly");return"map"===l||s?{className:"ImageryTileLayer"}:{className:"ImageryLayer"}}(e,r);case"Stream Service":case"Feed":return{className:"StreamLayer"};case"Vector Tile Service":return{className:"VectorTileLayer"};case"GeoJson":return{className:"GeoJSONLayer"};case"CSV":return{className:"CSVLayer"};case"KML":return{className:"KMLLayer"};case"WFS":return{className:"WFSLayer"};case"WMTS":return{className:"WMTSLayer"};case"WMS":return{className:"WMSLayer"};default:throw new t.Z("portal:unknown-item-type","Unknown item type '${type}'",{type:e.type})}}async function d(e,r,a){const t=e.url;if(!t||/\/\d+$/.test(t))return{};await e.load();let n=await e.fetchData();if("Feature Service"===e.type){const e=await(0,o.$O)(n,t,r),a=p(e);if("object"==typeof a){const r=(0,o.XX)(e),t=(0,o._Y)(e);a.className=null!=a.id&&r.includes(a.id)?"SubtypeGroupLayer":null!=a.id&&t?.includes(a.id)?"OrientedImageryLayer":"FeatureLayer"}return a}if("Scene Service"===e.type&&(n=await(0,o.CD)(e,n,r)),(0,o.Q4)(n)>0)return p(n);const i=await r.fetchServiceMetadata(t);return a&&(i.tables=await a()),p(i)}function p(e){return 1===(0,o.Q4)(e)&&{id:(0,o.Ok)(e)}}},40555:(e,r,a)=>{a.d(r,{y:()=>l});var t=a(66643),n=a(95330),i=a(20941);async function l(e,r,a){const l=e&&e.getAtOrigin&&e.getAtOrigin("renderer",r.origin);if(l&&"unique-value"===l.type&&l.styleOrigin){const s=await(0,t.q6)(l.populateFromStyle());if((0,n.k_)(a),!1===s.ok){const a=s.error;r?.messages&&r.messages.push(new i.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${a.message}`,{error:a,context:r})),e.clear("renderer",r?.origin)}}}},96187:(e,r,a)=>{a.d(r,{T:()=>n});var t=a(3172);async function n(e,r){const{data:a}=await(0,t.Z)(e,{responseType:"json",query:{f:"json",...r?.customParameters,token:r?.apiKey}});return a}}}]);