@arcgis/core 4.33.0-next.20250331 → 4.33.0-next.20250401

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 (181) hide show
  1. package/arcade/featureSetUtils.js +1 -1
  2. package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/0297e55a49ca0d1231ef.js +1 -0
  5. package/assets/esri/core/workers/chunks/{98da74243df03e0cc70d.js → 067dda58592fbf4fb812.js} +1 -1
  6. package/assets/esri/core/workers/chunks/093421648cc61afdeb3c.js +1 -0
  7. package/assets/esri/core/workers/chunks/0db4c0071282dd94f3b2.js +1 -0
  8. package/assets/esri/core/workers/chunks/1072b4f37eacbbfda2c8.js +1 -0
  9. package/assets/esri/core/workers/chunks/{4d95cc85f4b73e857b1f.js → 11badb73d43059374ad8.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{dcb043986fb065de0366.js → 16607e71804eff64c0e1.js} +1 -1
  11. package/assets/esri/core/workers/chunks/18f8b41bd761e9ab60d0.js +1 -0
  12. package/assets/esri/core/workers/chunks/{ed831e51c2a03ee95879.js → 19e83b184d8b4d0b3007.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{5de3aee547113bfd59df.js → 1b87fa15470cce26feea.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{dde03a893f9cef8e0f45.js → 1d322685016263f86cf5.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{e4b80c8f4c45fd78bde1.js → 23de8aeed5b82c682cbe.js} +1 -1
  16. package/assets/esri/core/workers/chunks/269531e770376ed9e4fd.js +1 -0
  17. package/assets/esri/core/workers/chunks/2791f1f2791087d0217f.js +1 -0
  18. package/assets/esri/core/workers/chunks/{48ad7beb48dcc2693cc3.js → 2ab7d36409e9af3ac3da.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{a7a1832274892e99c388.js → 30a047bd66f333bb7d2d.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{94292c7afff18694d55e.js → 322cb1b1871d03b69f0a.js} +37 -37
  21. package/assets/esri/core/workers/chunks/{b52a3a48d2d3ff22542d.js → 3577909b8e84959d415b.js} +1 -1
  22. package/assets/esri/core/workers/chunks/37e49d1a1407c193dcd0.js +1 -0
  23. package/assets/esri/core/workers/chunks/3b7284516a0e34a9e85e.js +1 -0
  24. package/assets/esri/core/workers/chunks/{6cb5ce0a6bb85c624a21.js → 400f95295bbfced31076.js} +1 -1
  25. package/assets/esri/core/workers/chunks/401ff3c83789c72e9ac9.js +1 -0
  26. package/assets/esri/core/workers/chunks/{6339a24874c698594101.js → 40b33c9bd271cddbd837.js} +1 -1
  27. package/assets/esri/core/workers/chunks/4ba34124054752b363c0.js +1 -0
  28. package/assets/esri/core/workers/chunks/4cc77769009901a112ec.js +39 -0
  29. package/assets/esri/core/workers/chunks/5aae4e127e888f69435a.js +1 -0
  30. package/assets/esri/core/workers/chunks/{0943695a1dcd21c45e83.js → 5b32c2a1b276352593dc.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{087a09b4c41abef6b516.js → 5c757e20c0543e6a49b3.js} +1 -1
  32. package/assets/esri/core/workers/chunks/6280e1fe944ea4a71b91.js +1 -0
  33. package/assets/esri/core/workers/chunks/{9c59fc2df8081e65a128.js → 628395830c78b95b46dc.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{edcc0fefd57323d2cb67.js → 6828e4936db0121a9638.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{1cd9b5ef62582b25df9b.js → 69b5d0ef14fb521b0fd7.js} +1 -1
  36. package/assets/esri/core/workers/chunks/6e679703b5d6fc1b91a5.js +1 -0
  37. package/assets/esri/core/workers/chunks/6f3731f19497cbc6ea74.js +1 -0
  38. package/assets/esri/core/workers/chunks/72d7e45e7eb28f2cc0b0.js +1 -0
  39. package/assets/esri/core/workers/chunks/7649d59b0b7d53818a29.js +1 -0
  40. package/assets/esri/core/workers/chunks/{fe3ed029b07bb1e4aef3.js → 77ae11dbd3e1eeacd7ee.js} +1 -1
  41. package/assets/esri/core/workers/chunks/7978b66cdfe078960ddd.js +1 -0
  42. package/assets/esri/core/workers/chunks/7b8f0b63b968ff40d00d.js +1 -0
  43. package/assets/esri/core/workers/chunks/7e00122014d0a55363a8.js +319 -0
  44. package/assets/esri/core/workers/chunks/{f452ca61842dbe8de9af.js → 7ea5bbb52e84be9a608e.js} +1 -1
  45. package/assets/esri/core/workers/chunks/{eb9d2bb8b44a93347274.js → 7ef9bcd58af499a14a08.js} +1 -1
  46. package/assets/esri/core/workers/chunks/{b2f8702a9f54fff23ad9.js → 7f31dbe0ca8974a10be8.js} +1 -1
  47. package/assets/esri/core/workers/chunks/80427cd9f0c2e07f21c3.js +1 -0
  48. package/assets/esri/core/workers/chunks/{77199b4b39ee8b4303de.js → 82a58a405332d43a328f.js} +1 -1
  49. package/assets/esri/core/workers/chunks/8725580f6d2a495051b5.js +1 -0
  50. package/assets/esri/core/workers/chunks/{626db8488f9d931cf55c.js → 899f197556b6ced6eddf.js} +2 -2
  51. package/assets/esri/core/workers/chunks/8aae03e347ab18ae6ee2.js +1 -0
  52. package/assets/esri/core/workers/chunks/8d49c79e549e90371303.js +1 -0
  53. package/assets/esri/core/workers/chunks/{a9b6377f1fef5826f28d.js → 8f35416a5036897d6289.js} +1 -1
  54. package/assets/esri/core/workers/chunks/91439b59260b0fb04be9.js +1 -0
  55. package/assets/esri/core/workers/chunks/{a01c86910fe4984eb788.js → 9574896c90b39fa7ecb4.js} +1 -1
  56. package/assets/esri/core/workers/chunks/96978d039f183565bffa.js +1 -0
  57. package/assets/esri/core/workers/chunks/9a641fb94819574e48f6.js +1 -0
  58. package/assets/esri/core/workers/chunks/{72c7126dbd27fa48fcdb.js → a3421383e48379012c9c.js} +1 -1
  59. package/assets/esri/core/workers/chunks/{f8d1c7df671733c3325c.js → b64f708f821dd2bb51cd.js} +1 -1
  60. package/assets/esri/core/workers/chunks/{3e4204502f6e09483c60.js → b7a1185ac49480fc1410.js} +1 -1
  61. package/assets/esri/core/workers/chunks/{aa712f850fd129ca5ed8.js → bba6d7615d8f3862fe70.js} +1 -1
  62. package/assets/esri/core/workers/chunks/{1cf8a431e5da946c7d27.js → bd0dbad694ce5531deab.js} +1 -1
  63. package/assets/esri/core/workers/chunks/c1bd47cde53918f454ca.js +1 -0
  64. package/assets/esri/core/workers/chunks/{1d0473dd43c88ab5776d.js → c589d32f8efcca6bf712.js} +1 -1
  65. package/assets/esri/core/workers/chunks/{081699532b183db1e7c2.js → cda6ae4c5cb67e22b454.js} +1 -1
  66. package/assets/esri/core/workers/chunks/{460afde071df9f35182d.js → e14449f07ed3386f4f2b.js} +1 -1
  67. package/assets/esri/core/workers/chunks/{d0fbd4c6bffe0cb98d14.js → e592731ac12b9bc646ff.js} +1 -1
  68. package/assets/esri/core/workers/chunks/e5aff9b10877fb04d6de.js +1 -0
  69. package/assets/esri/core/workers/chunks/e6469173c65531d6524a.js +1 -0
  70. package/assets/esri/core/workers/chunks/e6544e966f14fb410157.js +1 -0
  71. package/assets/esri/core/workers/chunks/e8312c999b3f0c9ef09e.js +1 -0
  72. package/assets/esri/core/workers/chunks/{cb386923200272cf26a9.js → e9e517a2141e504eec64.js} +1 -1
  73. package/assets/esri/core/workers/chunks/eb011e8b14db37ddb110.js +1 -0
  74. package/assets/esri/core/workers/chunks/{f809cbfb744adb4fad29.js → efb0f3ec2344adcb24f3.js} +1 -1
  75. package/assets/esri/core/workers/chunks/{999e8dbe6f4d0665b3ab.js → f5fcba6ca6f43bf1d65d.js} +1 -1
  76. package/assets/esri/core/workers/chunks/fa9ef9e8eae505371965.js +1 -0
  77. package/assets/esri/core/workers/chunks/fb5b852d0f72df014377.js +1 -0
  78. package/assets/esri/core/workers/chunks/ff62b813fff4a015a8a6.js +1 -0
  79. package/core/has.js +1 -1
  80. package/editing/sharedTemplates/templateDefinitions/TemplateDefinitionBase.js +1 -1
  81. package/geometry/asserts.js +1 -1
  82. package/geometry/support/normalizeUtils.js +1 -1
  83. package/identity/IdentityManagerBase.js +1 -1
  84. package/interfaces.d.ts +7 -2
  85. package/layers/TileLayer.js +1 -1
  86. package/layers/graphics/applyEditsUtils.js +1 -1
  87. package/layers/graphics/featureConversionUtils.js +1 -1
  88. package/layers/graphics/sources/GeoJSONSource.js +1 -1
  89. package/layers/graphics/sources/MemorySource.js +1 -1
  90. package/layers/graphics/sources/connections/GeoEventConnection.js +1 -1
  91. package/layers/graphics/sources/support/sourceUtils.js +1 -1
  92. package/layers/support/ElevationQuery.js +1 -1
  93. package/layers/support/SubtypeSublayer.js +1 -1
  94. package/layers/support/wmtsUtils.js +1 -1
  95. package/networks/support/UtilityNetworkLookupHelper.js +1 -1
  96. package/package.json +3 -3
  97. package/portal/support/geometryServiceUtils.js +1 -1
  98. package/renderers/support/DictionaryScriptEvaluator.js +1 -1
  99. package/rest/support/printTaskUtils.js +1 -1
  100. package/smartMapping/support/adapters/InMemoryLayerAdapter.js +1 -1
  101. package/support/revision.js +1 -1
  102. package/undoredo/support/Services.js +1 -1
  103. package/versionManagement/VersioningState.js +1 -1
  104. package/views/2d/engine/webgl/Mesh2D.js +1 -1
  105. package/views/2d/layers/features/FeaturePipelineWorker.js +1 -1
  106. package/views/2d/layers/features/layerAdapters/InMemoryLayerAdapter.js +1 -1
  107. package/views/2d/layers/features/support/FeatureSetReaderPBFHeader.js +1 -1
  108. package/views/3d/layers/graphics/pipeline/Feature3DPipeline.js +1 -1
  109. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorker.js +1 -1
  110. package/views/3d/layers/graphics/pipeline/Feature3DPipelineWorkerHandle.js +1 -1
  111. package/views/3d/layers/graphics/pipeline/rendering/FeaturePipelineRenderManager.js +1 -1
  112. package/views/3d/layers/graphics/pipeline/rendering/RenderCommandContext.js +1 -1
  113. package/views/3d/layers/graphics/pipeline/symbolization/TestObjectSymbol.js +1 -1
  114. package/views/3d/layers/graphics/pipeline/symbolization/TestSymbol.js +1 -1
  115. package/views/3d/layers/i3s/I3SClientMaterialUtil.js +1 -1
  116. package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
  117. package/views/3d/layers/i3s/I3SUtil.js +1 -1
  118. package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
  119. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  120. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueConfiguration.js +1 -1
  121. package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
  122. package/views/3d/webgl-engine/lib/Texture.js +1 -1
  123. package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
  124. package/views/3d/webgl-engine/lib/textureUtils.js +1 -1
  125. package/views/SceneView.js +1 -1
  126. package/views/View.js +1 -1
  127. package/views/ViewAnimation.js +1 -1
  128. package/views/webgl/ShaderBuilder.js +1 -1
  129. package/views/webgl/Texture.js +1 -1
  130. package/views/webgl/textureUtils.js +1 -1
  131. package/widgets/Editor/AddAssociationWorkflow.js +1 -1
  132. package/widgets/Editor/UpdateFeaturesWorkflow.js +5 -0
  133. package/widgets/Editor/UpdateFeaturesWorkflowData.js +5 -0
  134. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  135. package/widgets/Editor/workflowUtils.js +1 -1
  136. package/widgets/Feature/support/relatedFeatureUtils.js +1 -1
  137. package/widgets/FeatureForm/FieldInput.js +1 -1
  138. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  139. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  140. package/widgets/OrientedImageryViewer/dataCaptureUtils.js +1 -1
  141. package/widgets/Slider.js +1 -1
  142. package/widgets/UtilityNetworkTraceAnalysis/UtilityNetworkTraceAnalysisViewModel.js +1 -1
  143. package/widgets/VersionManagement/VersionManagementViewModel.js +1 -1
  144. package/widgets/support/UtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +1 -1
  145. package/assets/esri/core/workers/chunks/028e2e0fa6971aaaaae8.js +0 -1
  146. package/assets/esri/core/workers/chunks/0e82365be7d9257e7cb2.js +0 -1
  147. package/assets/esri/core/workers/chunks/1322096a72e910f23167.js +0 -1
  148. package/assets/esri/core/workers/chunks/186387a561364a11e574.js +0 -1
  149. package/assets/esri/core/workers/chunks/3808f10747cecc8a1a9b.js +0 -1
  150. package/assets/esri/core/workers/chunks/3f7c57d5f3bdefa74d18.js +0 -1
  151. package/assets/esri/core/workers/chunks/424e2058228e5f6a183d.js +0 -1
  152. package/assets/esri/core/workers/chunks/4aa0a58ded4465ea28bd.js +0 -1
  153. package/assets/esri/core/workers/chunks/4bb65ef7b3a02ebe416e.js +0 -1
  154. package/assets/esri/core/workers/chunks/4d798da25a726f179089.js +0 -319
  155. package/assets/esri/core/workers/chunks/4ffdff269aae8c293cb4.js +0 -1
  156. package/assets/esri/core/workers/chunks/564cc81c232c97646833.js +0 -1
  157. package/assets/esri/core/workers/chunks/5820808c7659460969d4.js +0 -1
  158. package/assets/esri/core/workers/chunks/5d01f0b86566d08ba29d.js +0 -1
  159. package/assets/esri/core/workers/chunks/6c378e7a6ca29d530880.js +0 -1
  160. package/assets/esri/core/workers/chunks/7d1c39c2a80e20a0595f.js +0 -1
  161. package/assets/esri/core/workers/chunks/86ee278919038260696e.js +0 -39
  162. package/assets/esri/core/workers/chunks/8752f807c05d1ec215e8.js +0 -1
  163. package/assets/esri/core/workers/chunks/8ef5e6f1c606e5e41002.js +0 -1
  164. package/assets/esri/core/workers/chunks/921b41b101957cfc1cfd.js +0 -1
  165. package/assets/esri/core/workers/chunks/9ef509e0853ad41f7690.js +0 -1
  166. package/assets/esri/core/workers/chunks/9f18de17fbcad0e5c140.js +0 -1
  167. package/assets/esri/core/workers/chunks/a53e9f5092de715da025.js +0 -1
  168. package/assets/esri/core/workers/chunks/aa3a45e8228216c1739b.js +0 -1
  169. package/assets/esri/core/workers/chunks/ab0113d1269675dcd520.js +0 -1
  170. package/assets/esri/core/workers/chunks/b23d16745674486ddd6c.js +0 -1
  171. package/assets/esri/core/workers/chunks/b3c126e8a0a722c03efc.js +0 -1
  172. package/assets/esri/core/workers/chunks/c7aa4a8263e21f631004.js +0 -1
  173. package/assets/esri/core/workers/chunks/cc441051a52bfbda9caf.js +0 -1
  174. package/assets/esri/core/workers/chunks/ccc6f6f7052985bebdab.js +0 -1
  175. package/assets/esri/core/workers/chunks/d3912886ac2910290f43.js +0 -1
  176. package/assets/esri/core/workers/chunks/d8b903b4147b090576f2.js +0 -1
  177. package/assets/esri/core/workers/chunks/da8a002d18544def5383.js +0 -1
  178. package/assets/esri/core/workers/chunks/f28eaf1d3a7f12788bcf.js +0 -1
  179. package/assets/esri/core/workers/chunks/f9bedb421d4e115a888f.js +0 -1
  180. package/assets/esri/core/workers/chunks/faed301a25252c619cff.js +0 -1
  181. package/assets/esri/core/workers/chunks/fc9758006a7135c7d9c3.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6213],{240:(t,n,r)=>{r.d(n,{C:()=>s,vt:()=>c,lU:()=>M,fA:()=>h,mR:()=>E,Qj:()=>f,T7:()=>S,gv:()=>v,Ui:()=>T,Tj:()=>g,_I:()=>O,mP:()=>N,LV:()=>i});var e=r(34727),a=r(38954),o=r(51850),u=(r(87317),r(44280),r(32114));function c(t=A){return[t[0],t[1],t[2],t[3]]}function i(t=A[0],n=A[1],r=A[2],e=A[3]){return h(t,n,r,e,u.Km.get())}function s(t,n){return h(n[0],n[1],n[2],n[3],t)}function f(t){return t}function h(t,n,r,e,a=c()){return a[0]=t,a[1]=n,a[2]=r,a[3]=e,a}function M(t,n,r,e=0,o=Math.floor(r*(1/3)),u=Math.floor(r*(2/3))){if(r<3)return!1;n(m,e);let i=o,s=!1;for(;i<r-1&&!s;)n(I,i),i++,s=!(0,a.p)(m,I);if(!s)return!1;for(i=Math.max(i,u),s=!1;i<r&&!s;)n(b,i),i++,(0,a.d)(_,m,I),(0,a.n)(_,_),(0,a.d)(d,I,b),(0,a.n)(d,d),s=!(0,a.p)(m,b)&&!(0,a.p)(I,b)&&Math.abs((0,a.f)(_,d))<l;return s?(function(t,n,r,e=c()){const a=r[0]-n[0],o=r[1]-n[1],u=r[2]-n[2],i=t[0]-n[0],s=t[1]-n[1],f=t[2]-n[2],h=o*f-u*s,M=u*i-a*f,l=a*s-o*i,m=h*h+M*M+l*l,I=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;e[0]=h*I,e[1]=M*I,e[2]=l*I,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2])}(m,I,b,t),!0):(0!==e||1!==o||2!==u)&&M(t,n,r,0,1,2)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const l=.99619469809,m=(0,o.vt)(),I=(0,o.vt)(),b=(0,o.vt)(),_=(0,o.vt)(),d=(0,o.vt)();function N(t,n,r){return n!==t&&s(t,n),t[3]=-(0,a.f)(t,r),t}function E(t,n,r,e){return(0,a.e)(b,n,t),function(t,n,r){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],a=Math.abs(e-1)>1e-5&&e>1e-12?1/Math.sqrt(e):1;return r[0]=n[0]*a,r[1]=n[1]*a,r[2]=n[2]*a,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}(r,b,e)}function T(t,n,r){return null!=n&&y(x(t,n.origin,n.direction,C,r))}function S(t,n,r){return y(x(t,n.origin,n.vector,P.NONE,r))}function v(t,n,r){return y(x(t,n.origin,n.vector,P.CLAMP,r))}function g(t,n){return p(t,n)>=0}function O(t,n,r){const e=(0,a.h)(u.rq.get(),t,-t[3]),o=function(t,n,r){const e=(0,a.h)(u.rq.get(),t,(0,a.f)(t,n));return(0,a.d)(r,n,e),r}(t,(0,a.d)(u.rq.get(),n,e),u.rq.get());return(0,a.g)(r,o,e),r}function p(t,n){return(0,a.f)(t,n)+t[3]}var D,q;function y(t){return t===D.INTERSECTS_INSIDE_OUT||t===D.INTERSECTS_OUTSIDE_IN}function x(t,n,r,o,u){const c=(0,a.f)(t,r),i=p(t,n);if(0===c)return i>=0?D.INSIDE:D.OUTSIDE;let s=-i/c;return o&P.CLAMP&&(s=(0,e.qE)(s,0,1)),!(o&P.INFINITE_MIN)&&s<0||!(o&P.INFINITE_MAX)&&s>1?i>=0?D.INSIDE:D.OUTSIDE:((0,a.g)(u,n,(0,a.h)(u,r,s)),i>=0?D.INTERSECTS_INSIDE_OUT:D.INTERSECTS_OUTSIDE_IN)}(q=D||(D={}))[q.INTERSECTS_INSIDE_OUT=0]="INTERSECTS_INSIDE_OUT",q[q.INTERSECTS_OUTSIDE_IN=1]="INTERSECTS_OUTSIDE_IN",q[q.INSIDE=2]="INSIDE",q[q.OUTSIDE=3]="OUTSIDE";const A=[0,0,1,0];var P;!function(t){t[t.NONE=0]="NONE",t[t.CLAMP=1]="CLAMP",t[t.INFINITE_MIN=4]="INFINITE_MIN",t[t.INFINITE_MAX=8]="INFINITE_MAX"}(P||(P={})),P.INFINITE_MIN,P.INFINITE_MAX;const C=P.INFINITE_MAX},9093:(t,n,r)=>{function e(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function a(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]]}r.d(n,{o8:()=>a,vt:()=>e,zK:()=>o});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:a,create:e,fromValues:function(t,n,r,e,a,o,u,c,i,s,f,h,M,l,m,I){return[t,n,r,e,a,o,u,c,i,s,f,h,M,l,m,I]}},Symbol.toStringTag,{value:"Module"}))},29242:(t,n,r)=>{function e(){return[1,0,0,0,1,0,0,0,1]}function a(t,n,r,e,a,o,u,c,i){return[t,n,r,e,a,o,u,c,i]}r.d(n,{fA:()=>a,vt:()=>e,zK:()=>o});const o=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:e,fromValues:a},Symbol.toStringTag,{value:"Module"}))},32114:(t,n,r)=>{r.d(n,{Rc:()=>l,J8:()=>m,rq:()=>h,Km:()=>M}),r(44208);var e=r(26390),a=r(29242),o=r(9093),u=r(82534),c=r(48163),i=r(51850),s=r(91829);class f{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,e.d)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new f(c.vt)}static createVec3f64(){return new f(i.vt)}static createVec4f64(){return new f(s.vt)}static createMat3f64(){return new f(a.vt)}static createMat4f64(){return new f(o.vt)}static createQuatf64(){return new f(u.vt)}get test(){}}f.createVec2f64();const h=f.createVec3f64(),M=f.createVec4f64(),l=(f.createMat3f64(),f.createMat4f64()),m=f.createQuatf64()},38954:(t,n,r)=>{r.d(n,{A:()=>m,B:()=>l,C:()=>f,D:()=>I,E:()=>h,G:()=>F,I:()=>V,a:()=>j,b:()=>_,c:()=>u,d:()=>s,e:()=>O,f:()=>g,g:()=>i,h:()=>b,i:()=>c,j:()=>d,k:()=>E,l:()=>o,m:()=>p,n:()=>v,o:()=>C,p:()=>P,q:()=>q,s:()=>N,t:()=>D,u:()=>S,v:()=>T,w:()=>y,x:()=>M,y:()=>R,z:()=>w});var e=r(51850),a=r(34304);function o(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function u(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function c(t,n,r,e){return t[0]=n,t[1]=r,t[2]=e,t}function i(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t}function s(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}function f(t,n,r){return t[0]=n[0]*r[0],t[1]=n[1]*r[1],t[2]=n[2]*r[2],t}function h(t,n,r){return t[0]=n[0]/r[0],t[1]=n[1]/r[1],t[2]=n[2]/r[2],t}function M(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function l(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function m(t,n,r){return t[0]=Math.min(n[0],r[0]),t[1]=Math.min(n[1],r[1]),t[2]=Math.min(n[2],r[2]),t}function I(t,n,r){return t[0]=Math.max(n[0],r[0]),t[1]=Math.max(n[1],r[1]),t[2]=Math.max(n[2],r[2]),t}function b(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function _(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t}function d(t,n){const r=n[0]-t[0],e=n[1]-t[1],a=n[2]-t[2];return Math.sqrt(r*r+e*e+a*a)}function N(t,n){const r=n[0]-t[0],e=n[1]-t[1],a=n[2]-t[2];return r*r+e*e+a*a}function E(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function T(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function S(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function v(t,n){const r=n[0],e=n[1],a=n[2];let o=r*r+e*e+a*a;return o>0&&(o=1/Math.sqrt(o),t[0]=n[0]*o,t[1]=n[1]*o,t[2]=n[2]*o),t}function g(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function O(t,n,r){const e=n[0],a=n[1],o=n[2],u=r[0],c=r[1],i=r[2];return t[0]=a*i-o*c,t[1]=o*u-e*i,t[2]=e*c-a*u,t}function p(t,n,r,e){const a=n[0],o=n[1],u=n[2];return t[0]=a+e*(r[0]-a),t[1]=o+e*(r[1]-o),t[2]=u+e*(r[2]-u),t}function D(t,n,r){const e=n[0],a=n[1],o=n[2];return t[0]=r[0]*e+r[4]*a+r[8]*o+r[12],t[1]=r[1]*e+r[5]*a+r[9]*o+r[13],t[2]=r[2]*e+r[6]*a+r[10]*o+r[14],t}function q(t,n,r){const e=n[0],a=n[1],o=n[2];return t[0]=e*r[0]+a*r[3]+o*r[6],t[1]=e*r[1]+a*r[4]+o*r[7],t[2]=e*r[2]+a*r[5]+o*r[8],t}function y(t,n,r){const e=r[0],a=r[1],o=r[2],u=r[3],c=n[0],i=n[1],s=n[2],f=a*s-o*i,h=o*c-e*s,M=e*i-a*c,l=a*M-o*h,m=o*f-e*M,I=e*h-a*f,b=2*u;return t[0]=c+f*b+2*l,t[1]=i+h*b+2*m,t[2]=s+M*b+2*I,t}const x=(0,e.vt)(),A=(0,e.vt)();function P(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function C(t,n,r){const e=r[0]-n[0],a=r[1]-n[1],o=r[2]-n[2];let u=e*e+a*a+o*o;return u>0?(u=1/Math.sqrt(u),t[0]=e*u,t[1]=a*u,t[2]=o*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const j=s,U=f,z=h,F=d,R=N,V=o,w=E;Object.freeze(Object.defineProperty({__proto__:null,abs:M,add:i,angle:function(t,n){v(x,t),v(A,n);const r=g(x,A);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,n,r,e,a,o){const u=1-o,c=u*u,i=o*o,s=c*u,f=3*o*c,h=3*i*u,M=i*o;return t[0]=n[0]*s+r[0]*f+e[0]*h+a[0]*M,t[1]=n[1]*s+r[1]*f+e[1]*h+a[1]*M,t[2]=n[2]*s+r[2]*f+e[2]*h+a[2]*M,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,r=1){return t[0]=Math.min(Math.max(t[0],n),r),t[1]=Math.min(Math.max(t[1],n),r),t[2]=Math.min(Math.max(t[2],n),r),t},copy:u,cross:O,crossAndNormalize:function(t,n,r){const e=n[0],a=n[1],o=n[2],u=r[0],c=r[1],i=r[2],s=a*i-o*c,f=o*u-e*i,h=e*c-a*u,M=Math.sqrt(s*s+f*f+h*h);return t[0]=s/M,t[1]=f/M,t[2]=h/M,t},direction:C,dist:F,distance:d,div:z,divide:h,dot:g,equals:function(t,n){if(t===n)return!0;const r=t[0],e=t[1],o=t[2],u=n[0],c=n[1],i=n[2],s=(0,a.FD)();return Math.abs(r-u)<=s*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(e-c)<=s*Math.max(1,Math.abs(e),Math.abs(c))&&Math.abs(o-i)<=s*Math.max(1,Math.abs(o),Math.abs(i))},exactEquals:P,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,r,e,a,o){const u=o*o,c=u*(2*o-3)+1,i=u*(o-2)+o,s=u*(o-1),f=u*(3-2*o);return t[0]=n[0]*c+r[0]*i+e[0]*s+a[0]*f,t[1]=n[1]*c+r[1]*i+e[1]*s+a[1]*f,t[2]=n[2]*c+r[2]*i+e[2]*s+a[2]*f,t},inverse:S,len:V,length:o,lerp:p,max:I,min:m,mul:U,multiply:f,negate:T,normalize:v,random:function(t,n=1){const r=a.Ov,e=2*r()*Math.PI,o=2*r()-1,u=Math.sqrt(1-o*o)*n;return t[0]=Math.cos(e)*u,t[1]=Math.sin(e)*u,t[2]=o*n,t},rotateX:function(t,n,r,e){const a=[],o=[];return a[0]=n[0]-r[0],a[1]=n[1]-r[1],a[2]=n[2]-r[2],o[0]=a[0],o[1]=a[1]*Math.cos(e)-a[2]*Math.sin(e),o[2]=a[1]*Math.sin(e)+a[2]*Math.cos(e),t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t},rotateY:function(t,n,r,e){const a=[],o=[];return a[0]=n[0]-r[0],a[1]=n[1]-r[1],a[2]=n[2]-r[2],o[0]=a[2]*Math.sin(e)+a[0]*Math.cos(e),o[1]=a[1],o[2]=a[2]*Math.cos(e)-a[0]*Math.sin(e),t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t},rotateZ:function(t,n,r,e){const a=[],o=[];return a[0]=n[0]-r[0],a[1]=n[1]-r[1],a[2]=n[2]-r[2],o[0]=a[0]*Math.cos(e)-a[1]*Math.sin(e),o[1]=a[0]*Math.sin(e)+a[1]*Math.cos(e),o[2]=a[2],t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:b,scaleAndAdd:_,set:c,sign:l,sqrDist:R,sqrLen:w,squaredDistance:N,squaredLength:E,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:j,subtract:s,transformMat3:q,transformMat4:D,transformQuat:y},Symbol.toStringTag,{value:"Module"}))},44280:(t,n,r)=>{r.d(n,{EJ:()=>i,g7:()=>c,gr:()=>u});var e=r(34727),a=r(38954),o=r(51850);function u(t,n){return(0,a.f)(t,n)/(0,a.l)(t)}function c(t,n){const r=(0,a.f)(t,n)/((0,a.l)(t)*(0,a.l)(n));return-(0,e.XM)(r)}function i(t,n,r){(0,a.n)(s,t),(0,a.n)(f,n);const o=(0,a.f)(s,f),u=(0,e.XM)(o),c=(0,a.e)(s,s,f);return(0,a.f)(c,r)<0?2*Math.PI-u:u}const s=(0,o.vt)(),f=(0,o.vt)()},48163:(t,n,r)=>{function e(){return[0,0]}function a(t,n){return[t,n]}function o(){return a(1,1)}function u(){return a(1,0)}function c(){return a(0,1)}r.d(n,{Un:()=>i,fA:()=>a,vt:()=>e});const i=o(),s=u(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:i,UNIT_X:s,UNIT_Y:f,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:e,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const r=Math.min(2,t.length);for(let e=0;e<r;++e)n[e]=t[e];return n},fromValues:a,ones:o,unitX:u,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},77690:(t,n,r)=>{r.d(n,{B8:()=>c,Ge:()=>M,I0:()=>h,KC:()=>i,hZ:()=>o,hs:()=>f,lw:()=>s,mg:()=>u,z0:()=>a});var e=r(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function o(t,n,r,e,a,o,u,c,i,s){return t[0]=n,t[1]=r,t[2]=e,t[3]=a,t[4]=o,t[5]=u,t[6]=c,t[7]=i,t[8]=s,t}function u(t,n){if(t===n){const r=n[1],e=n[2],a=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=a}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function c(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=n[4],c=n[5],i=n[6],s=n[7],f=n[8],h=f*u-c*s,M=-f*o+c*i,l=s*o-u*i;let m=r*h+e*M+a*l;return m?(m=1/m,t[0]=h*m,t[1]=(-f*e+a*s)*m,t[2]=(c*e-a*u)*m,t[3]=M*m,t[4]=(f*r-a*i)*m,t[5]=(-c*r+a*o)*m,t[6]=l*m,t[7]=(-s*r+e*i)*m,t[8]=(u*r-e*o)*m,t):null}function i(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=n[4],c=n[5],i=n[6],s=n[7],f=n[8];return t[0]=u*f-c*s,t[1]=a*s-e*f,t[2]=e*c-a*u,t[3]=c*i-o*f,t[4]=r*f-a*i,t[5]=a*o-r*c,t[6]=o*s-u*i,t[7]=e*i-r*s,t[8]=r*u-e*o,t}function s(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3],c=n[4],i=n[5],s=n[6],f=n[7],h=n[8],M=r[0],l=r[1],m=r[2],I=r[3],b=r[4],_=r[5],d=r[6],N=r[7],E=r[8];return t[0]=M*e+l*u+m*s,t[1]=M*a+l*c+m*f,t[2]=M*o+l*i+m*h,t[3]=I*e+b*u+_*s,t[4]=I*a+b*c+_*f,t[5]=I*o+b*i+_*h,t[6]=d*e+N*u+E*s,t[7]=d*a+N*c+E*f,t[8]=d*o+N*i+E*h,t}function f(t,n,r){const e=r[0],a=r[1],o=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=a*n[3],t[4]=a*n[4],t[5]=a*n[5],t[6]=o*n[6],t[7]=o*n[7],t[8]=o*n[8],t}function h(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=r+r,c=e+e,i=a+a,s=r*u,f=e*u,h=e*c,M=a*u,l=a*c,m=a*i,I=o*u,b=o*c,_=o*i;return t[0]=1-h-m,t[3]=f-_,t[6]=M+b,t[1]=f+_,t[4]=1-s-m,t[7]=l-I,t[2]=M-b,t[5]=l+I,t[8]=1-s-h,t}function M(t,n){const r=n[0],e=n[1],a=n[2],o=n[3],u=n[4],c=n[5],i=n[6],s=n[7],f=n[8],h=n[9],M=n[10],l=n[11],m=n[12],I=n[13],b=n[14],_=n[15],d=r*c-e*u,N=r*i-a*u,E=r*s-o*u,T=e*i-a*c,S=e*s-o*c,v=a*s-o*i,g=f*I-h*m,O=f*b-M*m,p=f*_-l*m,D=h*b-M*I,q=h*_-l*I,y=M*_-l*b;let x=d*y-N*q+E*D+T*p-S*O+v*g;return x?(x=1/x,t[0]=(c*y-i*q+s*D)*x,t[1]=(i*p-u*y-s*O)*x,t[2]=(u*q-c*p+s*g)*x,t[3]=(a*q-e*y-o*D)*x,t[4]=(r*y-a*p+o*O)*x,t[5]=(e*p-r*q-o*g)*x,t[6]=(I*v-b*S+_*T)*x,t[7]=(b*E-m*v-_*N)*x,t[8]=(m*S-I*E+_*d)*x,t):null}function l(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}const m=s,I=l;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:i,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],r=t[1],e=t[2],a=t[3],o=t[4],u=t[5],c=t[6],i=t[7],s=t[8];return n*(s*o-u*i)+r*(-s*a+u*c)+e*(i*a-o*c)},equals:function(t,n){const r=t[0],a=t[1],o=t[2],u=t[3],c=t[4],i=t[5],s=t[6],f=t[7],h=t[8],M=n[0],l=n[1],m=n[2],I=n[3],b=n[4],_=n[5],d=n[6],N=n[7],E=n[8],T=(0,e.FD)();return Math.abs(r-M)<=T*Math.max(1,Math.abs(r),Math.abs(M))&&Math.abs(a-l)<=T*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(o-m)<=T*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(u-I)<=T*Math.max(1,Math.abs(u),Math.abs(I))&&Math.abs(c-b)<=T*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(i-_)<=T*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(s-d)<=T*Math.max(1,Math.abs(s),Math.abs(d))&&Math.abs(f-N)<=T*Math.max(1,Math.abs(f),Math.abs(N))&&Math.abs(h-E)<=T*Math.max(1,Math.abs(h),Math.abs(E))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:a,fromQuat:h,fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:c,isOrthoNormal:function(t){const n=(0,e.FD)(),r=t[0],a=t[1],o=t[2],u=t[3],c=t[4],i=t[5],s=t[6],f=t[7],h=t[8];return Math.abs(1-(r*r+u*u+s*s))<=n&&Math.abs(1-(a*a+c*c+f*f))<=n&&Math.abs(1-(o*o+i*i+h*h))<=n},mul:m,multiply:s,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],a=n[2],o=n[4],u=n[5],c=n[6],i=n[8],s=n[9],f=n[10],h=f*u-c*s,M=-f*o+c*i,l=s*o-u*i,m=r*h+e*M+a*l;if(!m)return null;const I=1/m;return t[0]=h*I,t[1]=(-f*e+a*s)*I,t[2]=(c*e-a*u)*I,t[3]=M*I,t[4]=(f*r-a*i)*I,t[5]=(-c*r+a*o)*I,t[6]=l*I,t[7]=(-s*r+e*i)*I,t[8]=(u*r-e*o)*I,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3],c=n[4],i=n[5],s=n[6],f=n[7],h=n[8],M=Math.sin(r),l=Math.cos(r);return t[0]=l*e+M*u,t[1]=l*a+M*c,t[2]=l*o+M*i,t[3]=l*u-M*e,t[4]=l*c-M*a,t[5]=l*i-M*o,t[6]=s,t[7]=f,t[8]=h,t},scale:f,scaleByVec2:function(t,n,r){const e=r[0],a=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=a*n[3],t[4]=a*n[4],t[5]=a*n[5],t},set:o,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:I,subtract:l,translate:function(t,n,r){const e=n[0],a=n[1],o=n[2],u=n[3],c=n[4],i=n[5],s=n[6],f=n[7],h=n[8],M=r[0],l=r[1];return t[0]=e,t[1]=a,t[2]=o,t[3]=u,t[4]=c,t[5]=i,t[6]=M*e+l*u+s,t[7]=M*a+l*c+f,t[8]=M*o+l*i+h,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},82534:(t,n,r)=>{function e(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}r.d(n,{o8:()=>a,vt:()=>e,zK:()=>o});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:a,create:e,fromValues:function(t,n,r,e){return[t,n,r,e]}},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4755,6928,7136,8535],{13069:(e,t,r)=>{r.d(t,{AG:()=>l,lk:()=>s,vD:()=>o,yS:()=>i});const n="randomUUID"in crypto;function s(){if(n)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function i(){return`{${s().toUpperCase()}}`}function o(){return`{${s()}}`}function l(e){const t=e.toUpperCase();return"{"!==e[0]?`{${t}}`:t}},17136:(e,t,r)=>{r.d(t,{O7:()=>M,el:()=>A});var n=r(92602),s=r(49186),i=r(53966),o=r(39829),l=r(82799),a=r(80754),p=r(21325),c=r(28735),u=r(78888),h=r(65864),f=r(2272),y=r(84952),d=r(92300);const m=()=>i.A.getLogger("esri.geometry.support.normalizeUtils");function g(e){return"polygon"===e[0].type}function v(e){return"polyline"===e[0].type}function _(e,t,r){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof o.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw m().error(e),new s.A("internal:geometry",e)}const r=(0,a.r8)(e),n=[];for(const e of r){const r=[];n.push(r),r.push([e[0][0],e[0][1]]);for(let n=0;n<e.length-1;n++){const s=e[n][0],i=e[n][1],o=e[n+1][0],l=e[n+1][1],a=Math.sqrt((o-s)*(o-s)+(l-i)*(l-i)),p=(l-i)/a,c=(o-s)/a,u=a/t;if(u>1){for(let e=1;e<=u-1;e++){const n=e*t,o=c*n+s,l=p*n+i;r.push([o,l])}const e=(a+Math.floor(u-1)*t)/2,n=c*e+s,o=p*e+i;r.push([n,o])}r.push([o,l])}}return function(e){return"polygon"===e.type}(e)?new o.A({rings:n,spatialReference:e.spatialReference}):new l.A({paths:n,spatialReference:e.spatialReference})}(e,1e6);e=(0,c.ci)(t,!0)}return r&&(e=(0,a.kS)(e,r)),e}function S(e,t,r){if(Array.isArray(e)){const n=e[0];if(n>t){const r=(0,a.kd)(n,t);e[0]=n+r*(-2*t)}else if(n<r){const t=(0,a.kd)(n,r);e[0]=n+t*(-2*r)}}else{const n=e.x;if(n>t){const r=(0,a.kd)(n,t);e=e.clone().offset(r*(-2*t),0)}else if(n<r){const t=(0,a.kd)(n,r);e=e.clone().offset(t*(-2*r),0)}}return e}function w(e,t){let r=-1;for(let n=0;n<t.cutIndexes.length;n++){const s=t.cutIndexes[n],i=t.geometries[n],o=(0,a.r8)(i);for(let e=0;e<o.length;e++){const t=o[e];t.some((r=>{if(r[0]<180)return!0;{let r=0;for(let e=0;e<t.length;e++){const n=t[e][0];r=n>r?n:r}r=Number(r.toFixed(9));const n=-360*(0,a.kd)(r,180);for(let r=0;r<t.length;r++){const t=i.getPoint(e,r);i.setPoint(e,r,t.clone().offset(n,0))}return!0}}))}if(s===r){if(g(e))for(const t of(0,a.r8)(i))e[s]=e[s].addRing(t);else if(v(e))for(const t of(0,a.r8)(i))e[s]=e[s].addPath(t)}else r=s,e[s]=i}return e}async function A(e,t,r){if(!Array.isArray(e))return A([e],t);t&&"string"!=typeof t&&m().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const s="string"==typeof t?t:t?.url??n.A.geometryServiceUrl;let i,g,v,M,R,T,x,b,O=0;const j=[],N=[];for(const t of e)if(null!=t)if(i||(i=t.spatialReference,g=(0,p.Vp)(i),v=i.isWebMercator,T=v?102100:4326,M=a.j7[T].maxX,R=a.j7[T].minX,x=a.j7[T].plus180Line,b=a.j7[T].minus180Line),g)if("mesh"===t.type)N.push(t);else if("point"===t.type)N.push(S(t.clone(),M,R));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map((e=>S(e,M,R))),N.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,g);N.push(e.rings?new o.A(e):e)}else if(t.extent){const e=t.extent,r=(0,a.kd)(e.xmin,R)*(2*M);let n=0===r?t.clone():(0,a.kS)(t.clone(),r);e.offset(r,0);let{xmin:s,xmax:i}=e;s=Number(s.toFixed(9)),i=Number(i.toFixed(9)),e.intersects(x)&&i!==M?(O=i>O?i:O,n=_(n,v),j.push(n),N.push("cut")):e.intersects(b)&&s!==R?(O=i*(2*M)>O?i*(2*M):O,n=_(n,v,360),j.push(n),N.push("cut")):N.push(n)}else N.push(t.clone());else N.push(t);else N.push(t);let Z=(0,a.kd)(O,M),P=-90;const G=Z,k=new l.A;for(;Z>0;){const e=360*Z-180;k.addPath([[e,P],[e,-1*P]]),P*=-1,Z--}if(j.length>0&&G>0){const t=w(j,await async function(e,t,r,n){const s=(0,f.Dl)(e),i=t[0].spatialReference,o={...n,responseType:"json",query:{...s.query,f:"json",sr:(0,p.YX)(i),target:JSON.stringify({geometryType:(0,h.$B)(t[0]),geometries:t}),cutter:JSON.stringify(r)}},l=await(0,u.A)(s.path+"/cut",o),{cutIndexes:a,geometries:c=[]}=l.data;return{cutIndexes:a,geometries:c.map((e=>{const t=(0,h.rS)(e);return t.spatialReference=i,t}))}}(s,j,k,r)),n=[],i=[];for(let r=0;r<N.length;r++){const s=N[r];if("cut"!==s)i.push(s);else{const s=t.shift(),o=e[r];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&s.rings.length>=o.rings.length?(n.push(s),i.push("simplify")):i.push(v?(0,c.Gh)(s):s)}}if(!n.length)return i;const o=await async function(e,t,r){const n="string"==typeof e?(0,y.An)(e):e,s=t[0].spatialReference,i=(0,h.$B)(t[0]),o={...r,query:{...n.query,f:"json",sr:(0,p.YX)(s),geometries:JSON.stringify((0,d.X)(t))}},{data:l}=await(0,u.A)(n.path+"/simplify",o);return(0,d.V)(l.geometries,i,s)}(s,n,r),l=[];for(let e=0;e<i.length;e++){const t=i[e];"simplify"!==t?l.push(t):l.push(v?(0,c.Gh)(o.shift()):o.shift())}return l}const J=[];for(let e=0;e<N.length;e++){const t=N[e];if("cut"!==t)J.push(t);else{const e=j.shift();J.push(!0===v?(0,c.Gh)(e):e)}}return J}function M(e,t,r){const n=(0,p.Vp)(r);if(null==n)return e;const[s,i]=n.valid,o=2*i;let l=0,a=0;t>i?l=Math.ceil(Math.abs(t-i)/o):t<s&&(l=-Math.ceil(Math.abs(t-s)/o)),e>i?a=Math.ceil(Math.abs(e-i)/o):e<s&&(a=-Math.ceil(Math.abs(e-s)/o));let c=e+(l-a)*o;const u=c-t;return u>i?c-=o:u<s&&(c+=o),c}},22671:(e,t,r)=>{r.d(t,{A:()=>_});var n,s=r(90237),i=r(52106),o=r(66552),l=r(25482),a=r(4718),p=r(10107),c=(r(44208),r(53966),r(36005)),u=r(40608),h=r(43937),f=r(16930),y=r(65864),d=r(50498),m=r(20437);const g=new o.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=n=class extends l.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,i.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);const{features:s}=this;if(s)for(const e of s)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,y.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=f.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,a.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e?.[r];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,s]}=e,i=this.features,o=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-n)/t)),(e=>Math.round((s-e)/r)));for(let e=0,t=i.length;e<t;e++)o?.(i[e].geometry)||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,s],scale:[i,o]}=r;let l=null,a=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;l=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;a=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,(e=>e*i+n),(e=>s-e*o),l,a);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const n=f.A.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const i=e[t],o=r.fromJSON(i),l=i.geometry?.spatialReference;null==o.geometry||l||(o.geometry.spatialReference=n);const a=i.aggregateGeometries,p=o.aggregateGeometries;if(a&&null!=p)for(const e in p){const t=p[e],r=a[e],s=r?.spatialReference;null==t||s||(t.spatialReference=n)}s.push(o)}return s}_quantizePoints(e,t,r){let n,s;const i=[];for(let o=0,l=e.length;o<l;o++){const l=e[o];if(o>0){const e=t(l[0]),o=r(l[1]);e===n&&o===s||(i.push([e-n,o-s]),n=e,s=o)}else n=t(l[0]),s=r(l[1]),i.push([n,s])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,y.Bi)(e)?e.rings:e.paths,s=[];for(let e=0,i=n.length;e<i;e++){const i=n[e],o=this._quantizePoints(i,t,r);o&&s.push(o)}return s.length>0?((0,y.Bi)(e)?e.rings=s:e.paths=s,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,s){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const i=(0,y.Bi)(e)?e.rings:e.paths;let o,l;for(let e=0,n=i.length;e<n;e++){const n=i[e];for(let e=0,s=n.length;e<s;e++){const s=n[e];e>0?(o+=s[0],l+=s[1]):(o=s[0],l=s[1]),s[0]=t(o),s[1]=r(l)}}if(n&&s)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2]),r[3]=s(r[3])}}else if(n)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),s&&null!=e.mmax&&null!=e.mmin&&(e.mmax=s(e.mmax),e.mmin=s(e.mmin))}:"multipoint"===e?e=>{const i=e.points;let o,l;for(let e=0,n=i.length;e<n;e++){const n=i[e];e>0?(o+=n[0],l+=n[1]):(o=n[0],l=n[1]),n[0]=t(o),n[1]=r(l)}if(n&&s)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=n(t[2]),t[3]=s(t[3])}else if(n)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=n(t[2])}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2])}}:null}};(0,s._)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,s._)([(0,p.MZ)({type:[i.A],json:{write:!0}})],v.prototype,"features",void 0),(0,s._)([(0,c.w)("features")],v.prototype,"readFeatures",null),(0,s._)([(0,p.MZ)({type:[m.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,s._)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,s._)([(0,h.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,s._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,s._)([(0,p.MZ)({types:d.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,s._)([(0,c.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,s._)([(0,p.MZ)({type:f.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,s._)([(0,h.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,s._)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=n=(0,s._)([(0,u.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const _=v},71756:(e,t,r)=>{r.r(t),r.d(t,{default:()=>q});var n,s=r(90237),i=r(78888),o=r(49186),l=r(81583),a=r(92071),p=r(74887),c=r(84952),u=r(10107),h=r(79901),f=(r(44208),r(87811),r(36005)),y=r(40608),d=r(43937),m=r(16930),g=r(4146),v=r(52136),_=r(89186),S=r(98534),w=r(18768),A=r(63074),M=r(69208),R=r(16131),T=r(8303),x=r(54310),b=r(25036),O=r(91921),j=r(60694),N=r(10873),Z=r(33446),P=r(60410),G=r(88625);const k=["Canvas/World_Dark_Gray_Base","Canvas/World_Dark_Gray_Reference","Canvas/World_Light_Gray_Base","Canvas/World_Light_Gray_Reference","Elevation/World_Hillshade","Elevation/World_Hillshade_Dark","Ocean/World_Ocean_Base","Ocean/World_Ocean_Reference","Ocean_Basemap","Reference/World_Boundaries_and_Places","Reference/World_Boundaries_and_Places_Alternate","Reference/World_Transportation","World_Imagery","World_Street_Map","World_Topo_Map"];let J=n=class extends((0,A.dM)((0,b.j)((0,O.I)((0,_.f)((0,S.V)((0,R.q)((0,T.A)((0,w.b)((0,a.P)((0,x.J)((0,v.p)((0,M.d)(g.A))))))))))))){constructor(...e){super(...e),this.listMode="show",this.elevationInfo=new G.A({mode:"on-the-ground"}),this.isReference=null,this.operationalLayerType="ArcGISTiledMapServiceLayer",this.resampling=!0,this.sourceJSON=null,this.spatialReference=null,this.path=null,this.sublayers=null,this.type="tile",this.url=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Map Service"]},e).catch(p.QP).then((()=>this._fetchService(t)))),Promise.resolve(this)}get attributionDataUrl(){const e=this.parsedUrl?.path.toLowerCase();return e?this._getDefaultAttribution(this._getMapName(e)):null}readSpatialReference(e,t){return(e=e||t.tileInfo?.spatialReference)&&m.A.fromJSON(e)}writeSublayers(e,t,r,n){if(!this.loaded||!e)return;const s=e.slice().reverse().flatten((({sublayers:e})=>e&&e.toArray().reverse())).toArray(),i=[],o={writeSublayerStructure:!1,...n};s.forEach((e=>{const t=e.write({},o);i.push(t)})),i.some((e=>Object.keys(e).length>1))&&(t.layers=i)}get tileServers(){return this._getDefaultTileServers(this.parsedUrl?.path)}castTileServers(e){return Array.isArray(e)?e.map((e=>(0,c.An)(e).path)):null}fetchTile(e,t,r,n={}){const{signal:s}=n,o=this.getTileUrl(e,t,r),l={responseType:"image",signal:s,query:{...this.refreshParameters}};return(0,i.A)(o,l).then((e=>e.data))}async fetchImageBitmapTile(e,t,r,s={}){const{signal:o}=s;if(this.fetchTile!==n.prototype.fetchTile){const n=await this.fetchTile(e,t,r,s);return(0,Z.C)(n,e,t,r,o)}const l=this.getTileUrl(e,t,r),a={responseType:"blob",signal:o,query:{...this.refreshParameters}},{data:p}=await(0,i.A)(l,a);return(0,Z.C)(p,e,t,r,o)}getTileUrl(e,t,r){const n=!this.capabilities.operations.supportsTileMap&&this.supportsBlankTile,s=(0,c.x0)({...this.parsedUrl?.query,blankTile:!n&&null,...this.customParameters,token:this.apiKey}),i=this.tileServers;return`${i&&i.length?i[t%i.length]:this.parsedUrl?.path}/tile/${e}/${t}/${r}${s?"?"+s:""}`}loadAll(){return(0,l.g)(this,(e=>{e(this.allSublayers)}))}_fetchService(e){return new Promise(((t,r)=>{if(this.sourceJSON){if(null!=this.sourceJSON.bandCount&&null!=this.sourceJSON.pixelSizeX)throw new o.A("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");return void t({data:this.sourceJSON})}if(!this.parsedUrl)throw new o.A("tile-layer:undefined-url","layer's url is not defined");const n=(0,j.qg)(this.parsedUrl.path);if(null!=n&&"ImageServer"===n.serverType)throw new o.A("tile-layer:unsupported-url","use ImageryTileLayer to open a tiled image service");(0,i.A)(this.parsedUrl.path,{query:{f:"json",...this.parsedUrl.query,...this.customParameters,token:this.apiKey},responseType:"json",signal:e}).then(t,r)})).then((t=>{let r=this.url;if(t.ssl&&(r=this.url=r.replace(/^http:/i,"https:")),this.sourceJSON=t.data,this.read(t.data,{origin:"service",url:this.parsedUrl}),10.1===this.version&&!(0,j.Wo)(r))return this._fetchServerVersion(r,e).then((e=>{this.read({currentVersion:e})})).catch((()=>{}))}))}_fetchServerVersion(e,t){if(!(0,j.Fi)(e))return Promise.reject();const r=e.replace(/(.*\/rest)\/.*/i,"$1")+"/info";return(0,i.A)(r,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:t}).then((e=>{if(e.data?.currentVersion)return e.data.currentVersion;throw new o.A("tile-layer:version-not-available","Server did not provide a version")}))}_getMapName(e){const t=e.match(/^(?:https?:)?\/\/(server\.arcgisonline\.com|services\.arcgisonline\.com|ibasemaps-api\.arcgis\.com)\/arcgis\/rest\/services\/([^/]+(\/[^/]+)*)\/mapserver/i);return t?t[2]:void 0}_getDefaultAttribution(e){if(null==e)return null;let t;e=e.toLowerCase();for(let r=0,n=k.length;r<n;r++)if(t=k[r],t.toLowerCase().includes(e))return(0,c.s2)("//static.arcgis.com/attribution/"+t);return null}_getDefaultTileServers(e){if(null==e)return[];const t=-1!==e.search(/^(?:https?:)?\/\/server\.arcgisonline\.com/i),r=-1!==e.search(/^(?:https?:)?\/\/services\.arcgisonline\.com/i);return t||r?[e,e.replace(t?/server\.arcgisonline/i:/services\.arcgisonline/i,t?"services.arcgisonline":"server.arcgisonline")]:[]}get hasOverriddenFetchTile(){return!this.fetchTile[L]}};(0,s._)([(0,u.MZ)({readOnly:!0})],J.prototype,"attributionDataUrl",null),(0,s._)([(0,u.MZ)({type:["show","hide","hide-children"]})],J.prototype,"listMode",void 0),(0,s._)([(0,u.MZ)({json:{read:!0,write:!0}})],J.prototype,"blendMode",void 0),(0,s._)([(0,u.MZ)()],J.prototype,"elevationInfo",void 0),(0,s._)([(0,u.MZ)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],J.prototype,"isReference",void 0),(0,s._)([(0,u.MZ)({readOnly:!0,type:["ArcGISTiledMapServiceLayer"]})],J.prototype,"operationalLayerType",void 0),(0,s._)([(0,u.MZ)({type:Boolean})],J.prototype,"resampling",void 0),(0,s._)([(0,u.MZ)()],J.prototype,"sourceJSON",void 0),(0,s._)([(0,u.MZ)({type:m.A})],J.prototype,"spatialReference",void 0),(0,s._)([(0,f.w)("spatialReference",["spatialReference","tileInfo"])],J.prototype,"readSpatialReference",null),(0,s._)([(0,u.MZ)({type:String,json:{origins:{"web-scene":{read:!0,write:!0}},read:!1}})],J.prototype,"path",void 0),(0,s._)([(0,u.MZ)({readOnly:!0})],J.prototype,"sublayers",void 0),(0,s._)([(0,d.K)("sublayers",{layers:{type:[P.A]}})],J.prototype,"writeSublayers",null),(0,s._)([(0,u.MZ)({json:{read:!1,write:!1}})],J.prototype,"popupEnabled",void 0),(0,s._)([(0,u.MZ)()],J.prototype,"tileServers",null),(0,s._)([(0,h.w)("tileServers")],J.prototype,"castTileServers",null),(0,s._)([(0,u.MZ)({readOnly:!0,json:{read:!1}})],J.prototype,"type",void 0),(0,s._)([(0,u.MZ)(N.OZ)],J.prototype,"url",void 0),J=n=(0,s._)([(0,y.$)("esri.layers.TileLayer")],J);const L=Symbol("default-fetch-tile");J.prototype.fetchTile[L]=!0;const q=J},80754:(e,t,r)=>{r.d(t,{j7:()=>o,kS:()=>a,kd:()=>l,r8:()=>p});var n=r(82799),s=r(16930),i=r(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new n.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator}),minus180Line:new n.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:s.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new n.A({paths:[[[180,-180],[180,180]]],spatialReference:s.A.WGS84}),minus180Line:new n.A({paths:[[[-180,-180],[-180,180]]],spatialReference:s.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function a(e,t){const r=p(e);for(const e of r)for(const r of e)r[0]+=t;return e}function p(e){return(0,i.Bi)(e)?e.rings:e.paths}},92300:(e,t,r)=>{r.d(t,{V:()=>i,X:()=>s});var n=r(65864);function s(e){return{geometryType:(0,n.$B)(e[0]),geometries:e.map((e=>e.toJSON()))}}function i(e,t,r){const s=(0,n.xD)(t);return e.map((e=>{const t=s.fromJSON(e);return t.spatialReference=r,t}))}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3186,4178,4342,5483,5952,9835],{13069:(e,t,i)=>{i.d(t,{AG:()=>a,lk:()=>n,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function n(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${n().toUpperCase()}}`}function s(){return`{${n()}}`}function a(e){const t=e.toUpperCase();return"{"!==e[0]?`{${t}}`:t}},17311:(e,t,i)=>{i.d(t,{A:()=>d});var r=i(90237),n=i(69622),o=i(60999),s=i(5503),a=i(10107),l=(i(44208),i(53966),i(87811),i(40608)),p=i(30524),u=i(43668);let c=class extends n.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)((()=>(0,u.l)())):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??i.e(9926).then(i.bind(i,29926)).then((e=>this._featureUtils=e))}get calculatedExpressions(){const e=new s.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const i=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(i.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:i,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(i,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter((t=>e.includes(`{expression/${t.name.toLowerCase()}}`)))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some((e=>!0===e.invalid))}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const i=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of i){const i=t.split("."),r=this.fieldsIndex.get(i.at(-1)??"");r&&e.add(r.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const i of t){const t=this.fieldsIndex.get(i);t&&e.add(t.name)}return e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,i){try{const{attributes:r}=t,n=i?.timeZone??"system",[{substituteFieldsInLinksAndAttributes:o}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);if(i.fetchMissingFields&&(t=await this._checkAndReQueryGraphic(e,t)),this.workingTitle&&this.fieldInfoMap){const i=this._createFormattedAttributes(e,t,n).global;return o({attributes:r,expressionAttributes:null,fieldInfoMap:this.fieldInfoMap,globalAttributes:i,layer:e,text:this.workingTitle})}return""}catch{}return""}async _checkAndReQueryGraphic(e,t){const i=t.getObjectId();if(null==i)return t;if(!(0,p.Kl)(this.requiredFields,t)){const t=e.createQuery();t.where="1=1",t.outFields=[...this.requiredFields],t.objectIds=[i];const r=await e.queryFeatures(t);if(1===r?.features.length)return r.features[0]}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const i of e){if(!i.fieldName)continue;const e=this.fieldsIndex.get(i.fieldName),r=e?.name??i.fieldName;i.fieldName=r,t.set(r.toLowerCase(),i)}return t}_createFormattedAttributes(e,t,i="system"){const r=this.effectivePopupTemplate?.fieldInfos??[],n={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const i=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{n[`expression/${e.name}`]=e.func({vars:{$feature:i}})}catch{}}const o={...t.attributes,...n};return{global:this._featureUtils.formatAttributes({fieldInfos:r,attributes:o,graphic:t,timeZone:i,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,p.nw)(e).filter((e=>!(0===e.indexOf("relationships/")||0===e.indexOf("expression/"))))}};(0,r._)([(0,a.MZ)({readOnly:!0})],c.prototype,"_arcadeTask",null),(0,r._)([(0,a.MZ)()],c.prototype,"_featureUtils",void 0),(0,r._)([(0,a.MZ)({readOnly:!0})],c.prototype,"featureUtilsPromise",null),(0,r._)([(0,a.MZ)({readOnly:!0})],c.prototype,"calculatedExpressions",null),(0,r._)([(0,a.MZ)()],c.prototype,"displayField",void 0),(0,r._)([(0,a.MZ)()],c.prototype,"effectivePopupTemplate",void 0),(0,r._)([(0,a.MZ)()],c.prototype,"expressionsUsedInTitle",null),(0,r._)([(0,a.MZ)()],c.prototype,"fieldsIndex",void 0),(0,r._)([(0,a.MZ)()],c.prototype,"fieldInfoMap",null),(0,r._)([(0,a.MZ)()],c.prototype,"fields",void 0),(0,r._)([(0,a.MZ)()],c.prototype,"objectIdField",void 0),(0,r._)([(0,a.MZ)()],c.prototype,"requiredFields",null),c=(0,r._)([(0,l.$)("esri.layers.support.TitleCreator")],c);const d=c},22671:(e,t,i)=>{i.d(t,{A:()=>_});var r,n=i(90237),o=i(52106),s=i(66552),a=i(25482),l=i(4718),p=i(10107),u=(i(44208),i(53966),i(36005)),c=i(40608),d=i(43937),f=i(16930),y=i(65864),h=i(50498),m=i(20437);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=r=class extends a.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,i,r){if(e)return void g.write(e,t,i,r);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,r=(0,y.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=f.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const r=t.features[i];if(r.geometry){const t=e?.[i];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,i],translate:[r,n]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-r)/t)),(e=>Math.round((n-e)/i)));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[r,n],scale:[o,s]}=i;let a=null,l=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;a=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;l=i=>null==i?i:i*t+e}const p=this._getHydrationFunction(e,(e=>e*o+r),(e=>n-e*s),a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const r=f.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const o=e[t],s=i.fromJSON(o),a=o.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=r);const l=o.aggregateGeometries,p=s.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],i=l[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}n.push(s)}return n}_quantizePoints(e,t,i){let r,n;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=i(a[1]);e===r&&s===n||(o.push([e-r,s-n]),r=e,n=s)}else r=t(a[0]),n=i(a[1]),o.push([r,n])}return o.length>0?o:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,y.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,o=r.length;e<o;e++){const o=r[e],s=this._quantizePoints(o,t,i);s&&n.push(s)}return n.length>0?((0,y.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,n){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,y.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,r=o.length;e<r;e++){const r=o[e];for(let e=0,n=r.length;e<n;e++){const n=r[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=i(a)}}if(r&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2]),i[3]=n(i[3])}}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,r=o.length;e<r;e++){const r=o[e];e>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=t(s),r[1]=i(a)}if(r&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2]),t[3]=n(t[3])}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}}:null}};(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,p.MZ)({type:[o.A],json:{write:!0}})],v.prototype,"features",void 0),(0,n._)([(0,u.w)("features")],v.prototype,"readFeatures",null),(0,n._)([(0,p.MZ)({type:[m.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,n._)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,n._)([(0,d.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n._)([(0,p.MZ)({types:h.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n._)([(0,u.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n._)([(0,p.MZ)({type:f.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n._)([(0,d.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n._)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=r=(0,n._)([(0,c.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const _=v},32730:(e,t,i)=>{i.d(t,{BI:()=>m,D3:()=>y,XJ:()=>h,lc:()=>f,mX:()=>v,rU:()=>g,tH:()=>M});var r=i(799);const n="__begin__",o="__end__",s=new RegExp(n,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+n,"i"),p=new RegExp(o+"$","i"),u='"',c=u+" + ",d=" + "+u;function f(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function y(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function h(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=f(e.labelExpression),t.type="conventional"),t}function m(e){const t=h(e);switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function g(e){const t=h(e);switch(t.type){case"conventional":return function(e){const t=e?.match(_);return t?.[1].trim()||null}(t.expression);case"arcade":return M(t.expression)}return null}function v(e){let t;return e?(t=(0,r.HC)(e,(e=>n+'$feature["'+e+'"]'+o)),t=l.test(t)?t.replace(l,""):u+t,t=p.test(t)?t.replace(p,""):t+u,t=t.replaceAll(s,c).replaceAll(a,d)):t='""',t}const _=/^\s*\{([^}]+)\}\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,x=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,b=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function M(e){if(!e)return null;let t=w.exec(e)||x.exec(e);return t?t[1]||t[3]:(t=b.exec(e),t?t[2]:null)}},32756:(e,t,i)=>{i.d(t,{Rr:()=>l,fY:()=>u,ne:()=>p});var r=i(90237),n=i(93637),o=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),a=i(91880);function l(e,t,i){if(!e)return null;const r=e.find((e=>!!e.field));if(!r)return null;const n=new a.A;return n.read(r,i),[n]}const p={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,i,r){const o=e.find((e=>!!e.field));o&&(0,n.sM)(i,[o.toJSON()],t)}}}},u=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,r._)([(0,o.MZ)(p)],t.prototype,"orderBy",void 0),t=(0,r._)([(0,s.$)("esri.layers.mixins.OrderedLayer")],t),t}},33143:(e,t,i)=>{i.d(t,{A:()=>f});var r=i(90237),n=i(69540),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),l=i(40608),p=i(43937),u=i(80451),c=i(29005);let d=class extends(n.A.ClonableMixin(o.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const i of Object.keys(e))t[i]=(0,u.rS)(e[i]);return t}writeDomains(e,t){const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,r._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,r._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,r._)([(0,a.w)("domains")],d.prototype,"readDomains",null),(0,r._)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,r._)([(0,s.MZ)({type:[c.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,r._)([(0,l.$)("esri.layers.support.FeatureType")],d);const f=d},39516:(e,t,i)=>{let r;async function n(){return null==r&&(r=i.e(4123).then(i.bind(i,44123)).then((e=>new e.WhereClauseCache(500,500)))),r}async function o(e,t){const i=await n(),r=i.get(e,t);if(null==r)throw i.getError(e,t);return r}function s(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function a(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}i.d(t,{GP:()=>o,IW:()=>a,mA:()=>s})},41366:(e,t,i)=>{i.d(t,{K:()=>d,Q:()=>p});var r=i(90237),n=i(66552),o=i(53966),s=i(10107),a=(i(44208),i(87811),i(93223)),l=i(40608);const p=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",d=e=>{let t=class extends e{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&c||i&&u||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r._)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],t.prototype,"normalizationField",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],t.prototype,"normalizationMaxValue",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],t.prototype,"normalizationMinValue",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],t.prototype,"normalizationTotal",void 0),(0,r._)([(0,a.e)(p,{name:"parameters.normalizationType"})],t.prototype,"normalizationType",null),t=(0,r._)([(0,l.$)("esri.rest.support.NormalizationBinParametersMixin")],t),t}},41560:(e,t,i)=>{i.d(t,{Ch:()=>s,mW:()=>o});var r=i(34727),n=i(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,i){const o=function(e){if("manual"===p(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:i,maxScale:r}of e.filters)t[0]=Math.max(t[0],u(i)),t[1]=Math.min(t[1],c(r));return t}(e);if(o&&((0,r.gg)(t,o[0])||(0,r.ZH)(i,o[1])))return"";const s=Array.from(a(e,t,i)),l=function(e,t,i){if(0===e.length)return!0;const n=u(e.at(0)?.minScale),o=c(e.at(-1)?.maxScale);if((0,r.ZH)(n,t)||(0,r.gg)(o,i))return!0;for(let t=0;t<e.length-1;t++){const i=e[t],n=e[t+1];if((0,r.ZH)(u(n.minScale),c(i.maxScale)))return!0}return!1}(s,t,i)?"1=1":s.map((e=>e.where||"1=1")).reduce(((e,t)=>(0,n.IW)(e,t)),"");return l&&"1=1"!==l?l:""}function*a(e,t,i){if("manual"===p(e)){const t=e.filters.find((t=>t.id===e.activeFilterId));t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)l(r.minScale,r.maxScale,t,i)&&(yield r)}}function l(e,t,i,n){return e=u(e),i=u(i),t=c(t),!(!(0,r.Sp)(i,e)&&(n??i)>e||(0,r.Hx)(t,i)||void 0!==n&&(0,r.Sp)(n,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function c(e){return e||0}},46140:(e,t,i)=>{i.d(t,{R:()=>n});var r=i(49186);let n=class e{constructor(e,t,i=""){this.major=e,this.minor=t,this._context=i}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",i=this._context&&this._context+" ";throw new r.A(t+"unsupported-version",`Required major ${i}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,i=""){const[n,o]=t.split("."),s=/^\s*\d+\s*$/;if(!n?.match||!s.test(n))throw new r.A((i&&i+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!o?.match||!s.test(o))throw new r.A((i&&i+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const a=parseInt(n,10),l=parseInt(o,10);return new e(a,l,i)}}},55674:(e,t,i)=>{i.d(t,{Ad:()=>f,Gj:()=>m,QY:()=>d,lL:()=>g,xR:()=>y});var r=i(66131),n=i(49186),o=(i(44208),i(44729)),s=i(15032),a=i(65864),l=i(95466),p=i(43668),u=i(98623);const c=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const i of c)t.hasArcadeDependency(i)&&e.add(i);return e}function f(e,t){return h.create(e,t,null,["$feature","$view"])}function y(e,t,i){return h.create(e,t,i,["$feature","$view","$config"])}class h{static async create(e,t,i,r){const{arcade:o,Dictionary:s}=await(0,p.l)();let a;try{a=o.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const u={vars:r.reduce(((e,t)=>({...e,[t]:null})),{}),spatialReference:t,useAsync:!1},c=o.compileScript(a,u);let d=null;null!=i&&(d=new s(i),d.immutable=!0);const f=new s;return f.immutable=!1,f.setField("scale",0),new h(e,o,a,c,t,f,d,s)}constructor(e,t,i,r,n,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=i,this._compiled=r,this._spatialReference=n,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const i=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=i?r.lY.epochToArcadeDate(n,i):r.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=o?null!=i?r.lY.epochToArcadeDate(o,i):r.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:i})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,i){const r=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=r.fields,this._boundSchema.fieldsIndex=r,this._boundSchema.spatialReference=i}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===u.L5}field(e,t=!0){const i=this._getField(e);if(i)switch(i.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(this._boundTarget.attributes[i.name]);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(this._boundTarget.attributes[i.name]);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return r.lY.fromReaderAsTimeStampOffset(this._boundTarget.attributes[i.name]);case"date":case"esriFieldTypeDate":{const t=this._boundTarget.attributes[i.name];return this.isUnknownDateTimeField(e)?r.lY.unknownEpochToArcadeDate(t):r.lY.epochToArcadeDate(t,this.contextTimeZone??u.qU)}default:return this._boundTarget.attributes[i.name]}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map((e=>e.name))}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const i in e)t.push({name:i,alias:i,type:"string"==typeof e[i]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},58501:(e,t,i)=>{i.d(t,{q:()=>n});var r=i(62815);function n(e,t,i){if(!i?.features||!i.hasZ)return;const n=(0,r.N)(i.geometryType,t,e.outSpatialReference);if(null!=n)for(const e of i.features)n(e.geometry)}},73681:(e,t,i)=>{i.d(t,{n:()=>l});var r=i(49186),n=i(53966),o=i(46140),s=i(95466),a=i(55674);class l{static async from(e,t,i){const s=e.dictionary_version?o.R.parse(e.dictionary_version):null,u=new Set(e.itemsNames),c={};if(t)for(const e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(i))d.delete(e);d.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const f=await(0,a.xR)(e.expression,null,c);if(!f)throw new r.A("Unable to create dictionary renderer expression");const y=!s||!s.greaterEqual(4,0);y&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const h=new p(i,y);return new l(y,u,f,h)}constructor(e,t,i,r){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=i,this._reader=r}get itemNames(){return this._itemNames}evaluate(e,t,i,r){try{return this._reader.bind(e,i,r),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map((e=>({...e,type:"esriFieldTypeString"})));return new s.A(t)}}class p extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t?"":""+this._boundTarget.attributes[t.name]}}},91880:(e,t,i)=>{i.d(t,{A:()=>c});var r,n=i(90237),o=i(66552),s=i(25482),a=i(10107),l=(i(44208),i(53966),i(87811),i(40608));const p=new o.J({asc:"ascending",desc:"descending"});let u=class extends s.A{static{r=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new r({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n._)([(0,a.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],u.prototype,"order",void 0),u=r=(0,n._)([(0,l.$)("esri.layers.support.OrderByInfo")],u);const c=u},92935:(e,t,i)=>{var r;i.d(t,{X:()=>r}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(r||(r={}))},97927:(e,t,i)=>{i.r(t),i.d(t,{default:()=>K});var r=i(90237),n=i(49186),o=i(4718),s=i(93637),a=i(10107),l=(i(44208),i(53966),i(40608)),p=i(13600),u=i(82935),c=i(66552),d=i(69540),f=i(25482),y=(i(87811),i(69622)),h=i(21325);let m=class extends y.A{set horizontalWKID(e){e?(0,h.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,h.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:r,tangentialDistortionCoefficients:n}=this;return e?.length>1&&!Number.isNaN(t)&&i?.length>1&&r?.length>1&&n?.length>1}};(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"affineTransformations",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"focalLength",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"principalOffsetPoint",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"radialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"tangentialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"horizontalWKID",null),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"verticalWKID",null),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"x",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"y",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"z",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"type",void 0),m=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientation")],m);const g=m;let v=class extends(d.A.ClonableMixin(f.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:r,y:n,z:o,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:f}=this,y=[e,t,i,r,n,o,s,a,l];return this.isAdvanced&&(p?.forEach((e=>y.push(e))),y.push(u),c?.forEach((e=>y.push(e))),d?.forEach((e=>y.push(e))),f?.forEach((e=>y.push(e)))),y.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,r._)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"heading",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationHPR")],v);const _=v;let w=class extends(d.A.ClonableMixin(f.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:i,ellipsoidRadius:r,squaredEccentricity:n,properties:o}=this,s=`${o}`.split("|");return s.splice(1,1),`${e}|${t}|${i}|${r}|${n}|${s.join("|")}`}};(0,r._)([(0,a.MZ)({json:{write:!0}})],w.prototype,"type",void 0),(0,r._)([(0,a.MZ)({json:{write:!0},type:Number})],w.prototype,"latitude",void 0),(0,r._)([(0,a.MZ)({json:{write:!0},type:Number})],w.prototype,"longitude",void 0),(0,r._)([(0,a.MZ)({json:{write:!0},type:Number})],w.prototype,"ellipsoidRadius",void 0),(0,r._)([(0,a.MZ)({json:{write:!0},type:Number})],w.prototype,"squaredEccentricity",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],w.prototype,"properties",void 0),w=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationLTP")],w);const x=w;let b=class extends(d.A.ClonableMixin(f.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:r,y:n,z:o,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:f}=this,y=[e,t,i,r,n,o,s,a,l];return this.isAdvanced&&(p?.forEach((e=>y.push(e))),y.push(u),c?.forEach((e=>y.push(e))),d?.forEach((e=>y.push(e))),f?.forEach((e=>y.push(e)))),y.map((e=>isNaN(e)?"":e)).join("|")}};(0,r._)([(0,a.MZ)({json:{write:!0}})],b.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"affineTransformations",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"focalLength",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"principalOffsetPoint",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"radialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"tangentialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"omega",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"phi",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"kappa",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"x",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"y",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"z",void 0),b=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationOPK")],b);const M=b;let T=class extends(d.A.ClonableMixin(f.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:r,tangentialDistortionCoefficients:n}=this;return e?.length>1||!Number.isNaN(t)||i?.length>1||r?.length>1||n?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:r,y:n,z:o,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:f}=this,y=[e,t,i,r,n,o,s,a,l];return this.isAdvanced&&(p?.forEach((e=>y.push(e))),y.push(u),c?.forEach((e=>y.push(e))),c?.forEach((e=>y.push(e))),d?.forEach((e=>y.push(e))),f?.forEach((e=>y.push(e)))),y.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,r._)([(0,a.MZ)({json:{write:!0}})],T.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],T.prototype,"affineTransformations",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"focalLength",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],T.prototype,"principalOffsetPoint",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],T.prototype,"radialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],T.prototype,"tangentialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"yaw",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"pitch",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"roll",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"x",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"y",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"z",void 0),T=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationYPR")],T);const j=T;var Z;!function(e){e[e.HPR=1]="HPR",e[e.OPK=2]="OPK",e[e.YPR=3]="YPR",e[e.LTP=4]="LTP"}(Z||(Z={}));const S=new Map;S.set(`${Z.OPK}`,{desc:"Using Omega Phi Kappa",constructor:M}),S.set(`${Z.HPR}`,{desc:"Using Heading, Pitch and Roll",constructor:_}),S.set(`${Z.YPR}`,{desc:"Using Yaw, Pitch and Roll",constructor:j}),S.set(`${Z.LTP}`,{desc:"Using Local Tangent Plane",constructor:x});let I=class extends(d.A.ClonableMixin(f.A)){constructor(){super(...arguments),this.url=null}};(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],I.prototype,"lod",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"rasterFunction",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"url",void 0),I=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],I);let P=class extends(d.A.ClonableMixin(f.A)){constructor(){super(...arguments),this.constantElevation=null}};function N(e,t,i){return e?null!=(r=e)&&"number"==typeof r.constantElevation?new P(e):function(e,t,i){let{url:r}=e;return r?(r=function(e,t,i){return t&&(e=`${t}${e}`),i&&(e+=`${i}`),e}(r,t,i),new I({...e,url:r})):null}(e,t,i):e;var r}(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],P.prototype,"constantElevation",void 0),P=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],P);const A=new c.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),F=new c.J({Feet:"feet",Meter:"meter"}),D=new c.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique","":null}),O=new Map;O.set(`${Z.HPR}`,(function(e){const[t,i,r,n,o,s,a,l,p,u,c,d,f,y,h,m,g,v,_,w,x,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:r,y:n,z:o,heading:s,pitch:a,roll:l,...R([p,u,c,d,f,y],[m,g],[v,_,w],[x,b],h)}})),O.set(`${Z.YPR}`,(function(e){const[t,i,r,n,o,s,a,l,p,u,c,d,f,y,h,m,g,v,_,w,x,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:r,y:n,z:o,yaw:s,pitch:a,roll:l,...R([p,u,c,d,f,y],[m,g],[v,_,w],[x,b],h)}})),O.set(`${Z.OPK}`,(function(e){const[t,i,r,n,o,s,a,l,p,u,c,d,f,y,h,m,g,v,_,w,x,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:r,y:n,z:o,omega:s,phi:a,kappa:l,...R([p,u,c,d,f,y],[m,g],[v,_,w],[x,b],h)}})),O.set(`${Z.LTP}`,(function(e){const[t,i,r,n,o,...s]=e.slice(1),a=O.get(o),l=S.get(o)?.constructor;return a&&l?{latitude:t,longitude:i,ellipsoidRadius:r,squaredEccentricity:n,properties:new l(a([o,"",...s]))}:null}));const E=e=>{const t=e.map((e=>parseFloat(e))).filter((e=>!isNaN(e)));if(t.length===e.length)return t};function R(e,t,i,r,n){const o=E(e),s=E(t),a=E(i),l=E(r);return{affineTransformations:6===o?.length?o:void 0,focalLength:6===o?.length?parseFloat(n):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}var $=i(43440),z=i(79677),C=i(92935);const U=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","imageGeometryField","imageReferenceField","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),k=(e,t)=>!U.has(t)&&e;function L(e,t,i,r){const{name:n,write:o,read:s}=((e,t,i)=>{const r=`orientedImageryProperties.${e}`;return{name:r,write:t?{ignoreOrigin:!0,target:r,writer:t}:{ignoreOrigin:!0},read:i?{ignoreOrigin:!0,source:r,reader:i}:{ignoreOrigin:!0}}})(e,t,i),a={name:n,write:o,read:s,origins:{service:{name:`orientedImageryInfo.${n}`,write:t,read:i},"web-scene":{name:n,write:k(o,e),read:k(s,e)},"web-map":{name:n,write:o,read:s}}};return r&&a.origins?(a.type=r,a.origins["web-map"].type=r,a.origins["web-scene"].type=r,a):a}let G=class extends p.default{constructor(){super(...arguments),this.attributeTableTemplate=null,this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imageGeometryField="ImageGeometry",this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageReferenceField="OIObjectID",this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.useViewTime=!0,this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:i}=this;return N(e,t,i)}async save(e){return this._debouncedSaveOperations(C.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(C.X.SAVE_AS,t,e)}findFirstValidLayerId(e){return e.layers?.find((e=>this.supportedSourceTypes.has(e.type)))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new n.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};var V;(0,r._)([(0,a.MZ)({type:$.A,json:{write:!1,read:!1}})],G.prototype,"attributeTableTemplate",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("cameraHeading")})],G.prototype,"cameraHeading",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("cameraHeight")})],G.prototype,"cameraHeight",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("cameraPitch")})],G.prototype,"cameraPitch",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("cameraRoll")})],G.prototype,"cameraRoll",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("coveragePercent")})],G.prototype,"coveragePercent",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("demPathPrefix")})],G.prototype,"demPathPrefix",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("demPathSuffix")})],G.prototype,"demPathSuffix",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("depthImagePathPrefix")})],G.prototype,"depthImagePathPrefix",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("depthImagePathSuffix")})],G.prototype,"depthImagePathSuffix",void 0),(0,r._)([(0,a.MZ)({type:Object,json:L("elevationSource")})],G.prototype,"elevationSource",void 0),(0,r._)([(0,a.MZ)({readOnly:!0})],G.prototype,"effectiveElevationSource",null),(0,r._)([(0,a.MZ)({type:Number,json:L("farDistance")})],G.prototype,"farDistance",void 0),(0,r._)([(0,a.MZ)()],G.prototype,"geometryType",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("horizontalFieldOfView")})],G.prototype,"horizontalFieldOfView",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("horizontalMeasurementUnit")})],G.prototype,"horizontalMeasurementUnit",void 0),(0,r._)([(0,a.MZ)({type:String,json:{...L("imageGeometryField"),default:"ImageGeometry"}})],G.prototype,"imageGeometryField",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("imagePathPrefix")})],G.prototype,"imagePathPrefix",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("imagePathSuffix")})],G.prototype,"imagePathSuffix",void 0),(0,r._)([(0,a.MZ)({type:String,json:{...L("imageReferenceField"),default:"OIObjectID"}})],G.prototype,"imageReferenceField",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("imageRotation")})],G.prototype,"imageRotation",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("maximumDistance")})],G.prototype,"maximumDistance",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("nearDistance")})],G.prototype,"nearDistance",void 0),(0,r._)([(0,a.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],G.prototype,"operationalLayerType",void 0),(0,r._)([(0,a.MZ)({json:{...L("orientationAccuracy",((e,t,i)=>{(0,s.sM)(i,e.join(";"),t)}),(e=>{const t=e?.split(";")?.map(Number);return function(e){return Array.isArray(e)&&9===e?.length&&!e.some(isNaN)}(t)?t:[0,0,0,0,0,0,0,0,0]}),String)}})],G.prototype,"orientationAccuracy",void 0),(0,r._)([(0,a.MZ)({json:{...L("orientedImageryType",D.write,D.read,D.jsonValues.slice(1))}})],G.prototype,"orientedImageryType",void 0),(0,r._)([(0,a.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],G.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:A.apiValues,json:{...L("timeIntervalUnit",A.write,A.read,A.jsonValues)}})],G.prototype,"timeIntervalUnit",void 0),(0,r._)([(0,a.MZ)((V=(0,o.o8)(u.B),V.json?(V.json.origins=V.json.origins??{},V.json.origins["web-scene"]={write:!1,read:!1},V):V))],G.prototype,"useViewTime",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("verticalFieldOfView")})],G.prototype,"verticalFieldOfView",void 0),(0,r._)([(0,a.MZ)({type:F.apiValues,json:{...L("verticalMeasurementUnit",F.write,F.read,F.jsonValues)}})],G.prototype,"verticalMeasurementUnit",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("videoPathPrefix")})],G.prototype,"videoPathPrefix",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("videoPathSuffix")})],G.prototype,"videoPathSuffix",void 0),(0,r._)([(0,a.MZ)({type:z.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],G.prototype,"visibilityTimeExtent",void 0),G=(0,r._)([(0,l.$)("esri.layers.OrientedImageryLayer")],G);const K=G}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3186,4178,4342,5483,5952,9835],{13069:(e,t,i)=>{i.d(t,{AG:()=>a,lk:()=>n,vD:()=>s,yS:()=>o});const r="randomUUID"in crypto;function n(){if(r)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function o(){return`{${n().toUpperCase()}}`}function s(){return`{${n()}}`}function a(e){const t=e.toUpperCase();return"{"!==e[0]?`{${t}}`:t}},17311:(e,t,i)=>{i.d(t,{A:()=>d});var r=i(90237),n=i(69622),o=i(60999),s=i(5503),a=i(10107),l=(i(44208),i(53966),i(87811),i(40608)),p=i(30524),u=i(43668);let c=class extends n.A{constructor(e){super(e),this._featureUtils=null,this.effectivePopupTemplate=null}get _arcadeTask(){return this.expressionsUsedInTitle.length>0?this._get("_arcadeTask")||(0,o.UT)((()=>(0,u.l)())):null}get featureUtilsPromise(){return this._get("featureUtilsPromise")??i.e(9926).then(i.bind(i,29926)).then((e=>this._featureUtils=e))}get calculatedExpressions(){const e=new s.A;if(!this.expressionsUsedInTitle.length)return e;if(!this._arcadeTask?.value){for(const t of this.expressionsUsedInTitle??[])e.push({name:t.name,invalid:!0});return e}for(const t of this.expressionsUsedInTitle)try{const i=this._arcadeTask.value.arcade.parseScript(t.expression,["$layer","$map","$datastore"]);if(i.isAsync){e.push({name:t.name,invalid:!0});break}e.push({name:t.name,syntax:i,invalid:!1,func:this._arcadeTask.value.arcade.compileScript(i,{vars:{$feature:"any"}})})}catch{e.push({name:t.name,invalid:!0});break}return e}get expressionsUsedInTitle(){let e=this.effectivePopupTemplate?.title??"";return"string"!=typeof e?[]:(e=e.toLowerCase(),this.effectivePopupTemplate?.expressionInfos?.filter((t=>e.includes(`{expression/${t.name.toLowerCase()}}`)))??[])}get fieldInfoMap(){return this._featureUtils?this._createFieldInfoMap(this._featureUtils.getAllFieldInfos(this.effectivePopupTemplate)):null}get hasBadExpressions(){return this.calculatedExpressions.some((e=>!0===e.invalid))}get requiredFields(){const e=new Set;if(this._arcadeTask?.value&&!this.hasBadExpressions)for(const t of this.calculatedExpressions?.toArray()??[])try{const i=this._arcadeTask.value.arcade.extractFieldLiterals(t.syntax);for(const t of i){const i=t.split("."),r=this.fieldsIndex.get(i.at(-1)??"");r&&e.add(r.name)}}catch{}const t=this._extractFieldNames(this.workingTitle);for(const i of t){const t=this.fieldsIndex.get(i);t&&e.add(t.name)}return e}get titleFromDisplayField(){let e="";return this.displayField&&(e=this.fieldsIndex.get(this.displayField)?.name??""),e||(e=this.fieldsIndex.get(this.objectIdField)?.name??""),e?`{${e}}`:""}get workingTitle(){const e=this.effectivePopupTemplate?this.effectivePopupTemplate.title:"";return""===e||null==e||this.hasBadExpressions||"string"!=typeof e?this.titleFromDisplayField:e}async getTitle(e,t,i){try{const{attributes:r}=t,n=i?.timeZone??"system",[{substituteFieldsInLinksAndAttributes:o}]=await Promise.all([this.featureUtilsPromise,this._arcadeTask?.promise]);if(i.fetchMissingFields&&(t=await this._checkAndReQueryGraphic(e,t)),this.workingTitle&&this.fieldInfoMap){const i=this._createFormattedAttributes(e,t,n).global;return o({attributes:r,expressionAttributes:null,fieldInfoMap:this.fieldInfoMap,globalAttributes:i,layer:e,text:this.workingTitle})}return""}catch{}return""}async _checkAndReQueryGraphic(e,t){const i=t.getObjectId();if(null==i)return t;if(!(0,p.Kl)(this.requiredFields,t)){const t=e.createQuery();t.where="1=1",t.outFields=[...this.requiredFields],t.objectIds=[i];const r=await e.queryFeatures(t);if(1===r?.features.length)return r.features[0]}return t}_createFieldInfoMap(e){const t=new Map;if(!e)return t;for(const i of e){if(!i.fieldName)continue;const e=this.fieldsIndex.get(i.fieldName),r=e?.name??i.fieldName;i.fieldName=r,t.set(r.toLowerCase(),i)}return t}_createFormattedAttributes(e,t,i="system"){const r=this.effectivePopupTemplate?.fieldInfos??[],n={};if(!this._featureUtils)return{};if(!this.hasBadExpressions&&this.calculatedExpressions.length>0&&this._arcadeTask?.value){const i=this._arcadeTask.value.Feature.createFromGraphicLikeObject(t.geometry,t.attributes,e,null);for(const e of this.calculatedExpressions)try{n[`expression/${e.name}`]=e.func({vars:{$feature:i}})}catch{}}const o={...t.attributes,...n};return{global:this._featureUtils.formatAttributes({fieldInfos:r,attributes:o,graphic:t,timeZone:i,layer:e,fieldInfoMap:this.fieldInfoMap}),content:[]}}_extractFieldNames(e){return(0,p.nw)(e).filter((e=>!(0===e.indexOf("relationships/")||0===e.indexOf("expression/"))))}};(0,r._)([(0,a.MZ)({readOnly:!0})],c.prototype,"_arcadeTask",null),(0,r._)([(0,a.MZ)()],c.prototype,"_featureUtils",void 0),(0,r._)([(0,a.MZ)({readOnly:!0})],c.prototype,"featureUtilsPromise",null),(0,r._)([(0,a.MZ)({readOnly:!0})],c.prototype,"calculatedExpressions",null),(0,r._)([(0,a.MZ)()],c.prototype,"displayField",void 0),(0,r._)([(0,a.MZ)()],c.prototype,"effectivePopupTemplate",void 0),(0,r._)([(0,a.MZ)()],c.prototype,"expressionsUsedInTitle",null),(0,r._)([(0,a.MZ)()],c.prototype,"fieldsIndex",void 0),(0,r._)([(0,a.MZ)()],c.prototype,"fieldInfoMap",null),(0,r._)([(0,a.MZ)()],c.prototype,"fields",void 0),(0,r._)([(0,a.MZ)()],c.prototype,"objectIdField",void 0),(0,r._)([(0,a.MZ)()],c.prototype,"requiredFields",null),c=(0,r._)([(0,l.$)("esri.layers.support.TitleCreator")],c);const d=c},22671:(e,t,i)=>{i.d(t,{A:()=>_});var r,n=i(90237),o=i(52106),s=i(66552),a=i(25482),l=i(4718),p=i(10107),u=(i(44208),i(53966),i(36005)),c=i(40608),d=i(43937),f=i(16930),y=i(65864),h=i(50498),m=i(20437);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let v=r=class extends a.A{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,i,r){if(e)return void g.write(e,t,i,r);const{features:n}=this;if(n)for(const e of n)if(null!=e?.geometry)return void g.write(e.geometry.type,t,i,r)}readQueryGeometry(e,t){if(!e)return null;const i=!!e.spatialReference,r=(0,y.rS)(e);return r&&!i&&t.spatialReference&&(r.spatialReference=f.A.fromJSON(t.spatialReference)),r}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:i}=this;if(i)for(const e of i)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new r(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let i=0;i<t.features.length;i++){const r=t.features[i];if(r.geometry){const t=e?.[i];r.geometry=t?.toJSON()||r.geometry}}return t}quantize(e){const{scale:[t,i],translate:[r,n]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-r)/t)),(e=>Math.round((n-e)/i)));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:i}=this;if(!i)return this;const{translate:[r,n],scale:[o,s]}=i;let a=null,l=null;if(this.hasZ&&null!=i?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=i;a=i=>i*t+e}if(this.hasM&&null!=i?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=i;l=i=>null==i?i:i*t+e}const p=this._getHydrationFunction(e,(e=>e*o+r),(e=>n-e*s),a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,i){const r=f.A.fromJSON(t.spatialReference),n=[];for(let t=0;t<e.length;t++){const o=e[t],s=i.fromJSON(o),a=o.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=r);const l=o.aggregateGeometries,p=s.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],i=l[e],n=i?.spatialReference;null==t||n||(t.spatialReference=r)}n.push(s)}return n}_quantizePoints(e,t,i){let r,n;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=i(a[1]);e===r&&s===n||(o.push([e-r,s-n]),r=e,n=s)}else r=t(a[0]),n=i(a[1]),o.push([r,n])}return o.length>0?o:null}_getQuantizationFunction(e,t,i){return"point"===e?e=>(e.x=t(e.x),e.y=i(e.y),e):"polyline"===e||"polygon"===e?e=>{const r=(0,y.Bi)(e)?e.rings:e.paths,n=[];for(let e=0,o=r.length;e<o;e++){const o=r[e],s=this._quantizePoints(o,t,i);s&&n.push(s)}return n.length>0?((0,y.Bi)(e)?e.rings=n:e.paths=n,e):null}:"multipoint"===e?e=>{const r=this._quantizePoints(e.points,t,i);return r&&r.length>0?(e.points=r,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,i,r,n){return"point"===e?e=>{e.x=t(e.x),e.y=i(e.y),r&&(e.z=r(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,y.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,r=o.length;e<r;e++){const r=o[e];for(let e=0,n=r.length;e<n;e++){const n=r[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=i(a)}}if(r&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2]),i[3]=n(i[3])}}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=r(i[2])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,i=t.length;e<i;e++){const i=t[e];i[2]=n(i[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=i(e.ymin),e.xmax=t(e.xmax),e.ymax=i(e.ymax),r&&null!=e.zmax&&null!=e.zmin&&(e.zmax=r(e.zmax),e.zmin=r(e.zmin)),n&&null!=e.mmax&&null!=e.mmin&&(e.mmax=n(e.mmax),e.mmin=n(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,r=o.length;e<r;e++){const r=o[e];e>0?(s+=r[0],a+=r[1]):(s=r[0],a=r[1]),r[0]=t(s),r[1]=i(a)}if(r&&n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2]),t[3]=n(t[3])}else if(r)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=r(t[2])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}}:null}};(0,n._)([(0,p.MZ)({type:String,json:{write:!0}})],v.prototype,"displayFieldName",void 0),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"exceededTransferLimit",void 0),(0,n._)([(0,p.MZ)({type:[o.A],json:{write:!0}})],v.prototype,"features",void 0),(0,n._)([(0,u.w)("features")],v.prototype,"readFeatures",null),(0,n._)([(0,p.MZ)({type:[m.A],json:{write:!0}})],v.prototype,"fields",void 0),(0,n._)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],v.prototype,"geometryType",void 0),(0,n._)([(0,d.K)("geometryType")],v.prototype,"writeGeometryType",null),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasM",void 0),(0,n._)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],v.prototype,"hasZ",void 0),(0,n._)([(0,p.MZ)({types:h.yR,json:{write:!0}})],v.prototype,"queryGeometry",void 0),(0,n._)([(0,u.w)("queryGeometry")],v.prototype,"readQueryGeometry",null),(0,n._)([(0,p.MZ)({type:f.A,json:{write:!0}})],v.prototype,"spatialReference",void 0),(0,n._)([(0,d.K)("spatialReference")],v.prototype,"writeSpatialReference",null),(0,n._)([(0,p.MZ)({json:{write:!0}})],v.prototype,"transform",void 0),v=r=(0,n._)([(0,c.$)("esri.rest.support.FeatureSet")],v),v.prototype.toJSON.isDefaultToJSON=!0;const _=v},32730:(e,t,i)=>{i.d(t,{BI:()=>m,D3:()=>y,XJ:()=>h,lc:()=>f,mX:()=>v,rU:()=>g,tH:()=>M});var r=i(799);const n="__begin__",o="__end__",s=new RegExp(n,"ig"),a=new RegExp(o,"ig"),l=new RegExp("^"+n,"i"),p=new RegExp(o+"$","i"),u='"',c=u+" + ",d=" + "+u;function f(e){return e.replaceAll(new RegExp("\\[","g"),"{").replaceAll(new RegExp("\\]","g"),"}")}function y(e){return e.replaceAll(new RegExp("\\{","g"),"[").replaceAll(new RegExp("\\}","g"),"]")}function h(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=f(e.labelExpression),t.type="conventional"),t}function m(e){const t=h(e);switch(t.type){case"conventional":return v(t.expression);case"arcade":return t.expression}return null}function g(e){const t=h(e);switch(t.type){case"conventional":return function(e){const t=e?.match(_);return t?.[1].trim()||null}(t.expression);case"arcade":return M(t.expression)}return null}function v(e){let t;return e?(t=(0,r.HC)(e,(e=>n+'$feature["'+e+'"]'+o)),t=l.test(t)?t.replace(l,""):u+t,t=p.test(t)?t.replace(p,""):t+u,t=t.replaceAll(s,c).replaceAll(a,d)):t='""',t}const _=/^\s*\{([^}]+)\}\s*$/i,w=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*$/i,x=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])(.+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,b=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(.+)(\1)\s*\));?\s*$/i;function M(e){if(!e)return null;let t=w.exec(e)||x.exec(e);return t?t[1]||t[3]:(t=b.exec(e),t?t[2]:null)}},32756:(e,t,i)=>{i.d(t,{Rr:()=>l,fY:()=>u,ne:()=>p});var r=i(90237),n=i(93637),o=i(10107),s=(i(44208),i(53966),i(87811),i(40608)),a=i(91880);function l(e,t,i){if(!e)return null;const r=e.find((e=>!!e.field));if(!r)return null;const n=new a.A;return n.read(r,i),[n]}const p={type:[a.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:l},write:{writer:function(e,t,i,r){const o=e.find((e=>!!e.field));o&&(0,n.sM)(i,[o.toJSON()],t)}}}},u=e=>{let t=class extends e{constructor(){super(...arguments),this.orderBy=null}};return(0,r._)([(0,o.MZ)(p)],t.prototype,"orderBy",void 0),t=(0,r._)([(0,s.$)("esri.layers.mixins.OrderedLayer")],t),t}},33143:(e,t,i)=>{i.d(t,{A:()=>f});var r=i(90237),n=i(69540),o=i(25482),s=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),l=i(40608),p=i(43937),u=i(80451),c=i(29005);let d=class extends(n.A.ClonableMixin(o.A)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const i of Object.keys(e))t[i]=(0,u.rS)(e[i]);return t}writeDomains(e,t){const i={};for(const t of Object.keys(e))e[t]&&(i[t]=e[t]?.toJSON());t.domains=i}};(0,r._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"id",void 0),(0,r._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"name",void 0),(0,r._)([(0,s.MZ)({json:{write:!0}})],d.prototype,"domains",void 0),(0,r._)([(0,a.w)("domains")],d.prototype,"readDomains",null),(0,r._)([(0,p.K)("domains")],d.prototype,"writeDomains",null),(0,r._)([(0,s.MZ)({type:[c.A],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,r._)([(0,l.$)("esri.layers.support.FeatureType")],d);const f=d},39516:(e,t,i)=>{let r;async function n(){return null==r&&(r=i.e(4123).then(i.bind(i,44123)).then((e=>new e.WhereClauseCache(500,500)))),r}async function o(e,t){const i=await n(),r=i.get(e,t);if(null==r)throw i.getError(e,t);return r}function s(e,t){return e||=null,t||=null,"1=1"===e?t??e:"1=1"===t?e??t:e&&t?`(${e}) AND (${t})`:e??t}function a(e,t){return e||=null,t||=null,"1=1"===e||"1=1"===t||e===t?"1=1"===e?e:t:e&&t?`(${e}) OR (${t})`:e??t}i.d(t,{GP:()=>o,IW:()=>a,mA:()=>s})},41366:(e,t,i)=>{i.d(t,{K:()=>d,Q:()=>p});var r=i(90237),n=i(66552),o=i(53966),s=i(10107),a=(i(44208),i(87811),i(93223)),l=i(40608);const p=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",c="field",d=e=>{let t=class extends e{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,i=null!=this.normalizationTotal;return t||i?(e=t&&c||i&&u||null,t&&i&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==c&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,r._)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],t.prototype,"normalizationField",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],t.prototype,"normalizationMaxValue",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],t.prototype,"normalizationMinValue",void 0),(0,r._)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],t.prototype,"normalizationTotal",void 0),(0,r._)([(0,a.e)(p,{name:"parameters.normalizationType"})],t.prototype,"normalizationType",null),t=(0,r._)([(0,l.$)("esri.rest.support.NormalizationBinParametersMixin")],t),t}},41560:(e,t,i)=>{i.d(t,{Ch:()=>s,mW:()=>o});var r=i(34727),n=i(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,i){const o=function(e){if("manual"===p(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:i,maxScale:r}of e.filters)t[0]=Math.max(t[0],u(i)),t[1]=Math.min(t[1],c(r));return t}(e);if(o&&((0,r.gg)(t,o[0])||(0,r.ZH)(i,o[1])))return"";const s=Array.from(a(e,t,i)),l=function(e,t,i){if(0===e.length)return!0;const n=u(e.at(0)?.minScale),o=c(e.at(-1)?.maxScale);if((0,r.ZH)(n,t)||(0,r.gg)(o,i))return!0;for(let t=0;t<e.length-1;t++){const i=e[t],n=e[t+1];if((0,r.ZH)(u(n.minScale),c(i.maxScale)))return!0}return!1}(s,t,i)?"1=1":s.map((e=>e.where||"1=1")).reduce(((e,t)=>(0,n.IW)(e,t)),"");return l&&"1=1"!==l?l:""}function*a(e,t,i){if("manual"===p(e)){const t=e.filters.find((t=>t.id===e.activeFilterId));t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const r of e.filters)l(r.minScale,r.maxScale,t,i)&&(yield r)}}function l(e,t,i,n){return e=u(e),i=u(i),t=c(t),!(!(0,r.Sp)(i,e)&&(n??i)>e||(0,r.Hx)(t,i)||void 0!==n&&(0,r.Sp)(n,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function c(e){return e||0}},46140:(e,t,i)=>{i.d(t,{R:()=>n});var r=i(49186);let n=class e{constructor(e,t,i=""){this.major=e,this.minor=t,this._context=i}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",i=this._context&&this._context+" ";throw new r.A(t+"unsupported-version",`Required major ${i}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new e(this.major,this.minor,this._context)}static parse(t,i=""){const[n,o]=t.split("."),s=/^\s*\d+\s*$/;if(!n?.match||!s.test(n))throw new r.A((i&&i+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:t});if(!o?.match||!s.test(o))throw new r.A((i&&i+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:t});const a=parseInt(n,10),l=parseInt(o,10);return new e(a,l,i)}}},55674:(e,t,i)=>{i.d(t,{Ad:()=>f,Gj:()=>m,QY:()=>d,lL:()=>g,xR:()=>y});var r=i(66131),n=i(49186),o=(i(44208),i(44729)),s=i(15032),a=i(65864),l=i(95466),p=i(43668),u=i(98623);const c=["geometry","scale","timeProperties"];function d(e,t){if(null!=t)for(const i of c)t.hasArcadeDependency(i)&&e.add(i);return e}function f(e,t){return h.create(e,t,null,["$feature","$view"])}function y(e,t,i){return h.create(e,t,i,["$feature","$view","$config"])}class h{static async create(e,t,i,r){const{arcade:o,Dictionary:s}=await(0,p.l)();let a;try{a=o.parseScript(e)}catch(t){throw new n.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}const l=o.scriptUsesGeometryEngine(a);l&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,a,null,!1,l);const u={vars:r.reduce(((e,t)=>({...e,[t]:null})),{}),spatialReference:t,useAsync:!1},c=o.compileScript(a,u);let d=null;null!=i&&(d=new s(i),d.immutable=!0);const f=new s;return f.immutable=!1,f.setField("scale",0),new h(e,o,a,c,t,f,d,s)}constructor(e,t,i,r,n,o,s,a){this.script=e,this._arcade=t,this._syntaxTree=i,this._compiled=r,this._spatialReference=n,this._viewDict=o,this._configDict=s,this._dictionaryCtor=a,this._dependencies=new Map,this._featureReader=new m,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){const i=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){const{currentStart:n,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({currentStart:null!=n?null!=i?r.lY.epochToArcadeDate(n,i):r.lY.unknownEpochToArcadeDate(n):void 0,currentEnd:null!=o?null!=i?r.lY.epochToArcadeDate(o,i):r.lY.unknownEpochToArcadeDate(o):void 0,startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:i})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class m{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,i){const r=t??new l.A(g(e.attributes));this._boundTarget=e,this._boundSchema.fields=r.fields,this._boundSchema.fieldsIndex=r,this._boundSchema.spatialReference=i}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){if("fromJSON"in this._boundTarget)return this._boundTarget.geometry;const e=(0,a.rS)(this._boundTarget.geometry);if(e){if(!this._boundSchema.spatialReference)throw new Error("InternalError: Expected spatial reference to be defined");e.spatialReference=this._boundSchema.spatialReference}return e}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===u.L5}field(e,t=!0){const i=this._getField(e);if(i)switch(i.type){case"date-only":case"esriFieldTypeDateOnly":return o.n.fromReader(this._boundTarget.attributes[i.name]);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(this._boundTarget.attributes[i.name]);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return r.lY.fromReaderAsTimeStampOffset(this._boundTarget.attributes[i.name]);case"date":case"esriFieldTypeDate":{const t=this._boundTarget.attributes[i.name];return this.isUnknownDateTimeField(e)?r.lY.unknownEpochToArcadeDate(t):r.lY.epochToArcadeDate(t,this.contextTimeZone??u.qU)}default:return this._boundTarget.attributes[i.name]}if(t)throw new Error(`Field ${e} does not exist`);return null}setField(e,t){throw new Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map((e=>e.name))}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(e=null){return{attributes:this._boundTarget.attributes,geometry:!0===e?.keepGeometryType?this.geometry():this.geometry()?.toJSON()??null}}castAsJsonAsync(e=null,t=null){return Promise.resolve(this.castAsJson(t))}}function g(e){const t=[];for(const i in e)t.push({name:i,alias:i,type:"string"==typeof e[i]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},58501:(e,t,i)=>{i.d(t,{q:()=>n});var r=i(62815);function n(e,t,i){if(!i?.features||!i.hasZ)return;const n=(0,r.N)(i.geometryType,t,e.outSpatialReference);if(null!=n)for(const e of i.features)n(e.geometry)}},73681:(e,t,i)=>{i.d(t,{n:()=>l});var r=i(49186),n=i(53966),o=i(46140),s=i(95466),a=i(55674);class l{static async from(e,t,i){const s=e.dictionary_version?o.R.parse(e.dictionary_version):null,u=new Set(e.itemsNames),c={};if(t)for(const e in t)c[e]=t[e];if(e.authoringInfo.configuration)for(const t of e.authoringInfo.configuration)c.hasOwnProperty(t.name)||(c[t.name]=t.value);const d=new Set(e.authoringInfo.symbol);for(const e of Object.keys(i))d.delete(e);d.size&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});const f=await(0,a.xR)(e.expression,null,c);if(!f)throw new r.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");const y=!s||!s.greaterEqual(4,0);y&&n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:s});const h=new p(i,y);return new l(y,u,f,h)}constructor(e,t,i,r){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=i,this._reader=r}get itemNames(){return this._itemNames}evaluate(e,t,i,r){try{return this._reader.bind(e,i,r),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){n.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new s.A(e);const t=e.map((e=>({...e,type:"esriFieldTypeString"})));return new s.A(t)}}class p extends a.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){const t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);const t=this._getField(e);return null==t?"":""+this._boundTarget.attributes[t.name]}}},91880:(e,t,i)=>{i.d(t,{A:()=>c});var r,n=i(90237),o=i(66552),s=i(25482),a=i(10107),l=(i(44208),i(53966),i(87811),i(40608));const p=new o.J({asc:"ascending",desc:"descending"});let u=class extends s.A{static{r=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new r({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,n._)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,n._)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,n._)([(0,a.MZ)({type:p.apiValues,json:{type:p.jsonValues,read:p.read,write:p.write}})],u.prototype,"order",void 0),u=r=(0,n._)([(0,l.$)("esri.layers.support.OrderByInfo")],u);const c=u},92935:(e,t,i)=>{var r;i.d(t,{X:()=>r}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(r||(r={}))},97927:(e,t,i)=>{i.r(t),i.d(t,{default:()=>K});var r=i(90237),n=i(49186),o=i(4718),s=i(93637),a=i(10107),l=(i(44208),i(53966),i(40608)),p=i(13600),u=i(82935),c=i(66552),d=i(69540),f=i(25482),y=(i(87811),i(69622)),h=i(21325);let m=class extends y.A{set horizontalWKID(e){e?(0,h.fn)({wkid:+e})?this._set("horizontalWKID",+e):this._set("horizontalWKID",e):this._set("horizontalWKID",null)}set verticalWKID(e){e?this._set("verticalWKID",isFinite(e)&&(0,h.fn)({wkid:+e})?+e:null):this._set("verticalWKID",null)}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:r,tangentialDistortionCoefficients:n}=this;return e?.length>1&&!Number.isNaN(t)&&i?.length>1&&r?.length>1&&n?.length>1}};(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"affineTransformations",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"focalLength",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"principalOffsetPoint",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"radialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"tangentialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"horizontalWKID",null),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"verticalWKID",null),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"x",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"y",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"z",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],m.prototype,"type",void 0),m=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientation")],m);const g=m;let v=class extends(d.A.ClonableMixin(f.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:r,y:n,z:o,heading:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:f}=this,y=[e,t,i,r,n,o,s,a,l];return this.isAdvanced&&(p?.forEach((e=>y.push(e))),y.push(u),c?.forEach((e=>y.push(e))),d?.forEach((e=>y.push(e))),f?.forEach((e=>y.push(e)))),y.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,r._)([(0,a.MZ)({json:{write:!0}})],v.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"affineTransformations",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"focalLength",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"principalOffsetPoint",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"radialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],v.prototype,"tangentialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"heading",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"pitch",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"roll",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"x",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"y",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],v.prototype,"z",void 0),v=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationHPR")],v);const _=v;let w=class extends(d.A.ClonableMixin(f.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=4}toString(){const{type:e,latitude:t,longitude:i,ellipsoidRadius:r,squaredEccentricity:n,properties:o}=this,s=`${o}`.split("|");return s.splice(1,1),`${e}|${t}|${i}|${r}|${n}|${s.join("|")}`}};(0,r._)([(0,a.MZ)({json:{write:!0}})],w.prototype,"type",void 0),(0,r._)([(0,a.MZ)({json:{write:!0},type:Number})],w.prototype,"latitude",void 0),(0,r._)([(0,a.MZ)({json:{write:!0},type:Number})],w.prototype,"longitude",void 0),(0,r._)([(0,a.MZ)({json:{write:!0},type:Number})],w.prototype,"ellipsoidRadius",void 0),(0,r._)([(0,a.MZ)({json:{write:!0},type:Number})],w.prototype,"squaredEccentricity",void 0),(0,r._)([(0,a.MZ)({json:{write:!0}})],w.prototype,"properties",void 0),w=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationLTP")],w);const x=w;let b=class extends(d.A.ClonableMixin(f.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=2}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:r,y:n,z:o,omega:s,phi:a,kappa:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:f}=this,y=[e,t,i,r,n,o,s,a,l];return this.isAdvanced&&(p?.forEach((e=>y.push(e))),y.push(u),c?.forEach((e=>y.push(e))),d?.forEach((e=>y.push(e))),f?.forEach((e=>y.push(e)))),y.map((e=>isNaN(e)?"":e)).join("|")}};(0,r._)([(0,a.MZ)({json:{write:!0}})],b.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"affineTransformations",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"focalLength",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"principalOffsetPoint",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"radialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],b.prototype,"tangentialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"omega",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"phi",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"kappa",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"x",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"y",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],b.prototype,"z",void 0),b=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationOPK")],b);const M=b;let T=class extends(d.A.ClonableMixin(f.A.JSONSupportMixin(g))){constructor(){super(...arguments),this.type=3}get isAdvanced(){const{affineTransformations:e,focalLength:t,principalOffsetPoint:i,radialDistortionCoefficients:r,tangentialDistortionCoefficients:n}=this;return e?.length>1||!Number.isNaN(t)||i?.length>1||r?.length>1||n?.length>1}toString(){const{type:e,horizontalWKID:t,verticalWKID:i,x:r,y:n,z:o,yaw:s,pitch:a,roll:l,affineTransformations:p,focalLength:u,principalOffsetPoint:c,radialDistortionCoefficients:d,tangentialDistortionCoefficients:f}=this,y=[e,t,i,r,n,o,s,a,l];return this.isAdvanced&&(p?.forEach((e=>y.push(e))),y.push(u),c?.forEach((e=>y.push(e))),c?.forEach((e=>y.push(e))),d?.forEach((e=>y.push(e))),f?.forEach((e=>y.push(e)))),y.map((e=>Number.isNaN(e)?"":e)).join("|")}};(0,r._)([(0,a.MZ)({json:{write:!0}})],T.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],T.prototype,"affineTransformations",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"focalLength",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],T.prototype,"principalOffsetPoint",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],T.prototype,"radialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({type:[Number],json:{write:!0}})],T.prototype,"tangentialDistortionCoefficients",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"yaw",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"pitch",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"roll",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"x",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"y",void 0),(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],T.prototype,"z",void 0),T=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.CameraOrientationYPR")],T);const j=T;var Z;!function(e){e[e.HPR=1]="HPR",e[e.OPK=2]="OPK",e[e.YPR=3]="YPR",e[e.LTP=4]="LTP"}(Z||(Z={}));const S=new Map;S.set(`${Z.OPK}`,{desc:"Using Omega Phi Kappa",constructor:M}),S.set(`${Z.HPR}`,{desc:"Using Heading, Pitch and Roll",constructor:_}),S.set(`${Z.YPR}`,{desc:"Using Yaw, Pitch and Roll",constructor:j}),S.set(`${Z.LTP}`,{desc:"Using Local Tangent Plane",constructor:x});let I=class extends(d.A.ClonableMixin(f.A)){constructor(){super(...arguments),this.url=null}};(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],I.prototype,"lod",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"rasterFunction",void 0),(0,r._)([(0,a.MZ)({type:String,json:{write:!0}})],I.prototype,"url",void 0),I=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ElevationSource")],I);let P=class extends(d.A.ClonableMixin(f.A)){constructor(){super(...arguments),this.constantElevation=null}};function N(e,t,i){return e?null!=(r=e)&&"number"==typeof r.constantElevation?new P(e):function(e,t,i){let{url:r}=e;return r?(r=function(e,t,i){return t&&(e=`${t}${e}`),i&&(e+=`${i}`),e}(r,t,i),new I({...e,url:r})):null}(e,t,i):e;var r}(0,r._)([(0,a.MZ)({type:Number,json:{write:!0}})],P.prototype,"constantElevation",void 0),P=(0,r._)([(0,l.$)("esri.layers.orientedImagery.core.ElevationSourceDefinitions.ConstantElevation")],P);const A=new c.J({Minutes:"minutes",Hours:"hours",Days:"days",Weeks:"weeks",Months:"months",Years:"years"}),F=new c.J({Feet:"feet",Meter:"meter"}),D=new c.J({360:"360",Horizontal:"horizontal",Inspection:"inspection",Nadir:"nadir",Oblique:"oblique","":null}),O=new Map;O.set(`${Z.HPR}`,(function(e){const[t,i,r,n,o,s,a,l,p,u,c,d,f,y,h,m,g,v,_,w,x,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:r,y:n,z:o,heading:s,pitch:a,roll:l,...R([p,u,c,d,f,y],[m,g],[v,_,w],[x,b],h)}})),O.set(`${Z.YPR}`,(function(e){const[t,i,r,n,o,s,a,l,p,u,c,d,f,y,h,m,g,v,_,w,x,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:r,y:n,z:o,yaw:s,pitch:a,roll:l,...R([p,u,c,d,f,y],[m,g],[v,_,w],[x,b],h)}})),O.set(`${Z.OPK}`,(function(e){const[t,i,r,n,o,s,a,l,p,u,c,d,f,y,h,m,g,v,_,w,x,b]=e.slice(1);return{horizontalWKID:t,verticalWKID:i,x:r,y:n,z:o,omega:s,phi:a,kappa:l,...R([p,u,c,d,f,y],[m,g],[v,_,w],[x,b],h)}})),O.set(`${Z.LTP}`,(function(e){const[t,i,r,n,o,...s]=e.slice(1),a=O.get(o),l=S.get(o)?.constructor;return a&&l?{latitude:t,longitude:i,ellipsoidRadius:r,squaredEccentricity:n,properties:new l(a([o,"",...s]))}:null}));const E=e=>{const t=e.map((e=>parseFloat(e))).filter((e=>!isNaN(e)));if(t.length===e.length)return t};function R(e,t,i,r,n){const o=E(e),s=E(t),a=E(i),l=E(r);return{affineTransformations:6===o?.length?o:void 0,focalLength:6===o?.length?parseFloat(n):void 0,principalOffsetPoint:2!==s?.length?[0,0]:s,radialDistortionCoefficients:3!==a?.length?[0,0,0]:a,tangentialDistortionCoefficients:2!==l?.length?[0,0]:l}}var $=i(43440),z=i(79677),C=i(92935);const U=new Set(["demPathPrefix","demPathSuffix","depthImagePathPrefix","depthImagePathSuffix","elevationSource","horizontalMeasurementUnit","imageGeometryField","imageReferenceField","verticalMeasurementUnit","videoPathPrefix","videoPathSuffix","timeAnimation","visibilityTimeExtent"]),k=(e,t)=>!U.has(t)&&e;function L(e,t,i,r){const{name:n,write:o,read:s}=((e,t,i)=>{const r=`orientedImageryProperties.${e}`;return{name:r,write:t?{ignoreOrigin:!0,target:r,writer:t}:{ignoreOrigin:!0},read:i?{ignoreOrigin:!0,source:r,reader:i}:{ignoreOrigin:!0}}})(e,t,i),a={name:n,write:o,read:s,origins:{service:{name:`orientedImageryInfo.${n}`,write:t,read:i},"web-scene":{name:n,write:k(o,e),read:k(s,e)},"web-map":{name:n,write:o,read:s}}};return r&&a.origins?(a.type=r,a.origins["web-map"].type=r,a.origins["web-scene"].type=r,a):a}let G=class extends p.default{constructor(){super(...arguments),this.attributeTableTemplate=null,this.cameraHeading=null,this.cameraHeight=null,this.cameraPitch=null,this.cameraRoll=null,this.coveragePercent=null,this.demPathPrefix=null,this.demPathSuffix=null,this.depthImagePathPrefix=null,this.depthImagePathSuffix=null,this.elevationSource=null,this.farDistance=null,this.geometryType="point",this.horizontalFieldOfView=null,this.horizontalMeasurementUnit=null,this.imageGeometryField="ImageGeometry",this.imagePathPrefix=null,this.imagePathSuffix=null,this.imageReferenceField="OIObjectID",this.imageRotation=null,this.maximumDistance=null,this.nearDistance=null,this.operationalLayerType="OrientedImageryLayer",this.orientationAccuracy=null,this.orientedImageryType=null,this.supportedSourceTypes=new Set(["Oriented Imagery Layer"]),this.type="oriented-imagery",this.timeIntervalUnit="days",this.useViewTime=!0,this.verticalFieldOfView=null,this.verticalMeasurementUnit=null,this.videoPathPrefix=null,this.videoPathSuffix=null,this.visibilityTimeExtent=null}get effectiveElevationSource(){const{elevationSource:e,demPathPrefix:t,demPathSuffix:i}=this;return N(e,t,i)}async save(e){return this._debouncedSaveOperations(C.X.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(C.X.SAVE_AS,t,e)}findFirstValidLayerId(e){return e.layers?.find((e=>this.supportedSourceTypes.has(e.type)))?.id}_verifySource(){if(super._verifySource(),"point"!==this.geometryType)throw new n.A("oriented-imagery-layer:invalid-geometry-type","OrientedImageryLayer only supports point geometry type")}};var V;(0,r._)([(0,a.MZ)({type:$.A,json:{write:!1,read:!1}})],G.prototype,"attributeTableTemplate",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("cameraHeading")})],G.prototype,"cameraHeading",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("cameraHeight")})],G.prototype,"cameraHeight",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("cameraPitch")})],G.prototype,"cameraPitch",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("cameraRoll")})],G.prototype,"cameraRoll",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("coveragePercent")})],G.prototype,"coveragePercent",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("demPathPrefix")})],G.prototype,"demPathPrefix",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("demPathSuffix")})],G.prototype,"demPathSuffix",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("depthImagePathPrefix")})],G.prototype,"depthImagePathPrefix",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("depthImagePathSuffix")})],G.prototype,"depthImagePathSuffix",void 0),(0,r._)([(0,a.MZ)({type:Object,json:L("elevationSource")})],G.prototype,"elevationSource",void 0),(0,r._)([(0,a.MZ)({readOnly:!0})],G.prototype,"effectiveElevationSource",null),(0,r._)([(0,a.MZ)({type:Number,json:L("farDistance")})],G.prototype,"farDistance",void 0),(0,r._)([(0,a.MZ)()],G.prototype,"geometryType",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("horizontalFieldOfView")})],G.prototype,"horizontalFieldOfView",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("horizontalMeasurementUnit")})],G.prototype,"horizontalMeasurementUnit",void 0),(0,r._)([(0,a.MZ)({type:String,json:{...L("imageGeometryField"),default:"ImageGeometry"}})],G.prototype,"imageGeometryField",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("imagePathPrefix")})],G.prototype,"imagePathPrefix",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("imagePathSuffix")})],G.prototype,"imagePathSuffix",void 0),(0,r._)([(0,a.MZ)({type:String,json:{...L("imageReferenceField"),default:"OIObjectID"}})],G.prototype,"imageReferenceField",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("imageRotation")})],G.prototype,"imageRotation",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("maximumDistance")})],G.prototype,"maximumDistance",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("nearDistance")})],G.prototype,"nearDistance",void 0),(0,r._)([(0,a.MZ)({type:["OrientedImageryLayer"],json:{origins:{"portal-item":{name:"layerType",write:{enabled:!0,ignoreOrigin:!0}}}}})],G.prototype,"operationalLayerType",void 0),(0,r._)([(0,a.MZ)({json:{...L("orientationAccuracy",((e,t,i)=>{(0,s.sM)(i,e.join(";"),t)}),(e=>{const t=e?.split(";")?.map(Number);return function(e){return Array.isArray(e)&&9===e?.length&&!e.some(isNaN)}(t)?t:[0,0,0,0,0,0,0,0,0]}),String)}})],G.prototype,"orientationAccuracy",void 0),(0,r._)([(0,a.MZ)({json:{...L("orientedImageryType",D.write,D.read,D.jsonValues.slice(1))}})],G.prototype,"orientedImageryType",void 0),(0,r._)([(0,a.MZ)({json:{read:!1},value:"oriented-imagery",readOnly:!0})],G.prototype,"type",void 0),(0,r._)([(0,a.MZ)({type:A.apiValues,json:{...L("timeIntervalUnit",A.write,A.read,A.jsonValues)}})],G.prototype,"timeIntervalUnit",void 0),(0,r._)([(0,a.MZ)((V=(0,o.o8)(u.B),V.json?(V.json.origins=V.json.origins??{},V.json.origins["web-scene"]={write:!1,read:!1},V):V))],G.prototype,"useViewTime",void 0),(0,r._)([(0,a.MZ)({type:Number,json:L("verticalFieldOfView")})],G.prototype,"verticalFieldOfView",void 0),(0,r._)([(0,a.MZ)({type:F.apiValues,json:{...L("verticalMeasurementUnit",F.write,F.read,F.jsonValues)}})],G.prototype,"verticalMeasurementUnit",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("videoPathPrefix")})],G.prototype,"videoPathPrefix",void 0),(0,r._)([(0,a.MZ)({type:String,json:L("videoPathSuffix")})],G.prototype,"videoPathSuffix",void 0),(0,r._)([(0,a.MZ)({type:z.A,json:{origins:{"web-scene":{write:!1,read:!1}}}})],G.prototype,"visibilityTimeExtent",void 0),G=(0,r._)([(0,l.$)("esri.layers.OrientedImageryLayer")],G);const K=G}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8096],{8096:(e,t,s)=>{s.r(t),s.d(t,{toBinaryGLTF:()=>Q});var n,i=s(74887);!function(e){e[e.JSON=1313821514]="JSON",e[e.BIN=5130562]="BIN"}(n||(n={}));class r{static{this.HEADER_SIZE=12}static{this.CHUNK_HEADER_SIZE=8}static{this.MAGIC=1179937895}static{this.VERSION=2}constructor(e,t){if(!e)throw new Error("GLB requires a JSON gltf chunk");this._length=r.HEADER_SIZE,this._length+=r.CHUNK_HEADER_SIZE;const s=function(e){return(new TextEncoder).encode(e).buffer}(e);if(this._length+=_(s.byteLength,4),t&&(this._length+=r.CHUNK_HEADER_SIZE,this._length+=t.byteLength,t.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this._length),this._outView=new DataView(this.buffer),this._writeHeader();const i=this._writeChunk(s,12,n.JSON,32);t&&this._writeChunk(t,i,n.BIN)}_writeHeader(){this._outView.setUint32(0,r.MAGIC,!0),this._outView.setUint32(4,r.VERSION,!0),this._outView.setUint32(8,this._length,!0)}_writeChunk(e,t,s,n=0){const i=_(e.byteLength,4);for(this._outView.setUint32(t,i,!0),this._outView.setUint32(t+=4,s,!0),function(e,t,s,n,i){new Uint8Array(e,s,i).set(new Uint8Array(t,0,i),0)}(this._outView.buffer,e,t+=4,0,e.byteLength),t+=e.byteLength;t%4;)n&&this._outView.setUint8(t,n),t++;return t}}function _(e,t){return t*Math.ceil(e/t)}var E,a,o,A,R,T,c,u,N=s(40876),f=s(53966),h=s(91869),l=s(34727),S=s(67026),I=s(82534),O=s(38954),C=s(51850),d=s(80882),L=s(72258);(u=E||(E={}))[u.External=0]="External",u[u.DataURI=1]="DataURI",u[u.GLB=2]="GLB",function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(a||(a={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(o||(o={})),function(e){e.SCALAR="SCALAR",e.VEC2="VEC2",e.VEC3="VEC3",e.VEC4="VEC4",e.MAT2="MAT2",e.MAT3="MAT3",e.MAT4="MAT4"}(A||(A={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(R||(R={})),function(e){e.OPAQUE="OPAQUE",e.MASK="MASK",e.BLEND="BLEND"}(T||(T={})),function(e){e[e.NoColor=0]="NoColor",e[e.FaceColor=1]="FaceColor",e[e.VertexColor=2]="VertexColor"}(c||(c={}));var M=s(63907);class D{constructor(e,t,s,n,i){this._buffer=e,this._componentType=s,this._dataType=n,this._data=[],this._isFinalized=!1,this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,t.bufferViews||(t.bufferViews=[]),this.index=t.bufferViews.length,this._bufferView={buffer:e.index,byteLength:-1,target:i};const r=this._getElementSize();r>=4&&i!==o.ELEMENT_ARRAY_BUFFER&&(this._bufferView.byteStride=r),t.bufferViews.push(this._bufferView),this._numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this._data.length;if(this._data.push(e),this._accessorIndex>=0){const s=t%this._numComponentsForDataType,n=this._accessorMin[s];this._accessorMin[s]="number"!=typeof n?e:Math.min(n,e);const i=this._accessorMax[s];this._accessorMax[s]="number"!=typeof i?e:Math.max(i,e)}}get dataSize(){return this._data.length*this._sizeComponentType()}get byteSize(){return function(e){return 4*Math.ceil(e/4)}(this.dataSize)}getByteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}get byteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}_createTypedArray(e,t){switch(this._componentType){case M.pe.BYTE:return new Int8Array(e,t);case M.pe.FLOAT:return new Float32Array(e,t);case M.pe.SHORT:return new Int16Array(e,t);case M.pe.UNSIGNED_BYTE:return new Uint8Array(e,t);case M.pe.UNSIGNED_INT:return new Uint32Array(e,t);case M.pe.UNSIGNED_SHORT:return new Uint16Array(e,t)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this._data)}writeAsync(e){if(this._asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this._asyncWritePromise=e.then((e=>{const t=new Uint8Array(e);for(let e=0;e<t.length;++e)this._data.push(t[e]);delete this._asyncWritePromise})),this._asyncWritePromise}startAccessor(e){if(this._accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this._accessorIndex=this._data.length,this._accessorAttribute=e;const t=this._numComponentsForDataType;this._accessorMin=new Array(t),this._accessorMax=new Array(t)}endAccessor(){if(this._accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const e=this._getElementSize(),t=this._numComponentsForDataType,s=(this._data.length-this._accessorIndex)/t;if(s%1)throw new Error("An accessor was ended with missing component values");for(let e=0;e<this._accessorMin.length;++e)"number"!=typeof this._accessorMin[e]&&(this._accessorMin[e]=0),"number"!=typeof this._accessorMax[e]&&(this._accessorMax[e]=0);const n={byteOffset:e*(this._accessorIndex/t),componentType:this._componentType,count:s,type:this._dataType,min:this._accessorMin,max:this._accessorMax,name:this._accessorAttribute};switch(this._accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this._componentType){case M.pe.UNSIGNED_BYTE:case M.pe.UNSIGNED_SHORT:n.normalized=!0}}return this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,n}get finalized(){return this._finalizedPromise?this._finalizedPromise:this._isFinalized?this._finalizedPromise=Promise.resolve():this._finalizedPromise=new Promise((e=>this._finalizedPromiseResolve=e))}async finalize(){const e=this._bufferView,t=this._buffer.getViewFinalizePromises(this);this._asyncWritePromise&&t.push(this._asyncWritePromise),await Promise.allSettled(t),this._isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this._finalizedPromiseResolve&&this._finalizedPromiseResolve()}_getElementSize(){return this._sizeComponentType()*this._numComponentsForDataType}_sizeComponentType(){switch(this._componentType){case M.pe.BYTE:case M.pe.UNSIGNED_BYTE:return 1;case M.pe.SHORT:case M.pe.UNSIGNED_SHORT:return 2;case M.pe.UNSIGNED_INT:case M.pe.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this._dataType){case A.SCALAR:return 1;case A.VEC2:return 2;case A.VEC3:return 3;case A.VEC4:case A.MAT2:return 4;case A.MAT3:return 9;case A.MAT4:return 16}}}class p{constructor(e){this._gltf=e,this._bufferViews=[],this._isFinalized=!1,e.buffers||(e.buffers=[]),this.index=e.buffers.length;const t={byteLength:-1};e.buffers.push(t),this._buffer=t}addBufferView(e,t,s){if(this._finalizePromise)throw new Error("Cannot add buffer view after fiinalizing buffer");const n=new D(this,this._gltf,e,t,s);return this._bufferViews.push(n),n}getByteOffset(e){let t=0;for(const s of this._bufferViews){if(s===e)return t;t+=s.byteSize}throw new Error("Given bufferView was not present in this buffer")}getViewFinalizePromises(e){const t=[];for(const s of this._bufferViews){if(e&&s===e)return t;t.push(s.finalized)}return t}getArrayBuffer(){if(!this._isFinalized)throw new Error("Cannot get ArrayBuffer from Buffer before it is finalized");const e=this._getTotalSize(),t=new ArrayBuffer(e);let s=0;for(const e of this._bufferViews)e.writeOutToBuffer(t,s),s+=e.byteSize;return t}finalize(){if(this._finalizePromise)throw new Error(`Buffer ${this.index} was already finalized`);return this._finalizePromise=Promise.allSettled(this.getViewFinalizePromises()).then((()=>{this._isFinalized=!0;const e=this.getArrayBuffer();this._buffer.byteLength=e.byteLength,this._buffer.uri=e})),this._gltf.extras.promises.push(this._finalizePromise),this._finalizePromise}_getTotalSize(){let e=0;for(const t of this._bufferViews)e+=t.byteSize;return e}}function U(e,t){if(e.components)for(const s of e.components)s.faces&&"smooth"===s.shading&&P(s.faces,t)}function P(e,t){null==t.normal&&(t.normal=new Float32Array(t.position.length));const{position:s,normal:n}=t,i=e.length/3;for(let t=0;t<i;++t){const i=3*e[3*t],r=3*e[3*t+1],_=3*e[3*t+2],E=(0,O.i)(B,s[i],s[i+1],s[i+2]),a=(0,O.i)(m,s[r],s[r+1],s[r+2]),o=(0,O.i)(G,s[_],s[_+1],s[_+2]),A=(0,O.d)(a,a,E),R=(0,O.d)(o,o,E),T=(0,O.e)(A,A,R);n[i]+=T[0],n[i+1]+=T[1],n[i+2]+=T[2],n[r]+=T[0],n[r+1]+=T[1],n[r+2]+=T[2],n[_]+=T[0],n[_+1]+=T[1],n[_+2]+=T[2]}for(let e=0;e<n.length;e+=3)(0,O.i)(g,n[e],n[e+1],n[e+2]),(0,O.n)(g,g),n[e]=g[0],n[e+1]=g[1],n[e+2]=g[2]}const B=(0,C.vt)(),m=(0,C.vt)(),G=(0,C.vt)(),g=(0,C.vt)();s(44208);var F=s(49186),w=s(84952);async function b(e,t){const s=x(e);if(null==s)throw new F.A("imageToArrayBuffer","Unsupported image type");const n=function(e){if(!(e instanceof HTMLImageElement))return"image/png";const t=e.src;if((0,w.DB)(t)){const e=(0,w.r$)(t);return"image/jpeg"===e?.mediaType?e.mediaType:"image/png"}return/\.png$/i.test(t)?"image/png":/\.(jpg|jpeg)$/i.test(t)?"image/jpeg":"image/png"}(e),r=await new Promise((e=>s.toBlob(e,n)));if((0,i.Te)(t),!r)throw new F.A("imageToArrayBuffer","Failed to encode image");const _=await r.arrayBuffer();return(0,i.Te)(t),{data:_,type:n}}function x(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLVideoElement)return null;const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");return e instanceof HTMLImageElement?s.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&s.putImageData(e,0,0),t}var y=s(51530);const V=()=>f.A.getLogger("esri.geometry.support.meshUtils.exporters.gltf.gltf");class H{constructor(e,t){this.options=t,this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{output:t.output,binChunkBuffer:null,promises:[]}},this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.output.buffer===E.GLB||t.output.image===a.GLB;s&&(t.binChunkBuffer=new p(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]),t.nodes.push(...this._addNodes(e))})),this.gltf.scenes.push(t)}_addNodes(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;(0,O.p)(s,C.uY)||(t.translation=(0,C.o8)(s));const n=e.rotation;(0,S.t2)(n,I.zK)||(t.rotation=(0,I.o8)(n));const i=e.scale;(0,O.p)(i,C.Un)||(t.scale=(0,C.o8)(i));const r=this.gltf.nodes.length;if(this.gltf.nodes.push(t),e.mesh&&e.mesh.vertexAttributes.position){const s=this._createMeshes(e.mesh),n=[r];if(1===s.length)this._addMesh(t,s[0]);else for(const e of s){const t={};this._addMesh(t,e),n.push(this.gltf.nodes.length),this.gltf.nodes.push(t)}return n}return e.forEachNode((e=>{t.children||(t.children=[]),t.children.push(...this._addNodes(e))})),[r]}_addMesh(e,t){this.gltf.meshes??=[];const s=this.gltf.meshes.length;this.gltf.meshes.push(t),e.mesh=s}_createMeshes(e){const t=this.gltf.extras,s=t.output.buffer===E.GLB;let n;n=s?t.binChunkBuffer:new p(this.gltf);const i=this.options.origin,r=e.vertexSpace.clone();r.origin=[i.x,i.y,i.z??0];const _=(0,L.UR)({vertexAttributes:e.vertexAttributes,vertexSpace:e.vertexSpace,transform:this.options?.ignoreLocalTransform?null:e.transform,spatialReference:e.spatialReference},r,{targetUnit:this.options.unitConversionDisabled?void 0:"meters"});if(!_)return[];U(e,_),Y(_);const{position:a,normal:R,tangent:T}=_,{uv:c,color:u}=e.vertexAttributes,N=n.addBufferView(M.pe.FLOAT,A.VEC3,o.ARRAY_BUFFER);let f,h,l,S;R&&(f=n.addBufferView(M.pe.FLOAT,A.VEC3,o.ARRAY_BUFFER)),c&&(h=n.addBufferView(M.pe.FLOAT,A.VEC2,o.ARRAY_BUFFER)),T&&(l=n.addBufferView(M.pe.FLOAT,A.VEC4,o.ARRAY_BUFFER)),u&&(S=n.addBufferView(M.pe.FLOAT,A.VEC4,o.ARRAY_BUFFER)),N.startAccessor("POSITION"),f&&f.startAccessor("NORMAL"),h&&h.startAccessor("TEXCOORD_0"),l&&l.startAccessor("TANGENT"),S&&S.startAccessor("COLOR_0");const I=_.position.length/3;for(let e=0;e<I;++e)N.push(a[3*e]),N.push(a[3*e+1]),N.push(a[3*e+2]),f&&null!=R&&(f.push(R[3*e]),f.push(R[3*e+1]),f.push(R[3*e+2])),h&&null!=c&&(h.push(c[2*e]),h.push(c[2*e+1])),l&&null!=T&&(l.push(T[4*e]),l.push(T[4*e+1]),l.push(T[4*e+2]),l.push(T[4*e+3])),S&&null!=u&&(S.push(v(u[4*e]/255)),S.push(v(u[4*e+1]/255)),S.push(v(u[4*e+2]/255)),S.push(u[4*e+3]/255));const O=N.endAccessor(),C=this._addAccessor(N.index,O);let d,D,P,B,m;if(f){const e=f.endAccessor();d=this._addAccessor(f.index,e)}if(h){const e=h.endAccessor();D=this._addAccessor(h.index,e)}if(l){const e=l.endAccessor();P=this._addAccessor(l.index,e)}if(S){const e=S.endAccessor();B=this._addAccessor(S.index,e)}const G=[];return e.components&&e.components.length>0&&e.components[0].faces?(m=n.addBufferView(M.pe.UNSIGNED_INT,A.SCALAR,o.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(m,e.components,G,C,d,D,P,B)):this._addMeshVertexNonIndexed(e.components,G,C,d,D,P,B),N.finalize(),f&&f.finalize(),h&&h.finalize(),l&&l.finalize(),m&&m.finalize(),S&&S.finalize(),s||n.finalize(),G}_addMaterial(e){if(null==e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=T.MASK;break;case"auto":case"blend":s.alphaMode=T.BLEND}s.alphaCutoff=e.alphaCutoff,e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const n=e=>{const t=e.toRgba();return t[0]=v(t[0]/255),t[1]=v(t[1]/255),t[2]=v(t[2]/255),t};if(null!=e.color&&(s.pbrMetallicRoughness.baseColorFactor=n(e.color)),null!=e.colorTexture&&(s.pbrMetallicRoughness.baseColorTexture=this._createTextureInfo(e.colorTexture,e.colorTextureTransform)),null!=e.normalTexture&&(s.normalTexture=this._createTextureInfo(e.normalTexture,e.normalTextureTransform)),e instanceof d.A){if(null!=e.emissiveTexture&&(s.emissiveTexture=this._createTextureInfo(e.emissiveTexture,e.emissiveTextureTransform)),null!=e.emissiveColor){const t=n(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}null!=e.occlusionTexture&&(s.occlusionTexture=this._createTextureInfo(e.occlusionTexture,e.occlusionTextureTransform)),null!=e.metallicRoughnessTexture&&(s.pbrMetallicRoughness.metallicRoughnessTexture=this._createTextureInfo(e.metallicRoughnessTexture,e.metallicRoughnessTextureTransform)),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1,V().warnOnce("Meshes exported to GLTF without MeshMaterialMetallicRoughness material will appear different when imported back.");const i=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),i}_createTextureInfo(e,t){const s={index:this._addTexture(e)};return t?(s.extensions||(s.extensions={}),s.extensions.KHR_texture_transform={scale:t.scale,offset:t.offset,rotation:(0,l.kU)(t.rotation)},s):s}_addTexture(e){const t=this.gltf.textures??[];return this.gltf.textures=t,(0,h.tE)(this._textureMap,e,(()=>{const s={sampler:this._addSampler(e),source:this._addImage(e)},n=t.length;return t.push(s),n}))}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const n=this.gltf.extras;switch(n.output.image){case a.GLB:{const e=n.binChunkBuffer.addBufferView(M.pe.UNSIGNED_BYTE,A.SCALAR);if((0,y.x3)(t))null!=t.data&&e.writeOutToBuffer(t.data,0);else{const i=b(t,this.options.signal).then((({data:e,type:t})=>(s.mimeType=t,e)));n.promises.push(e.writeAsync(i).then((()=>{e.finalize()})))}s.bufferView=e.index;break}case a.DataURI:if((0,y.x3)(t)){V().warnOnce("Image export for basis compressed textures not available.");break}s.uri=function(e){const t=x(e);return null!=t?t.toDataURL():""}(t);break;default:if((0,y.x3)(t)){V().warnOnce("Image export for basis compressed textures not available.");break}n.promises.push(b(t,this.options.signal).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const n=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,n),n}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=M.pF.REPEAT,s=M.pF.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=M.pF.CLAMP_TO_EDGE,s=M.pF.CLAMP_TO_EDGE;break;case"mirror":t=M.pF.MIRRORED_REPEAT,s=M.pF.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=M.pF.CLAMP_TO_EDGE;break;case"mirror":s=M.pF.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=M.pF.CLAMP_TO_EDGE;break;case"mirror":t=M.pF.MIRRORED_REPEAT}}const n={wrapS:t,wrapT:s};for(let e=0;e<this.gltf.samplers.length;++e)if(JSON.stringify(n)===JSON.stringify(this.gltf.samplers[e]))return e;const i=this.gltf.samplers.length;return this.gltf.samplers.push(n),i}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const n=this.gltf.accessors.length;return this.gltf.accessors.push(s),n}_addMeshVertexIndexed(e,t,s,n,i,r,_,E){const a=new Map;for(const o of t){if(e.startAccessor("INDICES"),o.faces)for(let t=0;t<o.faces.length;++t)e.push(o.faces[t]);const t=e.endAccessor(),A={attributes:{POSITION:n},indices:this._addAccessor(e.index,t),material:this._addMaterial(o.material)};i&&"flat"!==o.shading&&(A.attributes.NORMAL=i),r&&(A.attributes.TEXCOORD_0=r),_&&"flat"!==o.shading&&(A.attributes.TANGENT=_),E&&(A.attributes.COLOR_0=E);const R=a.get(o.name);if(R)R.primitives.push(A);else{const e={name:o.name,primitives:[A]};a.set(o.name,e),s.push(e)}}}_addMeshVertexNonIndexed(e,t,s,n,i,r,_){const E={primitives:[]};t.push(E);const a={attributes:{POSITION:s}};n&&(a.attributes.NORMAL=n),i&&(a.attributes.TEXCOORD_0=i),r&&(a.attributes.TANGENT=r),_&&(a.attributes.COLOR_0=_),e&&(a.material=this._addMaterial(e[0].material)),E.primitives.push(a)}}function Y({position:e,normal:t,tangent:s}){X(e,3),X(t,3),X(s,4)}function X(e,t){if(null!=e)for(let s=1,n=2;s<e.length;s+=t,n+=t){const t=e[s],i=e[n];e[s]=i,e[n]=-t}}function v(e){return e**N.Tf}var z=s(4576);class k{constructor(){this.copyright="",this.defaultScene=0,this.generator="",this._scenes=[]}addScene(e){if(this._scenes.includes(e))throw new Error("Scene already added");this._scenes.push(e)}removeScene(e){(0,z.TF)(this._scenes,e)}forEachScene(e){this._scenes.forEach(e)}}class W{constructor(e){this.mesh=e,this.name="",this.translation=(0,C.vt)(),this.rotation=(0,I.vt)(),this.scale=(0,C.o8)(C.Un),this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}set rotationAngles(e){(0,S.A6)(this.rotation,e[0],e[1],e[2])}}const K="model.gltf",j="model.glb";async function Z(e,t){const s=new H(e,t).gltf,n=s.extras.promises;let _=1,o=1,A=null;await Promise.allSettled(n),(0,i.Te)(t.signal);const R=t.jsonSpacing??4,T=new Map,c=JSON.stringify(s,((e,s)=>{if("extras"!==e){if(s instanceof ArrayBuffer){if(function(e){if(e.byteLength<8)return!1;const t=new Uint8Array(e);return 137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7]}(s))switch(t.output?.image){case a.DataURI:case a.GLB:break;case a.External:default:{const e=`img${o}.png`;return o++,T.set(e,s),e}}switch(t.output?.buffer){case E.DataURI:return function(e){const t=[],s=new Uint8Array(e);for(let e=0;e<s.length;e++)t.push(String.fromCharCode(s[e]));return"data:application/octet-stream;base64,"+btoa(t.join(""))}(s);case E.GLB:if(A)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(A=s);case E.External:default:{const e=`data${_}.bin`;return _++,T.set(e,s),e}}}return s}}),R);return t.output?.buffer===E.GLB||t.output?.image===a.GLB?T.set(j,new r(c,A).buffer):T.set(K,c),T}class J{constructor(){this.name="",this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}}async function Q(e,t){const s=new k,n=new J;return s.addScene(n),n.addNode(new W(e)),await async function(e,t){const s=(await Z(e,{output:{buffer:E.GLB,image:a.GLB},jsonSpacing:0,...t})).get(j);if(!(s&&s instanceof ArrayBuffer))throw new Error("failed to export to glb");return s}(s,{origin:e.origin,...t})}},51530:(e,t,s)=>{s.d(t,{KB:()=>E,Xi:()=>r,pn:()=>a,x3:()=>_});var n=s(44208),i=s(89192);class r{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding=i.JS.KTX2_ENCODING}}function _(e){return"encoded-mesh-texture"===e?.type}async function E(e){const t=new Blob([e]),s=await t.text();return JSON.parse(s)}async function a(e,t){if(t===i.JS.KTX2_ENCODING)return new r(e);const s=new Blob([e],{type:t});let _=URL.createObjectURL(s);switch(t){case"image/jpeg":_+="#.jpg";break;case"image/png":_+="#.png"}const E=new Image;if((0,n.A)("esri-iPhone"))return new Promise(((e,t)=>{const s=()=>{i(),e(E)},n=e=>{i(),t(e)},i=()=>{URL.revokeObjectURL(_),E.removeEventListener("load",s),E.removeEventListener("error",n)};E.addEventListener("load",s),E.addEventListener("error",n),E.src=_}));try{E.src=_,await E.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(_),E}},63907:(e,t,s)=>{var n,i,r,_,E,a,o,A,R,T,c,u,N,f,h,l,S,I,O,C,d,L,M,D;s.d(t,{Ab:()=>l,Ac:()=>A,Ap:()=>f,CQ:()=>m,Cj:()=>u,Fq:()=>P,H0:()=>S,H3:()=>h,Hr:()=>D,MT:()=>T,NV:()=>n,NZ:()=>a,Tb:()=>E,WR:()=>r,Y7:()=>o,_U:()=>C,bh:()=>y,dn:()=>_,eA:()=>c,ld:()=>I,nI:()=>B,pF:()=>N,pe:()=>R,r6:()=>p,vt:()=>M,yI:()=>U,yQ:()=>O}),function(e){e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e[e.COLOR=16384]="COLOR"}(n||(n={})),function(e){e[e.COLOR=6144]="COLOR",e[e.DEPTH=6145]="DEPTH",e[e.STENCIL=6146]="STENCIL",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(i||(i={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(r||(r={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(_||(_={})),function(e){e[e.ADD=32774]="ADD",e[e.MIN=32775]="MIN",e[e.MAX=32776]="MAX",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(E||(E={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",e[e.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(a||(a={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(o||(o={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(A||(A={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT",e[e.HALF_FLOAT=5131]="HALF_FLOAT"}(R||(R={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(T||(T={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(c||(c={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(u||(u={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(N||(N={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(f||(f={})),function(e){e[e.MIN_LOD=33082]="MIN_LOD",e[e.MAX_LOD=33083]="MAX_LOD",e[e.BASE_LEVEL=33084]="BASE_LEVEL",e[e.MAX_LEVEL=33085]="MAX_LEVEL",e[e.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE"}(h||(h={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(l||(l={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(S||(S={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(I||(I={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(O||(O={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(C||(C={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(d||(d={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(L||(L={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.TransformFeedback=7]="TransformFeedback",e[e.Sync=8]="Sync",e[e.UNCOUNTED=9]="UNCOUNTED",e[e.LinesOfCode=9]="LinesOfCode",e[e.Uniform=10]="Uniform",e[e.COUNT=11]="COUNT"}(M||(M={})),function(e){e[e.NONE=0]="NONE",e[e.BACK=1029]="BACK"}(D||(D={}));const p=36064,U=36065,P=36066,B=33306;var m,G,g,F,w,b,x,y,V;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(m||(m={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(G||(G={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(g||(g={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(F||(F={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(w||(w={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(b||(b={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(x||(x={})),function(e){e[e.INVALID_ENUM=1280]="INVALID_ENUM",e[e.INVALID_VALUE=1281]="INVALID_VALUE",e[e.INVALID_OPERATION=1282]="INVALID_OPERATION",e[e.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",e[e.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",e[e.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL"}(y||(y={})),function(e){e[e.COMPLETION_STATUS_KHR=37297]="COMPLETION_STATUS_KHR"}(V||(V={}))},89192:(e,t,s)=>{var n,i,r,_,E,a,o,A;s.d(t,{Am:()=>_,C7:()=>r,JS:()=>A,Mg:()=>a,dd:()=>E,it:()=>i,s2:()=>n,sf:()=>o}),function(e){e[e.None=0]="None",e[e.Front=1]="Front",e[e.Back=2]="Back",e[e.COUNT=3]="COUNT"}(n||(n={})),function(e){e[e.Less=0]="Less",e[e.Lequal=1]="Lequal",e[e.COUNT=2]="COUNT"}(i||(i={})),function(e){e[e.BACKGROUND=0]="BACKGROUND",e[e.UPDATE=1]="UPDATE"}(r||(r={})),function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(_||(_={})),function(e){e[e.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",e[e.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(E||(E={})),function(e){e[e.Highlight=0]="Highlight",e[e.MaskOccludee=1]="MaskOccludee"}(a||(a={})),function(e){e[e.Blend=0]="Blend",e[e.Opaque=1]="Opaque",e[e.Mask=2]="Mask",e[e.MaskBlend=3]="MaskBlend",e[e.COUNT=4]="COUNT"}(o||(o={})),function(e){e.DDS_ENCODING="image/vnd-ms.dds",e.KTX2_ENCODING="image/ktx2",e.BASIS_ENCODING="image/x.basis"}(A||(A={}))}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8096],{8096:(e,t,s)=>{s.r(t),s.d(t,{toBinaryGLTF:()=>Q});var n,i=s(74887);!function(e){e[e.JSON=1313821514]="JSON",e[e.BIN=5130562]="BIN"}(n||(n={}));class r{static{this.HEADER_SIZE=12}static{this.CHUNK_HEADER_SIZE=8}static{this.MAGIC=1179937895}static{this.VERSION=2}constructor(e,t){if(!e)throw new Error("GLB requires a JSON gltf chunk");this._length=r.HEADER_SIZE,this._length+=r.CHUNK_HEADER_SIZE;const s=function(e){return(new TextEncoder).encode(e).buffer}(e);if(this._length+=_(s.byteLength,4),t&&(this._length+=r.CHUNK_HEADER_SIZE,this._length+=t.byteLength,t.byteLength%4))throw new Error("Expected BIN chunk length to be divisible by 4 at this point");this.buffer=new ArrayBuffer(this._length),this._outView=new DataView(this.buffer),this._writeHeader();const i=this._writeChunk(s,12,n.JSON,32);t&&this._writeChunk(t,i,n.BIN)}_writeHeader(){this._outView.setUint32(0,r.MAGIC,!0),this._outView.setUint32(4,r.VERSION,!0),this._outView.setUint32(8,this._length,!0)}_writeChunk(e,t,s,n=0){const i=_(e.byteLength,4);for(this._outView.setUint32(t,i,!0),this._outView.setUint32(t+=4,s,!0),function(e,t,s,n,i){new Uint8Array(e,s,i).set(new Uint8Array(t,0,i),0)}(this._outView.buffer,e,t+=4,0,e.byteLength),t+=e.byteLength;t%4;)n&&this._outView.setUint8(t,n),t++;return t}}function _(e,t){return t*Math.ceil(e/t)}var E,a,o,A,R,T,c,u,N=s(40876),f=s(53966),h=s(91869),l=s(34727),S=s(67026),I=s(82534),O=s(38954),C=s(51850),d=s(80882),L=s(72258);(u=E||(E={}))[u.External=0]="External",u[u.DataURI=1]="DataURI",u[u.GLB=2]="GLB",function(e){e[e.External=0]="External",e[e.DataURI=1]="DataURI",e[e.GLB=2]="GLB"}(a||(a={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(o||(o={})),function(e){e.SCALAR="SCALAR",e.VEC2="VEC2",e.VEC3="VEC3",e.VEC4="VEC4",e.MAT2="MAT2",e.MAT3="MAT3",e.MAT4="MAT4"}(A||(A={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(R||(R={})),function(e){e.OPAQUE="OPAQUE",e.MASK="MASK",e.BLEND="BLEND"}(T||(T={})),function(e){e[e.NoColor=0]="NoColor",e[e.FaceColor=1]="FaceColor",e[e.VertexColor=2]="VertexColor"}(c||(c={}));var M=s(63907);class D{constructor(e,t,s,n,i){this._buffer=e,this._componentType=s,this._dataType=n,this._data=[],this._isFinalized=!1,this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,t.bufferViews||(t.bufferViews=[]),this.index=t.bufferViews.length,this._bufferView={buffer:e.index,byteLength:-1,target:i};const r=this._getElementSize();r>=4&&i!==o.ELEMENT_ARRAY_BUFFER&&(this._bufferView.byteStride=r),t.bufferViews.push(this._bufferView),this._numComponentsForDataType=this._calculateNumComponentsForDataType()}push(e){const t=this._data.length;if(this._data.push(e),this._accessorIndex>=0){const s=t%this._numComponentsForDataType,n=this._accessorMin[s];this._accessorMin[s]="number"!=typeof n?e:Math.min(n,e);const i=this._accessorMax[s];this._accessorMax[s]="number"!=typeof i?e:Math.max(i,e)}}get dataSize(){return this._data.length*this._sizeComponentType()}get byteSize(){return function(e){return 4*Math.ceil(e/4)}(this.dataSize)}getByteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}get byteOffset(){if(!this._isFinalized)throw new Error("Cannot get BufferView offset until it is finalized");return this._buffer.getByteOffset(this)}_createTypedArray(e,t){switch(this._componentType){case M.pe.BYTE:return new Int8Array(e,t);case M.pe.FLOAT:return new Float32Array(e,t);case M.pe.SHORT:return new Int16Array(e,t);case M.pe.UNSIGNED_BYTE:return new Uint8Array(e,t);case M.pe.UNSIGNED_INT:return new Uint32Array(e,t);case M.pe.UNSIGNED_SHORT:return new Uint16Array(e,t)}}writeOutToBuffer(e,t){this._createTypedArray(e,t).set(this._data)}writeAsync(e){if(this._asyncWritePromise)throw new Error("Can't write multiple bufferView values asynchronously");return this._asyncWritePromise=e.then((e=>{const t=new Uint8Array(e);for(let e=0;e<t.length;++e)this._data.push(t[e]);delete this._asyncWritePromise})),this._asyncWritePromise}startAccessor(e){if(this._accessorIndex>=0)throw new Error("Accessor was started without ending the previous one");this._accessorIndex=this._data.length,this._accessorAttribute=e;const t=this._numComponentsForDataType;this._accessorMin=new Array(t),this._accessorMax=new Array(t)}endAccessor(){if(this._accessorIndex<0)throw new Error("An accessor was not started, but was attempted to be ended");const e=this._getElementSize(),t=this._numComponentsForDataType,s=(this._data.length-this._accessorIndex)/t;if(s%1)throw new Error("An accessor was ended with missing component values");for(let e=0;e<this._accessorMin.length;++e)"number"!=typeof this._accessorMin[e]&&(this._accessorMin[e]=0),"number"!=typeof this._accessorMax[e]&&(this._accessorMax[e]=0);const n={byteOffset:e*(this._accessorIndex/t),componentType:this._componentType,count:s,type:this._dataType,min:this._accessorMin,max:this._accessorMax,name:this._accessorAttribute};switch(this._accessorAttribute){case"TEXCOORD_0":case"TEXCOORD_1":case"COLOR_0":case"WEIGHTS_0":switch(this._componentType){case M.pe.UNSIGNED_BYTE:case M.pe.UNSIGNED_SHORT:n.normalized=!0}}return this._accessorIndex=-1,this._accessorAttribute=null,this._accessorMin=null,this._accessorMax=null,n}get finalized(){return this._finalizedPromise?this._finalizedPromise:this._isFinalized?this._finalizedPromise=Promise.resolve():this._finalizedPromise=new Promise((e=>this._finalizedPromiseResolve=e))}async finalize(){const e=this._bufferView,t=this._buffer.getViewFinalizePromises(this);this._asyncWritePromise&&t.push(this._asyncWritePromise),await Promise.allSettled(t),this._isFinalized=!0,e.byteOffset=this.getByteOffset(),e.byteLength=this.dataSize,this._finalizedPromiseResolve&&this._finalizedPromiseResolve()}_getElementSize(){return this._sizeComponentType()*this._numComponentsForDataType}_sizeComponentType(){switch(this._componentType){case M.pe.BYTE:case M.pe.UNSIGNED_BYTE:return 1;case M.pe.SHORT:case M.pe.UNSIGNED_SHORT:return 2;case M.pe.UNSIGNED_INT:case M.pe.FLOAT:return 4}}_calculateNumComponentsForDataType(){switch(this._dataType){case A.SCALAR:return 1;case A.VEC2:return 2;case A.VEC3:return 3;case A.VEC4:case A.MAT2:return 4;case A.MAT3:return 9;case A.MAT4:return 16}}}class p{constructor(e){this._gltf=e,this._bufferViews=[],this._isFinalized=!1,e.buffers||(e.buffers=[]),this.index=e.buffers.length;const t={byteLength:-1};e.buffers.push(t),this._buffer=t}addBufferView(e,t,s){if(this._finalizePromise)throw new Error("Cannot add buffer view after fiinalizing buffer");const n=new D(this,this._gltf,e,t,s);return this._bufferViews.push(n),n}getByteOffset(e){let t=0;for(const s of this._bufferViews){if(s===e)return t;t+=s.byteSize}throw new Error("Given bufferView was not present in this buffer")}getViewFinalizePromises(e){const t=[];for(const s of this._bufferViews){if(e&&s===e)return t;t.push(s.finalized)}return t}getArrayBuffer(){if(!this._isFinalized)throw new Error("Cannot get ArrayBuffer from Buffer before it is finalized");const e=this._getTotalSize(),t=new ArrayBuffer(e);let s=0;for(const e of this._bufferViews)e.writeOutToBuffer(t,s),s+=e.byteSize;return t}finalize(){if(this._finalizePromise)throw new Error(`Buffer ${this.index} was already finalized`);return this._finalizePromise=Promise.allSettled(this.getViewFinalizePromises()).then((()=>{this._isFinalized=!0;const e=this.getArrayBuffer();this._buffer.byteLength=e.byteLength,this._buffer.uri=e})),this._gltf.extras.promises.push(this._finalizePromise),this._finalizePromise}_getTotalSize(){let e=0;for(const t of this._bufferViews)e+=t.byteSize;return e}}function U(e,t){if(e.components)for(const s of e.components)s.faces&&"smooth"===s.shading&&P(s.faces,t)}function P(e,t){null==t.normal&&(t.normal=new Float32Array(t.position.length));const{position:s,normal:n}=t,i=e.length/3;for(let t=0;t<i;++t){const i=3*e[3*t],r=3*e[3*t+1],_=3*e[3*t+2],E=(0,O.i)(B,s[i],s[i+1],s[i+2]),a=(0,O.i)(m,s[r],s[r+1],s[r+2]),o=(0,O.i)(G,s[_],s[_+1],s[_+2]),A=(0,O.d)(a,a,E),R=(0,O.d)(o,o,E),T=(0,O.e)(A,A,R);n[i]+=T[0],n[i+1]+=T[1],n[i+2]+=T[2],n[r]+=T[0],n[r+1]+=T[1],n[r+2]+=T[2],n[_]+=T[0],n[_+1]+=T[1],n[_+2]+=T[2]}for(let e=0;e<n.length;e+=3)(0,O.i)(g,n[e],n[e+1],n[e+2]),(0,O.n)(g,g),n[e]=g[0],n[e+1]=g[1],n[e+2]=g[2]}const B=(0,C.vt)(),m=(0,C.vt)(),G=(0,C.vt)(),g=(0,C.vt)();s(44208);var F=s(49186),w=s(84952);async function b(e,t){const s=x(e);if(null==s)throw new F.A("imageToArrayBuffer","Unsupported image type");const n=function(e){if(!(e instanceof HTMLImageElement))return"image/png";const t=e.src;if((0,w.DB)(t)){const e=(0,w.r$)(t);return"image/jpeg"===e?.mediaType?e.mediaType:"image/png"}return/\.png$/i.test(t)?"image/png":/\.(jpg|jpeg)$/i.test(t)?"image/jpeg":"image/png"}(e),r=await new Promise((e=>s.toBlob(e,n)));if((0,i.Te)(t),!r)throw new F.A("imageToArrayBuffer","Failed to encode image");const _=await r.arrayBuffer();return(0,i.Te)(t),{data:_,type:n}}function x(e){if(e instanceof HTMLCanvasElement)return e;if(e instanceof HTMLVideoElement)return null;const t=document.createElement("canvas");t.width=e.width,t.height=e.height;const s=t.getContext("2d");return e instanceof HTMLImageElement?s.drawImage(e,0,0,e.width,e.height):e instanceof ImageData&&s.putImageData(e,0,0),t}var y=s(51530);const V=()=>f.A.getLogger("esri.geometry.support.meshUtils.exporters.gltf.gltf");class H{constructor(e,t){this.options=t,this._materialMap=new Array,this._imageMap=new Map,this._textureMap=new Map,this.gltf={asset:{version:"2.0",copyright:e.copyright,generator:e.generator},extras:{output:t.output,binChunkBuffer:null,promises:[]}},this._addScenes(e)}_addScenes(e){this.gltf.scene=e.defaultScene;const t=this.gltf.extras,s=t.output.buffer===E.GLB||t.output.image===a.GLB;s&&(t.binChunkBuffer=new p(this.gltf)),e.forEachScene((e=>{this._addScene(e)})),s&&t.binChunkBuffer.finalize()}_addScene(e){this.gltf.scenes||(this.gltf.scenes=[]);const t={};e.name&&(t.name=e.name),e.forEachNode((e=>{t.nodes||(t.nodes=[]),t.nodes.push(...this._addNodes(e))})),this.gltf.scenes.push(t)}_addNodes(e){this.gltf.nodes||(this.gltf.nodes=[]);const t={};e.name&&(t.name=e.name);const s=e.translation;(0,O.p)(s,C.uY)||(t.translation=(0,C.o8)(s));const n=e.rotation;(0,S.t2)(n,I.zK)||(t.rotation=(0,I.o8)(n));const i=e.scale;(0,O.p)(i,C.Un)||(t.scale=(0,C.o8)(i));const r=this.gltf.nodes.length;if(this.gltf.nodes.push(t),e.mesh&&e.mesh.vertexAttributes.position){const s=this._createMeshes(e.mesh),n=[r];if(1===s.length)this._addMesh(t,s[0]);else for(const e of s){const t={};this._addMesh(t,e),n.push(this.gltf.nodes.length),this.gltf.nodes.push(t)}return n}return e.forEachNode((e=>{t.children||(t.children=[]),t.children.push(...this._addNodes(e))})),[r]}_addMesh(e,t){this.gltf.meshes??=[];const s=this.gltf.meshes.length;this.gltf.meshes.push(t),e.mesh=s}_createMeshes(e){const t=this.gltf.extras,s=t.output.buffer===E.GLB;let n;n=s?t.binChunkBuffer:new p(this.gltf);const i=this.options.origin,r=e.vertexSpace.clone();r.origin=[i.x,i.y,i.z??0];const _=(0,L.UR)({vertexAttributes:e.vertexAttributes,vertexSpace:e.vertexSpace,transform:this.options?.ignoreLocalTransform?null:e.transform,spatialReference:e.spatialReference},r,{targetUnit:this.options.unitConversionDisabled?void 0:"meters"});if(!_)return[];U(e,_),Y(_);const{position:a,normal:R,tangent:T}=_,{uv:c,color:u}=e.vertexAttributes,N=n.addBufferView(M.pe.FLOAT,A.VEC3,o.ARRAY_BUFFER);let f,h,l,S;R&&(f=n.addBufferView(M.pe.FLOAT,A.VEC3,o.ARRAY_BUFFER)),c&&(h=n.addBufferView(M.pe.FLOAT,A.VEC2,o.ARRAY_BUFFER)),T&&(l=n.addBufferView(M.pe.FLOAT,A.VEC4,o.ARRAY_BUFFER)),u&&(S=n.addBufferView(M.pe.FLOAT,A.VEC4,o.ARRAY_BUFFER)),N.startAccessor("POSITION"),f&&f.startAccessor("NORMAL"),h&&h.startAccessor("TEXCOORD_0"),l&&l.startAccessor("TANGENT"),S&&S.startAccessor("COLOR_0");const I=_.position.length/3;for(let e=0;e<I;++e)N.push(a[3*e]),N.push(a[3*e+1]),N.push(a[3*e+2]),f&&null!=R&&(f.push(R[3*e]),f.push(R[3*e+1]),f.push(R[3*e+2])),h&&null!=c&&(h.push(c[2*e]),h.push(c[2*e+1])),l&&null!=T&&(l.push(T[4*e]),l.push(T[4*e+1]),l.push(T[4*e+2]),l.push(T[4*e+3])),S&&null!=u&&(S.push(v(u[4*e]/255)),S.push(v(u[4*e+1]/255)),S.push(v(u[4*e+2]/255)),S.push(u[4*e+3]/255));const O=N.endAccessor(),C=this._addAccessor(N.index,O);let d,D,P,B,m;if(f){const e=f.endAccessor();d=this._addAccessor(f.index,e)}if(h){const e=h.endAccessor();D=this._addAccessor(h.index,e)}if(l){const e=l.endAccessor();P=this._addAccessor(l.index,e)}if(S){const e=S.endAccessor();B=this._addAccessor(S.index,e)}const G=[];return e.components&&e.components.length>0&&e.components[0].faces?(m=n.addBufferView(M.pe.UNSIGNED_INT,A.SCALAR,o.ELEMENT_ARRAY_BUFFER),this._addMeshVertexIndexed(m,e.components,G,C,d,D,P,B)):this._addMeshVertexNonIndexed(e.components,G,C,d,D,P,B),N.finalize(),f&&f.finalize(),h&&h.finalize(),l&&l.finalize(),m&&m.finalize(),S&&S.finalize(),s||n.finalize(),G}_addMaterial(e){if(null==e)return;const t=this._materialMap.indexOf(e);if(-1!==t)return t;this.gltf.materials||(this.gltf.materials=[]);const s={};switch(e.alphaMode){case"mask":s.alphaMode=T.MASK;break;case"auto":case"blend":s.alphaMode=T.BLEND}s.alphaCutoff=e.alphaCutoff,e.doubleSided&&(s.doubleSided=e.doubleSided),s.pbrMetallicRoughness={};const n=e=>{const t=e.toRgba();return t[0]=v(t[0]/255),t[1]=v(t[1]/255),t[2]=v(t[2]/255),t};if(null!=e.color&&(s.pbrMetallicRoughness.baseColorFactor=n(e.color)),null!=e.colorTexture&&(s.pbrMetallicRoughness.baseColorTexture=this._createTextureInfo(e.colorTexture,e.colorTextureTransform)),null!=e.normalTexture&&(s.normalTexture=this._createTextureInfo(e.normalTexture,e.normalTextureTransform)),e instanceof d.A){if(null!=e.emissiveTexture&&(s.emissiveTexture=this._createTextureInfo(e.emissiveTexture,e.emissiveTextureTransform)),null!=e.emissiveColor){const t=n(e.emissiveColor);s.emissiveFactor=[t[0],t[1],t[2]]}null!=e.occlusionTexture&&(s.occlusionTexture=this._createTextureInfo(e.occlusionTexture,e.occlusionTextureTransform)),null!=e.metallicRoughnessTexture&&(s.pbrMetallicRoughness.metallicRoughnessTexture=this._createTextureInfo(e.metallicRoughnessTexture,e.metallicRoughnessTextureTransform)),s.pbrMetallicRoughness.metallicFactor=e.metallic,s.pbrMetallicRoughness.roughnessFactor=e.roughness}else s.pbrMetallicRoughness.metallicFactor=1,s.pbrMetallicRoughness.roughnessFactor=1,V().warnOnce("Meshes exported to GLTF without MeshMaterialMetallicRoughness material will appear different when imported back.");const i=this.gltf.materials.length;return this.gltf.materials.push(s),this._materialMap.push(e),i}_createTextureInfo(e,t){const s={index:this._addTexture(e)};return t?(s.extensions||(s.extensions={}),s.extensions.KHR_texture_transform={scale:t.scale,offset:t.offset,rotation:(0,l.kU)(t.rotation)},s):s}_addTexture(e){const t=this.gltf.textures??[];return this.gltf.textures=t,(0,h.tE)(this._textureMap,e,(()=>{const s={sampler:this._addSampler(e),source:this._addImage(e)},n=t.length;return t.push(s),n}))}_addImage(e){const t=this._imageMap.get(e);if(null!=t)return t;this.gltf.images||(this.gltf.images=[]);const s={};if(e.url)s.uri=e.url;else{const t=e.data;s.extras=t;for(let e=0;e<this.gltf.images.length;++e)if(t===this.gltf.images[e].extras)return e;const n=this.gltf.extras;switch(n.output.image){case a.GLB:{const e=n.binChunkBuffer.addBufferView(M.pe.UNSIGNED_BYTE,A.SCALAR);if((0,y.x3)(t))null!=t.data&&e.writeOutToBuffer(t.data,0);else{const i=b(t,this.options.signal).then((({data:e,type:t})=>(s.mimeType=t,e)));n.promises.push(e.writeAsync(i).then((()=>{e.finalize()})))}s.bufferView=e.index;break}case a.DataURI:if((0,y.x3)(t)){V().warnOnce("Image export for basis compressed textures not available.");break}s.uri=function(e){const t=x(e);return null!=t?t.toDataURL():""}(t);break;default:if((0,y.x3)(t)){V().warnOnce("Image export for basis compressed textures not available.");break}n.promises.push(b(t,this.options.signal).then((({data:e,type:t})=>{s.uri=e,s.mimeType=t})))}}const n=this.gltf.images.length;return this.gltf.images.push(s),this._imageMap.set(e,n),n}_addSampler(e){this.gltf.samplers||(this.gltf.samplers=[]);let t=M.pF.REPEAT,s=M.pF.REPEAT;if("string"==typeof e.wrap)switch(e.wrap){case"clamp":t=M.pF.CLAMP_TO_EDGE,s=M.pF.CLAMP_TO_EDGE;break;case"mirror":t=M.pF.MIRRORED_REPEAT,s=M.pF.MIRRORED_REPEAT}else{switch(e.wrap.vertical){case"clamp":s=M.pF.CLAMP_TO_EDGE;break;case"mirror":s=M.pF.MIRRORED_REPEAT}switch(e.wrap.horizontal){case"clamp":t=M.pF.CLAMP_TO_EDGE;break;case"mirror":t=M.pF.MIRRORED_REPEAT}}const n={wrapS:t,wrapT:s};for(let e=0;e<this.gltf.samplers.length;++e)if(JSON.stringify(n)===JSON.stringify(this.gltf.samplers[e]))return e;const i=this.gltf.samplers.length;return this.gltf.samplers.push(n),i}_addAccessor(e,t){this.gltf.accessors||(this.gltf.accessors=[]);const s={bufferView:e,byteOffset:t.byteOffset,componentType:t.componentType,count:t.count,type:t.type,min:t.min,max:t.max,name:t.name};t.normalized&&(s.normalized=!0);const n=this.gltf.accessors.length;return this.gltf.accessors.push(s),n}_addMeshVertexIndexed(e,t,s,n,i,r,_,E){const a=new Map;for(const o of t){if(e.startAccessor("INDICES"),o.faces)for(let t=0;t<o.faces.length;++t)e.push(o.faces[t]);const t=e.endAccessor(),A={attributes:{POSITION:n},indices:this._addAccessor(e.index,t),material:this._addMaterial(o.material)};i&&"flat"!==o.shading&&(A.attributes.NORMAL=i),r&&(A.attributes.TEXCOORD_0=r),_&&"flat"!==o.shading&&(A.attributes.TANGENT=_),E&&(A.attributes.COLOR_0=E);const R=a.get(o.name);if(R)R.primitives.push(A);else{const e={name:o.name,primitives:[A]};a.set(o.name,e),s.push(e)}}}_addMeshVertexNonIndexed(e,t,s,n,i,r,_){const E={primitives:[]};t.push(E);const a={attributes:{POSITION:s}};n&&(a.attributes.NORMAL=n),i&&(a.attributes.TEXCOORD_0=i),r&&(a.attributes.TANGENT=r),_&&(a.attributes.COLOR_0=_),e&&(a.material=this._addMaterial(e[0].material)),E.primitives.push(a)}}function Y({position:e,normal:t,tangent:s}){X(e,3),X(t,3),X(s,4)}function X(e,t){if(null!=e)for(let s=1,n=2;s<e.length;s+=t,n+=t){const t=e[s],i=e[n];e[s]=i,e[n]=-t}}function v(e){return e**N.Tf}var z=s(4576);class k{constructor(){this.copyright="",this.defaultScene=0,this.generator="",this._scenes=[]}addScene(e){if(this._scenes.includes(e))throw new Error("Scene already added");this._scenes.push(e)}removeScene(e){(0,z.TF)(this._scenes,e)}forEachScene(e){this._scenes.forEach(e)}}class W{constructor(e){this.mesh=e,this.name="",this.translation=(0,C.vt)(),this.rotation=(0,I.vt)(),this.scale=(0,C.o8)(C.Un),this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}set rotationAngles(e){(0,S.A6)(this.rotation,e[0],e[1],e[2])}}const K="model.gltf",j="model.glb";async function Z(e,t){const s=new H(e,t).gltf,n=s.extras.promises;let _=1,o=1,A=null;await Promise.allSettled(n),(0,i.Te)(t.signal);const R=t.jsonSpacing??4,T=new Map,c=JSON.stringify(s,((e,s)=>{if("extras"!==e){if(s instanceof ArrayBuffer){if(function(e){if(e.byteLength<8)return!1;const t=new Uint8Array(e);return 137===t[0]&&80===t[1]&&78===t[2]&&71===t[3]&&13===t[4]&&10===t[5]&&26===t[6]&&10===t[7]}(s))switch(t.output?.image){case a.DataURI:case a.GLB:break;case a.External:default:{const e=`img${o}.png`;return o++,T.set(e,s),e}}switch(t.output?.buffer){case E.DataURI:return function(e){const t=[],s=new Uint8Array(e);for(let e=0;e<s.length;e++)t.push(String.fromCharCode(s[e]));return"data:application/octet-stream;base64,"+btoa(t.join(""))}(s);case E.GLB:if(A)throw new Error("Already encountered an ArrayBuffer, there should only be one in the GLB format.");return void(A=s);case E.External:default:{const e=`data${_}.bin`;return _++,T.set(e,s),e}}}return s}}),R);return t.output?.buffer===E.GLB||t.output?.image===a.GLB?T.set(j,new r(c,A).buffer):T.set(K,c),T}class J{constructor(){this.name="",this._nodes=[]}addNode(e){if(this._nodes.includes(e))throw new Error("Node already added");this._nodes.push(e)}forEachNode(e){this._nodes.forEach(e)}}async function Q(e,t){const s=new k,n=new J;return s.addScene(n),n.addNode(new W(e)),await async function(e,t){const s=(await Z(e,{output:{buffer:E.GLB,image:a.GLB},jsonSpacing:0,...t})).get(j);if(!(s&&s instanceof ArrayBuffer))throw new Error("failed to export to glb");return s}(s,{origin:e.origin,...t})}},51530:(e,t,s)=>{s.d(t,{KB:()=>E,Xi:()=>r,pn:()=>a,x3:()=>_});var n=s(44208),i=s(89192);class r{constructor(e){this.data=e,this.type="encoded-mesh-texture",this.encoding=i.JS.KTX2_ENCODING}}function _(e){return"encoded-mesh-texture"===e?.type}async function E(e){const t=new Blob([e]),s=await t.text();return JSON.parse(s)}async function a(e,t){if(t===i.JS.KTX2_ENCODING)return new r(e);const s=new Blob([e],{type:t});let _=URL.createObjectURL(s);switch(t){case"image/jpeg":_+="#.jpg";break;case"image/png":_+="#.png"}const E=new Image;if((0,n.A)("esri-iPhone"))return new Promise(((e,t)=>{const s=()=>{i(),e(E)},n=e=>{i(),t(e)},i=()=>{URL.revokeObjectURL(_),E.removeEventListener("load",s),E.removeEventListener("error",n)};E.addEventListener("load",s),E.addEventListener("error",n),E.src=_}));try{E.src=_,await E.decode()}catch(e){console.warn("Failed decoding HTMLImageElement")}return URL.revokeObjectURL(_),E}},63907:(e,t,s)=>{var n,i,r,_,E,a,o,A,R,T,c,u,N,f,h,l,S,I,O,C,d,L,M,D;s.d(t,{Ab:()=>l,Ac:()=>A,Ap:()=>f,CQ:()=>m,Cj:()=>u,Fq:()=>P,H0:()=>S,H3:()=>h,Hr:()=>D,MT:()=>T,NV:()=>n,Tb:()=>E,WR:()=>r,Y7:()=>o,bh:()=>y,dn:()=>_,eA:()=>c,ld:()=>I,nI:()=>B,pF:()=>N,pe:()=>R,r6:()=>p,vt:()=>M,yI:()=>U,yQ:()=>O}),function(e){e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e[e.COLOR=16384]="COLOR"}(n||(n={})),function(e){e[e.COLOR=6144]="COLOR",e[e.DEPTH=6145]="DEPTH",e[e.STENCIL=6146]="STENCIL",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(i||(i={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(r||(r={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(_||(_={})),function(e){e[e.ADD=32774]="ADD",e[e.MIN=32775]="MIN",e[e.MAX=32776]="MAX",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(E||(E={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER",e[e.TRANSFORM_FEEDBACK_BUFFER=35982]="TRANSFORM_FEEDBACK_BUFFER"}(a||(a={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(o||(o={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(A||(A={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT",e[e.HALF_FLOAT=5131]="HALF_FLOAT"}(R||(R={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(T||(T={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(c||(c={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(u||(u={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(N||(N={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(f||(f={})),function(e){e[e.MIN_LOD=33082]="MIN_LOD",e[e.MAX_LOD=33083]="MAX_LOD",e[e.BASE_LEVEL=33084]="BASE_LEVEL",e[e.MAX_LEVEL=33085]="MAX_LEVEL",e[e.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE"}(h||(h={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(l||(l={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(S||(S={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(I||(I={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(O||(O={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(C||(C={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(d||(d={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(L||(L={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.TransformFeedback=7]="TransformFeedback",e[e.Sync=8]="Sync",e[e.UNCOUNTED=9]="UNCOUNTED",e[e.LinesOfCode=9]="LinesOfCode",e[e.Uniform=10]="Uniform",e[e.COUNT=11]="COUNT"}(M||(M={})),function(e){e[e.NONE=0]="NONE",e[e.BACK=1029]="BACK"}(D||(D={}));const p=36064,U=36065,P=36066,B=33306;var m,G,g,F,w,b,x,y,V;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(m||(m={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(G||(G={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(g||(g={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(F||(F={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(w||(w={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(b||(b={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(x||(x={})),function(e){e[e.INVALID_ENUM=1280]="INVALID_ENUM",e[e.INVALID_VALUE=1281]="INVALID_VALUE",e[e.INVALID_OPERATION=1282]="INVALID_OPERATION",e[e.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",e[e.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",e[e.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL"}(y||(y={})),function(e){e[e.COMPLETION_STATUS_KHR=37297]="COMPLETION_STATUS_KHR"}(V||(V={}))},89192:(e,t,s)=>{var n,i,r,_,E,a,o,A;s.d(t,{Am:()=>_,C7:()=>r,JS:()=>A,Mg:()=>a,dd:()=>E,it:()=>i,s2:()=>n,sf:()=>o}),function(e){e[e.None=0]="None",e[e.Front=1]="Front",e[e.Back=2]="Back",e[e.COUNT=3]="COUNT"}(n||(n={})),function(e){e[e.Less=0]="Less",e[e.Lequal=1]="Lequal",e[e.COUNT=2]="COUNT"}(i||(i={})),function(e){e[e.BACKGROUND=0]="BACKGROUND",e[e.UPDATE=1]="UPDATE"}(r||(r={})),function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(_||(_={})),function(e){e[e.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",e[e.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(E||(E={})),function(e){e[e.Highlight=0]="Highlight",e[e.MaskOccludee=1]="MaskOccludee"}(a||(a={})),function(e){e[e.Blend=0]="Blend",e[e.Opaque=1]="Opaque",e[e.Mask=2]="Mask",e[e.MaskBlend=3]="MaskBlend",e[e.COUNT=4]="COUNT"}(o||(o={})),function(e){e.DDS_ENCODING="image/vnd-ms.dds",e.KTX2_ENCODING="image/ktx2",e.BASIS_ENCODING="image/x.basis"}(A||(A={}))}}]);