@arcgis/core 4.34.0-next.21 → 4.34.0-next.23

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 (143) hide show
  1. package/applications/Components/arcadeFeatureUtils.d.ts +5 -0
  2. package/applications/Components/arcadeFeatureUtils.js +5 -0
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/{bcaf6edf887e4afbbdd2.js → 02dc6e31b1244e5bb785.js} +1 -1
  5. package/assets/esri/core/workers/chunks/{871fae52d2fddc9e7794.js → 04c17957c15234ca0321.js} +1 -1
  6. package/assets/esri/core/workers/chunks/084236ca316aad980192.js +1 -0
  7. package/assets/esri/core/workers/chunks/0b484224a92b52c34330.js +1 -0
  8. package/assets/esri/core/workers/chunks/{822b32aaeec05a347c84.js → 0ba6177ba118a0f032e2.js} +1 -1
  9. package/assets/esri/core/workers/chunks/0f6203ae32663b2b52db.js +1 -0
  10. package/assets/esri/core/workers/chunks/12723e79b996969e304e.js +1 -0
  11. package/assets/esri/core/workers/chunks/{bd7b985f7962b1cc7b8a.js → 146520d263b910b5bdc7.js} +1 -1
  12. package/assets/esri/core/workers/chunks/{445ddf57d2f503a0b98b.js → 15064c3b21b325d5c2f6.js} +1 -1
  13. package/assets/esri/core/workers/chunks/19ae76283a0cb0fe4dee.js +346 -0
  14. package/assets/esri/core/workers/chunks/{82a5000296134834d1ac.js → 1d75cb1747ffb7b8b050.js} +1 -1
  15. package/assets/esri/core/workers/chunks/20bcd2e6cf02e057ad7d.js +1 -0
  16. package/assets/esri/core/workers/chunks/{55ce214a10fb6fc2e901.js → 24fe862b607ec927e07f.js} +1 -1
  17. package/assets/esri/core/workers/chunks/30fae1f066dc3cd781f1.js +1 -0
  18. package/assets/esri/core/workers/chunks/{7ec73f63929b1623de72.js → 3793f282ddaccd3465f2.js} +1 -1
  19. package/assets/esri/core/workers/chunks/3fcd73ba832cb53d3a07.js +1 -0
  20. package/assets/esri/core/workers/chunks/{5e7f35bf1aab93cb1c52.js → 4cea5170939c8d363ef7.js} +1 -1
  21. package/assets/esri/core/workers/chunks/5253cca467fe9bc0a210.js +1 -0
  22. package/assets/esri/core/workers/chunks/{735d96d2b951cc1df3a3.js → 576e408fb0834f3948e8.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{27c9d3f6cebca087a123.js → 6136bf09950adc46bc33.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{dfd9ac2e28c96900c53e.js → 6c33ecffbc783cb8f944.js} +1 -1
  25. package/assets/esri/core/workers/chunks/6ca764b4baadef5c1515.js +1 -0
  26. package/assets/esri/core/workers/chunks/{fcdf714339060731fe1c.js → 7051bcc178eb512819f6.js} +1 -1
  27. package/assets/esri/core/workers/chunks/7cfba5cec425221962e8.js +1 -0
  28. package/assets/esri/core/workers/chunks/{3a753ce4de2e6ad40f7b.js → 86d6007c45f2aa643ac8.js} +1 -1
  29. package/assets/esri/core/workers/chunks/92ad9098006568358550.js +1 -0
  30. package/assets/esri/core/workers/chunks/{2ed698579befe73caafd.js → 94d75f3b215e3bd1b4d7.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{15d1ab71aaf6bcf3145b.js → a7a5b89c2bb69f3af59c.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{1d9e44bdd129cc682ae5.js → ac93b3f1ff15a95d926c.js} +1 -1
  33. package/assets/esri/core/workers/chunks/b4512d62b6cb26fc6b25.js +1 -0
  34. package/assets/esri/core/workers/chunks/{63e984a65ee670449a4a.js → b4bb461955a4c2bce072.js} +1 -1
  35. package/assets/esri/core/workers/chunks/{abc75c945f3cfb1629b0.js → ba5b24beebeb703b5919.js} +1 -1
  36. package/assets/esri/core/workers/chunks/{51afd0e71df1825d7593.js → c64fa94cba71ba2794e2.js} +1 -1
  37. package/assets/esri/core/workers/chunks/c94cc026c4ed330408fb.js +1 -0
  38. package/assets/esri/core/workers/chunks/cab1a1067f44ce374673.js +1 -0
  39. package/assets/esri/core/workers/chunks/{3f4a8c874c022dace9be.js → d1b363c418a67b087306.js} +1 -1
  40. package/assets/esri/core/workers/chunks/d45383d76ba99718b6d9.js +1 -0
  41. package/assets/esri/core/workers/chunks/{8b19fe829a9dc26fb3fe.js → d915d0a30d9beb24bd3a.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{bbca1b85656d9ba71e4c.js → def8a854a05f17d3538e.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{273ff53a68714e4daad5.js → e49a135a2933306a6105.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{d31fa648497b0af97dc1.js → e9a9174c4d1a0a9effb6.js} +1 -1
  45. package/assets/esri/core/workers/chunks/f3d5d92e0aefc2593208.js +1 -0
  46. package/assets/esri/core/workers/chunks/{fc8bbc571216edd9ef5a.js → f3e3c2340452c1d60c95.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{85b0e2a898251d048dda.js → f42155b7a4e6c5e80757.js} +1 -1
  48. package/assets/esri/core/workers/chunks/f43110391f124b8a179c.js +1009 -0
  49. package/assets/esri/core/workers/chunks/f90573c9dc36e51cd588.js +1 -0
  50. package/assets/esri/core/workers/chunks/{080a8a1c6fe2d215142d.js → fb5e2b1ced03eef28e96.js} +1 -1
  51. package/assets/esri/core/workers/chunks/fe73e74e3e4278aedcc3.js +1 -0
  52. package/config.js +1 -1
  53. package/core/Clonable.js +1 -1
  54. package/core/lang.js +1 -1
  55. package/geometry/Mesh.js +1 -1
  56. package/geometry/support/MeshComponent.js +1 -1
  57. package/geometry/support/MeshMaterial.js +1 -1
  58. package/geometry/support/MeshMaterialMetallicRoughness.js +1 -1
  59. package/geometry/support/MeshTexture.js +1 -1
  60. package/geometry/support/MeshTransform.js +1 -1
  61. package/geometry/support/MeshVertexAttributes.js +1 -1
  62. package/geometry/support/meshUtils/convertMeshVertexSpace.js +1 -1
  63. package/geometry/support/meshUtils/merge.js +1 -1
  64. package/geometry/support/meshUtils/meshCloneUtils.js +5 -0
  65. package/interfaces.d.ts +183 -41
  66. package/kernel.js +1 -1
  67. package/layers/VideoLayer.js +1 -1
  68. package/layers/support/SceneModification.js +1 -1
  69. package/layers/support/SceneModifications.js +1 -1
  70. package/layers/support/rasterDatasets/MRFRaster.js +1 -1
  71. package/layers/video/videoUtils.js +1 -1
  72. package/libs/basisu/BasisUEncoder.js +1 -1
  73. package/libs/dxtEncoder/DXTEncoder.js +1 -1
  74. package/libs/i3s/I3SModule.js +1 -1
  75. package/networks/support/utils.js +1 -1
  76. package/package.json +1 -1
  77. package/rest/knowledgeGraph/GraphAddFieldIndexResult.js +1 -1
  78. package/rest/knowledgeGraph/GraphAddNamedTypesResult.js +1 -1
  79. package/rest/knowledgeGraph/GraphAddPropertyResult.js +1 -1
  80. package/rest/knowledgeGraph/GraphDataModelOperationResult.d.ts +1 -1
  81. package/rest/knowledgeGraph/GraphDataModelOperationResult.js +1 -1
  82. package/rest/knowledgeGraph/GraphDeleteFieldIndexResult.js +1 -1
  83. package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.js +1 -1
  84. package/rest/knowledgeGraph/GraphDeletePropertyResult.js +1 -1
  85. package/rest/knowledgeGraph/GraphUpdateNamedTypesResult.js +1 -1
  86. package/rest/knowledgeGraph/GraphUpdatePropertyResult.js +1 -1
  87. package/rest/knowledgeGraph/GraphUpdateSearchIndexResult.js +1 -1
  88. package/support/revision.js +1 -1
  89. package/views/2d/layers/VideoLayerView2D.js +1 -1
  90. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  91. package/views/3d/layers/SceneLayerWorker.js +1 -1
  92. package/views/3d/state/GoToOperation.js +1 -1
  93. package/views/3d/state/ViewStateManager.js +1 -1
  94. package/views/3d/support/cameraUtils.js +1 -1
  95. package/views/3d/support/viewingModeUtils.js +5 -0
  96. package/views/3d/support/viewpointUtils.js +1 -1
  97. package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
  98. package/views/3d/terrain/OverlayManager.js +1 -1
  99. package/views/3d/terrain/OverlayRenderTargets.js +1 -1
  100. package/views/3d/terrain/OverlayRenderer.js +1 -1
  101. package/views/3d/webgl/ManagedFBOResource.js +1 -1
  102. package/views/3d/webgl.d.ts +2 -0
  103. package/views/3d/webgl.js +1 -1
  104. package/views/VideoView.js +1 -1
  105. package/views/draw/DrawScreenTool.js +1 -1
  106. package/views/support/TextureCompressionHelper.js +1 -1
  107. package/views/support/TextureCompressionWorker.js +1 -1
  108. package/views/support/TextureCompressionWorkerHandle.js +1 -1
  109. package/views/support/layerViewUtils.js +1 -1
  110. package/widgets/BatchAttributeForm/inputs/EditableInput.js +1 -1
  111. package/widgets/BatchAttributeForm/inputs/GroupInput.js +1 -1
  112. package/widgets/BatchAttributeForm/inputs/InputBase.d.ts +1 -1
  113. package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
  114. package/widgets/Editor/Edits.js +1 -1
  115. package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
  116. package/widgets/Feature/FeatureViewModel.js +1 -1
  117. package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
  118. package/widgets/OrientedImageryViewer.js +1 -1
  119. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
  120. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +1 -1
  121. package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
  122. package/widgets/support/Selector2D/SelectionOperation.js +1 -1
  123. package/widgets/support/UtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +1 -1
  124. package/assets/esri/core/workers/chunks/06c3725d6cc21e7e4bcf.js +0 -1
  125. package/assets/esri/core/workers/chunks/0f5643d5437f48c63225.js +0 -1
  126. package/assets/esri/core/workers/chunks/1c7393bcd6e85ba25e1b.js +0 -1
  127. package/assets/esri/core/workers/chunks/2a784da5fa3f502d1803.js +0 -1
  128. package/assets/esri/core/workers/chunks/2e3f620c79ec04033a6e.js +0 -1
  129. package/assets/esri/core/workers/chunks/48953ddf0bbcf3d77e04.js +0 -1
  130. package/assets/esri/core/workers/chunks/5b7464137aacf1c5fd78.js +0 -1
  131. package/assets/esri/core/workers/chunks/7925e8ffa8027b59410e.js +0 -1
  132. package/assets/esri/core/workers/chunks/8235a997acb45ab43173.js +0 -1
  133. package/assets/esri/core/workers/chunks/8fa6c938e8dc7bbfaeb7.js +0 -1
  134. package/assets/esri/core/workers/chunks/9d2cb559dd9af4e1727c.js +0 -1
  135. package/assets/esri/core/workers/chunks/9eb1a171f5ef1fef42ed.js +0 -346
  136. package/assets/esri/core/workers/chunks/bac5e1d50b69f0d94694.js +0 -1
  137. package/assets/esri/core/workers/chunks/bcefb413d03d59506b5a.js +0 -1009
  138. package/assets/esri/core/workers/chunks/c317819ab0544c50c078.js +0 -1
  139. package/assets/esri/core/workers/chunks/c96fed4889712f5a9135.js +0 -1
  140. package/assets/esri/core/workers/chunks/cb4c49d5b70f9563bc46.js +0 -1
  141. package/assets/esri/core/workers/chunks/e9aa1d9ded8a52a40c57.js +0 -1
  142. package/assets/esri/core/workers/chunks/f65ad6a41c0c69bf1b21.js +0 -1
  143. package/assets/esri/core/workers/chunks/f806e9221dff7fcfc2f9.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9468],{240:(t,e,n)=>{n.d(e,{C:()=>u,vt:()=>a,lU:()=>d,fA:()=>h,mR:()=>A,Qj:()=>l,T7:()=>g,gv:()=>p,Ui:()=>I,Tj:()=>S,_I:()=>R,mP:()=>N,LV:()=>c});var o=n(34727),r=n(38954),i=n(51850),s=(n(87317),n(44280),n(32114));function a(t=P){return[t[0],t[1],t[2],t[3]]}function c(t=P[0],e=P[1],n=P[2],o=P[3]){return h(t,e,n,o,s.Km.get())}function u(t,e){return h(e[0],e[1],e[2],e[3],t)}function l(t){return t}function h(t,e,n,o,r=a()){return r[0]=t,r[1]=e,r[2]=n,r[3]=o,r}function d(t,e,n,o=0,i=Math.floor(n*(1/3)),s=Math.floor(n*(2/3))){if(n<3)return!1;e(T,o);let c=i,u=!1;for(;c<n-1&&!u;)e(_,c),c++,u=!(0,r.q)(T,_);if(!u)return!1;for(c=Math.max(c,s),u=!1;c<n&&!u;)e(O,c),c++,(0,r.d)(E,T,_),(0,r.n)(E,E),(0,r.d)(m,_,O),(0,r.n)(m,m),u=!(0,r.q)(T,O)&&!(0,r.q)(_,O)&&Math.abs((0,r.e)(E,m))<f;return u?(function(t,e,n,o=a()){const r=n[0]-e[0],i=n[1]-e[1],s=n[2]-e[2],c=t[0]-e[0],u=t[1]-e[1],l=t[2]-e[2],h=i*l-s*u,d=s*c-r*l,f=r*u-i*c,T=h*h+d*d+f*f,_=Math.abs(T-1)>1e-5&&T>1e-12?1/Math.sqrt(T):1;o[0]=h*_,o[1]=d*_,o[2]=f*_,o[3]=-(o[0]*t[0]+o[1]*t[1]+o[2]*t[2])}(T,_,O,t),!0):(0!==o||1!==i||2!==s)&&d(t,e,n,0,1,2)}(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const f=.99619469809,T=(0,i.vt)(),_=(0,i.vt)(),O=(0,i.vt)(),E=(0,i.vt)(),m=(0,i.vt)();function N(t,e,n){return e!==t&&u(t,e),t[3]=-(0,r.e)(t,n),t}function A(t,e,n,o){return(0,r.h)(O,e,t),function(t,e,n){const o=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=Math.abs(o-1)>1e-5&&o>1e-12?1/Math.sqrt(o):1;return n[0]=e[0]*r,n[1]=e[1]*r,n[2]=e[2]*r,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}(n,O,o)}function I(t,e,n){return null!=e&&F(L(t,e.origin,e.direction,D,n))}function g(t,e,n){return F(L(t,e.origin,e.vector,C.NONE,n))}function p(t,e,n){return F(L(t,e.origin,e.vector,C.CLAMP,n))}function S(t,e){return b(t,e)>=0}function R(t,e,n){const o=(0,r.g)(s.rq.get(),t,-t[3]),i=function(t,e,n){const o=(0,r.g)(s.rq.get(),t,(0,r.e)(t,e));return(0,r.d)(n,e,o),n}(t,(0,r.d)(s.rq.get(),e,o),s.rq.get());return(0,r.f)(n,i,o),n}function b(t,e){return(0,r.e)(t,e)+t[3]}var M,v;function F(t){return t===M.INTERSECTS_INSIDE_OUT||t===M.INTERSECTS_OUTSIDE_IN}function L(t,e,n,i,s){const a=(0,r.e)(t,n),c=b(t,e);if(0===a)return c>=0?M.INSIDE:M.OUTSIDE;let u=-c/a;return i&C.CLAMP&&(u=(0,o.qE)(u,0,1)),!(i&C.INFINITE_MIN)&&u<0||!(i&C.INFINITE_MAX)&&u>1?c>=0?M.INSIDE:M.OUTSIDE:((0,r.f)(s,e,(0,r.g)(s,n,u)),c>=0?M.INTERSECTS_INSIDE_OUT:M.INTERSECTS_OUTSIDE_IN)}(v=M||(M={}))[v.INTERSECTS_INSIDE_OUT=0]="INTERSECTS_INSIDE_OUT",v[v.INTERSECTS_OUTSIDE_IN=1]="INTERSECTS_OUTSIDE_IN",v[v.INSIDE=2]="INSIDE",v[v.OUTSIDE=3]="OUTSIDE";const P=[0,0,1,0];var C;!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"}(C||(C={})),C.INFINITE_MIN,C.INFINITE_MAX;const D=C.INFINITE_MAX},431:(t,e,n)=>{n.d(e,{o6:()=>v,HY:()=>B,hx:()=>F,Jb:()=>D});var o=n(9318);function r(t,e,n){const o=e/3,r=new Uint32Array(n+1),i=new Uint32Array(n+1),s=(t,e)=>{t<e?r[t+1]++:i[e+1]++};for(let e=0;e<o;e++){const n=t[3*e],o=t[3*e+1],r=t[3*e+2];s(n,o),s(o,r),s(r,n)}let a=0,c=0;for(let t=0;t<n;t++){const e=r[t+1],n=i[t+1];r[t+1]=a,i[t+1]=c,a+=e,c+=n}const u=new Uint32Array(6*o),l=r[n],h=(t,e,n)=>{if(t<e){const o=r[t+1]++;u[2*o]=e,u[2*o+1]=n}else{const o=i[e+1]++;u[2*l+2*o]=t,u[2*l+2*o+1]=n}};for(let e=0;e<o;e++){const n=t[3*e],o=t[3*e+1],r=t[3*e+2];h(n,o,e),h(o,r,e),h(r,n,e)}const d=(t,e)=>{const n=2*t,o=e-t;for(let t=1;t<o;t++){const e=u[n+2*t],o=u[n+2*t+1];let r=t-1;for(;r>=0&&u[n+2*r]>e;r--)u[n+2*r+2]=u[n+2*r],u[n+2*r+3]=u[n+2*r+1];u[n+2*r+2]=e,u[n+2*r+3]=o}};for(let t=0;t<n;t++)d(r[t],r[t+1]),d(l+i[t],l+i[t+1]);const f=new Int32Array(3*o),T=(e,n)=>e===t[3*n]?0:e===t[3*n+1]?1:e===t[3*n+2]?2:-1,_=(t,e)=>{const n=T(t,e);f[3*e+n]=-1},O=(t,e,n,o)=>{const r=T(t,e);f[3*e+r]=o;const i=T(n,o);f[3*o+i]=e};for(let t=0;t<n;t++){let e=r[t];const n=r[t+1];let o=i[t];const s=i[t+1];for(;e<n&&o<s;){const n=u[2*e],r=u[2*l+2*o];n===r?(O(t,u[2*e+1],r,u[2*l+2*o+1]),e++,o++):n<r?(_(t,u[2*e+1]),e++):(_(r,u[2*l+2*o+1]),o++)}for(;e<n;)_(t,u[2*e+1]),e++;for(;o<s;)_(u[2*l+2*o],u[2*l+2*o+1]),o++}return f}var i=n(1843),s=n(46540),a=n(3055),c=n(87811),u=n(38954),l=n(51850),h=n(4431),d=n(34727);function f(t,e,n,o,r,i=2){const s=1/(Math.abs(n)+Math.abs(o)+Math.abs(r)),a=n*s,c=o*s,u=r<=0?(a>=0?1:-1)*(1-Math.abs(c)):a,l=r<=0?(c>=0?1:-1)*(1-Math.abs(a)):c,h=e*i;t[h]=T(u),t[h+1]=T(l)}function T(t){return(0,d.qE)(Math.round(32767*t),-32767,32767)}n(11868),n(34275);class _{updateSettings(t){this.settings=t,this._edgeHashFunction=t.reducedPrecision?A:N}write(t,e,n){b.seed=this._edgeHashFunction(n);const o=b.getIntRange(0,255),r=b.getIntRange(0,this.settings.variants-1),i=b.getFloat(),s=255*(.5*function(t){return Math.abs(t)**1.2*Math.sign(t)}(-(1-Math.min(i/.7,1))+Math.max(0,i-.7)/(1-.7))+.5);t.position0.setVec(e,n.position0),t.position1.setVec(e,n.position1),t.componentIndex.set(e,n.componentIndex),t.variantOffset.set(e,o),t.variantStroke.set(e,r),t.variantExtension.set(e,s)}}const O=new Float32Array(6),E=new Uint32Array(O.buffer),m=new Uint32Array(1);function N(t){return O[0]=t.position0[0],O[1]=t.position0[1],O[2]=t.position0[2],O[3]=t.position1[0],O[4]=t.position1[1],O[5]=t.position1[2],m[0]=31*(31*(31*(31*(31*(166811+E[0])+E[1])+E[2])+E[3])+E[4])+E[5],m[0]}function A(t){const e=O;e[0]=g(t.position0[0]),e[1]=g(t.position0[1]),e[2]=g(t.position0[2]),e[3]=g(t.position1[0]),e[4]=g(t.position1[1]),e[5]=g(t.position1[2]),m[0]=5381;for(let t=0;t<E.length;t++)m[0]=31*m[0]+E[t];return m[0]}const I=1e4;function g(t){return Math.round(t*I)/I}class p{constructor(){this._commonWriter=new _}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return a.gr.createBuffer(t)}write(t,e,n){this._commonWriter.write(t,e,n),(0,u.f)(R,n.faceNormal0,n.faceNormal1),(0,u.n)(R,R);const{typedBuffer:o,typedBufferStride:r}=t.normalCompressed;f(o,e,R[0],R[1],R[2],r)}static{this.Layout=a.gr}static{this.glLayout=(0,h.U)(a.gr,1)}}class S{constructor(){this._commonWriter=new _}updateSettings(t){this._commonWriter.updateSettings(t)}allocate(t){return a.In.createBuffer(t)}write(t,e,n){this._commonWriter.write(t,e,n);{const{typedBuffer:o,typedBufferStride:r}=t.normalCompressed;f(o,e,n.faceNormal0[0],n.faceNormal0[1],n.faceNormal0[2],r)}{const{typedBuffer:o,typedBufferStride:r}=t.normal2Compressed;f(o,e,n.faceNormal1[0],n.faceNormal1[1],n.faceNormal1[2],r)}}static{this.Layout=a.In}static{this.glLayout=(0,h.U)(a.In,1)}}const R=(0,l.vt)(),b=new c.A;var M=n(93406);function v(t){const e=F(t.data,t.skipDeduplicate,t.indices,t.indicesLength);return P.updateSettings(t.writerSettings),C.updateSettings(t.writerSettings),(0,M.K)(e,P,C)}function F(t,e,n,i){if(e){const e=r(n,i,t.count);return new L(n,i,e,t)}const s=(0,o.b)(t.buffer,t.stride/4,{originalIndices:n}),c=r(s.indices,i,s.uniqueCount);return{faces:s.indices,facesLength:s.indices.length,neighbors:c,vertices:a.I$.createView(s.buffer)}}class L{constructor(t,e,n,o){this.faces=t,this.facesLength=e,this.neighbors=n,this.vertices=o}}const P=new p,C=new S,D=(0,i.BP)().vec3f(s.r.POSITION0).vec3f(s.r.POSITION1),B=(0,i.BP)().vec3f(s.r.POSITION0).vec3f(s.r.POSITION1).u16(s.r.COMPONENTINDEX)},3055:(t,e,n)=>{n.d(e,{I$:()=>s,In:()=>u,gr:()=>c});var o=n(4431),r=n(1843),i=n(46540);const s=(0,r.BP)().vec3f(i.r.POSITION).u16(i.r.COMPONENTINDEX).freeze(),a=(0,r.BP)().vec2u8(i.r.SIDENESS).freeze(),c=((0,o.U)(a),(0,r.BP)().vec3f(i.r.POSITION0).vec3f(i.r.POSITION1).vec2i16(i.r.NORMALCOMPRESSED).u16(i.r.COMPONENTINDEX).u8(i.r.VARIANTOFFSET,{glNormalized:!0}).u8(i.r.VARIANTSTROKE).u8(i.r.VARIANTEXTENSION,{glNormalized:!0}).freeze()),u=(0,r.BP)().vec3f(i.r.POSITION0).vec3f(i.r.POSITION1).vec2i16(i.r.NORMALCOMPRESSED).vec2i16(i.r.NORMAL2COMPRESSED).u16(i.r.COMPONENTINDEX).u8(i.r.VARIANTOFFSET,{glNormalized:!0}).u8(i.r.VARIANTSTROKE).u8(i.r.VARIANTEXTENSION,{glNormalized:!0}).freeze();new Map([[i.r.POSITION0,0],[i.r.POSITION1,1],[i.r.COMPONENTINDEX,2],[i.r.VARIANTOFFSET,3],[i.r.VARIANTSTROKE,4],[i.r.VARIANTEXTENSION,5],[i.r.NORMALCOMPRESSED,6],[i.r.NORMAL2COMPRESSED,7],[i.r.SIDENESS,8]])},4431:(t,e,n)=>{n.d(e,{U:()=>i});var o=n(63907),r=n(74038);function i(t,e=0){const n=t.stride;return Array.from(t.fields.keys()).map(o=>{const i=t.fields.get(o),a=i.constructor.ElementCount,c=s(i.constructor.ElementType),u=i.offset,l=i.optional?.glNormalized??!1;return new r._(o,a,c,u,n,l,e)})}function s(t){const e=a[t];if(e)return e;throw new Error("BufferType not supported in WebGL")}const a={u8:o.pe.UNSIGNED_BYTE,u16:o.pe.UNSIGNED_SHORT,u32:o.pe.UNSIGNED_INT,i8:o.pe.BYTE,i16:o.pe.SHORT,i32:o.pe.INT,f16:o.pe.HALF_FLOAT,f32:o.pe.FLOAT}},9318:(t,e,n)=>{n.d(e,{b:()=>i});var o=n(34727),r=n(97146);function i(t,e,n){const i=Array.isArray(t),l=i?t.length/e:t.byteLength/(4*e),h=i?t:new Uint32Array(t,0,l*e),d=n?.minReduction??0,f=n?.originalIndices||null,T=f?f.length:0,_=n?.componentOffsets||null;let O=0;if(_)for(let t=0;t<_.length-1;t++){const e=_[t+1]-_[t];e>O&&(O=e)}else O=l;const E=Math.floor(1.1*O)+1;(null==u||u.length<2*E)&&(u=new Uint32Array((0,o.cU)(2*E)));for(let t=0;t<2*E;t++)u[t]=0;let m=0;const N=!!_&&!!f,A=N?T:l;let I=(0,r.my)(l);const g=new Uint32Array(T),p=1.96;let S=0!==d?Math.ceil(4*p*p/(d*d)*d*(1-d)):A,R=1,b=_?_[1]:A;for(let t=0;t<A;t++){if(t===S){const e=1-m/t;if(e+p*Math.sqrt(e*(1-e)/t)<d)return null;S*=2}if(t===b){for(let t=0;t<2*E;t++)u[t]=0;if(f)for(let t=_[R-1];t<_[R];t++)g[t]=I[f[t]];b=_[++R]}const n=N?f[t]:t,o=n*e,r=c(h,o,e);let i=r%E,a=m;for(;0!==u[2*i+1];){if(u[2*i]===r){const t=u[2*i+1]-1;if(s(h,o,t*e,e)){a=I[t];break}}i++,i>=E&&(i-=E)}a===m&&(u[2*i]=r,u[2*i+1]=n+1,m++),I[n]=a}if(0!==d&&1-m/l<d)return null;if(N){for(let t=_[R-1];t<g.length;t++)g[t]=I[f[t]];I=(0,r.uW)(g)}const M=i?new Array(m):new Uint32Array(m*e);m=0;for(let t=0;t<A;t++)I[t]===m&&(a(h,(N?f[t]:t)*e,M,m*e,e),m++);if(f&&!N){const t=new Uint32Array(T);for(let e=0;e<t.length;e++)t[e]=I[f[e]];I=(0,r.uW)(t)}return{buffer:Array.isArray(M)?M:M.buffer,indices:I,uniqueCount:m}}function s(t,e,n,o){for(let r=0;r<o;r++)if(t[e+r]!==t[n+r])return!1;return!0}function a(t,e,n,o,r){for(let i=0;i<r;i++)n[o+i]=t[e+i]}function c(t,e,n){let o=0;for(let r=0;r<n;r++)o=t[e+r]+o|0,o=o+(o<<11)+(o>>>2)|0;return o>>>0}let u=null},11964:(t,e,n)=>{n.d(e,{Cr:()=>u,H6:()=>d,_I:()=>h,kb:()=>l,vt:()=>c});var o=n(34727),r=n(4341),i=n(38954),s=n(51850),a=n(32114);function c(t){return t?{origin:(0,s.o8)(t.origin),vector:(0,s.o8)(t.vector)}:{origin:(0,s.vt)(),vector:(0,s.vt)()}}function u(t,e,n=c()){return(0,i.c)(n.origin,t),(0,i.d)(n.vector,e,t),n}function l(t,e){const n=(0,i.d)(a.rq.get(),e,t.origin),r=(0,i.e)(t.vector,n),s=(0,i.e)(t.vector,t.vector),c=(0,o.qE)(r/s,0,1),u=(0,i.d)(a.rq.get(),(0,i.g)(a.rq.get(),t.vector,c),n);return(0,i.e)(u,u)}function h(t,e,n){return d(t,e,0,1,n)}function d(t,e,n,r,s){const{vector:c,origin:u}=t,l=(0,i.d)(a.rq.get(),e,u),h=(0,i.e)(c,l)/(0,i.k)(c);return(0,i.g)(s,c,(0,o.qE)(h,n,r)),(0,i.f)(s,s,t.origin)}(0,s.vt)(),(0,s.vt)(),new r.I(()=>c())},24587:(t,e,n)=>{n.r(e),n.d(e,{default:()=>ot});var o,r,i,s=n(90237),a=n(74887),c=(n(53966),n(44208),n(87811),n(49186),n(40608)),u=n(38954),l=n(51850),h=n(11964),d=n(97937),f=n(93687),T=n(3694),_=n(4341),O=(n(58083),n(87317),n(91829)),E=n(71351);function m(t){return t?{ray:(0,E.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,E.vt)(),c0:0,c1:Number.MAX_VALUE}}function N(t,e){for(let n=0;n<A;n++){const o=t[n];if(o[0]*e[0]+o[1]*e[1]+o[2]*e[2]+o[3]>=e[3])return!1}return!0}new _.I(()=>m()),n(240),n(32114),(i=o||(o={}))[i.LEFT=0]="LEFT",i[i.RIGHT=1]="RIGHT",i[i.BOTTOM=2]="BOTTOM",i[i.TOP=3]="TOP",i[i.NEAR=4]="NEAR",i[i.FAR=5]="FAR",function(t){t[t.NEAR_BOTTOM_LEFT=0]="NEAR_BOTTOM_LEFT",t[t.NEAR_BOTTOM_RIGHT=1]="NEAR_BOTTOM_RIGHT",t[t.NEAR_TOP_RIGHT=2]="NEAR_TOP_RIGHT",t[t.NEAR_TOP_LEFT=3]="NEAR_TOP_LEFT",t[t.FAR_BOTTOM_LEFT=4]="FAR_BOTTOM_LEFT",t[t.FAR_BOTTOM_RIGHT=5]="FAR_BOTTOM_RIGHT",t[t.FAR_TOP_RIGHT=6]="FAR_TOP_RIGHT",t[t.FAR_TOP_LEFT=7]="FAR_TOP_LEFT"}(r||(r={})),r.FAR_BOTTOM_RIGHT,r.NEAR_BOTTOM_RIGHT,r.NEAR_BOTTOM_LEFT,r.FAR_BOTTOM_LEFT,r.NEAR_BOTTOM_LEFT,r.NEAR_BOTTOM_RIGHT,r.NEAR_TOP_RIGHT,r.NEAR_TOP_LEFT,r.FAR_BOTTOM_RIGHT,r.FAR_BOTTOM_LEFT,r.FAR_TOP_LEFT,r.FAR_TOP_RIGHT,r.NEAR_BOTTOM_RIGHT,r.FAR_BOTTOM_RIGHT,r.FAR_TOP_RIGHT,r.NEAR_TOP_RIGHT,r.FAR_BOTTOM_LEFT,r.NEAR_BOTTOM_LEFT,r.NEAR_TOP_LEFT,r.FAR_TOP_LEFT,r.FAR_TOP_LEFT,r.NEAR_TOP_LEFT,r.NEAR_TOP_RIGHT,r.FAR_TOP_RIGHT;const A=6;(0,O.fA)(-1,-1,-1,1),(0,O.fA)(1,-1,-1,1),(0,O.fA)(1,1,-1,1),(0,O.fA)(-1,1,-1,1),(0,O.fA)(-1,-1,1,1),(0,O.fA)(1,-1,1,1),(0,O.fA)(1,1,1,1),(0,O.fA)(-1,1,1,1),new _.I(m),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)(),(0,l.vt)();var I,g,p=n(620);class S{get bounds(){return this._root.bounds}get halfSize(){return this._root.halfSize}get root(){return this._root.node}get maximumObjectsPerNode(){return this._maximumObjectsPerNode}get maximumDepth(){return this._maximumDepth}get objectCount(){return this._objectCount}constructor(t,e){this.objectToBoundingSphere=t,this._maximumObjectsPerNode=10,this._maximumDepth=20,this._degenerateObjects=new Set,this._root=new R,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),R.clearPool(),V[0]=null,X.prune(),$.prune()}add(t){const e=Array.from(t);this._grow(e);const n=R.acquire();for(const t of e)++this._objectCount,this._isDegenerate(t)?this._degenerateObjects.add(t):(n.init(this._root),this._add(t,n));R.release(n)}remove(t,e=null){this._objectCount-=t.length;const n=R.acquire();for(const o of t){const t=e??(0,d.h)(this.objectToBoundingSphere(o),K);y(t[3])?(n.init(this._root),v(o,t,n)):this._degenerateObjects.delete(o)}R.release(n),this._shrink()}update(t,e){if(!y(e[3])&&this._isDegenerate(t))return;const n=function(t){return V[0]=t,V}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){const o=(0,E.LV)(t,e);b(this._root,t=>{if(!function(t,e){return D((0,d.a)(e.bounds),2*-e.halfSize,q),D((0,d.a)(e.bounds),2*e.halfSize,k),(0,p.O_)(t.origin,t.direction,q,k)}(o,t))return!1;const e=t.node;return e.terminals.forAll(t=>{this._intersectsObject(o,t)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObject(o,t)&&n(t)}),!0})}forEachAlongRayWithVerticalOffset(t,e,n,o){const r=(0,E.LV)(t,e);b(this._root,t=>{if(!function(t,e,n){return D((0,d.a)(e.bounds),2*-e.halfSize,q),D((0,d.a)(e.bounds),2*e.halfSize,k),n.applyToMinMax(q,k),(0,p.O_)(t.origin,t.direction,q,k)}(r,t,o))return!1;const e=t.node;return e.terminals.forAll(t=>{this._intersectsObjectWithOffset(r,t,o)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObjectWithOffset(r,t,o)&&n(t)}),!0})}forEach(t){b(this._root,e=>{const n=e.node;return n.terminals.forAll(t),null!==n.residents&&n.residents.forAll(t),!0}),this._degenerateObjects.forEach(t)}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}findClosest(t,e,n,o=()=>!0,r=1/0){let i=1/0,s=1/0,a=null;const c=x(t,e),l=c=>{if(--r,!o(c))return;const u=this.objectToBoundingSphere(c);if(!N(n,u))return;const l=w(t,e,(0,d.a)(u)),h=l-u[3],f=l+u[3];h<i&&(i=h,s=f,a=c)};return M(this._root,o=>{if(r<=0||!N(n,o.bounds))return!1;if((0,u.g)(G,c,o.halfSize),(0,u.f)(G,G,(0,d.a)(o.bounds)),w(t,e,G)>s)return!1;const i=o.node;return i.terminals.forAll(t=>l(t)),null!==i.residents&&i.residents.forAll(t=>l(t)),!0},t,e),a}forEachInDepthRange(t,e,n,o,r,i,s){let a=-1/0,c=1/0;const l={setRange:t=>{n===S.DepthOrder.FRONT_TO_BACK?(a=Math.max(a,t.near),c=Math.min(c,t.far)):(a=Math.max(a,-t.far),c=Math.min(c,-t.near))}};l.setRange(o);const h=w(e,n,t),f=x(e,n),T=x(e,-n),_=t=>{if(!s(t))return;const o=this.objectToBoundingSphere(t),u=(0,d.a)(o),f=w(e,n,u)-h,T=f-o[3],_=f+o[3];T>c||_<a||!N(i,o)||r(t,l)};M(this._root,t=>{if(!N(i,t.bounds))return!1;if((0,u.g)(G,f,t.halfSize),(0,u.f)(G,G,(0,d.a)(t.bounds)),w(e,n,G)-h>c)return!1;if((0,u.g)(G,T,t.halfSize),(0,u.f)(G,G,(0,d.a)(t.bounds)),w(e,n,G)-h<a)return!1;const o=t.node;return o.terminals.forAll(t=>_(t)),null!==o.residents&&o.residents.forAll(t=>_(t)),!0},e,n)}forEachNode(t){b(this._root,e=>t(e.node,e.bounds,e.halfSize,e.depth))}forEachNeighbor(t,e){const n=(0,d.g)(e),o=(0,d.a)(e),r=e=>{const r=this.objectToBoundingSphere(e),i=(0,d.g)(r),s=n+i;return!((0,u.s)((0,d.a)(r),o)-s*s<=0)||t(e)};let i=!0;const s=t=>{i&&(i=r(t))};b(this._root,t=>{const e=(0,d.g)(t.bounds),r=n+e;if((0,u.s)((0,d.a)(t.bounds),o)-r*r>0)return!1;const a=t.node;return a.terminals.forAll(s),i&&null!==a.residents&&a.residents.forAll(s),i}),i&&this.forEachDegenerateObject(s)}_intersectsObject(t,e){const n=this.objectToBoundingSphere(e);return!(n[3]>0)||(0,d.k)(n,t)}_intersectsObjectWithOffset(t,e,n){const o=this.objectToBoundingSphere(e);return!(o[3]>0)||(0,d.k)(n.applyToBoundingSphere(o),t)}_add(t,e){e.advanceTo(this.objectToBoundingSphere(t))?e.node.terminals.push(t):(e.node.residents.push(t),e.node.residents.length>this._maximumObjectsPerNode&&e.depth<this._maximumDepth&&this._split(e))}_split(t){const e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){const o=R.acquire().init(t);this._add(e.at(n),o),R.release(o)}}_grow(t){if(B(t,t=>this.objectToBoundingSphere(t),W),y(W[3])&&!this._fitsInsideTree(W))if(L(this._root.node))(0,d.h)(W,this._root.bounds),this._root.halfSize=1.25*this._root.bounds[3],this._root.updateBoundsRadiusFromHalfSize();else{const t=this._rootBoundsForRootAsSubNode(W);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(W,t):this._growRootAsSubNode(t),R.release(t)}}_rebuildTree(t,e){(0,u.c)((0,d.a)(Y),(0,d.a)(e.bounds)),Y[3]=e.halfSize,B([t,Y],t=>t,J);const n=R.acquire().init(this._root);this._root.initFrom(null,J,J[3]),this._root.increaseHalfSize(1.25),b(n,t=>(this.add(t.node.terminals.data),null!==t.node.residents&&this.add(t.node.residents.data),!0)),R.release(n)}_placingRootViolatesMaxDepth(t){const e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E;let n=0;return b(this._root,t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth)),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){const e=t[3],n=t;let o=-1/0;const r=this._root.bounds,i=this._root.halfSize;for(let t=0;t<3;t++){const s=r[t]-i-(n[t]-e),a=n[t]+e-(r[t]+i),c=Math.max(0,Math.ceil(s/(2*i))),u=Math.max(0,Math.ceil(a/(2*i)))+1,l=2**Math.ceil(Math.log(c+u)*Math.LOG2E);o=Math.max(o,l),Z[t].min=c,Z[t].max=u}for(let t=0;t<3;t++){let e=Z[t].min,n=Z[t].max;const s=(o-(e+n))/2;e+=Math.ceil(s),n+=Math.floor(s);const a=r[t]-i-e*i*2;H[t]=a+(n+e)*i}const s=o*i;return H[3]=s*z,R.acquire().initFrom(null,H,s,0)}_growRootAsSubNode(t){const e=this._root.node;(0,u.c)((0,d.a)(W),(0,d.a)(this._root.bounds)),W[3]=this._root.halfSize,this._root.init(t),t.advanceTo(W,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){const t=this._findShrinkIndex();if(-1===t)break;this._root.advance(t),this._root.depth=0}}_findShrinkIndex(){if(0!==this._root.node.terminals.length||this._root.isLeaf())return-1;let t=null;const e=this._root.node.children;let n=0,o=0;for(;o<e.length&&null==t;)n=o++,t=e[n];for(;o<e.length;)if(e[o++])return-1;return n}_isDegenerate(t){return!y(this.objectToBoundingSphere(t)[3])}_fitsInsideTree(t){const e=this._root.bounds,n=this._root.halfSize;return t[3]<=n&&t[0]>=e[0]-n&&t[0]<=e[0]+n&&t[1]>=e[1]-n&&t[1]<=e[1]+n&&t[2]>=e[2]-n&&t[2]<=e[2]+n}toJSON(){const{maximumDepth:t,maximumObjectsPerNode:e,_objectCount:n}=this,o=this._nodeToJSON(this._root.node);return{maximumDepth:t,maximumObjectsPerNode:e,objectCount:n,root:{bounds:this._root.bounds,halfSize:this._root.halfSize,depth:this._root.depth,node:o}}}_nodeToJSON(t){const e=t.children.map(t=>t?this._nodeToJSON(t):null),n=t.residents?.map(t=>this.objectToBoundingSphere(t)),o=t.terminals?.map(t=>this.objectToBoundingSphere(t));return{children:e,residents:n,terminals:o}}static fromJSON(t){const e=new S(t=>t,{maximumDepth:t.maximumDepth,maximumObjectsPerNode:t.maximumObjectsPerNode});return e._objectCount=t.objectCount,e._root.initFrom(t.root.node,t.root.bounds,t.root.halfSize,t.root.depth),e}}class R{constructor(){this.bounds=(0,d.c)(),this.halfSize=0,this.initFrom(null,null,0,0)}init(t){return this.initFrom(t.node,t.bounds,t.halfSize,t.depth)}initFrom(t,e,n,o=this.depth){return this.node=null!=t?t:R.createEmptyNode(),e&&(0,d.h)(e,this.bounds),this.halfSize=n,this.depth=o,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds[3]=this.halfSize*z}advance(t){let e=this.node.children[t];e||(e=R.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;const n=U[t];return this.bounds[0]+=n[0]*this.halfSize,this.bounds[1]+=n[1]*this.halfSize,this.bounds[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e&&e(this,-1),!0;if(this.isLeaf()){if(!n)return e&&e(this,-1),!1;this.node.residents=null}const o=this._childIndex(t);e&&e(this,o),this.advance(o)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t[3]>this.halfSize/2}_childIndex(t){const e=this.bounds;return(e[0]<t[0]?1:0)+(e[1]<t[1]?2:0)+(e[2]<t[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new T.A({shrink:!0}),residents:new T.A({shrink:!0})}}static{this._pool=new f.A(R)}static acquire(){return R._pool.acquire()}static release(t){R._pool.release(t)}static clearPool(){R._pool.prune()}}function b(t,e){let n=R.acquire().init(t);const o=[n];for(;0!==o.length;){if(n=o.pop(),e(n)&&!n.isLeaf())for(let t=0;t<n.node.children.length;t++)n.node.children[t]&&o.push(R.acquire().init(n).advance(t));R.release(n)}}function M(t,e,n,o=S.DepthOrder.FRONT_TO_BACK){let r=R.acquire().init(t);const i=[r];for(function(t,e,n){if(!$.length)for(let t=0;t<8;++t)$.push({index:0,distance:0});for(let n=0;n<8;++n){const o=U[n];$.data[n].index=n,$.data[n].distance=w(t,e,o)}$.sort((t,e)=>t.distance-e.distance);for(let t=0;t<8;++t)n[t]=$.data[t].index}(n,o,Q);0!==i.length;){if(r=i.pop(),e(r)&&!r.isLeaf())for(let t=7;t>=0;--t){const e=Q[t];r.node.children[e]&&i.push(R.acquire().init(r).advance(e))}R.release(r)}}function v(t,e,n){X.clear();const o=n.advanceTo(e,(t,e)=>{X.push(t.node),X.push(e)})?n.node.terminals:n.node.residents;if(o.removeUnordered(t),0===o.length)for(let t=X.length-2;t>=0&&F(X.data[t],X.data[t+1]);t-=2);}function F(t,e){return e>=0&&(t.children[e]=null),!!L(t)&&(null===t.residents&&(t.residents=new T.A({shrink:!0})),!0)}function L(t){if(0!==t.terminals.length)return!1;if(null!==t.residents)return 0===t.residents.length;for(let e=0;e<t.children.length;e++)if(t.children[e])return!1;return!0}function P(t,e){t[0]=Math.min(t[0],e[0]-e[3]),t[1]=Math.min(t[1],e[1]-e[3]),t[2]=Math.min(t[2],e[2]-e[3])}function C(t,e){t[0]=Math.max(t[0],e[0]+e[3]),t[1]=Math.max(t[1],e[1]+e[3]),t[2]=Math.max(t[2],e[2]+e[3])}function D(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function B(t,e,n){q[0]=1/0,q[1]=1/0,q[2]=1/0,k[0]=-1/0,k[1]=-1/0,k[2]=-1/0;for(const n of t){const t=e(n);y(t[3])&&(P(q,t),C(k,t))}(0,u.m)((0,d.a)(n),q,k,.5),n[3]=Math.max(k[0]-q[0],k[1]-q[1],k[2]-q[2])/2}function x(t,e){let n,o=1/0;for(let r=0;r<8;++r){const i=w(t,e,j[r]);i<o&&(o=i,n=j[r])}return n}function w(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function y(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}I=S||(S={}),(g=I.DepthOrder||(I.DepthOrder={}))[g.FRONT_TO_BACK=1]="FRONT_TO_BACK",g[g.BACK_TO_FRONT=-1]="BACK_TO_FRONT";const U=[(0,l.fA)(-1,-1,-1),(0,l.fA)(1,-1,-1),(0,l.fA)(-1,1,-1),(0,l.fA)(1,1,-1),(0,l.fA)(-1,-1,1),(0,l.fA)(1,-1,1),(0,l.fA)(-1,1,1),(0,l.fA)(1,1,1)],j=[(0,l.fA)(-1,-1,-1),(0,l.fA)(-1,-1,1),(0,l.fA)(-1,1,-1),(0,l.fA)(-1,1,1),(0,l.fA)(1,-1,-1),(0,l.fA)(1,-1,1),(0,l.fA)(1,1,-1),(0,l.fA)(1,1,1)],z=Math.sqrt(3),V=[null],H=(0,d.c)(),G=(0,l.vt)(),q=(0,l.vt)(),k=(0,l.vt)(),X=new T.A,K=(0,d.c)(),W=(0,d.c)(),Y=(0,d.c)(),J=(0,d.c)(),Z=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],$=new T.A,Q=[0,0,0,0,0,0,0,0];var tt=n(431);function et(t,e,n){const o=(0,d.c)(),r=(0,d.a)(o);return(0,u.b)(r,r,t,.5),(0,u.b)(r,r,e,.5),o[3]=(0,u.j)(r,t),(0,u.f)(r,r,n),o}let nt=class{constructor(){this._idToComponent=new Map,this._components=new S(t=>t.bounds),this._edges=new S(t=>t.bounds),this._tmpLineSegment=(0,h.vt)(),this._tmpP1=(0,l.vt)(),this._tmpP2=(0,l.vt)(),this._tmpP3=(0,l.vt)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,a.Te)(e),await this._ensureEdgeLocations(t,e);const n=[];return this._edges.forEachNeighbor(e=>(this._addCandidates(t,e,n),n.length<1e3),t.bounds),{result:{candidates:n}}}async _ensureEdgeLocations(t,e){const n=[];if(this._components.forEachNeighbor(t=>{if(null==t.info){const{id:e,uid:o}=t;n.push({id:e,uid:o})}return!0},t.bounds),!n.length)return;const o={components:n},r=await this.remoteClient.invoke("fetchAllEdgeLocations",o,e??{});for(const t of r.components)this._setFetchEdgeLocations(t)}async add(t){const e=new it(t.id,t.bounds);return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){const e=this._idToComponent.get(t.id);if(e){const t=[];this._edges.forEachNeighbor(n=>(n.component===e&&t.push(n),!0),e.bounds),this._edges.remove(t),this._components.remove([e]),this._idToComponent.delete(e.id)}return{result:{}}}_setFetchEdgeLocations(t){const e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;const n=tt.HY.createView(t.locations),o=new Array(n.count),r=(0,l.vt)(),i=(0,l.vt)();for(let s=0;s<n.count;s++){n.position0.getVec(s,r),n.position1.getVec(s,i);const a=et(r,i,t.origin),c=new st(e,s,a);o[s]=c}this._edges.add(o);const{objectIds:s,origin:a}=t;e.info={locations:n,objectIds:s,origin:a}}_addCandidates(t,e,n){const{info:o}=e.component,{origin:r,objectIds:i}=o,s=o.locations,a=s.position0.getVec(e.index,this._tmpP1),c=s.position1.getVec(e.index,this._tmpP2);(0,u.f)(a,a,r),(0,u.f)(c,c,r);const l=i[s.componentIndex.get(e.index)];this._addEdgeCandidate(t,l,a,c,n),rt(t,l,a,n),rt(t,l,c,n)}_addEdgeCandidate(t,e,n,o,r){if(!t.returnEdge)return;const i=(0,d.a)(t.bounds),s=(0,h.Cr)(n,o,this._tmpLineSegment),a=(0,h._I)(s,i,this._tmpP3);(0,d.o)(t.bounds,a)&&r.push({type:"edge",objectId:e,target:(0,l.o8)(a),distance:(0,u.j)(i,a),start:(0,l.o8)(n),end:(0,l.o8)(o)})}};nt=(0,s._)([(0,c.$)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],nt);const ot=nt;function rt(t,e,n,o){if(!t.returnVertex||!(0,d.o)(t.bounds,n))return;const r=(0,d.a)(t.bounds);o.push({type:"vertex",objectId:e,target:(0,l.o8)(n),distance:(0,u.j)(r,n)})}class it{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=++it.uid}static{this.uid=0}}class st{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}},34727:(t,e,n)=>{n.d(e,{$8:()=>g,Cc:()=>s,Hx:()=>_,Io:()=>I,KJ:()=>u,Sp:()=>d,XM:()=>l,YN:()=>h,ZH:()=>T,cU:()=>r,gg:()=>f,hs:()=>a,kU:()=>c,or:()=>S,pF:()=>b,pq:()=>R,qE:()=>i});const o=new Float32Array(1);function r(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function i(t,e,n){return Math.min(Math.max(t,e),n)}function s(t,e,n){return t+(e-t)*n}function a(t,e,n,o,r){return s(o,r,(t-e)/(n-e))}function c(t){return t*Math.PI/180}function u(t){return 180*t/Math.PI}function l(t){return Math.acos(i(t,-1,1))}function h(t){return Math.asin(i(t,-1,1))}function d(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}function f(t,e,n=1e-6){return!d(t,e,n)&&t>e}function T(t,e,n=1e-6){return!d(t,e,n)&&t<e}function _(t,e,n=1e-6){return d(t,e,n)||t>e}const O=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function E(t){return O.setFloat64(0,t),O.getBigInt64(0)}const m=BigInt("1000000"),N=A(1);function A(t){const e=E(t=Math.abs(t)),n=function(t){return O.setBigInt64(0,t),O.getFloat64(0)}(e<=m?m:e-m);return Math.abs(t-n)}function I(t,e,n=N){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&A(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;const o=E(t),r=E(e);return o<0==r<0&&!((o<r?r-o:o-r)>m)}function g(t){return p(Math.max(-R,Math.min(t,R)))}function p(t){return o[0]=t,o[0]}function S(t){const e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],o=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(d(e,1)&&d(n,1)&&d(o,1))}const R=p(34028234663852886e22);function b(t,e,n){if(void 0===n||0===+n)return Math[t](e);if(e=+e,n=+n,isNaN(e)||"number"!=typeof n||n%1!=0)return NaN;let o=e.toString().split("e");return o=(e=Math[t](+(o[0]+"e"+(o[1]?+o[1]-n:-n)))).toString().split("e"),+(o[0]+"e"+(o[1]?+o[1]+n:n))}},46540:(t,e,n)=>{var o;n.d(e,{r:()=>o}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.UVI="uvi",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.ROTATION="rotation",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.NEXTDELTA="nextDelta",t.PREVIOUSDELTA="previousDelta",t.U0="u0",t.LINEPARAMETERS="lineParameters",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.PROFILEAUXDATA="profileAuxData",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.START_UP="startUp",t.END_UP="endUp",t.EXTRUDE="extrude",t.OLIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(o||(o={}))},74038:(t,e,n)=>{n.d(e,{_:()=>o});class o{constructor(t,e,n,o,r,i=!1,s=0){this.name=t,this.count=e,this.type=n,this.offset=o,this.stride=r,this.normalized=i,this.divisor=s}}},88582:(t,e,n)=>{var o;n.d(e,{_:()=>o}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(o||(o={}))},91869:(t,e,n)=>{function o(t,e){for(const n of t.values())if(e(n))return!0;return!1}function r(t,e,n){const o=t.get(e);if(void 0!==o)return o;const r=n();return t.set(e,r),r}function i(t){const e=new Map;return n=>(e.has(n)||e.set(n,t(n)),e.get(n))}n.d(e,{Bj:()=>i,Bs:()=>o,tE:()=>r})},93406:(t,e,n)=>{n.d(e,{K:()=>c});var o=n(34727),r=n(3694),i=n(38954),s=n(51850);const a=-1;function c(t,e,n){const o=t.vertices.position,r=t.vertices.componentIndex,s=_.position0,c=_.position1,h=_.faceNormal0,f=_.faceNormal1,{edges:T,normals:O}=l(t),E=T.length/4,m=e.allocate(E);let N=0;const A=E,p=n?.allocate(A);let R=0,b=0,M=0;d.length=0;for(let t=0;t<E;++t){const e=4*t;o.getVec(T.data[e],s),o.getVec(T.data[e+1],c);const n=d.pushNew();n.index=4*t,n.length=(0,i.j)(s,c)}d.sort((t,e)=>e.length-t.length);const v=new Array,F=new Array;d.forAll(({length:t,index:l})=>{const d=T.data[l],E=T.data[l+1],A=T.data[l+2],L=T.data[l+3],P=L===a;if(o.getVec(d,s),o.getVec(E,c),P){const t=3*A;(0,i.i)(h,O.data[t],O.data[t+1],O.data[t+2]),(0,i.c)(f,h),_.componentIndex=r.get(d),_.cosAngle=(0,i.e)(h,f)}else{let t=3*A;if((0,i.i)(h,O.data[t],O.data[t+1],O.data[t+2]),t=3*L,(0,i.i)(f,O.data[t],O.data[t+1],O.data[t+2]),_.componentIndex=r.get(d),_.cosAngle=(0,i.e)(h,f),function(t,e){return t.cosAngle>e}(_,g))return;_.cosAngle<-.9999&&(0,i.c)(f,h)}b+=t,M++,P||function(t,e){return t.cosAngle<e}(_,S)?(e.write(m,N++,_),v.push(t)):u(_,I)&&(p&&n&&n.write(p,R++,_),F.push(t))});const L=new Float32Array(v.reverse()),P=new Float32Array(F.reverse()),C=p&&n?{instancesData:p.slice(0,R),lodInfo:{lengths:P}}:void 0;return{regular:{instancesData:m.slice(0,N),lodInfo:{lengths:L}},silhouette:C,averageEdgeLength:b/M}}function u(t,e){const n=(0,o.XM)(t.cosAngle);return(0,i.E)(E,t.position1,t.position0),n*((0,i.e)((0,i.h)(O,t.faceNormal0,t.faceNormal1),E)>0?-1:1)>e}function l(t){const e=t.faces.length/3,n=t.faces,o=t.neighbors,r=t.vertices.position;f.length=T.length=0;for(let t=0;t<e;t++){const e=3*t,s=o[e],c=o[e+1],u=o[e+2],l=n[e],h=n[e+1],d=n[e+2];r.getVec(l,m),r.getVec(h,N),r.getVec(d,A),(0,i.d)(N,N,m),(0,i.d)(A,A,m),(0,i.h)(m,N,A),(0,i.n)(m,m),T.pushArray(m),(s===a||l<h)&&(f.push(l),f.push(h),f.push(t),f.push(s)),(c===a||h<d)&&(f.push(h),f.push(d),f.push(t),f.push(c)),(u===a||d<l)&&(f.push(d),f.push(l),f.push(t),f.push(u))}return{edges:f,normals:T}}class h{constructor(){this.index=0,this.length=0}}const d=new r.A({allocator:t=>t||new h,deallocator:null}),f=new r.A({deallocator:null}),T=new r.A({deallocator:null}),_=new class{constructor(){this.position0=(0,s.vt)(),this.position1=(0,s.vt)(),this.faceNormal0=(0,s.vt)(),this.faceNormal1=(0,s.vt)(),this.componentIndex=0,this.cosAngle=0}},O=(0,s.vt)(),E=(0,s.vt)(),m=(0,s.vt)(),N=(0,s.vt)(),A=(0,s.vt)(),I=(0,o.kU)(4),g=Math.cos(I),p=(0,o.kU)(35),S=Math.cos(p)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[36],{1193:(e,t,n)=>{n.d(t,{H:()=>p});var r,o=n(90237),i=n(25482),s=n(4718),a=n(53966),l=n(10107),u=n(79901),c=n(40608),f=n(31199);let p=r=class extends i.A{constructor(e){super(e),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(e){return(0,f.b)(e,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(e){return e&&e instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,f.b)(e,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(e){return(0,f.b)(e,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(e){return(0,f.b)(e,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(e){return(0,f.b)(e,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clone(){const e={position:(0,s.o8)(this.position),uv:(0,s.o8)(this.uv),normal:(0,s.o8)(this.normal),tangent:(0,s.o8)(this.tangent),color:(0,s.o8)(this.color)};return new r(e)}clonePositional(){const e={position:(0,s.o8)(this.position),normal:(0,s.o8)(this.normal),tangent:(0,s.o8)(this.tangent),uv:this.uv,color:this.color};return new r(e)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"color",void 0),(0,o._)([(0,u.w)("color")],p.prototype,"castColor",null),(0,o._)([(0,l.MZ)({nonNullable:!0,json:{write:f.B}})],p.prototype,"position",void 0),(0,o._)([(0,u.w)("position")],p.prototype,"castPosition",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"uv",void 0),(0,o._)([(0,u.w)("uv")],p.prototype,"castUv",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"normal",void 0),(0,o._)([(0,u.w)("normal")],p.prototype,"castNormal",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"tangent",void 0),(0,o._)([(0,u.w)("tangent")],p.prototype,"castTangent",null),p=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshVertexAttributes")],p)},9318:(e,t,n)=>{n.d(t,{b:()=>i});var r=n(34727),o=n(97146);function i(e,t,n){const i=Array.isArray(e),c=i?e.length/t:e.byteLength/(4*t),f=i?e:new Uint32Array(e,0,c*t),p=n?.minReduction??0,h=n?.originalIndices||null,g=h?h.length:0,y=n?.componentOffsets||null;let d=0;if(y)for(let e=0;e<y.length-1;e++){const t=y[e+1]-y[e];t>d&&(d=t)}else d=c;const m=Math.floor(1.1*d)+1;(null==u||u.length<2*m)&&(u=new Uint32Array((0,r.cU)(2*m)));for(let e=0;e<2*m;e++)u[e]=0;let x=0;const v=!!y&&!!h,A=v?g:c;let w=(0,o.my)(c);const M=new Uint32Array(g),T=1.96;let b=0!==p?Math.ceil(4*T*T/(p*p)*p*(1-p)):A,_=1,S=y?y[1]:A;for(let e=0;e<A;e++){if(e===b){const t=1-x/e;if(t+T*Math.sqrt(t*(1-t)/e)<p)return null;b*=2}if(e===S){for(let e=0;e<2*m;e++)u[e]=0;if(h)for(let e=y[_-1];e<y[_];e++)M[e]=w[h[e]];S=y[++_]}const n=v?h[e]:e,r=n*t,o=l(f,r,t);let i=o%m,a=x;for(;0!==u[2*i+1];){if(u[2*i]===o){const e=u[2*i+1]-1;if(s(f,r,e*t,t)){a=w[e];break}}i++,i>=m&&(i-=m)}a===x&&(u[2*i]=o,u[2*i+1]=n+1,x++),w[n]=a}if(0!==p&&1-x/c<p)return null;if(v){for(let e=y[_-1];e<M.length;e++)M[e]=w[h[e]];w=(0,o.uW)(M)}const R=i?new Array(x):new Uint32Array(x*t);x=0;for(let e=0;e<A;e++)w[e]===x&&(a(f,(v?h[e]:e)*t,R,x*t,t),x++);if(h&&!v){const e=new Uint32Array(g);for(let t=0;t<e.length;t++)e[t]=w[h[t]];w=(0,o.uW)(e)}return{buffer:Array.isArray(R)?R:R.buffer,indices:w,uniqueCount:x}}function s(e,t,n,r){for(let o=0;o<r;o++)if(e[t+o]!==e[n+o])return!1;return!0}function a(e,t,n,r,o){for(let i=0;i<o;i++)n[r+i]=e[t+i]}function l(e,t,n){let r=0;for(let o=0;o<n;o++)r=e[t+o]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let u=null},16939:(e,t,n)=>{n.d(t,{A:()=>y});var r,o=n(90237),i=n(25482),s=n(4718),a=n(53966),l=n(10107),u=n(79901),c=n(40608),f=n(56507),p=n(19211),h=n(80882),g=n(31199);let y=r=class extends i.A{static from(e){return(0,f.PZ)(r,e)}constructor(e){super(e),this.faces=null,this.material=null,this.name=void 0,this.shading="source",this.trustSourceNormals=!1}castFaces(e){return(0,g.b)(e,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},a.A.getLogger(this))}castMaterial(e){return(0,f.PZ)(e&&"object"==typeof e&&("metallic"in e||"roughness"in e||"metallicRoughnessTexture"in e)?h.A:p.A,e)}clone(){return new r({faces:(0,s.o8)(this.faces),shading:this.shading,material:(0,s.o8)(this.material),trustSourceNormals:this.trustSourceNormals,name:this.name})}cloneWithDeduplication(e,t){const n={faces:(0,s.o8)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(e,t):null,trustSourceNormals:this.trustSourceNormals,name:this.name};return new r(n)}get memoryUsage(){let e=0;return null!=this.faces&&(e+=this.faces.byteLength),null!=this.material&&(e+=this.material.memoryUsage),e}};(0,o._)([(0,l.MZ)({json:{write:g.B}})],y.prototype,"faces",void 0),(0,o._)([(0,u.w)("faces")],y.prototype,"castFaces",null),(0,o._)([(0,l.MZ)({type:p.A,json:{write:!0}})],y.prototype,"material",void 0),(0,o._)([(0,u.w)("material")],y.prototype,"castMaterial",null),(0,o._)([(0,l.MZ)({json:{write:!0}})],y.prototype,"name",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],y.prototype,"shading",void 0),(0,o._)([(0,l.MZ)({type:Boolean})],y.prototype,"trustSourceNormals",void 0),y=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshComponent")],y)},18251:(e,t,n)=>{n.d(t,{A:()=>c});var r=n(90237),o=n(69540),i=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(93223)),l=n(40608),u=n(51850);let c=class extends(o.A.ClonableMixin(i.A)){constructor(e){super(e),this.type="local",this.origin=(0,u.vt)()}};(0,r._)([(0,a.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r._)([(0,l.$)("esri.geometry.support.MeshLocalVertexSpace")],c)},19211:(e,t,n)=>{n.d(t,{A:()=>f});var r,o=n(90237),i=n(68197),s=n(25482),a=n(10107),l=(n(44208),n(53966),n(87811),n(40608)),u=n(35063),c=n(51147);let f=r=class extends s.A{constructor(e){super(e),this.color=null,this.colorTexture=null,this.colorTextureTransform=null,this.normalTexture=void 0,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const n=null!=e?e.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(t));return null!=e&&e.set(this,o),o}clonePropertiesWithDeduplication(e){return{color:null!=this.color?this.color.clone():null,colorTexture:this.colorTexture?.cloneWithDeduplication(e),normalTexture:this.normalTexture?.cloneWithDeduplication(e),alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided,colorTextureTransform:this.colorTextureTransform?.clone(),normalTextureTransform:this.normalTextureTransform?.clone()}}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let e=0;return e+=null!=this.color?16:0,null!=this.colorTexture&&(e+=this.colorTexture.memoryUsage),e+=null!=this.colorTextureTransform?20:0,null!=this.normalTexture&&(e+=this.normalTexture.memoryUsage),e+=null!=this.normalTextureTransform?20:0,e}};(0,o._)([(0,a.MZ)({type:i.A,json:{write:!0}})],f.prototype,"color",void 0),(0,o._)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"colorTexture",void 0),(0,o._)([(0,a.MZ)({type:c.A,json:{write:!0}})],f.prototype,"colorTextureTransform",void 0),(0,o._)([(0,a.MZ)({type:u.A,json:{write:!0}})],f.prototype,"normalTexture",void 0),(0,o._)([(0,a.MZ)({type:c.A,json:{write:!0}})],f.prototype,"normalTextureTransform",void 0),(0,o._)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaMode",void 0),(0,o._)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"alphaCutoff",void 0),(0,o._)([(0,a.MZ)({nonNullable:!0,json:{write:!0}})],f.prototype,"doubleSided",void 0),f=r=(0,o._)([(0,l.$)("esri.geometry.support.MeshMaterial")],f)},21287:(e,t,n)=>{n.d(t,{M5:()=>f,eV:()=>c});var r=n(78888),o=n(49186),i=n(74887),s=n(84952),a=n(26306);let l=null,u=!0;function c(e,t,n,r){if(!t||!n)throw new Error("Cannot construct image data without dimensions");if(u)try{return new ImageData(e,t,n)}catch(e){u=!1}const o=function(e,t,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(e,t)}(t,n,r);return o.data.set(e,0),o}async function f(e,t){const{arrayBuffer:l,mediaType:u}=await async function(e,t){const n=(0,s.r$)(e);if(n?.isBase64)return{arrayBuffer:(0,a.M)(n.data),mediaType:n.mediaType};const o=await(0,r.A)(e,{responseType:"array-buffer",...t});return{arrayBuffer:o.data,mediaType:o.getHeader?.("Content-Type")??""}}(e,t),c="image/png"===u;if("image/gif"===u){const{isAnimatedGIF:e,parseGif:r}=await n.e(820).then(n.bind(n,10820));if(e(l))return r(l,t)}if(c){const{isAnimatedPNG:e,parseApng:r}=await n.e(2390).then(n.bind(n,22390));if(e(l))return r(l,t)}return async function(e,t){const n=window.URL.createObjectURL(e);try{const{data:e}=await(0,r.A)(n,{...t,responseType:"image"});return e}catch(e){if(!(0,i.zf)(e))throw new o.A("invalid-image",`Could not fetch requested image at ${n}`);throw e}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:u}),t)}},22141:(e,t,n)=>{n.d(t,{$5:()=>M,CN:()=>x,JP:()=>m,KM:()=>b,Mv:()=>S,X4:()=>v,gr:()=>w,qs:()=>T,si:()=>A,xA:()=>_});var r=n(34727),o=n(77690),i=n(29242),s=n(58083),a=n(9093),l=n(38954),u=n(51850),c=n(48353),f=n(9762),p=(n(79258),n(21325)),h=n(28735),g=n(13030),y=n(73354),d=n(65686);const m="Projection may be possible after calling projection.load().";function x(e,t,n,r){e.error(`Failed to project from (wkid:${t.wkid}) to (wkid:${n.wkid}).${r?" ":""}${r}`)}function v(e,t,n,r,o,i){return E(C.TO_PCPF,g.xs.fromTypedArray(e),R.NORMAL,g.Xm.fromTypedArray(t),n,g.Xm.fromTypedArray(r),o,g.xs.fromTypedArray(i))?i:null}function A(e,t,n,r,o,i){return E(C.FROM_PCPF,g.xs.fromTypedArray(e),R.NORMAL,g.Xm.fromTypedArray(t),n,g.Xm.fromTypedArray(r),o,g.xs.fromTypedArray(i))?i:null}function w(e,t,n,r){return(0,f.projectBuffer)(e,t,0,n,r,0)?n:null}function M(e,t,n,r){return(0,f.projectBuffer)(e,t,0,n,r,0)?n:null}function T(e,t,n){return(0,o.Ge)(U,n),(0,y.b)(t,e,U),(0,r.or)(U)&&(0,y.n)(t,t),t}function b(e,t,n){return(0,o.z0)(U,n),(0,d.t)(t,e,U),(0,r.or)(U)&&(0,y.n)(t,t,4),t}function _(e,t,n,r,o,i){if(!E(C.TO_PCPF,g.xs.fromTypedArray(e,4*Float32Array.BYTES_PER_ELEMENT),R.TANGENT,g.Xm.fromTypedArray(t),n,g.Xm.fromTypedArray(r),o,g.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let t=3;t<e.length;t+=4)i[t]=e[t];return i}function S(e,t,n,r,o,i){if(!E(C.FROM_PCPF,g.xs.fromTypedArray(e,16),R.TANGENT,g.Xm.fromTypedArray(t),n,g.Xm.fromTypedArray(r),o,g.xs.fromTypedArray(i,16)))return null;for(let t=3;t<e.length;t+=4)i[t]=e[t];return i}var R,C,N;function B(e,t,n,r,i){switch((0,c.l)(r,n,F,r),e===C.FROM_PCPF&&(0,s.B8)(F,F),t){case R.NORMAL:return(0,o.Ge)(i,F);case R.TANGENT:return(0,o.z0)(i,F)}}function E(e,t,n,r,o,i,s,a){if(!t)return;const u=r.count;if(function(e){return e.isWGS84||(0,p.x1)(e)||(0,p.q8)(e)||(0,p.KQ)(e)}(o))for(let r=0;r<u;r++)i.getVec(r,Z),t.getVec(r,O),(0,l.o)(O,O,B(e,n,Z,s,U)),a.setVec(r,O);else for(let o=0;o<u;o++){i.getVec(o,Z),t.getVec(o,O);const u=(0,h.jg)(r.get(o,1));let c=Math.cos(u);n===R.TANGENT!=(e===C.TO_PCPF)&&(c=1/c),B(e,n,Z,s,U),e===C.TO_PCPF?(U[0]*=c,U[1]*=c,U[2]*=c,U[3]*=c,U[4]*=c,U[5]*=c):(U[0]*=c,U[3]*=c,U[6]*=c,U[1]*=c,U[4]*=c,U[7]*=c),(0,l.o)(O,O,U),(0,l.n)(O,O),a.setVec(o,O)}return a}(N=R||(R={}))[N.NORMAL=0]="NORMAL",N[N.TANGENT=1]="TANGENT",function(e){e[e.TO_PCPF=0]="TO_PCPF",e[e.FROM_PCPF=1]="FROM_PCPF"}(C||(C={}));const Z=(0,u.vt)(),O=(0,u.vt)(),F=(0,a.vt)(),U=(0,i.vt)()},27615:(e,t,n)=>{n.d(t,{CK:()=>l,Hq:()=>a,MW:()=>u,TE:()=>c,yJ:()=>f});var r=n(38954),o=n(86738),i=n(95696),s=n(18251);function a(e){return null!=e.origin}function l(e){return a(e.vertexSpace)}function u(e,t){if(!a(e))return null;const[n,r,i]=e.origin;return new o.A({x:n,y:r,z:i,spatialReference:t})}function c(e,t){const{x:n,y:r,z:o,spatialReference:a}=e,l=[n,r,o??0];return"local"===(t?.vertexSpace??function(e){return e.isGeographic||e.isWebMercator?"local":"georeferenced"}(a))?new s.A({origin:l}):new i.A({origin:l})}function f(e,t){return e.type===t.type&&(e.origin===t.origin||null!=e.origin&&null!=t.origin&&(0,r.q)(e.origin,t.origin))}},31199:(e,t,n)=>{function r(e,t,n,r){const{loggerTag:o,stride:i}=t;return e.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new n([])):e}function o(e,t,n,o,i){if(!e)return e;if(e instanceof t)return r(e,o,t,i);for(const s of n)if(e instanceof s)return r(new t(e),o,t,i);if(Array.isArray(e))return r(new t(e),o,t,i);{const r=n.map(e=>`'${e.name}'`);return i.error(`Failed to set property, expected one of ${r}, but got ${e.constructor.name}`),new t([])}}function i(e,t,n){t[n]=function(e){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=e[n];return t}(e)}n.d(t,{B:()=>i,b:()=>o})},35063:(e,t,n)=>{n.d(t,{A:()=>y});var r,o=n(90237),i=(n(44208),n(21287)),s=n(25482),a=n(10107),l=n(56507),u=(n(87811),n(36005)),c=n(40608),f=n(43937),p=n(97159);const h=new WeakMap;let g=0,y=class extends s.A{static{r=this}constructor(e){super(e),this.wrap="repeat"}get url(){return this._get("url")||null}set url(e){this._set("url",e),e&&this._set("data",null)}get data(){return this._get("data")||null}set data(e){this._set("data",e),e&&this._set("url",null)}writeData(e,t,n,r){if(e instanceof HTMLImageElement){const o={type:"image-element",src:(0,p.t)(e.src,r),crossOrigin:e.crossOrigin};t[n]=o}else if(e instanceof HTMLCanvasElement){const r={type:"canvas-element",imageData:d(e.getContext("2d").getImageData(0,0,e.width,e.height))};t[n]=r}else if(e instanceof HTMLVideoElement){const o={type:"video-element",src:(0,p.t)(e.src,r),autoplay:e.autoplay,loop:e.loop,muted:e.muted,crossOrigin:e.crossOrigin,preload:e.preload};t[n]=o}else if(e instanceof ImageData){const r={type:"image-data",imageData:d(e)};t[n]=r}}readData(e){switch(e.type){case"image-element":{const t=new Image;return t.src=e.src,t.crossOrigin=e.crossOrigin,t}case"canvas-element":{const t=m(e.imageData),n=document.createElement("canvas");return n.width=t.width,n.height=t.height,n.getContext("2d").putImageData(t,0,0),n}case"image-data":return m(e.imageData);case"video-element":{const t=document.createElement("video");return t.src=e.src,t.crossOrigin=e.crossOrigin,t.autoplay=e.autoplay,t.loop=e.loop,t.muted=e.muted,t.preload=e.preload,t}default:return}}get transparent(){const{data:e,url:t}=this,n=e=>e?.toLowerCase().endsWith(".png")||e?.toLocaleLowerCase().startsWith("data:image/png;");return e instanceof HTMLCanvasElement?x(e.getContext("2d").getImageData(0,0,e.width,e.height)):e instanceof ImageData?x(e):!(!t||!n(t))||!!(e instanceof HTMLImageElement&&n(e.src))}set transparent(e){this._overrideIfSome("transparent",e)}get contentHash(){const e="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",t=(t="")=>`d:${t},t:${this.transparent},w:${e}`;return null!=this.url?t(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?t(this.data.src):(h.has(this.data)||h.set(this.data,++g),t(h.get(this.data))):t()}get memoryUsage(){let e=0;if(e+=null!=this.url?this.url.length:0,null!=this.data){const t=this.data;"data"in t?e+=t.data.byteLength:t instanceof HTMLImageElement?e+=t.naturalWidth*t.naturalHeight*3:t instanceof HTMLCanvasElement&&(e+=t.width*t.height*3)}return e}clone(){const e={url:this.url,data:this.data,transparent:this.transparent,wrap:this._cloneWrap()};return new r(e)}cloneWithDeduplication(e){const t=e.get(this);if(t)return t;const n=this.clone();return e.set(this,n),n}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}static from(e){return"string"==typeof e?new r({url:e}):e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof ImageData||e instanceof HTMLVideoElement?new r({data:e}):(0,l.PZ)(r,e)}};function d(e){let t="";for(let n=0;n<e.data.length;n++)t+=String.fromCharCode(e.data[n]);return{data:btoa(t),width:e.width,height:e.height}}function m(e){const t=atob(e.data),n=new Uint8ClampedArray(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return(0,i.eV)(n,e.width,e.height)}function x(e){for(let t=3;t<e.data.length;t+=4)if(255!==e.data[t])return!0;return!1}(0,o._)([(0,a.MZ)({type:String,json:{write:p.w}})],y.prototype,"url",null),(0,o._)([(0,a.MZ)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,a.MZ)()],y.prototype,"data",null),(0,o._)([(0,f.K)("data")],y.prototype,"writeData",null),(0,o._)([(0,u.w)("data")],y.prototype,"readData",null),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],y.prototype,"transparent",null),(0,o._)([(0,a.MZ)({json:{write:!0}})],y.prototype,"wrap",void 0),(0,o._)([(0,a.MZ)({readOnly:!0})],y.prototype,"contentHash",null),y=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshTexture")],y)},40036:(e,t,n)=>{n.d(t,{default:()=>Ke});var r=n(90237),o=n(49186),i=n(92474),s=n(53966),a=n(61893),l=n(74887),u=n(36708),c=n(10107),f=(n(44208),n(87811),n(40608)),p=n(51850),h=n(91075),g=n(86738),y=n(39829),d=n(70328),m=n(24770),x=n(16939);const v="Expected location to be a Point instance";class A extends o.A{constructor(){super("invalid-input:location",v)}}var w=n(95696),M=n(18251),T=n(73836),b=n(1193),_=n(27615),S=n(83349),R=n(88582),C=n(95108),N=n(4197),B=n(97146),E=n(34727),Z=n(83047),O=n(38954),F=n(240);const U=(0,F.vt)();var L,P,j=n(9318);function D(e,t,n,r){const o=e.length,i=new Array(o),s=new Array(o),a=new Array(o);let l=0;for(let t=0;t<o;++t)l+=e[t].length;let u=0,c=0,f=0;const p=(0,N.jh)(3*l);let h=0;for(let l=o-1;l>=0;l--){const g=e[l],y=n===L.CCW_IS_HOLE&&z(g,t,r);if(y&&1!==o)i[u++]=g;else{let e=g.length;for(let t=0;t<u;++t)e+=i[t].length;const n={index:h,pathLengths:new Array(u+1),count:e,holeIndices:new Array(u)};n.pathLengths[0]=g.length,g.length>0&&(a[f++]={index:h,count:g.length}),h=y?$(g,g.length-1,-1,p,h,g.length,t):$(g,0,1,p,h,g.length,t);for(let e=0;e<u;++e){const r=i[e];n.holeIndices[e]=h,n.pathLengths[e+1]=r.length,r.length>0&&(a[f++]={index:h,count:r.length}),h=$(r,0,1,p,h,r.length,t)}u=0,n.count>0&&(s[c++]=n)}}for(let e=0;e<u;++e){const n=i[e];n.length>0&&(a[f++]={index:h,count:n.length}),h=$(n,0,1,p,h,n.length,t)}return s.length=c,a.length=f,{position:p,polygons:s,outlines:a}}function $(e,t,n,r,o,i,s){o*=3;for(let a=0;a<i;++a){const i=e[t];r[o++]=i[0],r[o++]=i[1],r[o++]=s&&i[2]?i[2]:0,t+=n}return o/3}function z(e,t,n){if(!t)return!(0,C.$3)(e);switch(function(e,t,n){const r=function(e,t,n,r){const o=(e=>!Array.isArray(e[0]))(t)?(e,n)=>t[3*e+n]:(e,n)=>t[e][n],i=r?(0,Z.GA)(r)/(0,Z.G9)(r):1;return(0,F.lU)(e,(e,t)=>(0,O.i)(e,o(t,0)*i,o(t,1)*i,o(t,2)),n)}(U,e,t,n)?(0,F.Qj)(U):[0,0,1];return Math.abs(r[2])>Math.cos((0,E.kU)(80))?R._.Z:Math.abs(r[1])>Math.abs(r[0])?R._.Y:R._.X}(e,e.length-1,n)){case R._.X:return!(0,C.$3)(e,R._.Y,R._.Z);case R._.Y:return!(0,C.$3)(e,R._.X,R._.Z);case R._.Z:return!(0,C.$3)(e,R._.X,R._.Y)}}(P=L||(L={}))[P.NONE=0]="NONE",P[P.CCW_IS_HOLE=1]="CCW_IS_HOLE";var I=n(65806),W=n(51447);function G(e,t,n,r){if(void 0!==r){(0,W.io)(e(),"option: geographic",{replacement:"Use mesh `vertexSpace` and spatial reference to control how operations are performed instead.",version:"4.30",warnOnce:!0});const o="local"===t.type;if(!(0,_.Hq)(t)||r===o)return n.isGeographic||n.isWebMercator&&r;e().warnOnce(`Specifying the 'geographic' parameter (${r}) for a Mesh vertex space of type "${t.type}" is not supported. This parameter will be ignored.`)}switch(t.type){case"georeferenced":return n.isGeographic;case"local":return n.isGeographic||n.isWebMercator}}var H=n(22141),V=n(72258);const q=()=>s.A.getLogger("esri.geometry.support.meshUtils.centerAt");const k=(0,p.vt)(),X=(0,p.vt)(),K=(0,p.vt)();var Y=n(9093),J=n(5443),Q=n(98988),ee=n(98764),te=n(48353),ne=n(9762),re=n(73354);const oe=(0,Y.vt)(),ie=(0,N.jh)(24);var se=n(21818),ae=n(84952);function le(e){const t=(0,ae.nM)(e.url);return n=>{const r=(0,ae.V1)(n,t,t),o=r?r.replace(/^ *\.\//,""):null;return(o?e.files.get(o):null)??n}}function ue(e){return de.fromBlob(e,me(e.name,e.type))}const ce=/^model\/gltf\+json$/,fe=/^model\/gltf-binary$/,pe=/\.gltf$/i,he=/\.glb$/i;function ge({mimeType:e,source:t,name:n}){return ce.test(e)||pe.test(n)?{url:t.url,type:"gltf"}:fe.test(e)||he.test(n)?{url:t.url,type:"glb"}:null}function ye(e){const t=new Map;let n=null,r=null;for(const o of e){const{source:e,name:i}=o;n??=ge(o),"ESRI3DO_NORM.glb"===i&&(r=ge(o)),t.set(i,e.url),e.files.forEach((e,n)=>t.set(n,e))}const i=r??n;if(null==i)throw new o.A("mesh-load-external:missing-files","Missing files to load external mesh source");return new de(i.url,()=>e.forEach(({source:e})=>e.dispose()),t,i.type)}class de{constructor(e,t=()=>{},n=new Map,r){this.url=e,this.dispose=t,this.files=n,this.type=r}static fromBlob(e,t){const n=URL.createObjectURL(e);return new de(n,()=>URL.revokeObjectURL(n),void 0,t)}}function me(e,t){return ce.test(t)||pe.test(e)?"gltf":fe.test(t)||pe.test(e)?"glb":void 0}var xe=n(69540),ve=n(5503),Ae=n(63579);let we=class extends xe.A{constructor(e){super(e),this.externalSources=new ve.A,this._explicitDisplaySource=null,this.georeferenced=!1,this.addHandles((0,u.on)(()=>this.externalSources,"after-remove",({item:e})=>{e===this._explicitDisplaySource&&(this._explicitDisplaySource=null)},{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(e){if(null!=e&&!(0,Ae.yr)(e))throw new Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=e,e&&this.externalSources.every(t=>!(0,Ae.in)(t,e))&&this.externalSources.add(e)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(e){return this.externalSources.items.filter(t=>(0,Ae.eN)(t,e))}get _implicitDisplaySource(){return this.externalSources.find(Ae.yr)}};(0,r._)([(0,c.MZ)()],we.prototype,"externalSources",void 0),(0,r._)([(0,c.MZ)()],we.prototype,"displaySource",null),(0,r._)([(0,c.MZ)()],we.prototype,"_implicitDisplaySource",null),(0,r._)([(0,c.MZ)()],we.prototype,"_explicitDisplaySource",void 0),(0,r._)([(0,c.MZ)()],we.prototype,"georeferenced",void 0),we=(0,r._)([(0,f.$)("esri.geometry.support.meshUtils.Metadata")],we);var Me=n(29242);const Te={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function be(e,t,n){e.isPlane||function(e){for(let t=0;t<e.position.length;t+=3)e.position[t+2]+=.5}(e),function(e,t){if(null!=t){Ce[0]=t[0],Ce[4]=t[1],Ce[8]=t[2];for(let t=0;t<e.position.length;t+=3){for(let n=0;n<3;n++)Re[n]=e.position[t+n];(0,O.o)(Re,Re,Ce);for(let n=0;n<3;n++)e.position[t+n]=Re[n]}if(t[0]!==t[1]||t[1]!==t[2]){Ce[0]=1/t[0],Ce[4]=1/t[1],Ce[8]=1/t[2];for(let t=0;t<e.normal.length;t+=3){for(let n=0;n<3;n++)Re[n]=e.normal[t+n];(0,O.o)(Re,Re,Ce),(0,O.n)(Re,Re);for(let n=0;n<3;n++)e.normal[t+n]=Re[n]}}}}(e,function(e,t,n){const r=(0,V.xK)(t,n);if(null==e&&1===r)return null;if(null==e)return[r,r,r];if("number"==typeof e){const t=e*r;return[t,t,t]}return[null!=e.width?e.width*r:r,null!=e.depth?e.depth*r:r,null!=e.height?e.height*r:r]}(n?.size,n?.unit,t.spatialReference));const r=(0,_.TE)(t,n),o=t.spatialReference.isGeographic?(0,_.TE)(t):r,i=(0,V.UR)({vertexAttributes:e,vertexSpace:o,spatialReference:t.spatialReference},r,{allowBufferReuse:!0});return{vertexAttributes:new b.H({...i,uv:e.uv}),vertexSpace:r,components:[new x.A({faces:e.faces,material:n?.material||null})],spatialReference:t.spatialReference}}const _e={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},Se={south:0,east:1,north:2,west:3,up:4,down:5},Re=(0,p.vt)(),Ce=(0,Me.vt)();var Ne=n(77690),Be=n(58083),Ee=n(67026),Ze=n(82534);const Oe=()=>s.A.getLogger("esri.geometry.support.meshUtils.rotate");function Fe(e,t,n,r=p.uY){if(null!=e){(0,Be.$0)(je,(0,m.$I)(t),(0,m.yo)(t));for(let t=0;t<e.length;t+=n){for(let n=0;n<3;n++)Ue[n]=e[t+n]-r[n];(0,O.t)(Ue,Ue,je);for(let n=0;n<3;n++)e[t+n]=Ue[n]+r[n]}}}const Ue=(0,p.vt)(),Le=(0,Y.vt)(),Pe=(0,m.vt)(),je=(0,Y.vt)(),De=(0,Me.vt)(),$e=(0,p.vt)(),ze=(0,Ze.vt)(),Ie=()=>s.A.getLogger("esri.geometry.support.meshUtils.scale");function We(e,t,n=p.uY){if(e)for(let r=0;r<e.length;r+=3){for(let t=0;t<3;t++)Ge[t]=e[r+t]-n[t];(0,O.g)(Ge,Ge,t);for(let t=0;t<3;t++)e[r+t]=Ge[t]+n[t]}}const Ge=(0,p.vt)(),He=(0,p.vt)(),Ve=(0,Y.vt)(),qe=(0,p.vt)();var ke;const Xe={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:w.A,local:M.A}};let Ke=ke=class extends(i.A.LoadableMixin(a.A.EsriPromiseMixin(h.A))){constructor(e){super(e),this.components=null,this.vertexSpace=new w.A,this.transform=null,this.metadata=new we,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new b.H,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when(()=>{this.addHandles((0,u.wB)(()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map(e=>e.clone())}),()=>this._clearSources(),{once:!0,sync:!0}))})}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){const{spatialReference:e,vertexSpace:t}=this,n=this;return function(e){const{spatialReference:t,vertexSpace:n,untransformedBounds:r}=e,o=(0,d.gE)(r,ie);if((0,_.Hq)(n)&&e.transform&&(0,re.t)(o,o,e.transform.localMatrix),"georeferenced"===n.type){const e=n.origin;return e&&(0,re.a)(o,o,e),(0,d.w1)((0,d.vY)(o),t)}const i=(0,ee.lO)(t),s=n.origin;if(!(0,Q.canProjectWithoutEngine)(i,t)){const[e,n,r]=s;return new J.A({xmin:e,ymin:n,zmin:r,xmax:e,ymax:n,zmax:r,spatialReference:t})}return(0,te.l)(t,s,oe,i),(0,re.t)(o,o,oe),(0,ne.projectBuffer)(o,i,0,o,t,0),(0,d.w1)((0,d.vY)(o),t)}({get transform(){return n.transform},vertexSpace:t,spatialReference:e,untransformedBounds:this._untransformedBounds})}get _untransformedBounds(){const{vertexAttributes:{position:e},components:t}=this;return 0===e.length||0===t?.length?(0,d.vt)(d.v_):(0,d.vY)(e)}get origin(){const e=(0,_.MW)(this.vertexSpace,this.spatialReference);if(null!=e)return e;const{center:t,zmin:n}=this._transformedExtent;return new g.A({x:t.x,y:t.y,z:n,spatialReference:this.spatialReference})}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(e){this._checkIfLoaded("addComponent()")&&(this.components||(this.components=[]),this.components.push(x.A.from(e)),this.notifyChange("components"))}removeComponent(e){if(this._checkIfLoaded("removeComponent()")){if(this.components){const t=this.components.indexOf(e);if(-1!==t)return this.components.splice(t,1),void this.notifyChange("components")}s.A.getLogger(this).error("removeComponent()","Provided component is not part of the list of components")}}rotate(e,t,n,r){return(0,m.AU)(e,t,n,Ye),function(e,t,n){if(!e.vertexAttributes?.position||0===t[3])return;const{spatialReference:r,vertexSpace:o}=e,i=n?.origin??e.origin,s=n?.geographic,a=G(Oe,o,r,s);(0,_.CK)(e)?function(e,t,n){e.transform??=new T.A;const{vertexSpace:r,transform:o,spatialReference:i}=e,[s,a,l]=r.origin,u=new g.A({x:s,y:a,z:l,spatialReference:i}),c=Ue;if(u.equals(n))(0,O.i)(c,0,0,0);else if(!(0,V.p5)(c,n,e))return void(0,H.CN)(Oe(),n.spatialReference,i,H.JP);(0,Ee.x8)(ze,(0,m.yo)(t),(0,m.$I)(t));const f=(0,Be.O7)(Le,ze,p.uY,p.Un,c),{localMatrix:h}=o,y=(0,Be.lw)(Le,f,h);o.scale=(0,Be.X_)((0,p.vt)(),y),(0,Be.hs)(y,y,(0,O.r)(Ue,o.scale));const d=o.rotationAxis;o.rotation=(0,m.ui)(y),0===o.rotationAngle&&(o.rotationAxis=d),o.translation=(0,Be.sC)((0,p.vt)(),y)}(e,t,i):a?function(e,t,n){const r=e.spatialReference,o=(0,ee.lO)(r),i=$e;if(!(0,I.g)(n,i,o)&&((0,H.CN)(Oe(),n.spatialReference,o,"Falling back to mesh origin"),!(0,I.g)(e.origin,i,o)))return void(0,H.CN)(Oe(),e.origin.spatialReference,o);const s=e.vertexAttributes.position,a=e.vertexAttributes.normal,l=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null!=a?new Float32Array(a.length):null,f=null!=l?new Float32Array(l.length):null;(0,te.l)(o,i,je,o),(0,Ne.z0)(De,je);const p=Pe;(0,O.o)((0,m.yo)(Pe),(0,m.yo)(t),De),p[3]=t[3],!(0,H.gr)(s,r,u,o)||null!=a&&null!=c&&!(0,H.X4)(a,s,r,u,o,c)||null!=l&&null!=f&&!(0,H.xA)(l,s,r,u,o,f)?(0,H.CN)(Oe(),r,o):(Fe(u,p,3,i),!(0,H.$5)(u,o,s,r)||null!=a&&null!=c&&(Fe(c,p,3),!(0,H.si)(c,s,r,u,o,a))||null!=l&&null!=f&&(Fe(f,p,4),!(0,H.Mv)(f,s,r,u,o,l))?(0,H.CN)(Oe(),o,r):e.vertexAttributesChanged())}(e,t,i):function(e,t,n){const r=$e;if(!(0,I.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,H.CN)(Oe(),n.spatialReference,e.spatialReference,H.JP)}Fe(e.vertexAttributes.position,t,3,r),Fe(e.vertexAttributes.normal,t,3),Fe(e.vertexAttributes.tangent,t,4),e.vertexAttributesChanged()}(e,t,i)}(this,Ye,r),this}offset(e,t,n){if(!this._checkIfLoaded("offset()"))return this;const{vertexSpace:r,vertexAttributes:o}=this,i=o?.position;if(!i)return this;if((0,_.Hq)(r)){const[o,i,s]=r.origin;r.origin=(0,p.fA)(o+e,i+t,s+n)}else{for(let r=0;r<i.length;r+=3)i[r]+=e,i[r+1]+=t,i[r+2]+=n;this.vertexAttributesChanged()}return this}scale(e,t){return this._checkIfLoaded("scale()")?(function(e,t,n){if(!e.vertexAttributes?.position)return;const{vertexSpace:r,spatialReference:o}=e,i=n?.origin??e.origin,s=n?.geographic,a=G(Ie,r,o,s);(0,_.CK)(e)?function(e,t,n){e.transform??=new T.A;const{vertexSpace:r,transform:o,spatialReference:i}=e,[s,a,l]=r.origin,u=new g.A({x:s,y:a,z:l,spatialReference:i}),c=Ge;if(u.equals(n))(0,O.i)(c,0,0,0);else if(!(0,V.p5)(c,n,e))return void(0,H.CN)(Ie(),n.spatialReference,i,H.JP);const f=(0,O.i)(He,t,t,t),h=(0,Be.O7)(Ve,Ze.zK,p.uY,f,c),{localMatrix:y}=o,d=(0,Be.lw)(Ve,h,y);o.scale=(0,Be.X_)((0,p.vt)(),d),(0,Be.hs)(d,d,(0,O.r)(Ge,o.scale));const x=o.rotationAxis;o.rotation=(0,m.ui)(d),0===o.rotationAngle&&(o.rotationAxis=x),o.translation=(0,Be.sC)((0,p.vt)(),d)}(e,t,i):a?function(e,t,n){const r=e.spatialReference,o=(0,ee.lO)(r),i=qe;if(!(0,I.g)(n,i,o)&&((0,H.CN)(Ie(),n.spatialReference,o,"Falling back to mesh origin"),!(0,I.g)(e.origin,i,o)))return void(0,H.CN)(Ie(),e.origin.spatialReference,o);const s=e.vertexAttributes.position,a=e.vertexAttributes.normal,l=e.vertexAttributes.tangent,u=new Float64Array(s.length),c=null!=a?new Float32Array(a.length):null,f=null!=l?new Float32Array(l.length):null;!(0,H.gr)(s,r,u,o)||null!=a&&null!=c&&!(0,H.X4)(a,s,r,u,o,c)||null!=l&&null!=f&&!(0,H.xA)(l,s,r,u,o,f)?(0,H.CN)(Ie(),r,o):(We(u,t,i),!(0,H.$5)(u,o,s,r)||null!=a&&null!=c&&!(0,H.si)(c,s,r,u,o,a)||null!=l&&null!=f&&!(0,H.Mv)(f,s,r,u,o,l)?(0,H.CN)(Ie(),o,r):e.vertexAttributesChanged())}(e,t,i):function(e,t,n){const r=qe;if(!(0,I.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,H.CN)(Ie(),n.spatialReference,e.spatialReference,H.JP)}We(e.vertexAttributes.position,t,r),e.vertexAttributesChanged()}(e,t,i)}(this,e,t),this):this}centerAt(e,t){return this._checkIfLoaded("centerAt()")?(function(e,t,n){if(!e.vertexAttributes?.position)return;const{vertexSpace:r}=e,o=n?.origin??e.origin,i=G(q,r,o.spatialReference,n?.geographic);(0,_.Hq)(r)?function(e,t,n){const{vertexSpace:r}=e;if(!(0,_.Hq)(r))return;const o=X,i=k;if(!(0,I.g)(t,i,e.spatialReference))return void(0,H.CN)(q(),t.spatialReference,e.spatialReference,H.JP);if(!(0,I.g)(n,o,e.spatialReference)){const t=e.origin;return o[0]=t.x,o[1]=t.y,o[2]=t.z,void(0,H.CN)(q(),n.spatialReference,e.spatialReference,H.JP)}const s=(0,O.d)(K,i,o);r.origin=(0,O.f)((0,p.vt)(),r.origin,s)}(e,t,o):i?function(e,t,n){const r=(0,p.fA)(n.x,n.y,n.z??0),o=(0,V.UR)(e,new M.A({origin:r}));if(!o)return;const i=(0,p.fA)(t.x,t.y,t.z??0),s=(0,V.UR)({vertexAttributes:o,spatialReference:e.spatialReference,vertexSpace:new M.A({origin:i})},w.A.absolute);if(!s)return;const{position:a,normal:l,tangent:u}=s;e.vertexAttributes.position=a,e.vertexAttributes.normal=l,e.vertexAttributes.tangent=u,e.vertexAttributesChanged()}(e,t,o):function(e,t,n){const r=X,o=k;if((0,I.g)(t,o,e.spatialReference)){if(!(0,I.g)(n,r,e.spatialReference)){const t=e.origin;return r[0]=t.x,r[1]=t.y,r[2]=t.z,void(0,H.CN)(q(),n.spatialReference,e.spatialReference,H.JP)}(function(e,t,n){if(e)for(let r=0;r<e.length;r+=3)for(let o=0;o<3;o++)e[r+o]+=t[o]-n[o]})(e.vertexAttributes.position,o,r),e.vertexAttributesChanged()}else(0,H.CN)(q(),t.spatialReference,e.spatialReference,H.JP)}(e,t,o)}(this,e,t),this):this}load(e){const{metadata:{displaySource:t}}=this;return t&&this.addResolvingPromise(async function(e,t,r){switch(t.source.type){case"client":case"service":return async function(e,t,r){const{source:i}=t,{loadGLTFMesh:s}=await(0,l.qr)(Promise.all([n.e(4399),n.e(2282)]).then(n.bind(n,97375)),r),a=await async function(e,t){switch(e.type){case"client":return Array.isArray(e.files)?function(e){if(!e.length)throw new o.A("mesh-load-external:missing-assets","There must be at least one file to load");return ye(e.map(e=>({name:e.name,mimeType:e.type,source:ue(e)})))}(e.files):ue(e.files);case"service":return async function(e,t){if(!e.length)throw new o.A("mesh-load-external:missing-assets","There must be at least one file to load");const n=await(0,l.nA)(e.map(async e=>{const n=await async function(e,t){const{parts:n,assetMimeType:r,assetName:o}=e;if(1===n.length)return new de(n[0].partUrl);const i=await e.toBlob(t);return(0,l.Te)(t),de.fromBlob(i,me(o,r))}(e);return(0,l.Te)(t),{name:e.assetName,mimeType:e.assetMimeType,source:n}}));if((0,l.G4)(t))throw n.forEach(e=>e.source.dispose()),(0,l.NK)();return ye(n)}(e.assets,t);default:throw new o.A("mesh-load-external:invalid-source","Invalid source type")}}(i,r);(0,l.Te)(r);const u=s(new g.A({x:0,y:0,z:0,spatialReference:e.spatialReference}),a.url,{resolveFile:le(a),signal:r?.signal,expectedType:a.type,unitConversionDisabled:t.unitConversionDisabled});u.then(()=>a.dispose(),()=>a.dispose());const{vertexAttributes:c,components:f}=await u;e.vertexAttributes=c,e.components=f}(e,t,r);case"loadable":return t.source.load(e,r);default:(0,se.Xb)(t.source)}}(this,t,e)),Promise.resolve(this)}addExternalSources(e){this.metadata.externalSources.addMany(e)}updateDisplaySource(e){this.metadata.displaySource=e}clone(){return this.cloneAndModifyVertexAttributes(this.vertexAttributes.clone(),this.vertexSpace.clone(),{preserveMetadata:!0})}cloneAndModifyVertexAttributes(e,t,n){let r=null;if(this.components){const e=new Map,t=new Map;r=this.components.map(n=>n.cloneWithDeduplication(e,t))}const o={components:r,spatialReference:this.spatialReference,vertexAttributes:e,vertexSpace:t,transform:this.transform?.clone()??null,metadata:n?.preserveMetadata?this.metadata.clone():new we};return new ke(o)}cloneShallow(){return new ke({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(e){const[{toBinaryGLTF:t}]=await Promise.all([n.e(8096).then(n.bind(n,8096)),this.load(e)]);return(0,l.Te)(e),await t(this,e)}get usedMemory(){return this.components?this.components.reduce((e,t)=>e+t.memoryUsage,this.vertexAttributes.usedMemory):this.vertexAttributes.usedMemory}_clearSources(){this.metadata.clearSources()}_checkIfLoaded(e){return!!this.loaded||(s.A.getLogger(this).error(e,"Mesh must be loaded before applying operations"),!1)}static createBox(e,t){if(!(e instanceof g.A))return s.A.getLogger(this.prototype).error(".createBox()",v),null;const n=new ke(be(function(){const{faceDescriptions:e,faceVertexOffsets:t,uvScales:n}=_e,r=4*e.length,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*e.length*3);let l=0,u=0,c=0,f=0;for(let r=0;r<e.length;r++){const p=e[r],h=l/3;for(const e of t)a[f++]=h+e;const g=p.corners;for(let e=0;e<4;e++){const t=g[e];let r=0;s[c++]=.25*n[e][0]+p.uvOrigin[0],s[c++]=p.uvOrigin[1]-.25*n[e][1];for(let e=0;e<3;e++)0!==p.axis[e]?(o[l++]=.5*p.axis[e],i[u++]=p.axis[e]):(o[l++]=.5*t[r++],i[u++]=0)}}return{position:o,normal:i,uv:s,faces:a}}(),e,t));return t?.imageFace&&"all"!==t.imageFace?function(e,t){const n=e.components[0],r=n.faces,o=Se[t],i=6*o,s=new Array(6),a=new Array(r.length-6);let l=0,u=0;for(let e=0;e<r.length;e++)e>=i&&e<i+6?s[l++]=r[e]:a[u++]=r[e];if(null!=e.vertexAttributes.uv){const t=new Float32Array(e.vertexAttributes.uv),n=4*o*2,r=[0,1,1,1,1,0,0,0];for(let e=0;e<r.length;e++)t[n+e]=r[e];e.vertexAttributes.uv=t}return e.components=[new x.A({faces:s,material:n.material}),new x.A({faces:a})],e}(n,t.imageFace):n}static createSphere(e,t){return e instanceof g.A?new ke(be(function(e=0){const t=Math.round(8*2**e),n=2*t,r=(t-1)*(n+1)+2*n,o=new Float64Array(3*r),i=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((t-1)*n*2*3);let l=0,u=0,c=0,f=0;for(let e=0;e<=t;e++){const r=e/t*Math.PI+.5*Math.PI,p=Math.cos(r),h=Math.sin(r);Re[2]=h;const g=0===e||e===t,y=g?n-1:n;for(let r=0;r<=y;r++){const h=r/y*2*Math.PI;Re[0]=-Math.sin(h)*p,Re[1]=Math.cos(h)*p;for(let e=0;e<3;e++)o[l]=.5*Re[e],i[l]=Re[e],++l;s[u++]=(r+(g?.5:0))/n,s[u++]=e/t,0!==e&&r!==n&&(e!==t&&(a[c++]=f,a[c++]=f+1,a[c++]=f-n),1!==e&&(a[c++]=f,a[c++]=f-n,a[c++]=f-n-1)),f++}}return{position:o,normal:i,uv:s,faces:a}}(t?.densificationFactor||0),e,t)):(s.A.getLogger(this.prototype).error(".createSphere()",v),null)}static createCylinder(e,t){return e instanceof g.A?new ke(be(function(e=0){const t=Math.round(16*2**e),n=4*(t+1)+2*t,r=new Float64Array(3*n),o=new Float32Array(3*n),i=new Float32Array(2*n),s=new Uint32Array(4*t*3);let a=0,l=0,u=0,c=0,f=0;for(let e=0;e<=5;e++){const n=0===e||5===e,p=e<=1||e>=4,h=2===e||4===e,g=n?t-1:t;for(let y=0;y<=g;y++){const d=y/g*2*Math.PI,m=n?0:.5;Re[0]=m*Math.sin(d),Re[1]=m*-Math.cos(d),Re[2]=e<=2?.5:-.5;for(let t=0;t<3;t++)r[a++]=Re[t],o[l++]=p?2===t?e<=1?1:-1:0:2===t?0:Re[t]/m;i[u++]=(y+(n?.5:0))/t,i[u++]=e<=1?1*e/3:e<=3?1*(e-2)/3+1/3:1*(e-4)/3+2/3,h||0===e||y===t||(5!==e&&(s[c++]=f,s[c++]=f+1,s[c++]=f-t),1!==e&&(s[c++]=f,s[c++]=f-t,s[c++]=f-t-1)),f++}}return{position:r,normal:o,uv:i,faces:s}}(t?.densificationFactor||0),e,t)):(s.A.getLogger(this.prototype).error(".createCylinder()",v),null)}static createPlane(e,t){if(!(e instanceof g.A))return s.A.getLogger(this.prototype).error(".createPlane()",v),null;const n=t?.facing??"up",r=function(e,t){const n="number"==typeof t?t:null!=t?t.width:1,r="number"==typeof t?t:null!=t?t.height:1;switch(e){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}(n,t?.size);return new ke(be(function(e){const t=Te.facingAxisOrderSwap[e],n=Te.position,r=Te.normal,o=new Float64Array(n.length),i=new Float32Array(r.length);let s=0;for(let e=0;e<4;e++){const e=s;for(let a=0;a<3;a++){const l=t[a],u=Math.abs(l)-1,c=l>=0?1:-1;o[s]=n[e+u]*c,i[s]=r[e+u]*c,s++}}return{position:o,normal:i,uv:new Float32Array(Te.uv),faces:new Uint32Array(Te.faces),isPlane:!0}}(n),e,{...t,size:r}))}static createFromPolygon(e,t){if(!(e instanceof y.A))return s.A.getLogger(this.prototype).error(".createFromPolygon()","Expected polygon to be a Polygon instance"),null;const n=function(e){const t=D(e.rings,e.hasZ,L.CCW_IS_HOLE,e.spatialReference),n=new Array;let r=0,o=0;for(const e of t.polygons){const i=e.count,s=e.index,a=(0,N.l5)(t.position,3*s,3*i),l=e.holeIndices.map(e=>e-s),u=(0,B.uW)((0,S.e)(a,l,3));n.push({position:a,faces:u}),r+=a.length,o+=u.length}const i=function(e,t,n){if(1===e.length)return e[0];const r=(0,N.jh)(t),o=new Array(n);let i=0,s=0,a=0;for(const t of e){for(let e=0;e<t.position.length;e++)r[i++]=t.position[e];for(const e of t.faces)o[s++]=e+a;a=i/3}return{position:r,faces:(0,B.uW)(o)}}(n,r,o),s=Array.isArray(i.position)?(0,j.b)(i.position,3,{originalIndices:i.faces}):(0,j.b)(i.position.buffer,6,{originalIndices:i.faces});return i.position=(0,N.xm)(new Float64Array(s.buffer)),i.faces=s.indices,i}(e);return new ke({vertexAttributes:new b.H({position:n.position}),components:[new x.A({faces:n.faces,shading:"flat",material:t?.material??null})],spatialReference:e.spatialReference,vertexSpace:new w.A})}static async createFromGLTF(e,t,r){if(!(e instanceof g.A)){const e=new A;throw s.A.getLogger(this.prototype).error(".createfromGLTF()",e.message),e}const{loadGLTFMesh:o}=await(0,l.qr)(Promise.all([n.e(4399),n.e(2282)]).then(n.bind(n,97375)),r);return new ke(await o(e,t,r))}static createWithExternalSource(e,t,n){const r=n?.extent??null,{spatialReference:o}=e,i=n?.transform?.clone()??new T.A,s=(0,_.TE)(e,n),a=n?.unitConversionDisabled,l={source:t,extent:r,unitConversionDisabled:a},u=new we;return u.externalSources.push(l),new ke({metadata:u,transform:i,vertexSpace:s,spatialReference:o})}static createIncomplete(e,t){const{spatialReference:n}=e,r=t?.transform?.clone()??new T.A,i=(0,_.TE)(e,t),s=new ke({transform:r,vertexSpace:i,spatialReference:n});return s.addResolvingPromise(Promise.reject(new o.A("mesh-incomplete","Mesh resources are not complete"))),s}};(0,r._)([(0,c.MZ)({type:[x.A],json:{write:!0}})],Ke.prototype,"components",void 0),(0,r._)([(0,c.MZ)({nonNullable:!0,types:Xe,constructOnly:!0,json:{write:!0}})],Ke.prototype,"vertexSpace",void 0),(0,r._)([(0,c.MZ)({type:T.A,json:{write:!0}})],Ke.prototype,"transform",void 0),(0,r._)([(0,c.MZ)({constructOnly:!0})],Ke.prototype,"metadata",void 0),(0,r._)([(0,c.MZ)()],Ke.prototype,"hasExtent",null),(0,r._)([(0,c.MZ)()],Ke.prototype,"_transformedExtent",null),(0,r._)([(0,c.MZ)()],Ke.prototype,"_untransformedBounds",null),(0,r._)([(0,c.MZ)()],Ke.prototype,"origin",null),(0,r._)([(0,c.MZ)({readOnly:!0,json:{read:!1}})],Ke.prototype,"extent",null),(0,r._)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Ke.prototype,"hasZ",void 0),(0,r._)([(0,c.MZ)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Ke.prototype,"hasM",void 0),(0,r._)([(0,c.MZ)({type:b.H,nonNullable:!0,json:{write:!0}})],Ke.prototype,"vertexAttributes",void 0),Ke=ke=(0,r._)([(0,f.$)("esri.geometry.Mesh")],Ke);const Ye=(0,m.vt)()},51147:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(90237),o=n(69540),i=n(25482),s=n(10107),a=(n(44208),n(53966),n(87811),n(40608));let l=class extends(o.A.ClonableMixin(i.A)){constructor(e){super(e),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,r._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,r._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,r._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,r._)([(0,a.$)("esri.geometry.support.MeshTextureTransform")],l)},63579:(e,t,n)=>{n.d(t,{Bq:()=>l,Qp:()=>a,WN:()=>d,dK:()=>m,eN:()=>h,fH:()=>y,in:()=>g,yr:()=>u});var r=n(78888),o=n(4576),i=(n(44208),n(74887)),s=n(20557);class a{constructor(e,t,n){this.assetName=e,this.assetMimeType=t,this.parts=n}equals(e){return this===e||this.assetName===e.assetName&&this.assetMimeType===e.assetMimeType&&(0,o.aI)(this.parts,e.parts,(e,t)=>e.equals(t))}isOnService(e){return this.parts.every(t=>t.isOnService(e))}makeHash(){let e="";for(const t of this.parts)e+=t.partHash;return e}async toBlob(e){const{parts:t}=this;if(1===t.length)return t[0].toBlob(e);const n=await Promise.all(t.map(t=>t.toBlob(e)));return(0,i.Te)(e),new Blob(n)}}class l{constructor(e,t){this.partUrl=e,this.partHash=t}equals(e){return this===e||this.partUrl===e.partUrl&&this.partHash===e.partHash}isOnService(e){return this.partUrl.startsWith(`${e.path}/assets/`)}async toBlob(e){const{data:t}=await(0,r.A)(this.partUrl,{responseType:"blob"});return(0,i.Te)(e),t}}function u(e){return function(e){switch(e?.type){case"client":return Array.isArray(e.files)?e.files.some(p):p(e.files);case"service":return e.assets.some(p);case"loadable":return!0;default:return!1}}(e?.source)}const c=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function p(e){if(e instanceof File){const{type:t,name:n}=e;return c.test(t)||f.test(n)}return c.test(e.assetMimeType)||f.test(e.assetName)}function h(e,t){if(!e)return!1;const{source:n}=e;return function(e,t){return"service"===e.type&&e.assets.every(e=>e.isOnService(t))}(n,t)}function g(e,t){if(e===t)return!0;const{source:n}=e,{source:r}=t;if(n===r)return!0;if("service"===n.type&&"service"===r.type){if(n.assets.length!==r.assets.length)return!1;const e=(e,t)=>e.assetName<t.assetName?-1:e.assetName>t.assetName?1:0,t=[...n.assets].sort(e),o=[...r.assets].sort(e);for(let e=0;e<t.length;++e)if(!t[e].equals(o[e]))return!1;return!0}return!1}function y(e,t){return e instanceof File?(0,s.rq)(e,t):(0,s.z$)(e.assetMimeType,e.assetName,t)}function d(e){switch(e.type){case"client":return Array.isArray(e.files)?e.files:[e.files];case"service":return e.assets;case"loadable":return}}function m(e){return!!e.original}},65686:(e,t,n)=>{n.d(t,{a:()=>i,b:()=>c,l:()=>u,n:()=>a,t:()=>s});var r=n(40876),o=(n(44208),n(53966));function i(e,t,n){s(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function s(e,t,n,r=4,o=r){if(e.length/r!==t.length/o)return;const i=e.length/r,s=n[0],a=n[1],l=n[2],u=n[3],c=n[4],f=n[5],p=n[6],h=n[7],g=n[8];let y=0,d=0;for(let n=0;n<i;n++){const n=t[y],i=t[y+1],m=t[y+2],x=t[y+3];e[d]=s*n+u*i+p*m,e[d+1]=a*n+c*i+h*m,e[d+2]=l*n+f*i+g*m,e[d+3]=x,y+=o,d+=r}}function a(e,t){const n=Math.min(e.count,t.count),r=e.typedBuffer,o=e.typedBufferStride,i=t.typedBuffer,s=t.typedBufferStride;for(let e=0;e<n;e++){const t=e*o,n=e*s,a=i[n],l=i[n+1],u=i[n+2],c=a*a+l*l+u*u;if(c>0){const e=1/Math.sqrt(c);r[t]=e*a,r[t+1]=e*l,r[t+2]=e*u}}}function l(e,t,n,r=4){const o=Math.min(e.length/r,t.count),i=t.typedBuffer,s=t.typedBufferStride;let a=0,l=0;for(let t=0;t<o;t++)e[l]=n*i[a],e[l+1]=n*i[a+1],e[l+2]=n*i[a+2],e[l+3]=n*i[a+3],a+=s,l+=r}function u(e,t,n,r){c(e.typedBuffer,t,n,r,e.typedBufferStride)}function c(e,t,n,o,i=4){const s=Math.min(e.length/i,t.count),a=t.typedBuffer,l=t.typedBufferStride;let u=0,c=0;const f=1/r.Tf;for(let t=0;t<s;t++)e[c]=o*(n*a[u])**f,e[c+1]=o*(n*a[u+1])**f,e[c+2]=o*(n*a[u+2])**f,e[c+3]=o*n*a[u+3],u+=l,c+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:a,scale:l,scaleView:function(e,t,n){l(e.typedBuffer,t,n,e.typedBufferStride)},transformMat3:s,transformMat3View:i,transformMat4:function(e,t,n,r=4,i=r){if(e.length/r!==t.length/i)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const s=e.length/r,a=n[0],l=n[1],u=n[2],c=n[3],f=n[4],p=n[5],h=n[6],g=n[7],y=n[8],d=n[9],m=n[10],x=n[11],v=n[12],A=n[13],w=n[14],M=n[15];let T=0,b=0;for(let n=0;n<s;n++){const n=t[T],o=t[T+1],s=t[T+2],_=t[T+3];e[b]=a*n+f*o+y*s+v*_,e[b+1]=l*n+p*o+d*s+A*_,e[b+2]=u*n+h*o+m*s+w*_,e[b+3]=c*n+g*o+x*s+M*_,T+=i,b+=r}},transformMat4View:function(e,t,n){if(e.count!==t.count)return;const r=e.count,o=n[0],i=n[1],s=n[2],a=n[3],l=n[4],u=n[5],c=n[6],f=n[7],p=n[8],h=n[9],g=n[10],y=n[11],d=n[12],m=n[13],x=n[14],v=n[15],A=e.typedBuffer,w=e.typedBufferStride,M=t.typedBuffer,T=t.typedBufferStride;for(let e=0;e<r;e++){const t=e*w,n=e*T,r=M[n],b=M[n+1],_=M[n+2],S=M[n+3];A[t]=o*r+l*b+p*_+d*S,A[t+1]=i*r+u*b+h*_+m*S,A[t+2]=s*r+c*b+g*_+x*S,A[t+3]=a*r+f*b+y*_+v*S}}},Symbol.toStringTag,{value:"Module"}))},72258:(e,t,n)=>{n.d(t,{UR:()=>w,p5:()=>A,xK:()=>R});var r=n(53966),o=n(34727),i=n(83047),s=n(77690),a=n(29242),l=n(58083),u=n(9093),c=n(38954),f=n(51850),p=n(98764),h=n(48353),g=n(65806),y=n(27615),d=n(21325),m=n(73354),x=n(22141);const v=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function A(e,t,{vertexSpace:n,spatialReference:r}){if("georeferenced"===n.type){const o=e;if(!(0,g.g)(t,o,r))return!1;const{origin:i}=n;return(0,c.d)(e,o,i),!0}const o=(0,p.lO)(r),i=e;if(!(0,g.g)(t,i,o))return!1;const{origin:s}=n,a=Z;if(!(0,h.l)(r,s,a,o))return!1;const u=(0,l.B8)(Z,a);return null!=u&&((0,c.t)(e,i,u),!0)}function w(e,t,n){const{vertexSpace:r,transform:o,vertexAttributes:i}=e,a=(0,y.Hq)(r)?o:null,f=_(e.spatialReference,n,O.SOURCE_AND_TARGET);if((0,y.yJ)(r,t)&&(!a||(0,l.t2)(a.localMatrix,u.zK))&&S(f)){const{position:e,normal:t,tangent:r}=i,o=n?.allowBufferReuse;return{position:o?e:e.slice(),normal:o?t:t?.slice(),tangent:o?r:r?.slice()}}switch(e.vertexSpace.type){case"local":return"local"===t.type?function({vertexAttributes:e,spatialReference:t,transform:n},{origin:r},o,i){const s=M(t,i);if(!(0,h.l)(t,r,C,s))return(0,x.CN)(v(),t,s),null;if(n&&(0,l.lw)(C,C,n.localMatrix),!(0,h.l)(t,o,N,s))return(0,x.CN)(v(),s,t),null;(0,l.B8)(N,N);const a=(0,l.lw)(C,N,C);return b(a,t,i,O.SOURCE_AND_TARGET),T(e,a)}(e,e.vertexSpace,t.origin,n):function({spatialReference:e,vertexAttributes:t,transform:n},{origin:r},o,i){const s=M(e,i);if(!(0,h.l)(e,r,C,s))return(0,x.CN)(v(),e,s),null;n&&(0,l.lw)(C,C,n.localMatrix),b(C,e,i,O.SOURCE);const a=new Float64Array(t.position.length),u=function(e,t,n,r,o){(0,m.t)(r,e,t);const i=new Float64Array(e.length);return(0,x.$5)(r,o,i,n)?i:((0,x.CN)(v(),o,n),null)}(t.position,C,e,a,s);if(!u)return null;const f=function(e,t,n,r,o,i){if(null==o)return null;const s=new Float32Array(o.length);return(0,x.qs)(o,s,i),(0,x.si)(s,e,t,n,r,s)?s:((0,x.CN)(v(),r,t),null)}(u,e,a,s,t.normal,C);if(t.normal&&!f)return null;const p=function(e,t,n,r,o,i){if(null==o)return null;const s=new Float32Array(o.length);return(0,x.KM)(o,s,i),(0,x.Mv)(s,e,t,n,r,s)?s:((0,x.CN)(v(),r,t),null)}(u,e,a,s,t.tangent,C);if(t.tangent&&!p)return null;if(o){const e=(0,c.u)(E,o);(0,m.a)(u,u,e)}return{position:u,normal:f,tangent:p}}(e,e.vertexSpace,t.origin,n);case"georeferenced":return"local"===t.type?function({vertexAttributes:e,spatialReference:t,transform:n},{origin:r},o,i){const a=M(t,i);if(!(0,h.l)(t,o,C,a))return(0,x.CN)(v(),t,a),null;const u=1/_(t,i,O.TARGET);(0,l.hs)(C,C,[u,u,u]);const c=(0,l.B8)(N,C),{position:f,normal:p,tangent:g}=function(e,t,n){if(!t)return e;if(!n){const{position:n,normal:r,tangent:o}=e;return{position:(0,m.a)(new Float64Array(n.length),n,t),tangent:o,normal:r}}const r=T(e,n.localMatrix);return(0,m.a)(r.position,r.position,t),r}(e,r,n),y=new Float64Array(f.length),d=function(e,t,n,r,o){const i=(0,x.gr)(e,t,r,o);if(!i)return(0,x.CN)(v(),t,o),null;const s=new Float64Array(i.length);return(0,m.t)(s,i,n),s}(f,t,c,y,a);if(!d)return null;const A=(0,s.Ge)(B,c),w=function(e,t,n,r,o,i,s){if(null==e)return null;const a=s??new Float32Array(e.length);return(0,x.X4)(e,t,n,r,o,a)?((0,m.b)(a,a,i),a):((0,x.CN)(v(),n,o),null)}(p,f,t,y,a,A,p!==e.normal?p:void 0);if(!w&&p)return null;const b=function(e,t,n,r,o,i,s){if(null==e)return null;const a=s??new Float32Array(e.length);return(0,x.xA)(e,t,n,r,o,a)?((0,m.b)(a,a,i,4),a):((0,x.CN)(v(),n,o),null)}(g,f,t,y,a,A,g!==e.tangent?g:void 0);return!b&&g?null:{position:d,normal:w,tangent:b}}(e,e.vertexSpace,t.origin,n):function({vertexAttributes:e,transform:t,spatialReference:n},{origin:r},o,i){const s=_(n,i,O.SOURCE_AND_TARGET),a=r||!S(s)?(0,l.C)(C,t?.localMatrix??u.zK):null;a&&b(a,n,i,O.SOURCE_AND_TARGET);const{position:f,normal:p,tangent:h}=a?T(e,a):e,g=i?.allowBufferReuse,y=g?f:new Float64Array(f.length);let d=f;if(r&&(d=(0,m.a)(y,d,r)),o){const e=(0,c.u)(E,o);d=(0,m.a)(y,d,e)}return{position:d!==e.position||g?d:d.slice(),normal:p!==e.normal||g?p:p?.slice(),tangent:h!==e.tangent||g?h:h?.slice()}}(e,e.vertexSpace,t.origin,n)}}function M(e,t){return t?.useEllipsoid&&(0,d.B3)(e)?p.Y0:(0,p.lO)(e)}function T(e,t){const n=new Float64Array(e.position.length);(0,m.t)(n,e.position,t);const r=e.normal?new Float32Array(e.normal.length):null,o=e.tangent?new Float32Array(e.tangent.length):null;return r&&e.normal&&(0,x.qs)(e.normal,r,t),o&&e.tangent&&(0,x.KM)(e.tangent,o,t),{position:n,normal:r,tangent:o}}function b(e,t,n,r){const o=_(t,n,r);S(o)||(0,l.hs)(e,e,[o,o,o])}function _(e,t,n){const r=!!(n&O.SOURCE),o=!!(n&O.TARGET),i=t?.sourceUnit,s=t?.targetUnit;if(!i&&!s)return 1;let a=R(i,e);r||!i||S(a)||(v().warn("source unit conversion not supported"),a=1);let l=1/R(s,e);return o||!s||S(l)||(v().warn("target unit conversion not supported"),l=1),a*l}function S(e){return(0,o.Io)(e,1)}function R(e,t){if(null==e)return 1;const n=(0,i.KX)(t);return 1/(0,i.oU)(n,"meters",e)}const C=(0,u.vt)(),N=(0,u.vt)(),B=(0,a.vt)(),E=(0,f.vt)(),Z=(0,u.vt)();var O,F;(F=O||(O={}))[F.NONE=0]="NONE",F[F.SOURCE=1]="SOURCE",F[F.TARGET=2]="TARGET",F[F.SOURCE_AND_TARGET=3]="SOURCE_AND_TARGET"},73354:(e,t,n)=>{n.d(t,{a:()=>f,b:()=>a,c:()=>s,d:()=>o,e:()=>p,f:()=>c,l:()=>u,n:()=>h,t:()=>i});var r=n(40876);function o(e,t,n){i(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function i(e,t,n,r=3,o=r){if(e.length/r!==Math.ceil(t.length/o))return e;const i=e.length/r,s=n[0],a=n[1],l=n[2],u=n[4],c=n[5],f=n[6],p=n[8],h=n[9],g=n[10],y=n[12],d=n[13],m=n[14];let x=0,v=0;for(let n=0;n<i;n++){const n=t[x],i=t[x+1],A=t[x+2];e[v]=s*n+u*i+p*A+y,e[v+1]=a*n+c*i+h*A+d,e[v+2]=l*n+f*i+g*A+m,x+=o,v+=r}return e}function s(e,t,n){a(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)}function a(e,t,n,r=3,o=r){if(e.length/r!==Math.ceil(t.length/o))return;const i=e.length/r,s=n[0],a=n[1],l=n[2],u=n[3],c=n[4],f=n[5],p=n[6],h=n[7],g=n[8];let y=0,d=0;for(let n=0;n<i;n++){const n=t[y],i=t[y+1],m=t[y+2];e[d]=s*n+u*i+p*m,e[d+1]=a*n+c*i+h*m,e[d+2]=l*n+f*i+g*m,y+=o,d+=r}}function l(e,t,n,r=3,o=r){const i=Math.min(e.length/r,t.length/o);let s=0,a=0;for(let l=0;l<i;l++)e[a]=n*t[s],e[a+1]=n*t[s+1],e[a+2]=n*t[s+2],s+=o,a+=r;return e}function u(e,t,n,r){c(e.typedBuffer,t.typedBuffer,n,r,e.typedBufferStride,t.typedBufferStride)}function c(e,t,n,o,i=3,s=i){const a=Math.min(e.length/i,t.length/s);let l=0,u=0;const c=1/r.Tf;for(let r=0;r<a;r++)e[u]=o*(n*t[l])**c,e[u+1]=o*(n*t[l+1])**c,e[u+2]=o*(n*t[l+2])**c,l+=s,u+=i}function f(e,t,n,r=3,o=r){const i=e.length/r;if(i!==Math.ceil(t.length/o))return e;let s=0,a=0;for(let l=0;l<i;l++)e[a]=t[s]+n[0],e[a+1]=t[s+1]+n[1],e[a+2]=t[s+2]+n[2],s+=o,a+=r;return e}function p(e,t){h(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function h(e,t,n=3,r=n){const o=Math.min(e.length/n,t.length/r);let i=0,s=0;for(let a=0;a<o;a++){const o=t[i],a=t[i+1],l=t[i+2],u=o*o+a*a+l*l;if(u>0){const t=1/Math.sqrt(u);e[s]=t*o,e[s+1]=t*a,e[s+2]=t*l}i+=r,s+=n}}n(44208),n(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:u,normalize:h,normalizeView:p,scale:l,scaleView:function(e,t,n){l(e.typedBuffer,t.typedBuffer,n,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,n){const r=Math.min(e.count,t.count),o=e.typedBuffer,i=e.typedBufferStride,s=t.typedBuffer,a=t.typedBufferStride;let l=0,u=0;for(let e=0;e<r;e++)o[u]=s[l]>>n,o[u+1]=s[l+1]>>n,o[u+2]=s[l+2]>>n,l+=a,u+=i},transformMat3:a,transformMat3View:s,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},80882:(e,t,n)=>{n.d(t,{A:()=>f});var r,o=n(90237),i=n(68197),s=n(10107),a=(n(44208),n(53966),n(87811),n(40608)),l=n(19211),u=n(35063),c=n(51147);let f=r=class extends l.A{constructor(e){super(e),this.emissiveColor=null,this.emissiveTexture=null,this.emissiveTextureTransform=void 0,this.occlusionTexture=null,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null,this.metallicRoughnessTextureTransform=void 0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(e,t){const n=null!=e?e.get(this):null;if(n)return n;const o=new r(this.clonePropertiesWithDeduplication(t));return null!=e&&e.set(this,o),o}getMemoryUsage(){let e=super.getMemoryUsage();return e+=null!=this.emissiveColor?16:0,null!=this.emissiveTexture&&(e+=this.emissiveTexture.memoryUsage),e+=null!=this.emissiveTextureTransform?20:0,null!=this.occlusionTexture&&(e+=this.occlusionTexture.memoryUsage),e+=null!=this.occlusionTextureTransform?20:0,null!=this.metallicRoughnessTexture&&(e+=this.metallicRoughnessTexture.memoryUsage),e+=null!=this.metallicRoughnessTextureTransform?20:0,e}clonePropertiesWithDeduplication(e){return{...super.clonePropertiesWithDeduplication(e),emissiveColor:this.emissiveColor?.clone(),emissiveTexture:this.emissiveTexture?.cloneWithDeduplication(e),emissiveTextureTransform:this.emissiveTextureTransform?.clone(),occlusionTexture:this.occlusionTexture?.cloneWithDeduplication(e),occlusionTextureTransform:this.occlusionTextureTransform?.clone(),metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:this.metallicRoughnessTexture?.cloneWithDeduplication(e),metallicRoughnessTextureTransform:this.metallicRoughnessTextureTransform?.clone()}}};(0,o._)([(0,s.MZ)({type:i.A,json:{write:!0}})],f.prototype,"emissiveColor",void 0),(0,o._)([(0,s.MZ)({type:u.A,json:{write:!0}})],f.prototype,"emissiveTexture",void 0),(0,o._)([(0,s.MZ)({type:c.A,json:{write:!0}})],f.prototype,"emissiveTextureTransform",void 0),(0,o._)([(0,s.MZ)({type:u.A,json:{write:!0}})],f.prototype,"occlusionTexture",void 0),(0,o._)([(0,s.MZ)({type:c.A,json:{write:!0}})],f.prototype,"occlusionTextureTransform",void 0),(0,o._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],f.prototype,"metallic",void 0),(0,o._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],f.prototype,"roughness",void 0),(0,o._)([(0,s.MZ)({type:u.A,json:{write:!0}})],f.prototype,"metallicRoughnessTexture",void 0),(0,o._)([(0,s.MZ)({type:c.A,json:{write:!0}})],f.prototype,"metallicRoughnessTextureTransform",void 0),f=r=(0,o._)([(0,a.$)("esri.geometry.support.MeshMaterialMetallicRoughness")],f)},83349:(e,t,n)=>{function r(e,t,n){n=n||2;var r,i,a,l,u,c,p,h=t&&t.length,g=h?t[0]*n:e.length,y=o(e,0,g,n,!0),d=[];if(!y||y.next===y.prev)return d;if(h&&(y=f(e,t,y,n)),e.length>80*n){r=a=e[0],i=l=e[1];for(var m=n;m<g;m+=n)(u=e[m])<r&&(r=u),(c=e[m+1])<i&&(i=c),u>a&&(a=u),c>l&&(l=c);p=0!==(p=Math.max(a-r,l-i))?1/p:0}return s(y,d,n,r,i,p),d}function o(e,t,n,r,o){var i,s;if(o===E(e,t,n,r)>0)for(i=t;i<n;i+=r)s=C(i,e[i],e[i+1],s);else for(i=n-r;i>=t;i-=r)s=C(i,e[i],e[i+1],s);if(s&&M(s,s.next)){var a=s.next;N(s),s=a}return s}function i(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!M(r,r.next)&&0!==w(r.prev,r,r.next))r=r.next;else{var o=r.prev;if(N(r),(r=t=o)===r.next)break;n=!0}}while(n||r!==t);return t}function s(e,t,n,r,o,f,p){if(e){!p&&f&&d(e,r,o,f);for(var h,g,y=e;e.prev!==e.next;)if(h=e.prev,g=e.next,f?l(e,r,o,f):a(e))t.push(h.i/n),t.push(e.i/n),t.push(g.i/n),N(e),e=g.next,y=g.next;else if((e=g)===y){p?1===p?s(e=u(i(e),t,n),t,n,r,o,f,2):2===p&&c(e,t,n,r,o,f):s(i(e),t,n,r,o,f,1);break}}}function a(e){var t=e.prev,n=e,r=e.next;if(w(t,n,r)>=0)return!1;for(var o=e.next.next;o!==e.prev;){if(v(t.x,t.y,n.x,n.y,r.x,r.y,o.x,o.y)&&w(o.prev,o,o.next)>=0)return!1;o=o.next}return!0}function l(e,t,n,r){var o=e.prev,i=e,s=e.next;if(w(o,i,s)>=0)return!1;for(var a=o.x<i.x?o.x<s.x?o.x:s.x:i.x<s.x?i.x:s.x,l=o.y<i.y?o.y<s.y?o.y:s.y:i.y<s.y?i.y:s.y,u=o.x>i.x?o.x>s.x?o.x:s.x:i.x>s.x?i.x:s.x,c=o.y>i.y?o.y>s.y?o.y:s.y:i.y>s.y?i.y:s.y,f=m(a,l,t,n,r),p=m(u,c,t,n,r),h=e.prevZ,g=e.nextZ;h&&h.z>=f&&g&&g.z<=p;){if(h!==e.prev&&h!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,h.x,h.y)&&w(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,g!==e.prev&&g!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,g.x,g.y)&&w(g.prev,g,g.next)>=0)return!1;g=g.nextZ}for(;h&&h.z>=f;){if(h!==e.prev&&h!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,h.x,h.y)&&w(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;g&&g.z<=p;){if(g!==e.prev&&g!==e.next&&v(o.x,o.y,i.x,i.y,s.x,s.y,g.x,g.y)&&w(g.prev,g,g.next)>=0)return!1;g=g.nextZ}return!0}function u(e,t,n){var r=e;do{var o=r.prev,s=r.next.next;!M(o,s)&&T(o,r,r.next,s)&&S(o,s)&&S(s,o)&&(t.push(o.i/n),t.push(r.i/n),t.push(s.i/n),N(r),N(r.next),r=e=s),r=r.next}while(r!==e);return i(r)}function c(e,t,n,r,o,a){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&A(l,u)){var c=R(l,u);return l=i(l,l.next),c=i(c,c.next),s(l,t,n,r,o,a),void s(c,t,n,r,o,a)}u=u.next}l=l.next}while(l!==e)}function f(e,t,n,r){var s,a,l,u=[];for(s=0,a=t.length;s<a;s++)(l=o(e,t[s]*r,s<a-1?t[s+1]*r:e.length,r,!1))===l.next&&(l.steiner=!0),u.push(x(l));for(u.sort(p),s=0;s<u.length;s++)n=i(n=g(u[s],n),n.next);return n}function p(e,t){return e.x-t.x}function h(e){if(e.next.prev===e)return e;let t=e;for(;;){const n=t.next;if(n.prev===t||n===t||n===e)break;t=n}return t}function g(e,t){var n=function(e,t){var n,r=t,o=e.x,i=e.y,s=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var a=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=o&&a>s){if(s=a,a===o){if(i===r.y)return r;if(i===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(o===s)return n;var l,u=n,c=n.x,f=n.y,p=1/0;r=n;do{o>=r.x&&r.x>=c&&o!==r.x&&v(i<f?o:s,i,c,f,i<f?s:o,i,r.x,r.y)&&(l=Math.abs(i-r.y)/(o-r.x),S(r,e)&&(l<p||l===p&&(r.x>n.x||r.x===n.x&&y(n,r)))&&(n=r,p=l)),r=r.next}while(r!==u);return n}(e,t);if(!n)return t;var r=R(n,e),o=i(n,n.next);let s=h(r);return i(s,s.next),o=h(o),h(t===n?o:t)}function y(e,t){return w(e.prev,e,t.prev)<0&&w(t.next,e,e.next)<0}function d(e,t,n,r){var o=e;do{null===o.z&&(o.z=m(o.x,o.y,t,n,r)),o.prevZ=o.prev,o.nextZ=o.next,o=o.next}while(o!==e);o.prevZ.nextZ=null,o.prevZ=null,function(e){var t,n,r,o,i,s,a,l,u=1;do{for(n=e,e=null,i=null,s=0;n;){for(s++,r=n,a=0,t=0;t<u&&(a++,r=r.nextZ);t++);for(l=u;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(o=n,n=n.nextZ,a--):(o=r,r=r.nextZ,l--),i?i.nextZ=o:e=o,o.prevZ=i,i=o;n=r}i.nextZ=null,u*=2}while(s>1)}(o)}function m(e,t,n,r,o){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*o)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*o)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function x(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function v(e,t,n,r,o,i,s,a){return(o-s)*(t-a)-(e-s)*(i-a)>=0&&(e-s)*(r-a)-(n-s)*(t-a)>=0&&(n-s)*(i-a)-(o-s)*(r-a)>=0}function A(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&T(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(S(e,t)&&S(t,e)&&function(e,t){var n=e,r=!1,o=(e.x+t.x)/2,i=(e.y+t.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&o<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(w(e.prev,e,t.prev)||w(e,t.prev,t))||M(e,t)&&w(e.prev,e,e.next)>0&&w(t.prev,t,t.next)>0)}function w(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function M(e,t){return e.x===t.x&&e.y===t.y}function T(e,t,n,r){var o=_(w(e,t,n)),i=_(w(e,t,r)),s=_(w(n,r,e)),a=_(w(n,r,t));return o!==i&&s!==a||!(0!==o||!b(e,n,t))||!(0!==i||!b(e,r,t))||!(0!==s||!b(n,e,r))||!(0!==a||!b(n,t,r))}function b(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function _(e){return e>0?1:e<0?-1:0}function S(e,t){return w(e.prev,e,e.next)<0?w(e,t,e.next)>=0&&w(e,e.prev,t)>=0:w(e,t,e.prev)<0||w(e,e.next,t)<0}function R(e,t){var n=new B(e.i,e.x,e.y),r=new B(t.i,t.x,t.y),o=e.next,i=t.prev;return e.next=t,t.prev=e,n.next=o,o.prev=n,r.next=n,n.prev=r,i.next=r,r.prev=i,r}function C(e,t,n,r){var o=new B(e,t,n);return r?(o.next=r.next,o.prev=r,r.next.prev=o,r.next=o):(o.prev=o,o.next=o),o}function N(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function B(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function E(e,t,n,r){for(var o=0,i=t,s=n-r;i<n;i+=r)o+=(e[s]-e[i])*(e[i+1]+e[s+1]),s=i;return o}n.d(t,{e:()=>r}),r.deviation=function(e,t,n,r){var o=t&&t.length,i=o?t[0]*n:e.length,s=Math.abs(E(e,0,i,n));if(o)for(var a=0,l=t.length;a<l;a++){var u=t[a]*n,c=a<l-1?t[a+1]*n:e.length;s-=Math.abs(E(e,u,c,n))}var f=0;for(a=0;a<r.length;a+=3){var p=r[a]*n,h=r[a+1]*n,g=r[a+2]*n;f+=Math.abs((e[p]-e[g])*(e[h+1]-e[p+1])-(e[p]-e[h])*(e[g+1]-e[p+1]))}return 0===s&&0===f?0:Math.abs((f-s)/s)},r.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,o=0;o<e.length;o++){for(var i=0;i<e[o].length;i++)for(var s=0;s<t;s++)n.vertices.push(e[o][i][s]);o>0&&(r+=e[o-1].length,n.holes.push(r))}return n}},95696:(e,t,n)=>{n.d(t,{A:()=>c});var r,o=n(90237),i=n(69540),s=n(25482),a=n(10107),l=(n(44208),n(53966),n(87811),n(93223)),u=n(40608);let c=class extends(i.A.ClonableMixin(s.A)){static{r=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o._)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,o._)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,o._)([(0,u.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},97146:(e,t,n)=>{n.d(t,{Dg:()=>i,my:()=>s,tM:()=>c,uW:()=>o});var r=n(34275);function o(e){return i(e,!0)}function i(e,t){if(Array.isArray(e)){if(e.length<r.y9)return e}else if(e.length<r.y9)return Array.from(e);let n=!0,o=!0;return e.some((e,t)=>(n=n&&0===e,o=o&&e===t,!n&&!o)),n?function(e){if(1===e)return l;if(e<r.y9)return new Array(e).fill(0);if(e>p.length){const t=Math.max(2*p.length,e);p=new Uint8Array(t)}return new Uint8Array(p.buffer,0,e)}(e.length):o?c(e.length):(0,r.iu)(e)&&e.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?e:function(e,t){for(const n of e){if(n>=65536)return(0,r.iu)(e)?e:new Uint32Array(e);n>=256&&(t=!1)}return t?new Uint8Array(e):new Uint16Array(e)}(e,!t)}function s(e){return e<=r.y9?new Array(e):e<=65536?new Uint16Array(e):new Uint32Array(e)}let a=f(131072);const l=[0],u=(()=>{const e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function c(e){return 1===e?l:e<r.y9?Array.from(new Uint16Array(u.buffer,0,e)):e<u.length?new Uint16Array(u.buffer,0,e):(e>a.length&&(a=f(Math.max(2*a.length,e))),new Uint32Array(a.buffer,0,e))}function f(e){const t=new Uint32Array(e);for(let e=0;e<t.length;e++)t[e]=e;return t}let p=new Uint8Array(65536)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3813,8256],{4146:(t,e,i)=>{i.d(e,{A:()=>_});var r=i(90237),n=i(78888),s=i(49186),o=i(65529),l=i(4902),a=i(92474),u=i(53966),p=i(74887),c=i(84952),h=i(10107),d=(i(44208),i(87811),i(40608)),y=i(5443),g=i(16930),m=i(92602),f=i(64272);let b=0,_=class extends(o.A.EventedMixin(l.A.IdentifiableMixin(a.A))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new y.A(-180,-90,180,90,g.A.WGS84),this.id=Date.now().toString(16)+"-layer-"+b++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=g.A.WGS84,this.title=null,this.type=null,this.url=null,this.visibilityTimeExtent=null,this.visible=!0}static async fromArcGISServerUrl(t){const e="string"==typeof t?{url:t}:t;return(await i.e(7982).then(i.bind(i,27982))).fromUrl(e)}static fromPortalItem(t){return async function(t){const e="portalItem"in t?t:{portalItem:t},{fromItem:r}=await i.e(5613).then(i.bind(i,45613));try{return await r(e)}catch(t){const i=e?.portalItem,r=i?.id||"unset",n=i?.portal?.url||m.A.portalUrl;throw u.A.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+n+"', id: '"+r+"')",t),t}}(t)}initialize(){this.when().catch(t=>{(0,p.zf)(t)||u.A.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:t})})}destroy(){const t=this.parent;if(t){const e=this;"layers"in t&&t.layers.includes(e)?t.layers.remove(e):"tables"in t&&t.tables.includes(e)?t.tables.remove(e):"baseLayers"in t&&t.baseLayers.includes(e)?t.baseLayers.remove(e):"referenceLayers"in t&&t.referenceLayers.includes(e)&&t.referenceLayers.remove(e),this._set("parent",null)}}get effectiveVisible(){let t=this.visible;const e=this.parent;return t&&e&&"effectiveVisible"in e&&(t&&=e.effectiveVisible),t}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.An)(this.url)}createLayerView(t,e){return Promise.reject(new s.A("layer:create-layer-view","Layer does not support creating a layer view"))}async fetchAttributionData(){const t=this.attributionDataUrl;if(this.hasAttributionData&&t)return(await(0,n.A)(t,{query:{f:"json"},responseType:"json"})).data;throw new s.A("layer:no-attribution-data","Layer does not have attribution data")}};(0,r._)([(0,h.MZ)({type:String})],_.prototype,"attributionDataUrl",void 0),(0,r._)([(0,h.MZ)({readOnly:!0})],_.prototype,"effectiveVisible",null),(0,r._)([(0,h.MZ)({type:y.A})],_.prototype,"fullExtent",void 0),(0,r._)([(0,h.MZ)({readOnly:!0})],_.prototype,"hasAttributionData",null),(0,r._)([(0,h.MZ)({type:String,clonable:!1})],_.prototype,"id",void 0),(0,r._)([(0,h.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"legendEnabled",void 0),(0,r._)([(0,h.MZ)({type:["show","hide","hide-children"]})],_.prototype,"listMode",void 0),(0,r._)([(0,h.MZ)({type:Number,range:{min:0,max:1},nonNullable:!0})],_.prototype,"opacity",void 0),(0,r._)([(0,h.MZ)({clonable:!1})],_.prototype,"parent",void 0),(0,r._)([(0,h.MZ)({readOnly:!0})],_.prototype,"parsedUrl",null),(0,r._)([(0,h.MZ)({type:Boolean,readOnly:!0})],_.prototype,"persistenceEnabled",void 0),(0,r._)([(0,h.MZ)({type:Boolean})],_.prototype,"popupEnabled",void 0),(0,r._)([(0,h.MZ)({type:Boolean})],_.prototype,"attributionVisible",void 0),(0,r._)([(0,h.MZ)({type:g.A})],_.prototype,"spatialReference",void 0),(0,r._)([(0,h.MZ)({type:String})],_.prototype,"title",void 0),(0,r._)([(0,h.MZ)({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),(0,r._)([(0,h.MZ)()],_.prototype,"url",void 0),(0,r._)([(0,h.MZ)({type:f.T})],_.prototype,"visibilityTimeExtent",void 0),(0,r._)([(0,h.MZ)({type:Boolean,nonNullable:!0})],_.prototype,"visible",void 0),_=(0,r._)([(0,d.$)("esri.layers.Layer")],_)},4902:(t,e,i)=>{i.d(e,{A:()=>u});var r=i(90237),n=i(40608);let s=0;const o=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+s++})}};return e=(0,r._)([(0,n.$)("esri.core.Identifiable")],e),e};let l=class extends(o(class{})){};var a;l=(0,r._)([(0,n.$)("esri.core.Identifiable")],l),(a=l||(l={})).IdentifiableMixin=o,a.NumericIdentifiableMixin=t=>{let e=class extends t{constructor(...t){super(...t),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:s++})}};return e=(0,r._)([(0,n.$)("esri.core.Identifiable.NumericIdentifiable")],e),e};const u=l},62885:(t,e,i)=>{i.d(e,{H:()=>s,V:()=>n});var r=i(5503);function n(t,e,i=r.A){return e||(e=new i),e===t||(e.removeAll(),(n=t)&&(Array.isArray(n)||"items"in n&&Array.isArray(n.items))?e.addMany(t):t&&e.add(t)),e;var n}function s(t){return t}},64272:(t,e,i)=>{i.d(e,{T:()=>h});var r,n=i(90237),s=i(25482),o=i(88930),l=i(10107),a=(i(44208),i(53966),i(87811),i(36005)),u=i(40608),p=i(43937),c=i(98623);let h=class extends s.A{static{r=this}static get allTime(){return d}static get empty(){return y}static fromArray(t){return new r({start:null!=t[0]?new Date(t[0]):t[0],end:null!=t[1]?new Date(t[1]):t[1]})}constructor(t){super(t),this.end=null,this.start=null}readEnd(t,e){return null!=e.end?new Date(e.end):null}writeEnd(t,e){e.end=t?.getTime()??null}get isAllTime(){return this.equals(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(t,e){return null!=e.start?new Date(e.start):null}writeStart(t,e){e.start=t?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(t){if(!t)return!1;const e=this.start?.getTime()??this.start,i=this.end?.getTime()??this.end,r=t.start?.getTime()??t.start,n=t.end?.getTime()??t.end;return e===r&&i===n}expandTo(t,e=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let i=this.start;i&&(i=(0,o.lL)(i,t,e));let n=this.end;if(n){const i=(0,o.lL)(n,t,e);n=n.getTime()===i.getTime()?i:(0,o.S1)(i,1,t,e)}return new r({start:i,end:n})}intersection(t){if(!t)return this.clone();if(this.isEmpty||t.isEmpty)return r.empty;if(this.isAllTime)return t.clone();if(t.isAllTime)return this.clone();const e=this.start?.getTime()??-1/0,i=this.end?.getTime()??1/0,n=t.start?.getTime()??-1/0,s=t.end?.getTime()??1/0;let o,l;return n>=e&&n<=i?o=n:e>=n&&e<=s&&(o=e),i>=n&&i<=s?l=i:s>=e&&s<=i&&(l=s),null==o||null==l||isNaN(o)||isNaN(l)?r.empty:new r({start:o===-1/0?null:new Date(o),end:l===1/0?null:new Date(l)})}offset(t,e,i=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const n=new r,{start:s,end:l}=this;return null!=s&&(n.start=(0,o.S1)(s,t,e,i)),null!=l&&(n.end=(0,o.S1)(l,t,e,i)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(t){if(!t||t.isEmpty)return this.clone();if(this.isEmpty)return t.clone();if(this.isAllTime||t.isAllTime)return d.clone();const e=null!=this.start&&null!=t.start?new Date(Math.min(this.start.getTime(),t.start.getTime())):null,i=null!=this.end&&null!=t.end?new Date(Math.max(this.end.getTime(),t.end.getTime())):null;return new r({start:e,end:i})}};(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,n._)([(0,a.w)("end")],h.prototype,"readEnd",null),(0,n._)([(0,p.K)("end")],h.prototype,"writeEnd",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,n._)([(0,l.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,n._)([(0,l.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,n._)([(0,a.w)("start")],h.prototype,"readStart",null),(0,n._)([(0,p.K)("start")],h.prototype,"writeStart",null),h=r=(0,n._)([(0,u.$)("esri.time.TimeExtent")],h);const d=new h,y=new h({start:void 0,end:void 0})},68197:(t,e,i)=>{i.d(e,{A:()=>c});var r,n,s=i(40876),o=i(34727),l=i(56507);function a(t){return(0,o.qE)((0,l.Vr)(t),0,255)}function u(t,e){const i=t.toString(16).padStart(2,"0");return e?i.slice(0,1):i}class p{static blendColors(t,e,i,r=new p){return r.r=Math.round(t.r+(e.r-t.r)*i),r.g=Math.round(t.g+(e.g-t.g)*i),r.b=Math.round(t.b+(e.b-t.b)*i),r.a=t.a+(e.a-t.a)*i,r._sanitize()}static fromRgb(t,e){const i=(0,s.lT)(t);return i?p.fromArray(i,e):null}static fromHex(t,e=new p){const i=(0,s.oW)(t);return i?p.fromArray(i,e):null}static fromArray(t,e=new p){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){const i=(0,s.Eq)(t);return i?p.fromArray(i,e):null}static fromJSON(t){return null!=t?new p([t[0],t[1],t[2],(t[3]??255)/255]):void 0}static toUnitRGB(t){return null!=t?[t.r/255,t.g/255,t.b/255]:null}static toUnitRGBA(t){return null!=t?[t.r/255,t.g/255,t.b/255,null!=t.a?t.a:1]:null}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(t){return"string"==typeof t?p.fromString(t,this):Array.isArray(t)?p.fromArray(t,this):(this._set(t.r??0,t.g??0,t.b??0,t.a??1),t instanceof p||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){const e=t?.capitalize??!1,i=t?.digits??6,r=3===i||4===i,n=4===i||8===i,s=`#${u(this.r,r)}${u(this.g,r)}${u(this.b,r)}${n?u(Math.round(255*this.a),r):""}`;return e?s.toUpperCase():s}toCss(t=!1){const e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=p.AlphaMode.ALWAYS){const e=a(this.r),i=a(this.g),r=a(this.b);return t===p.AlphaMode.ALWAYS||1!==this.a?[e,i,r,a(255*this.a)]:[e,i,r]}clone(){return new p(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,s.c1)(this.r),this.g=(0,s.c1)(this.g),this.b=(0,s.c1)(this.b),this.a=(0,s.G1)(this.a),this}_set(t,e,i,r){this.r=t,this.g=e,this.b=i,this.a=r}}p.prototype.declaredClass="esri.Color",(n=(r=p||(p={})).AlphaMode||(r.AlphaMode={}))[n.ALWAYS=0]="ALWAYS",n[n.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const c=p},69052:(t,e,i)=>{i.d(e,{ie:()=>l});var r=i(34727);class n{constructor(t,e){this.min=t,this.max=e,this.range=e-t}normalize(t,e=0,i=!1){return s(this.range,this.min,this.max,t,e,i)}clamp(t,e=0){return(0,r.qE)(t-e,this.min,this.max)+e}monotonic(t,e,i){return t<e?e:e+o(this.range,t-e,i)}minimalMonotonic(t,e,i){return s(this.range,t,t+this.range,e,i)}center(t,e,i){return e=this.monotonic(t,e,i),this.normalize((t+e)/2,i)}diff(t,e,i){return this.monotonic(t,e,i)-t}shortestSignedDiff(t,e){t=this.normalize(t);const i=(e=this.normalize(e))-t,r=e<t?this.minimalMonotonic(t,e)-t:e-this.minimalMonotonic(e,t);return Math.abs(i)<Math.abs(r)?i:r}contains(t,e,i){return e=this.minimalMonotonic(t,e),(i=this.minimalMonotonic(t,i))>t&&i<e}}function s(t,e,i,r,n=0,s=!1){return(r-=n)<e?r+=o(t,e-r):r>i&&(r-=o(t,r-i)),s&&r===i&&(r=e),r+n}function o(t,e,i=0){return Math.ceil((e-i)/t)*t+i}new n(0,2*Math.PI),new n(-Math.PI,Math.PI);const l=new n(0,360)},69540:(t,e,i)=>{i.d(e,{A:()=>h});var r=i(90237),n=i(69622),s=(i(44208),i(4718)),o=(i(53966),i(97768)),l=i(35666),a=i(88620),u=i(40608);const p=t=>{let e=class extends t{clone(){const t=(0,a.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const e=t.metadata,i=t.store,r={},n=new Map;for(const t in e){const o=e[t],a=i?.originOf(t),u=o.clonable;if(o.readOnly||!1===u||a!==l.Gr.USER&&a!==l.Gr.DEFAULTS&&a!==l.Gr.WEB_MAP&&a!==l.Gr.WEB_SCENE)continue;const p=this[t];let c=null;c="function"==typeof u?u(p):"reference"===u?p:(0,s.TU)(p),null!=p&&null==c||(a===l.Gr.DEFAULTS?n.set(t,c):r[t]=c)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(n.size){const t=(0,a.oY)(u)?.store;if(t)for(const[e,i]of n)t.set(e,i,l.Gr.DEFAULTS)}return u}};return e=(0,r._)([(0,u.$)("esri.core.Clonable")],e),e};let c=class extends(p(n.A)){};c=(0,r._)([(0,u.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=p;const h=c},71493:(t,e,i)=>{i.r(e),i.d(e,{default:()=>R});var r=i(90237),n=i(79608),s=i(68197),o=i(69540),l=i(25482),a=i(90629),u=i(10107),p=i(56507),c=(i(44208),i(87811),i(40608));let h=class extends(l.A.JSONSupportMixin(o.A)){constructor(t){super(t),this.type="simple",this.color=new s.A("black"),this.lineSize=2,this.fontSize=10,this.textColor=new s.A("black"),this.textBackgroundColor=new s.A([255,255,255,.6])}equals(t){return this===t||this.color.equals(t.color)&&this.lineSize===t.lineSize&&this.fontSize===t.fontSize&&this.textColor.equals(t.textColor)&&this.textBackgroundColor.equals(t.textBackgroundColor)}};var d,y;(0,r._)([(0,u.MZ)({type:["simple"],readOnly:!0,json:{write:{isRequired:!0}}})],h.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],h.prototype,"color",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,range:{min:(0,a.PN)(1)},json:{write:{isRequired:!0}}})],h.prototype,"lineSize",void 0),(0,r._)([(0,u.MZ)({type:Number,cast:a.cr,nonNullable:!0,json:{write:{isRequired:!0}}})],h.prototype,"fontSize",void 0),(0,r._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],h.prototype,"textColor",void 0),(0,r._)([(0,u.MZ)({type:s.A,nonNullable:!0,json:{type:[p.jz],write:{isRequired:!0}}})],h.prototype,"textBackgroundColor",void 0),h=(0,r._)([(0,c.$)("esri.analysis.DimensionSimpleStyle")],h),(y=d||(d={})).Horizontal="horizontal",y.Vertical="vertical",y.Direct="direct";const g=[d.Horizontal,d.Vertical,d.Direct];var m=i(69052),f=i(97768),b=i(79901),_=i(86738);let v=class extends(l.A.JSONSupportMixin(o.A)){constructor(t){super(t),this.type="length",this.startPoint=null,this.endPoint=null,this.measureType=d.Direct,this.offset=0,this.orientation=0}get valid(){return null!=this.startPoint&&null!=this.endPoint}equals(t){return this===t||(0,f.CM)(this.startPoint,t.startPoint)&&(0,f.CM)(this.endPoint,t.endPoint)&&this.measureType===t.measureType&&this.offset===t.offset&&this.orientation===t.orientation}};(0,r._)([(0,u.MZ)({type:["length"],json:{write:{isRequired:!0}}})],v.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:_.A,json:{write:{isRequired:!0}}})],v.prototype,"startPoint",void 0),(0,r._)([(0,u.MZ)({type:_.A,json:{write:{isRequired:!0}}})],v.prototype,"endPoint",void 0),(0,r._)([(0,u.MZ)({type:g,nonNullable:!0,json:{write:{isRequired:!0}}})],v.prototype,"measureType",void 0),(0,r._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}})],v.prototype,"offset",void 0),(0,r._)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:{isRequired:!0}}}),(0,b.w)(t=>m.ie.normalize((0,p.GB)(t),0,!0))],v.prototype,"orientation",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],v.prototype,"valid",null),v=(0,r._)([(0,c.$)("esri.analysis.LengthDimension")],v);var M=i(4576),A=i(5503),w=i(62885),S=i(36708),O=(i(53966),i(5443)),x=i(98988);const E=A.A.ofType(v);let Z=class extends n.A{constructor(t){super(t),this.type="dimension",this.style=new h,this.extent=null}initialize(){this.addHandles((0,S.wB)(()=>this._computeExtent(),t=>{null==t?.pending&&this._set("extent",null!=t?t.extent:null)},S.pc))}get dimensions(){return this._get("dimensions")||new E}set dimensions(t){this._set("dimensions",(0,w.V)(t,this.dimensions,E))}get spatialReference(){for(const t of this.dimensions){if(null!=t.startPoint)return t.startPoint.spatialReference;if(null!=t.endPoint)return t.endPoint.spatialReference}return null}get valid(){return this.dimensions.every(t=>t.valid)}async waitComputeExtent(){const t=this._computeExtent();return null!=t?t.pending:Promise.resolve()}_computeExtent(){const t=this.spatialReference;if(null==t)return{pending:null,extent:null};const e=[];for(const t of this.dimensions)null!=t.startPoint&&e.push(t.startPoint),null!=t.endPoint&&e.push(t.endPoint);const i=(0,x.projectOrLoadMany)(e,t);if(null!=i.pending)return{pending:i.pending,extent:null};let r=null;return null!=i.geometries&&(r=i.geometries.reduce((t,e)=>null==t?null!=e?O.A.fromPoint(e):null:null!=e?t.union(O.A.fromPoint(e)):t,null)),{pending:null,extent:r}}clear(){this.dimensions.removeAll()}equals(t){return this===t||super.equals(t)&&this.style.equals(t.style)&&(0,M.aI)(this.dimensions.toArray(),t.dimensions.toArray(),(t,e)=>t.equals(e))}};(0,r._)([(0,u.MZ)({type:["dimension"]})],Z.prototype,"type",void 0),(0,r._)([(0,u.MZ)({cast:w.H,type:E,nonNullable:!0})],Z.prototype,"dimensions",null),(0,r._)([(0,u.MZ)({readOnly:!0})],Z.prototype,"spatialReference",null),(0,r._)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:h}},nonNullable:!0})],Z.prototype,"style",void 0),(0,r._)([(0,u.MZ)({value:null,readOnly:!0})],Z.prototype,"extent",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],Z.prototype,"valid",null),Z=(0,r._)([(0,c.$)("esri.analysis.DimensionAnalysis")],Z);var N=i(92071),T=i(43937),P=i(4146),D=i(16131);let L=class extends((0,D.q)((0,N.P)(P.A))){constructor(t){if(super(t),this.type="dimension",this.operationalLayerType="ArcGISDimensionLayer",this.source=new Z,this.opacity=1,t){const{source:e,style:i}=t;e&&i&&(e.style=i)}}initialize(){this.addHandles([(0,S.wB)(()=>this.source,(t,e)=>{null!=e&&e.parent===this&&(e.parent=null),null!=t&&(t.parent=this)},S.pc)])}async load(){return this.addResolvingPromise(this.source.waitComputeExtent()),this}get spatialReference(){return this.source.spatialReference}get style(){return this.source.style}set style(t){this.source.style=t}get fullExtent(){return this.source.extent}releaseAnalysis(t){this.source===t&&(this.source=new Z)}get analysis(){return this.source}set analysis(t){this.source=t}get dimensions(){return this.source.dimensions}set dimensions(t){this.source.dimensions=t}writeDimensions(t,e,i,r){e.dimensions=t.filter(({startPoint:t,endPoint:e})=>null!=t&&null!=e).toJSON(r)}};(0,r._)([(0,u.MZ)({json:{read:!1},readOnly:!0})],L.prototype,"type",void 0),(0,r._)([(0,u.MZ)({type:["ArcGISDimensionLayer"]})],L.prototype,"operationalLayerType",void 0),(0,r._)([(0,u.MZ)({nonNullable:!0})],L.prototype,"source",void 0),(0,r._)([(0,u.MZ)({readOnly:!0})],L.prototype,"spatialReference",null),(0,r._)([(0,u.MZ)({types:{key:"type",base:null,typeMap:{simple:h}},json:{write:{ignoreOrigin:!0}}})],L.prototype,"style",null),(0,r._)([(0,u.MZ)({readOnly:!0})],L.prototype,"fullExtent",null),(0,r._)([(0,u.MZ)({readOnly:!0,json:{read:!1,write:!1,origins:{service:{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-document":{read:!1,write:!1}}}})],L.prototype,"opacity",void 0),(0,r._)([(0,u.MZ)({type:["show","hide"]})],L.prototype,"listMode",void 0),(0,r._)([(0,u.MZ)({type:A.A.ofType(v),json:{write:{ignoreOrigin:!0},origins:{"web-scene":{write:{ignoreOrigin:!0}}}}})],L.prototype,"dimensions",null),(0,r._)([(0,T.K)("web-scene","dimensions")],L.prototype,"writeDimensions",null),L=(0,r._)([(0,c.$)("esri.layers.DimensionLayer")],L);const R=L},78553:(t,e,i)=>{i.d(e,{D:()=>s,p:()=>n});var r=i(56507);function n(t){const e=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(e,100))}function s(t){const e=1-t/100;return Math.max(0,Math.min(e,1))}},79608:(t,e,i)=>{i.d(e,{A:()=>d});var r=i(90237),n=i(69540),s=i(10107),o=(i(44208),i(53966),i(87811),i(40608));let l=class extends n.A{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r._)([(0,s.MZ)()],l.prototype,"type",void 0),l=(0,r._)([(0,o.$)("esri.analysis.support.AnalysisOriginWebScene")],l);const a=l;var u=i(69622),p=i(4902),c=i(25482);let h=0,d=class extends(c.A.JSONSupportMixin(n.A.ClonableMixin(p.A.IdentifiableMixin(u.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${h++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const e=this.parent;if(null!=e)switch(e.type){case"line-of-sight":case"dimension":case"viewshed":e.releaseAnalysis(this);break;case"2d":case"3d":e.analyses.includes(this)&&e.analyses.remove(this)}this._set("parent",t)}equals(t){return!0}};(0,r._)([(0,s.MZ)({type:String,constructOnly:!0,clonable:!1})],d.prototype,"id",void 0),(0,r._)([(0,s.MZ)({clonable:!1,value:null})],d.prototype,"parent",null),(0,r._)([(0,s.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":a}}})],d.prototype,"origin",void 0),d=(0,r._)([(0,o.$)("esri.analysis.Analysis")],d)},90629:(t,e,i)=>{i.d(e,{Lz:()=>o,PN:()=>l,cr:()=>a,tc:()=>u});const r=/^-?(\d+(\.\d+)?)\s*((px)|(pt))?$/i,n="screenUtils.toPt: input not recognized!",s=96;function o(t){return t?t/72*s:0}function l(t){return t?72*t/s:0}function a(t){if("string"==typeof t){const e=t.match(r);if(e){const i=Number(e[1]),r=e[3]&&e[3].toLowerCase(),n="-"===t.charAt(0),s="px"===r?l(i):i;return n?-s:s}return console.warn(n),null}return t}function u(t=0,e=0){return{x:t,y:e}}},92071:(t,e,i)=>{i.d(e,{P:()=>_,L:()=>v});var r=i(90237),n=i(69622),s=i(76953),o=i(4718),l=i(35666);class a{constructor(){this._propertyOriginMap=new Map,this._originStores=new Array(l.AU),this._values=new Map,this.multipleOriginsSupported=!0}clone(t){const e=new a,i=this._originStores[l.Gr.DEFAULTS];i&&i.forEach((t,i)=>{e.set(i,(0,o.o8)(t),l.Gr.DEFAULTS)});for(let i=l.Gr.SERVICE;i<l.AU;i++){const r=this._originStores[i];r&&r.forEach((r,n)=>{t&&t.has(n)||e.set(n,(0,o.o8)(r),i)})}return e}get(t,e){const i=void 0===e?this._values:this._originStores[e];return i?i.get(t):void 0}keys(t){const e=null==t?this._values:this._originStores[t];return e?[...e.keys()]:[]}set(t,e,i=l.Gr.USER){let r=this._originStores[i];if(r||(r=new Map,this._originStores[i]=r),r.set(t,e),!this._values.has(t)||this._propertyOriginMap.get(t)<=i){const r=this._values.get(t);return this._values.set(t,e),this._propertyOriginMap.set(t,i),r!==e}return!1}delete(t,e=l.Gr.USER){const i=this._originStores[e];if(!i)return;const r=i.get(t);if(i.delete(t),this._values.has(t)&&this._propertyOriginMap.get(t)===e){this._values.delete(t);for(let i=e-1;i>=0;i--){const e=this._originStores[i];if(e&&e.has(t)){this._values.set(t,e.get(t)),this._propertyOriginMap.set(t,i);break}}}return r}has(t,e){const i=void 0===e?this._values:this._originStores[e];return!!i&&i.has(t)}revert(t,e){for(;e>0&&!this.has(t,e);)--e;const i=this._originStores[e],r=i?.get(t),n=this._values.get(t);return this._values.set(t,r),this._propertyOriginMap.set(t,e),n!==r}originOf(t){return this._propertyOriginMap.get(t)||l.Gr.DEFAULTS}isAtOrigin(t,e){return this.has(t,e)&&this.originOf(t)===e}isBelowOrigin(t,e){return!this.has(t)||this.originOf(t)<e}forEach(t){this._values.forEach(t)}}var u=i(45917),p=i(88620),c=i(40608);const h=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,p.oY)(this),i=e.store,r=new a;e.store=r,(0,s.k)(e,i,r)}read(t,e){(0,u.L)(this,t,e)}getAtOrigin(t,e){const i=d(this),r=(0,l.aB)(e);if("string"==typeof t)return i.get(t,r);const n={};return t.forEach(t=>{n[t]=i.get(t,r)}),n}originOf(t){return(0,l.OL)(this.originIdOf(t))}originIdOf(t){return d(this).originOf(t)}revert(t,e){const i=d(this),r=(0,l.aB)(e),n=(0,p.oY)(this);let s;s="string"==typeof t?"*"===t?i.keys(r):[t]:t,s.forEach(t=>{n.invalidate(t),i.revert(t,r),n.commit(t)})}};return e=(0,r._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],e),e};function d(t){return(0,p.oY)(t).store}let y=class extends(h(n.A)){};y=(0,r._)([(0,c.$)("esri.core.ReadOnlyMultiOriginJSONSupport")],y);var g=i(16649),m=i(49422);const f=t=>{let e=class extends t{constructor(...t){super(...t)}clear(t,e="user"){(0,p.oY)(this).clearOrigin(t,(0,l.aB)(e))}write(t,e){return(0,m.M)(this,t=t||{},e),t}setAtOrigin(t,e,i){(0,p.oY)(this).setAtOrigin(t,e,(0,l.aB)(i))}removeOrigin(t){const e=b(this),i=(0,l.aB)(t),r=e.keys(i);for(const t of r)e.originOf(t)===i&&e.set(t,e.get(t,i),l.Gr.USER)}updateOrigin(t,e){const i=b(this),r=(0,l.aB)(e),n=(0,g.Jt)(this,t);for(let e=r+1;e<l.AU;++e)i.delete(t,e);i.set(t,n,r)}toJSON(t){return this.write({},t)}};return e=(0,r._)([(0,c.$)("esri.core.MultiOriginJSONSupport.WriteableMultiOriginJSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function b(t){return(0,p.oY)(t).store}const _=t=>{let e=class extends(f(h(t))){constructor(...t){super(...t)}};return e=(0,r._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],e),e};let v=class extends(_(n.A)){};v=(0,r._)([(0,c.$)("esri.core.MultiOriginJSONSupport")],v)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6112],{240:(t,n,r)=>{r.d(n,{C:()=>c,vt:()=>u,lU:()=>h,fA:()=>f,mR:()=>_,Qj:()=>l,T7:()=>v,gv:()=>N,Ui:()=>E,Tj:()=>S,_I:()=>T,mP:()=>g,LV:()=>i});var e=r(34727),o=r(38954),a=r(51850),s=(r(87317),r(44280),r(32114));function u(t=w){return[t[0],t[1],t[2],t[3]]}function i(t=w[0],n=w[1],r=w[2],e=w[3]){return f(t,n,r,e,s.Km.get())}function c(t,n){return f(n[0],n[1],n[2],n[3],t)}function l(t){return t}function f(t,n,r,e,o=u()){return o[0]=t,o[1]=n,o[2]=r,o[3]=e,o}function h(t,n,r,e=0,a=Math.floor(r*(1/3)),s=Math.floor(r*(2/3))){if(r<3)return!1;n(m,e);let i=a,c=!1;for(;i<r-1&&!c;)n(I,i),i++,c=!(0,o.q)(m,I);if(!c)return!1;for(i=Math.max(i,s),c=!1;i<r&&!c;)n(d,i),i++,(0,o.d)(p,m,I),(0,o.n)(p,p),(0,o.d)(b,I,d),(0,o.n)(b,b),c=!(0,o.q)(m,d)&&!(0,o.q)(I,d)&&Math.abs((0,o.e)(p,b))<M;return c?(function(t,n,r,e=u()){const o=r[0]-n[0],a=r[1]-n[1],s=r[2]-n[2],i=t[0]-n[0],c=t[1]-n[1],l=t[2]-n[2],f=a*l-s*c,h=s*i-o*l,M=o*c-a*i,m=f*f+h*h+M*M,I=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;e[0]=f*I,e[1]=h*I,e[2]=M*I,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2])}(m,I,d,t),!0):(0!==e||1!==a||2!==s)&&h(t,n,r,0,1,2)}(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)();const M=.99619469809,m=(0,a.vt)(),I=(0,a.vt)(),d=(0,a.vt)(),p=(0,a.vt)(),b=(0,a.vt)();function g(t,n,r){return n!==t&&c(t,n),t[3]=-(0,o.e)(t,r),t}function _(t,n,r,e){return(0,o.h)(d,n,t),function(t,n,r){const e=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],o=Math.abs(e-1)>1e-5&&e>1e-12?1/Math.sqrt(e):1;return r[0]=n[0]*o,r[1]=n[1]*o,r[2]=n[2]*o,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}(r,d,e)}function E(t,n,r){return null!=n&&O(P(t,n.origin,n.direction,D,r))}function v(t,n,r){return O(P(t,n.origin,n.vector,C.NONE,r))}function N(t,n,r){return O(P(t,n.origin,n.vector,C.CLAMP,r))}function S(t,n){return A(t,n)>=0}function T(t,n,r){const e=(0,o.g)(s.rq.get(),t,-t[3]),a=function(t,n,r){const e=(0,o.g)(s.rq.get(),t,(0,o.e)(t,n));return(0,o.d)(r,n,e),r}(t,(0,o.d)(s.rq.get(),n,e),s.rq.get());return(0,o.f)(r,a,e),r}function A(t,n){return(0,o.e)(t,n)+t[3]}var y,x;function O(t){return t===y.INTERSECTS_INSIDE_OUT||t===y.INTERSECTS_OUTSIDE_IN}function P(t,n,r,a,s){const u=(0,o.e)(t,r),i=A(t,n);if(0===u)return i>=0?y.INSIDE:y.OUTSIDE;let c=-i/u;return a&C.CLAMP&&(c=(0,e.qE)(c,0,1)),!(a&C.INFINITE_MIN)&&c<0||!(a&C.INFINITE_MAX)&&c>1?i>=0?y.INSIDE:y.OUTSIDE:((0,o.f)(s,n,(0,o.g)(s,r,c)),i>=0?y.INTERSECTS_INSIDE_OUT:y.INTERSECTS_OUTSIDE_IN)}(x=y||(y={}))[x.INTERSECTS_INSIDE_OUT=0]="INTERSECTS_INSIDE_OUT",x[x.INTERSECTS_OUTSIDE_IN=1]="INTERSECTS_OUTSIDE_IN",x[x.INSIDE=2]="INSIDE",x[x.OUTSIDE=3]="OUTSIDE";const w=[0,0,1,0];var C;!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"}(C||(C={})),C.INFINITE_MIN,C.INFINITE_MAX;const D=C.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 o(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:()=>o,vt:()=>e,zK:()=>a});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:e,fromValues:function(t,n,r,e,o,a,s,u,i,c,l,f,h,M,m,I){return[t,n,r,e,o,a,s,u,i,c,l,f,h,M,m,I]}},Symbol.toStringTag,{value:"Module"}))},24770:(t,n,r)=>{r.d(n,{$I:()=>d,AU:()=>M,g7:()=>I,i4:()=>l,ui:()=>f,up:()=>b,vt:()=>c,yo:()=>m});var e=r(34727),o=r(58083),a=r(67026),s=r(82534),u=r(38954),i=r(51850);function c(t=b){return[t[0],t[1],t[2],t[3]]}function l(t,n,r=c()){return(0,u.c)(r,t),r[3]=n,r}function f(t,n=c()){const r=(0,o.l)(g,t);return p(n,(0,e.KJ)((0,a.Xd)(n,r))),n}function h(t,n,r=c()){return(0,a.x8)(g,t,d(t)),(0,a.x8)(_,n,d(n)),(0,a.lw)(g,_,g),p(r,(0,e.KJ)((0,a.Xd)(r,g)))}function M(t,n,r,e=c()){return l(i.Cw,t,E),l(i.JP,n,v),l(i.Cb,r,N),h(E,v,E),h(E,N,e),e}function m(t){return t}function I(t){return t[3]}function d(t){return(0,e.kU)(t[3])}function p(t,n){return t[3]=n,t}const b=[0,0,1,0],g=(0,s.vt)(),_=(0,s.vt)(),E=(c(),c()),v=c(),N=c()},29242:(t,n,r)=>{function e(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,r,e,o,a,s,u,i){return[t,n,r,e,o,a,s,u,i]}r.d(n,{fA:()=>o,vt:()=>e,zK:()=>a});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,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:o},Symbol.toStringTag,{value:"Module"}))},32114:(t,n,r)=>{r.d(n,{Rc:()=>M,J8:()=>m,rq:()=>f,Km:()=>h}),r(44208);var e=r(26390),o=r(29242),a=r(9093),s=r(82534),u=r(48163),i=r(51850),c=r(91829);class l{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 l(u.vt)}static createVec3f64(){return new l(i.vt)}static createVec4f64(){return new l(c.vt)}static createMat3f64(){return new l(o.vt)}static createMat4f64(){return new l(a.vt)}static createQuatf64(){return new l(s.vt)}get test(){}}l.createVec2f64();const f=l.createVec3f64(),h=l.createVec4f64(),M=(l.createMat3f64(),l.createMat4f64()),m=l.createQuatf64()},38954:(t,n,r)=>{r.d(n,{A:()=>m,B:()=>M,C:()=>l,D:()=>f,E:()=>D,F:()=>F,H:()=>j,a:()=>q,b:()=>p,c:()=>s,d:()=>c,e:()=>S,f:()=>i,g:()=>d,h:()=>T,i:()=>u,j:()=>b,k:()=>_,l:()=>a,m:()=>A,n:()=>N,o:()=>x,q:()=>C,r:()=>v,s:()=>g,t:()=>y,u:()=>E,v:()=>O,w:()=>h,x:()=>L,y:()=>X,z:()=>I});var e=r(51850),o=r(34304);function a(t){const n=t[0],r=t[1],e=t[2];return Math.sqrt(n*n+r*r+e*e)}function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function u(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 c(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t}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}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){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function M(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 d(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t}function p(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 b(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return Math.sqrt(r*r+e*e+o*o)}function g(t,n){const r=n[0]-t[0],e=n[1]-t[1],o=n[2]-t[2];return r*r+e*e+o*o}function _(t){const n=t[0],r=t[1],e=t[2];return n*n+r*r+e*e}function E(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function v(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function N(t,n){const r=n[0],e=n[1],o=n[2];let a=r*r+e*e+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a),t}function S(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function T(t,n,r){const e=n[0],o=n[1],a=n[2],s=r[0],u=r[1],i=r[2];return t[0]=o*i-a*u,t[1]=a*s-e*i,t[2]=e*u-o*s,t}function A(t,n,r,e){const o=n[0],a=n[1],s=n[2];return t[0]=o+e*(r[0]-o),t[1]=a+e*(r[1]-a),t[2]=s+e*(r[2]-s),t}function y(t,n,r){const e=n[0],o=n[1],a=n[2];return t[0]=r[0]*e+r[4]*o+r[8]*a+r[12],t[1]=r[1]*e+r[5]*o+r[9]*a+r[13],t[2]=r[2]*e+r[6]*o+r[10]*a+r[14],t}function x(t,n,r){const e=n[0],o=n[1],a=n[2];return t[0]=e*r[0]+o*r[3]+a*r[6],t[1]=e*r[1]+o*r[4]+a*r[7],t[2]=e*r[2]+o*r[5]+a*r[8],t}function O(t,n,r){const e=r[0],o=r[1],a=r[2],s=r[3],u=n[0],i=n[1],c=n[2],l=o*c-a*i,f=a*u-e*c,h=e*i-o*u,M=o*h-a*f,m=a*l-e*h,I=e*f-o*l,d=2*s;return t[0]=u+l*d+2*M,t[1]=i+f*d+2*m,t[2]=c+h*d+2*I,t}const P=(0,e.vt)(),w=(0,e.vt)();function C(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function D(t,n,r){const e=r[0]-n[0],o=r[1]-n[1],a=r[2]-n[2];let s=e*e+o*o+a*a;return s>0?(s=1/Math.sqrt(s),t[0]=e*s,t[1]=o*s,t[2]=a*s,t):(t[0]=0,t[1]=0,t[2]=0,t)}const q=c,z=l,R=f,F=b,L=g,j=a,X=_;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:i,angle:function(t,n){N(P,t),N(w,n);const r=S(P,w);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(t,n,r,e,o,a){const s=1-a,u=s*s,i=a*a,c=u*s,l=3*a*u,f=3*i*s,h=i*a;return t[0]=n[0]*c+r[0]*l+e[0]*f+o[0]*h,t[1]=n[1]*c+r[1]*l+e[1]*f+o[1]*h,t[2]=n[2]*c+r[2]*l+e[2]*f+o[2]*h,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:s,cross:T,crossAndNormalize:function(t,n,r){const e=n[0],o=n[1],a=n[2],s=r[0],u=r[1],i=r[2],c=o*i-a*u,l=a*s-e*i,f=e*u-o*s,h=Math.sqrt(c*c+l*l+f*f);return t[0]=c/h,t[1]=l/h,t[2]=f/h,t},direction:D,dist:F,distance:b,div:R,divide:f,dot:S,equals:function(t,n){if(t===n)return!0;const r=t[0],e=t[1],a=t[2],s=n[0],u=n[1],i=n[2],c=(0,o.FD)();return Math.abs(r-s)<=c*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(e-u)<=c*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(a-i)<=c*Math.max(1,Math.abs(a),Math.abs(i))},exactEquals:C,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,o,a){const s=a*a,u=s*(2*a-3)+1,i=s*(a-2)+a,c=s*(a-1),l=s*(3-2*a);return t[0]=n[0]*u+r[0]*i+e[0]*c+o[0]*l,t[1]=n[1]*u+r[1]*i+e[1]*c+o[1]*l,t[2]=n[2]*u+r[2]*i+e[2]*c+o[2]*l,t},inverse:v,len:j,length:a,lerp:A,max:I,min:m,mul:z,multiply:l,negate:E,normalize:N,random:function(t,n=1){const r=o.Ov,e=2*r()*Math.PI,a=2*r()-1,s=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(e)*s,t[1]=Math.sin(e)*s,t[2]=a*n,t},rotateX:function(t,n,r,e){const o=[],a=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],a[0]=o[0],a[1]=o[1]*Math.cos(e)-o[2]*Math.sin(e),a[2]=o[1]*Math.sin(e)+o[2]*Math.cos(e),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},rotateY:function(t,n,r,e){const o=[],a=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],a[0]=o[2]*Math.sin(e)+o[0]*Math.cos(e),a[1]=o[1],a[2]=o[2]*Math.cos(e)-o[0]*Math.sin(e),t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[2]+r[2],t},rotateZ:function(t,n,r,e){const o=[],a=[];return o[0]=n[0]-r[0],o[1]=n[1]-r[1],o[2]=n[2]-r[2],a[0]=o[0]*Math.cos(e)-o[1]*Math.sin(e),a[1]=o[0]*Math.sin(e)+o[1]*Math.cos(e),a[2]=o[2],t[0]=a[0]+r[0],t[1]=a[1]+r[1],t[2]=a[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:d,scaleAndAdd:p,set:u,sign:M,sqrDist:L,sqrLen:X,squaredDistance:g,squaredLength:_,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:q,subtract:c,transformMat3:x,transformMat4:y,transformQuat:O},Symbol.toStringTag,{value:"Module"}))},40050:(t,n,r)=>{r.r(n),r.d(n,{assetMapFromAssetMapsJSON:()=>b,extractMesh:()=>I,meshFeatureSetFromJSON:()=>m});var e=r(52106),o=r(53966),a=r(91869),s=r(5443),u=r(40036),i=r(16930),c=r(63579),l=r(20557),f=r(22671),h=r(77793);const M=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function m(t,n,r){const o=r.features;r.features=[],delete r.geometryType;const a=f.A.fromJSON(r);if(a.geometryType="mesh",!r.assetMaps)return a;const s=b(n,r.assetMaps),u=t.sourceSpatialReference??i.A.WGS84,c=r.globalIdFieldName,{outFields:l}=t,h=null!=l&&l.length>0?(M=l.includes("*")?null:new Set(l),({attributes:t})=>{if(!t)return{};if(!M)return t;for(const n in t)M.has(n)||delete t[n];return t}):()=>({});var M;for(const t of o){const r=I(t,c,u,n,s);a.features.push(new e.A({geometry:r,attributes:h(t)}))}return a}function I(t,n,r,e,o){const a=t.attributes[n],i=o.get(a);if(null==i||!t.geometry)return null;const l=(0,h.V)(t.attributes,r,e.transformFieldRoles),f=s.A.fromJSON(t.geometry);f.spatialReference=r;const M=(0,h.f)(t.attributes,e.transformFieldRoles),m=r.isGeographic?"local":"georeferenced",I=function(t){const n=Array.from(t.files.values()),r=new Array;for(const t of n){if(t.status!==d.COMPLETED)return null;const n=new Array;for(const r of t.parts){if(!r)return null;n.push(new c.Bq(r.url,r.hash))}r.push(new c.Qp(t.name,t.mimeType,n))}return{type:"service",assets:r}}(i);return I?u.default.createWithExternalSource(l,I,{extent:f,transform:M,vertexSpace:m,unitConversionDisabled:!0}):u.default.createIncomplete(l,{extent:f,transform:M,vertexSpace:m})}var d,p;function b(t,n){const r=new Map;for(const e of n){const n=e.parentGlobalId;if(null==n)continue;const o=e.assetName,s=e.assetType,u=e.assetHash,i=e.assetURL,c=e.conversionStatus,f=e.seqNo,h=(0,l.Fm)(s,t.supportedFormats);if(!h){M().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${s}, but it does not list it as a supported type`);continue}const m=(0,a.tE)(r,n,()=>({files:new Map}));(0,a.tE)(m.files,o,()=>({name:o,type:s,mimeType:h,status:g(c),parts:[]})).parts[f]={hash:u,url:i}}return r}function g(t){switch(t){case"COMPLETED":case"SUBMITTED":return d.COMPLETED;case"INPROGRESS":return d.PENDING;default:return d.FAILED}}(p=d||(d={}))[p.FAILED=0]="FAILED",p[p.PENDING=1]="PENDING",p[p.COMPLETED=2]="COMPLETED"},44280:(t,n,r)=>{r.d(n,{EJ:()=>i,g7:()=>u,gr:()=>s});var e=r(34727),o=r(38954),a=r(51850);function s(t,n){return(0,o.e)(t,n)/(0,o.l)(t)}function u(t,n){const r=(0,o.e)(t,n)/((0,o.l)(t)*(0,o.l)(n));return-(0,e.XM)(r)}function i(t,n,r){(0,o.n)(c,t),(0,o.n)(l,n);const a=(0,o.e)(c,l),s=(0,e.XM)(a),u=(0,o.h)(c,c,l);return(0,o.e)(u,r)<0?2*Math.PI-s:s}const c=(0,a.vt)(),l=(0,a.vt)()},48163:(t,n,r)=>{function e(){return[0,0]}function o(t,n){return[t,n]}function a(){return o(1,1)}function s(){return o(1,0)}function u(){return o(0,1)}r.d(n,{Un:()=>i,fA:()=>o,vt:()=>e});const i=a(),c=s(),l=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:i,UNIT_X:c,UNIT_Y:l,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:o,ones:a,unitX:s,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,r)=>{r.d(n,{l:()=>c});var e=r(34727),o=r(58083),a=r(51850);function s(t,n,r){const e=Math.sin(t),o=Math.cos(t),a=Math.sin(n),s=Math.cos(n),u=r;return u[0]=-e,u[4]=-a*o,u[8]=s*o,u[12]=0,u[1]=o,u[5]=-a*e,u[9]=s*e,u[13]=0,u[2]=0,u[6]=s,u[10]=a,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=r(37539),i=r(21325);function c(t,n,r,e){const a=(0,u.Tp)(t,e);if(null==a)return!1;const c=a.source.spatialReferenceId,m=a.dest.spatialReferenceId;if(c===m&&!l(m)&&(c!==u.rz.UNKNOWN||(0,i.aI)(t,e)))return(0,o.kN)(r,n),!0;if(l(m)){const t=u.w5[c][u.rz.LON_LAT],e=u.w5[u.rz.LON_LAT][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),s(f*h[0],f*h[1],r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}const I=l(c);if((m===u.rz.WEB_MERCATOR||m===u.rz.PLATE_CARREE||m===u.rz.WGS84||m===u.rz.CGCS2000)&&(c===u.rz.WGS84||I||c===u.rz.WEB_MERCATOR||c===u.rz.CGCS2000)){const t=u.w5[c][u.rz.LON_LAT],e=u.w5[u.rz.LON_LAT][m];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,M,0),I?function(t,n,r){s(t,n,r),(0,o.mg)(r,r)}(f*h[0],f*h[1],r):(0,o.D_)(r),r[12]=M[0],r[13]=M[1],r[14]=M[2],!0)}return!1}function l(t){return t===u.rz.SPHERICAL_ECEF||t===u.rz.SPHERICAL_MARS_PCPF||t===u.rz.SPHERICAL_MOON_PCPF||t===u.rz.WGS84_ECEF}const f=(0,e.kU)(1),h=(0,a.vt)(),M=(0,a.vt)()},65806:(t,n,r)=>{r.d(n,{g:()=>s});var e=r(51850),o=r(98988),a=r(9762);function s(t,n,r,e){if((0,o.canProjectWithoutEngine)(t.spatialReference,r)){u[0]=t.x,u[1]=t.y;const o=t.z;return u[2]=o??e??0,(0,a.projectBuffer)(u,t.spatialReference,0,n,r,0)}const s=(0,o.tryProjectWithZConversion)(t,r);return!!s&&(n[0]=s?.x,n[1]=s?.y,n[2]=s?.z??e??0,!0)}const u=(0,e.vt)()},67026:(t,n,r)=>{r.d(n,{A6:()=>I,Xd:()=>l,Xr:()=>M,hZ:()=>p,lw:()=>f,t2:()=>x,x8:()=>c});var e=r(29242),o=r(82534),a=r(51850),s=r(34304),u=r(38954),i=r(87317);function c(t,n,r){r*=.5;const e=Math.sin(r);return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=Math.cos(r),t}function l(t,n){const r=2*Math.acos(n[3]),e=Math.sin(r/2);return e>(0,s.FD)()?(t[0]=n[0]/e,t[1]=n[1]/e,t[2]=n[2]/e):(t[0]=1,t[1]=0,t[2]=0),r}function f(t,n,r){const e=n[0],o=n[1],a=n[2],s=n[3],u=r[0],i=r[1],c=r[2],l=r[3];return t[0]=e*l+s*u+o*c-a*i,t[1]=o*l+s*i+a*u-e*c,t[2]=a*l+s*c+e*i-o*u,t[3]=s*l-e*u-o*i-a*c,t}function h(t,n,r,e){const o=n[0],a=n[1],u=n[2],i=n[3];let c,l,f,h,M,m=r[0],I=r[1],d=r[2],p=r[3];return l=o*m+a*I+u*d+i*p,l<0&&(l=-l,m=-m,I=-I,d=-d,p=-p),1-l>(0,s.FD)()?(c=Math.acos(l),f=Math.sin(c),h=Math.sin((1-e)*c)/f,M=Math.sin(e*c)/f):(h=1-e,M=e),t[0]=h*o+M*m,t[1]=h*a+M*I,t[2]=h*u+M*d,t[3]=h*i+M*p,t}function M(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function m(t,n){const r=n[0]+n[4]+n[8];let e;if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{let r=0;n[4]>n[0]&&(r=1),n[8]>n[3*r+r]&&(r=2);const o=(r+1)%3,a=(r+2)%3;e=Math.sqrt(n[3*r+r]-n[3*o+o]-n[3*a+a]+1),t[r]=.5*e,e=.5/e,t[3]=(n[3*o+a]-n[3*a+o])*e,t[o]=(n[3*o+r]+n[3*r+o])*e,t[a]=(n[3*a+r]+n[3*r+a])*e}return t}function I(t,n,r,e){const o=.5*Math.PI/180;n*=o,r*=o,e*=o;const a=Math.sin(n),s=Math.cos(n),u=Math.sin(r),i=Math.cos(r),c=Math.sin(e),l=Math.cos(e);return t[0]=a*i*l-s*u*c,t[1]=s*u*l+a*i*c,t[2]=s*i*c-a*u*l,t[3]=s*i*l+a*u*c,t}const d=i.c,p=i.s,b=i.g,g=f,_=i.d,E=i.h,v=i.l,N=i.j,S=N,T=i.b,A=T,y=i.n,x=i.a,O=i.e,P=(0,a.vt)(),w=(0,a.fA)(1,0,0),C=(0,a.fA)(0,1,0),D=(0,o.vt)(),q=(0,o.vt)(),z=(0,e.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(t,n){const r=n[0],e=n[1],o=n[2];return t[0]=r,t[1]=e,t[2]=o,t[3]=Math.sqrt(Math.abs(1-r*r-e*e-o*o)),t},conjugate:M,copy:d,dot:E,equals:O,exactEquals:x,fromEuler:I,fromMat3:m,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=r*r+e*e+o*o+a*a,u=s?1/s:0;return t[0]=-r*u,t[1]=-e*u,t[2]=-o*u,t[3]=a*u,t},len:S,length:N,lerp:v,mul:g,multiply:f,normalize:y,random:function(t){const n=s.Ov,r=n(),e=n(),o=n(),a=Math.sqrt(1-r),u=Math.sqrt(r);return t[0]=a*Math.sin(2*Math.PI*e),t[1]=a*Math.cos(2*Math.PI*e),t[2]=u*Math.sin(2*Math.PI*o),t[3]=u*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],s=n[3],u=Math.sin(r),i=Math.cos(r);return t[0]=e*i+s*u,t[1]=o*i+a*u,t[2]=a*i-o*u,t[3]=s*i-e*u,t},rotateY:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],s=n[3],u=Math.sin(r),i=Math.cos(r);return t[0]=e*i-a*u,t[1]=o*i+s*u,t[2]=a*i+e*u,t[3]=s*i-o*u,t},rotateZ:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],s=n[3],u=Math.sin(r),i=Math.cos(r);return t[0]=e*i+o*u,t[1]=o*i-e*u,t[2]=a*i+s*u,t[3]=s*i-a*u,t},rotationTo:function(t,n,r){const e=(0,u.e)(n,r);return e<-.999999?((0,u.h)(P,w,n),(0,u.H)(P)<1e-6&&(0,u.h)(P,C,n),(0,u.n)(P,P),c(t,P,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,u.h)(P,n,r),t[0]=P[0],t[1]=P[1],t[2]=P[2],t[3]=1+e,y(t,t))},scale:_,set:p,setAxes:function(t,n,r,e){const o=z;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=e[0],o[4]=e[1],o[7]=e[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],y(t,m(t,o))},setAxisAngle:c,slerp:h,sqlerp:function(t,n,r,e,o,a){return h(D,n,o,a),h(q,r,e,a),h(t,D,q,2*a*(1-a)),t},sqrLen:A,squaredLength:T,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},73836:(t,n,r)=>{r.d(n,{A:()=>m});var e,o=r(90237),a=r(25482),s=r(10107),u=(r(44208),r(53966),r(87811),r(40608)),i=r(58083),c=r(9093),l=r(67026),f=r(82534),h=r(51850),M=r(24770);let m=class extends a.A{static{e=this}constructor(t){super(t),this.translation=(0,h.vt)(),this.rotationAxis=(0,h.ci)(M.up),this.rotationAngle=0,this.scale=(0,h.fA)(1,1,1)}get rotation(){return(0,M.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,h.o8)((0,M.yo)(t)),this.rotationAngle=(0,M.g7)(t)}get localMatrix(){const t=(0,c.vt)();return(0,l.x8)(I,(0,M.yo)(this.rotation),(0,M.$I)(this.rotation)),(0,i.o1)(t,I,this.translation,this.scale),t}get localMatrixInverse(){return(0,i.B8)((0,c.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,i.t2)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,h.o8)(this.translation),rotationAxis:(0,h.o8)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,h.o8)(this.scale)};return new e(t)}};(0,o._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"translation",void 0),(0,o._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"rotationAxis",void 0),(0,o._)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],m.prototype,"rotationAngle",void 0),(0,o._)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],m.prototype,"scale",void 0),(0,o._)([(0,s.MZ)()],m.prototype,"rotation",null),(0,o._)([(0,s.MZ)()],m.prototype,"localMatrix",null),(0,o._)([(0,s.MZ)()],m.prototype,"localMatrixInverse",null),m=e=(0,o._)([(0,u.$)("esri.geometry.support.MeshTransform")],m);const I=(0,f.vt)()},77690:(t,n,r)=>{r.d(n,{B8:()=>u,Ge:()=>h,I0:()=>f,KC:()=>i,hZ:()=>a,hs:()=>l,lw:()=>c,mg:()=>s,z0:()=>o});var e=r(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,r,e,o,a,s,u,i,c){return t[0]=n,t[1]=r,t[2]=e,t[3]=o,t[4]=a,t[5]=s,t[6]=u,t[7]=i,t[8]=c,t}function s(t,n){if(t===n){const r=n[1],e=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function u(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=n[4],u=n[5],i=n[6],c=n[7],l=n[8],f=l*s-u*c,h=-l*a+u*i,M=c*a-s*i;let m=r*f+e*h+o*M;return m?(m=1/m,t[0]=f*m,t[1]=(-l*e+o*c)*m,t[2]=(u*e-o*s)*m,t[3]=h*m,t[4]=(l*r-o*i)*m,t[5]=(-u*r+o*a)*m,t[6]=M*m,t[7]=(-c*r+e*i)*m,t[8]=(s*r-e*a)*m,t):null}function i(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=n[4],u=n[5],i=n[6],c=n[7],l=n[8];return t[0]=s*l-u*c,t[1]=o*c-e*l,t[2]=e*u-o*s,t[3]=u*i-a*l,t[4]=r*l-o*i,t[5]=o*a-r*u,t[6]=a*c-s*i,t[7]=e*i-r*c,t[8]=r*s-e*a,t}function c(t,n,r){const e=n[0],o=n[1],a=n[2],s=n[3],u=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=r[0],M=r[1],m=r[2],I=r[3],d=r[4],p=r[5],b=r[6],g=r[7],_=r[8];return t[0]=h*e+M*s+m*c,t[1]=h*o+M*u+m*l,t[2]=h*a+M*i+m*f,t[3]=I*e+d*s+p*c,t[4]=I*o+d*u+p*l,t[5]=I*a+d*i+p*f,t[6]=b*e+g*s+_*c,t[7]=b*o+g*u+_*l,t[8]=b*a+g*i+_*f,t}function l(t,n,r){const e=r[0],o=r[1],a=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t}function f(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=r+r,u=e+e,i=o+o,c=r*s,l=e*s,f=e*u,h=o*s,M=o*u,m=o*i,I=a*s,d=a*u,p=a*i;return t[0]=1-f-m,t[3]=l-p,t[6]=h+d,t[1]=l+p,t[4]=1-c-m,t[7]=M-I,t[2]=h-d,t[5]=M+I,t[8]=1-c-f,t}function h(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],s=n[4],u=n[5],i=n[6],c=n[7],l=n[8],f=n[9],h=n[10],M=n[11],m=n[12],I=n[13],d=n[14],p=n[15],b=r*u-e*s,g=r*i-o*s,_=r*c-a*s,E=e*i-o*u,v=e*c-a*u,N=o*c-a*i,S=l*I-f*m,T=l*d-h*m,A=l*p-M*m,y=f*d-h*I,x=f*p-M*I,O=h*p-M*d;let P=b*O-g*x+_*y+E*A-v*T+N*S;return P?(P=1/P,t[0]=(u*O-i*x+c*y)*P,t[1]=(i*A-s*O-c*T)*P,t[2]=(s*x-u*A+c*S)*P,t[3]=(o*x-e*O-a*y)*P,t[4]=(r*O-o*A+a*T)*P,t[5]=(e*A-r*x-a*S)*P,t[6]=(I*N-d*v+p*E)*P,t[7]=(d*_-m*N-p*g)*P,t[8]=(m*v-I*_+p*b)*P,t):null}function M(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=c,I=M;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],o=t[3],a=t[4],s=t[5],u=t[6],i=t[7],c=t[8];return n*(c*a-s*i)+r*(-c*o+s*u)+e*(i*o-a*u)},equals:function(t,n){const r=t[0],o=t[1],a=t[2],s=t[3],u=t[4],i=t[5],c=t[6],l=t[7],f=t[8],h=n[0],M=n[1],m=n[2],I=n[3],d=n[4],p=n[5],b=n[6],g=n[7],_=n[8],E=(0,e.FD)();return Math.abs(r-h)<=E*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(o-M)<=E*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-m)<=E*Math.max(1,Math.abs(a),Math.abs(m))&&Math.abs(s-I)<=E*Math.max(1,Math.abs(s),Math.abs(I))&&Math.abs(u-d)<=E*Math.max(1,Math.abs(u),Math.abs(d))&&Math.abs(i-p)<=E*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(c-b)<=E*Math.max(1,Math.abs(c),Math.abs(b))&&Math.abs(l-g)<=E*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(f-_)<=E*Math.max(1,Math.abs(f),Math.abs(_))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,n){const 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:u,isOrthoNormal:function(t){const n=(0,e.FD)(),r=t[0],o=t[1],a=t[2],s=t[3],u=t[4],i=t[5],c=t[6],l=t[7],f=t[8];return Math.abs(1-(r*r+s*s+c*c))<=n&&Math.abs(1-(o*o+u*u+l*l))<=n&&Math.abs(1-(a*a+i*i+f*f))<=n},mul:m,multiply:c,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:h,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[4],s=n[5],u=n[6],i=n[8],c=n[9],l=n[10],f=l*s-u*c,h=-l*a+u*i,M=c*a-s*i,m=r*f+e*h+o*M;if(!m)return null;const I=1/m;return t[0]=f*I,t[1]=(-l*e+o*c)*I,t[2]=(u*e-o*s)*I,t[3]=h*I,t[4]=(l*r-o*i)*I,t[5]=(-u*r+o*a)*I,t[6]=M*I,t[7]=(-c*r+e*i)*I,t[8]=(s*r-e*a)*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],o=n[1],a=n[2],s=n[3],u=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=Math.sin(r),M=Math.cos(r);return t[0]=M*e+h*s,t[1]=M*o+h*u,t[2]=M*a+h*i,t[3]=M*s-h*e,t[4]=M*u-h*o,t[5]=M*i-h*a,t[6]=c,t[7]=l,t[8]=f,t},scale:l,scaleByVec2:function(t,n,r){const e=r[0],o=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,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:M,translate:function(t,n,r){const e=n[0],o=n[1],a=n[2],s=n[3],u=n[4],i=n[5],c=n[6],l=n[7],f=n[8],h=r[0],M=r[1];return t[0]=e,t[1]=o,t[2]=a,t[3]=s,t[4]=u,t[5]=i,t[6]=h*e+M*s+c,t[7]=h*o+M*u+l,t[8]=h*a+M*i+f,t},transpose:s},Symbol.toStringTag,{value:"Module"}))},77793:(t,n,r)=>{r.d(n,{V:()=>a,f:()=>s});var e=r(86738),o=r(73836);function a(t,n,r=u){return new e.A({x:t[r.originX],y:t[r.originY],z:t[r.originZ],spatialReference:n})}function s(t,n=u){return new o.A({translation:[t[n.translationX],-t[n.translationZ],t[n.translationY]],rotationAxis:[t[n.rotationX],-t[n.rotationZ],t[n.rotationY]],rotationAngle:t[n.rotationDeg],scale:[t[n.scaleX],t[n.scaleZ],t[n.scaleY]]})}const u={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},82534:(t,n,r)=>{function e(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}r.d(n,{o8:()=>o,vt:()=>e,zK:()=>a});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:e,fromValues:function(t,n,r,e){return[t,n,r,e]}},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,r)=>{r.d(n,{Y0:()=>c,lO:()=>l});var e=r(73941),o=r(16930),a=r(21325);const s=new o.A(e.fv),u=new o.A(e.FY),i=new o.A(e.LJ),c=new o.A(e.Ro);function l(t){const n=f.get(t);if(n)return n;let r=s;if(t)if(t===u)r=u;else if(t===i)r=i;else{const n=t.wkid,e=t.latestWkid;if(null!=n||null!=e)(0,a.tl)(n)||(0,a.tl)(e)?r=u:((0,a.ZL)(n)||(0,a.ZL)(e))&&(r=i);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?r=u:t===M&&(r=i)}}}return f.set(t,r),r}const f=new Map,h=u.wkt.toUpperCase(),M=i.wkt.toUpperCase()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4496],{1193:(t,n,e)=>{e.d(n,{H:()=>p});var r,o=e(90237),i=e(25482),a=e(4718),u=e(53966),l=e(10107),s=e(79901),c=e(40608),f=e(31199);let p=r=class extends i.A{constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,f.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},u.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&u.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,f.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},u.A.getLogger(this))}castUv(t){return(0,f.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},u.A.getLogger(this))}castNormal(t){return(0,f.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},u.A.getLogger(this))}castTangent(t){return(0,f.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},u.A.getLogger(this))}clone(){const t={position:(0,a.o8)(this.position),uv:(0,a.o8)(this.uv),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),color:(0,a.o8)(this.color)};return new r(t)}clonePositional(){const t={position:(0,a.o8)(this.position),normal:(0,a.o8)(this.normal),tangent:(0,a.o8)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"color",void 0),(0,o._)([(0,s.w)("color")],p.prototype,"castColor",null),(0,o._)([(0,l.MZ)({nonNullable:!0,json:{write:f.B}})],p.prototype,"position",void 0),(0,o._)([(0,s.w)("position")],p.prototype,"castPosition",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"uv",void 0),(0,o._)([(0,s.w)("uv")],p.prototype,"castUv",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"normal",void 0),(0,o._)([(0,s.w)("normal")],p.prototype,"castNormal",null),(0,o._)([(0,l.MZ)({json:{write:f.B}})],p.prototype,"tangent",void 0),(0,o._)([(0,s.w)("tangent")],p.prototype,"castTangent",null),p=r=(0,o._)([(0,c.$)("esri.geometry.support.MeshVertexAttributes")],p)},22141:(t,n,e)=>{e.d(n,{$5:()=>b,CN:()=>A,JP:()=>m,KM:()=>S,Mv:()=>_,X4:()=>M,gr:()=>v,qs:()=>w,si:()=>T,xA:()=>B});var r=e(34727),o=e(77690),i=e(29242),a=e(58083),u=e(9093),l=e(38954),s=e(51850),c=e(48353),f=e(9762),p=(e(79258),e(21325)),g=e(28735),d=e(13030),h=e(73354),y=e(65686);const m="Projection may be possible after calling projection.load().";function A(t,n,e,r){t.error(`Failed to project from (wkid:${n.wkid}) to (wkid:${e.wkid}).${r?" ":""}${r}`)}function M(t,n,e,r,o,i){return F(C.TO_PCPF,d.xs.fromTypedArray(t),R.NORMAL,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function T(t,n,e,r,o,i){return F(C.FROM_PCPF,d.xs.fromTypedArray(t),R.NORMAL,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i))?i:null}function v(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function b(t,n,e,r){return(0,f.projectBuffer)(t,n,0,e,r,0)?e:null}function w(t,n,e){return(0,o.Ge)(L,e),(0,h.b)(n,t,L),(0,r.or)(L)&&(0,h.n)(n,n),n}function S(t,n,e){return(0,o.z0)(L,e),(0,y.t)(n,t,L),(0,r.or)(L)&&(0,h.n)(n,n,4),n}function B(t,n,e,r,o,i){if(!F(C.TO_PCPF,d.xs.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),R.TANGENT,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,4*Float32Array.BYTES_PER_ELEMENT)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}function _(t,n,e,r,o,i){if(!F(C.FROM_PCPF,d.xs.fromTypedArray(t,16),R.TANGENT,d.Xm.fromTypedArray(n),e,d.Xm.fromTypedArray(r),o,d.xs.fromTypedArray(i,16)))return null;for(let n=3;n<t.length;n+=4)i[n]=t[n];return i}var R,C,E;function N(t,n,e,r,i){switch((0,c.l)(r,e,P,r),t===C.FROM_PCPF&&(0,a.B8)(P,P),n){case R.NORMAL:return(0,o.Ge)(i,P);case R.TANGENT:return(0,o.z0)(i,P)}}function F(t,n,e,r,o,i,a,u){if(!n)return;const s=r.count;if(function(t){return t.isWGS84||(0,p.x1)(t)||(0,p.q8)(t)||(0,p.KQ)(t)}(o))for(let r=0;r<s;r++)i.getVec(r,x),n.getVec(r,O),(0,l.o)(O,O,N(t,e,x,a,L)),u.setVec(r,O);else for(let o=0;o<s;o++){i.getVec(o,x),n.getVec(o,O);const s=(0,g.jg)(r.get(o,1));let c=Math.cos(s);e===R.TANGENT!=(t===C.TO_PCPF)&&(c=1/c),N(t,e,x,a,L),t===C.TO_PCPF?(L[0]*=c,L[1]*=c,L[2]*=c,L[3]*=c,L[4]*=c,L[5]*=c):(L[0]*=c,L[3]*=c,L[6]*=c,L[1]*=c,L[4]*=c,L[7]*=c),(0,l.o)(O,O,L),(0,l.n)(O,O),u.setVec(o,O)}return u}(E=R||(R={}))[E.NORMAL=0]="NORMAL",E[E.TANGENT=1]="TANGENT",function(t){t[t.TO_PCPF=0]="TO_PCPF",t[t.FROM_PCPF=1]="FROM_PCPF"}(C||(C={}));const x=(0,s.vt)(),O=(0,s.vt)(),P=(0,u.vt)(),L=(0,i.vt)()},28846:(t,n,e)=>{e.d(n,{convertMeshVertexSpace:()=>l});var r=e(49186),o=e(4718),i=e(74887),a=e(1193),u=e(72258);async function l(t,n,e){await Promise.resolve(),(0,i.Te)(e);const l=(0,u.UR)(t,n,{useEllipsoid:e?.useEllipsoid});if(!l)throw new r.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");const s=t.cloneAndModifyVertexAttributes(new a.H({...l,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),n);return s.transform=null,s}},31199:(t,n,e)=>{function r(t,n,e,r){const{loggerTag:o,stride:i}=n;return t.length%i!==0?(r.error(o,`Invalid array length, expected a multiple of ${i}`),new e([])):t}function o(t,n,e,o,i){if(!t)return t;if(t instanceof n)return r(t,o,n,i);for(const a of e)if(t instanceof a)return r(new n(t),o,n,i);if(Array.isArray(t))return r(new n(t),o,n,i);{const r=e.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new n([])}}function i(t,n,e){n[e]=function(t){const n=new Array(t.length);for(let e=0;e<t.length;e++)n[e]=t[e];return n}(t)}e.d(n,{B:()=>i,b:()=>o})},48163:(t,n,e)=>{function r(){return[0,0]}function o(t,n){return[t,n]}function i(){return o(1,1)}function a(){return o(1,0)}function u(){return o(0,1)}e.d(n,{Un:()=>l,fA:()=>o,vt:()=>r});const l=i(),s=a(),c=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_X:s,UNIT_Y:c,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitX:a,unitY:u,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},48353:(t,n,e)=>{e.d(n,{l:()=>s});var r=e(34727),o=e(58083),i=e(51850);function a(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),a=Math.cos(n),u=e;return u[0]=-r,u[4]=-i*o,u[8]=a*o,u[12]=0,u[1]=o,u[5]=-i*r,u[9]=a*r,u[13]=0,u[2]=0,u[6]=a,u[10]=i,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=e(37539),l=e(21325);function s(t,n,e,r){const i=(0,u.Tp)(t,r);if(null==i)return!1;const s=i.source.spatialReferenceId,d=i.dest.spatialReferenceId;if(s===d&&!c(d)&&(s!==u.rz.UNKNOWN||(0,l.aI)(t,r)))return(0,o.kN)(e,n),!0;if(c(d)){const t=u.w5[s][u.rz.LON_LAT],r=u.w5[u.rz.LON_LAT][d];return null!=t&&null!=r&&(t(n,0,p,0),r(p,0,g,0),a(f*p[0],f*p[1],e),e[12]=g[0],e[13]=g[1],e[14]=g[2],!0)}const h=c(s);if((d===u.rz.WEB_MERCATOR||d===u.rz.PLATE_CARREE||d===u.rz.WGS84||d===u.rz.CGCS2000)&&(s===u.rz.WGS84||h||s===u.rz.WEB_MERCATOR||s===u.rz.CGCS2000)){const t=u.w5[s][u.rz.LON_LAT],r=u.w5[u.rz.LON_LAT][d];return null!=t&&null!=r&&(t(n,0,p,0),r(p,0,g,0),h?function(t,n,e){a(t,n,e),(0,o.mg)(e,e)}(f*p[0],f*p[1],e):(0,o.D_)(e),e[12]=g[0],e[13]=g[1],e[14]=g[2],!0)}return!1}function c(t){return t===u.rz.SPHERICAL_ECEF||t===u.rz.SPHERICAL_MARS_PCPF||t===u.rz.SPHERICAL_MOON_PCPF||t===u.rz.WGS84_ECEF}const f=(0,r.kU)(1),p=(0,i.vt)(),g=(0,i.vt)()},65686:(t,n,e)=>{e.d(n,{a:()=>i,b:()=>c,l:()=>s,n:()=>u,t:()=>a});var r=e(40876),o=(e(44208),e(53966));function i(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function a(t,n,e,r=4,o=r){if(t.length/r!==n.length/o)return;const i=t.length/r,a=e[0],u=e[1],l=e[2],s=e[3],c=e[4],f=e[5],p=e[6],g=e[7],d=e[8];let h=0,y=0;for(let e=0;e<i;e++){const e=n[h],i=n[h+1],m=n[h+2],A=n[h+3];t[y]=a*e+s*i+p*m,t[y+1]=u*e+c*i+g*m,t[y+2]=l*e+f*i+d*m,t[y+3]=A,h+=o,y+=r}}function u(t,n){const e=Math.min(t.count,n.count),r=t.typedBuffer,o=t.typedBufferStride,i=n.typedBuffer,a=n.typedBufferStride;for(let t=0;t<e;t++){const n=t*o,e=t*a,u=i[e],l=i[e+1],s=i[e+2],c=u*u+l*l+s*s;if(c>0){const t=1/Math.sqrt(c);r[n]=t*u,r[n+1]=t*l,r[n+2]=t*s}}}function l(t,n,e,r=4){const o=Math.min(t.length/r,n.count),i=n.typedBuffer,a=n.typedBufferStride;let u=0,l=0;for(let n=0;n<o;n++)t[l]=e*i[u],t[l+1]=e*i[u+1],t[l+2]=e*i[u+2],t[l+3]=e*i[u+3],u+=a,l+=r}function s(t,n,e,r){c(t.typedBuffer,n,e,r,t.typedBufferStride)}function c(t,n,e,o,i=4){const a=Math.min(t.length/i,n.count),u=n.typedBuffer,l=n.typedBufferStride;let s=0,c=0;const f=1/r.Tf;for(let n=0;n<a;n++)t[c]=o*(e*u[s])**f,t[c+1]=o*(e*u[s+1])**f,t[c+2]=o*(e*u[s+2])**f,t[c+3]=o*e*u[s+3],s+=l,c+=i}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:s,normalize:u,scale:l,scaleView:function(t,n,e){l(t.typedBuffer,n,e,t.typedBufferStride)},transformMat3:a,transformMat3View:i,transformMat4:function(t,n,e,r=4,i=r){if(t.length/r!==n.length/i)return void o.A.getLogger("esri.views.3d.support.buffer.math").error("source and destination buffers need to have the same number of elements");const a=t.length/r,u=e[0],l=e[1],s=e[2],c=e[3],f=e[4],p=e[5],g=e[6],d=e[7],h=e[8],y=e[9],m=e[10],A=e[11],M=e[12],T=e[13],v=e[14],b=e[15];let w=0,S=0;for(let e=0;e<a;e++){const e=n[w],o=n[w+1],a=n[w+2],B=n[w+3];t[S]=u*e+f*o+h*a+M*B,t[S+1]=l*e+p*o+y*a+T*B,t[S+2]=s*e+g*o+m*a+v*B,t[S+3]=c*e+d*o+A*a+b*B,w+=i,S+=r}},transformMat4View:function(t,n,e){if(t.count!==n.count)return;const r=t.count,o=e[0],i=e[1],a=e[2],u=e[3],l=e[4],s=e[5],c=e[6],f=e[7],p=e[8],g=e[9],d=e[10],h=e[11],y=e[12],m=e[13],A=e[14],M=e[15],T=t.typedBuffer,v=t.typedBufferStride,b=n.typedBuffer,w=n.typedBufferStride;for(let t=0;t<r;t++){const n=t*v,e=t*w,r=b[e],S=b[e+1],B=b[e+2],_=b[e+3];T[n]=o*r+l*S+p*B+y*_,T[n+1]=i*r+s*S+g*B+m*_,T[n+2]=a*r+c*S+d*B+A*_,T[n+3]=u*r+f*S+h*B+M*_}}},Symbol.toStringTag,{value:"Module"}))},65806:(t,n,e)=>{e.d(n,{g:()=>a});var r=e(51850),o=e(98988),i=e(9762);function a(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e)){u[0]=t.x,u[1]=t.y;const o=t.z;return u[2]=o??r??0,(0,i.projectBuffer)(u,t.spatialReference,0,n,e,0)}const a=(0,o.tryProjectWithZConversion)(t,e);return!!a&&(n[0]=a?.x,n[1]=a?.y,n[2]=a?.z??r??0,!0)}const u=(0,r.vt)()},72258:(t,n,e)=>{e.d(n,{UR:()=>v,p5:()=>T,xK:()=>R});var r=e(53966),o=e(34727),i=e(83047),a=e(77690),u=e(29242),l=e(58083),s=e(9093),c=e(38954),f=e(51850),p=e(98764),g=e(48353),d=e(65806),h=e(27615),y=e(21325),m=e(73354),A=e(22141);const M=()=>r.A.getLogger("esri.geometry.support.meshUtils.vertexSpaceConversion");function T(t,n,{vertexSpace:e,spatialReference:r}){if("georeferenced"===e.type){const o=t;if(!(0,d.g)(n,o,r))return!1;const{origin:i}=e;return(0,c.d)(t,o,i),!0}const o=(0,p.lO)(r),i=t;if(!(0,d.g)(n,i,o))return!1;const{origin:a}=e,u=x;if(!(0,g.l)(r,a,u,o))return!1;const s=(0,l.B8)(x,u);return null!=s&&((0,c.t)(t,i,s),!0)}function v(t,n,e){const{vertexSpace:r,transform:o,vertexAttributes:i}=t,u=(0,h.Hq)(r)?o:null,f=B(t.spatialReference,e,O.SOURCE_AND_TARGET);if((0,h.yJ)(r,n)&&(!u||(0,l.t2)(u.localMatrix,s.zK))&&_(f)){const{position:t,normal:n,tangent:r}=i,o=e?.allowBufferReuse;return{position:o?t:t.slice(),normal:o?n:n?.slice(),tangent:o?r:r?.slice()}}switch(t.vertexSpace.type){case"local":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const a=b(n,i);if(!(0,g.l)(n,r,C,a))return(0,A.CN)(M(),n,a),null;if(e&&(0,l.lw)(C,C,e.localMatrix),!(0,g.l)(n,o,E,a))return(0,A.CN)(M(),a,n),null;(0,l.B8)(E,E);const u=(0,l.lw)(C,E,C);return S(u,n,i,O.SOURCE_AND_TARGET),w(t,u)}(t,t.vertexSpace,n.origin,e):function({spatialReference:t,vertexAttributes:n,transform:e},{origin:r},o,i){const a=b(t,i);if(!(0,g.l)(t,r,C,a))return(0,A.CN)(M(),t,a),null;e&&(0,l.lw)(C,C,e.localMatrix),S(C,t,i,O.SOURCE);const u=new Float64Array(n.position.length),s=function(t,n,e,r,o){(0,m.t)(r,t,n);const i=new Float64Array(t.length);return(0,A.$5)(r,o,i,e)?i:((0,A.CN)(M(),o,e),null)}(n.position,C,t,u,a);if(!s)return null;const f=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,A.qs)(o,a,i),(0,A.si)(a,t,n,e,r,a)?a:((0,A.CN)(M(),r,n),null)}(s,t,u,a,n.normal,C);if(n.normal&&!f)return null;const p=function(t,n,e,r,o,i){if(null==o)return null;const a=new Float32Array(o.length);return(0,A.KM)(o,a,i),(0,A.Mv)(a,t,n,e,r,a)?a:((0,A.CN)(M(),r,n),null)}(s,t,u,a,n.tangent,C);if(n.tangent&&!p)return null;if(o){const t=(0,c.u)(F,o);(0,m.a)(s,s,t)}return{position:s,normal:f,tangent:p}}(t,t.vertexSpace,n.origin,e);case"georeferenced":return"local"===n.type?function({vertexAttributes:t,spatialReference:n,transform:e},{origin:r},o,i){const u=b(n,i);if(!(0,g.l)(n,o,C,u))return(0,A.CN)(M(),n,u),null;const s=1/B(n,i,O.TARGET);(0,l.hs)(C,C,[s,s,s]);const c=(0,l.B8)(E,C),{position:f,normal:p,tangent:d}=function(t,n,e){if(!n)return t;if(!e){const{position:e,normal:r,tangent:o}=t;return{position:(0,m.a)(new Float64Array(e.length),e,n),tangent:o,normal:r}}const r=w(t,e.localMatrix);return(0,m.a)(r.position,r.position,n),r}(t,r,e),h=new Float64Array(f.length),y=function(t,n,e,r,o){const i=(0,A.gr)(t,n,r,o);if(!i)return(0,A.CN)(M(),n,o),null;const a=new Float64Array(i.length);return(0,m.t)(a,i,e),a}(f,n,c,h,u);if(!y)return null;const T=(0,a.Ge)(N,c),v=function(t,n,e,r,o,i,a){if(null==t)return null;const u=a??new Float32Array(t.length);return(0,A.X4)(t,n,e,r,o,u)?((0,m.b)(u,u,i),u):((0,A.CN)(M(),e,o),null)}(p,f,n,h,u,T,p!==t.normal?p:void 0);if(!v&&p)return null;const S=function(t,n,e,r,o,i,a){if(null==t)return null;const u=a??new Float32Array(t.length);return(0,A.xA)(t,n,e,r,o,u)?((0,m.b)(u,u,i,4),u):((0,A.CN)(M(),e,o),null)}(d,f,n,h,u,T,d!==t.tangent?d:void 0);return!S&&d?null:{position:y,normal:v,tangent:S}}(t,t.vertexSpace,n.origin,e):function({vertexAttributes:t,transform:n,spatialReference:e},{origin:r},o,i){const a=B(e,i,O.SOURCE_AND_TARGET),u=r||!_(a)?(0,l.C)(C,n?.localMatrix??s.zK):null;u&&S(u,e,i,O.SOURCE_AND_TARGET);const{position:f,normal:p,tangent:g}=u?w(t,u):t,d=i?.allowBufferReuse,h=d?f:new Float64Array(f.length);let y=f;if(r&&(y=(0,m.a)(h,y,r)),o){const t=(0,c.u)(F,o);y=(0,m.a)(h,y,t)}return{position:y!==t.position||d?y:y.slice(),normal:p!==t.normal||d?p:p?.slice(),tangent:g!==t.tangent||d?g:g?.slice()}}(t,t.vertexSpace,n.origin,e)}}function b(t,n){return n?.useEllipsoid&&(0,y.B3)(t)?p.Y0:(0,p.lO)(t)}function w(t,n){const e=new Float64Array(t.position.length);(0,m.t)(e,t.position,n);const r=t.normal?new Float32Array(t.normal.length):null,o=t.tangent?new Float32Array(t.tangent.length):null;return r&&t.normal&&(0,A.qs)(t.normal,r,n),o&&t.tangent&&(0,A.KM)(t.tangent,o,n),{position:e,normal:r,tangent:o}}function S(t,n,e,r){const o=B(n,e,r);_(o)||(0,l.hs)(t,t,[o,o,o])}function B(t,n,e){const r=!!(e&O.SOURCE),o=!!(e&O.TARGET),i=n?.sourceUnit,a=n?.targetUnit;if(!i&&!a)return 1;let u=R(i,t);r||!i||_(u)||(M().warn("source unit conversion not supported"),u=1);let l=1/R(a,t);return o||!a||_(l)||(M().warn("target unit conversion not supported"),l=1),u*l}function _(t){return(0,o.Io)(t,1)}function R(t,n){if(null==t)return 1;const e=(0,i.KX)(n);return 1/(0,i.oU)(e,"meters",t)}const C=(0,s.vt)(),E=(0,s.vt)(),N=(0,u.vt)(),F=(0,f.vt)(),x=(0,s.vt)();var O,P;(P=O||(O={}))[P.NONE=0]="NONE",P[P.SOURCE=1]="SOURCE",P[P.TARGET=2]="TARGET",P[P.SOURCE_AND_TARGET=3]="SOURCE_AND_TARGET"},73354:(t,n,e)=>{e.d(n,{a:()=>f,b:()=>u,c:()=>a,d:()=>o,e:()=>p,f:()=>c,l:()=>s,n:()=>g,t:()=>i});var r=e(40876);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return t;const i=t.length/r,a=e[0],u=e[1],l=e[2],s=e[4],c=e[5],f=e[6],p=e[8],g=e[9],d=e[10],h=e[12],y=e[13],m=e[14];let A=0,M=0;for(let e=0;e<i;e++){const e=n[A],i=n[A+1],T=n[A+2];t[M]=a*e+s*i+p*T+h,t[M+1]=u*e+c*i+g*T+y,t[M+2]=l*e+f*i+d*T+m,A+=o,M+=r}return t}function a(t,n,e){u(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function u(t,n,e,r=3,o=r){if(t.length/r!==Math.ceil(n.length/o))return;const i=t.length/r,a=e[0],u=e[1],l=e[2],s=e[3],c=e[4],f=e[5],p=e[6],g=e[7],d=e[8];let h=0,y=0;for(let e=0;e<i;e++){const e=n[h],i=n[h+1],m=n[h+2];t[y]=a*e+s*i+p*m,t[y+1]=u*e+c*i+g*m,t[y+2]=l*e+f*i+d*m,h+=o,y+=r}}function l(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let a=0,u=0;for(let l=0;l<i;l++)t[u]=e*n[a],t[u+1]=e*n[a+1],t[u+2]=e*n[a+2],a+=o,u+=r;return t}function s(t,n,e,r){c(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function c(t,n,e,o,i=3,a=i){const u=Math.min(t.length/i,n.length/a);let l=0,s=0;const c=1/r.Tf;for(let r=0;r<u;r++)t[s]=o*(e*n[l])**c,t[s+1]=o*(e*n[l+1])**c,t[s+2]=o*(e*n[l+2])**c,l+=a,s+=i}function f(t,n,e,r=3,o=r){const i=t.length/r;if(i!==Math.ceil(n.length/o))return t;let a=0,u=0;for(let l=0;l<i;l++)t[u]=n[a]+e[0],t[u+1]=n[a+1]+e[1],t[u+2]=n[a+2]+e[2],a+=o,u+=r;return t}function p(t,n){g(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function g(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,a=0;for(let u=0;u<o;u++){const o=n[i],u=n[i+1],l=n[i+2],s=o*o+u*u+l*l;if(s>0){const n=1/Math.sqrt(s);t[a]=n*o,t[a+1]=n*u,t[a+2]=n*l}i+=r,a+=e}}e(44208),e(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:c,linearToSRGBView:s,normalize:g,normalizeView:p,scale:l,scaleView:function(t,n,e){l(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,a=n.typedBuffer,u=n.typedBufferStride;let l=0,s=0;for(let t=0;t<r;t++)o[s]=a[l]>>e,o[s+1]=a[l+1]>>e,o[s+2]=a[l+2]>>e,l+=u,s+=i},transformMat3:u,transformMat3View:a,transformMat4:i,transformMat4View:o,translate:f},Symbol.toStringTag,{value:"Module"}))},77690:(t,n,e)=>{e.d(n,{B8:()=>u,Ge:()=>p,I0:()=>f,KC:()=>l,hZ:()=>i,hs:()=>c,lw:()=>s,mg:()=>a,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function i(t,n,e,r,o,i,a,u,l,s){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=u,t[7]=l,t[8]=s,t}function a(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function u(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],l=n[6],s=n[7],c=n[8],f=c*a-u*s,p=-c*i+u*l,g=s*i-a*l;let d=e*f+r*p+o*g;return d?(d=1/d,t[0]=f*d,t[1]=(-c*r+o*s)*d,t[2]=(u*r-o*a)*d,t[3]=p*d,t[4]=(c*e-o*l)*d,t[5]=(-u*e+o*i)*d,t[6]=g*d,t[7]=(-s*e+r*l)*d,t[8]=(a*e-r*i)*d,t):null}function l(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],l=n[6],s=n[7],c=n[8];return t[0]=a*c-u*s,t[1]=o*s-r*c,t[2]=r*u-o*a,t[3]=u*l-i*c,t[4]=e*c-o*l,t[5]=o*i-e*u,t[6]=i*s-a*l,t[7]=r*l-e*s,t[8]=e*a-r*i,t}function s(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=n[5],s=n[6],c=n[7],f=n[8],p=e[0],g=e[1],d=e[2],h=e[3],y=e[4],m=e[5],A=e[6],M=e[7],T=e[8];return t[0]=p*r+g*a+d*s,t[1]=p*o+g*u+d*c,t[2]=p*i+g*l+d*f,t[3]=h*r+y*a+m*s,t[4]=h*o+y*u+m*c,t[5]=h*i+y*l+m*f,t[6]=A*r+M*a+T*s,t[7]=A*o+M*u+T*c,t[8]=A*i+M*l+T*f,t}function c(t,n,e){const r=e[0],o=e[1],i=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=i*n[6],t[7]=i*n[7],t[8]=i*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=e+e,u=r+r,l=o+o,s=e*a,c=r*a,f=r*u,p=o*a,g=o*u,d=o*l,h=i*a,y=i*u,m=i*l;return t[0]=1-f-d,t[3]=c-m,t[6]=p+y,t[1]=c+m,t[4]=1-s-d,t[7]=g-h,t[2]=p-y,t[5]=g+h,t[8]=1-s-f,t}function p(t,n){const e=n[0],r=n[1],o=n[2],i=n[3],a=n[4],u=n[5],l=n[6],s=n[7],c=n[8],f=n[9],p=n[10],g=n[11],d=n[12],h=n[13],y=n[14],m=n[15],A=e*u-r*a,M=e*l-o*a,T=e*s-i*a,v=r*l-o*u,b=r*s-i*u,w=o*s-i*l,S=c*h-f*d,B=c*y-p*d,_=c*m-g*d,R=f*y-p*h,C=f*m-g*h,E=p*m-g*y;let N=A*E-M*C+T*R+v*_-b*B+w*S;return N?(N=1/N,t[0]=(u*E-l*C+s*R)*N,t[1]=(l*_-a*E-s*B)*N,t[2]=(a*C-u*_+s*S)*N,t[3]=(o*C-r*E-i*R)*N,t[4]=(e*E-o*_+i*B)*N,t[5]=(r*_-e*C-i*S)*N,t[6]=(h*w-y*b+m*v)*N,t[7]=(y*T-d*w-m*M)*N,t[8]=(d*b-h*T+m*A)*N,t):null}function g(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}const d=s,h=g;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:l,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],i=t[4],a=t[5],u=t[6],l=t[7],s=t[8];return n*(s*i-a*l)+e*(-s*o+a*u)+r*(l*o-i*u)},equals:function(t,n){const e=t[0],o=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],f=t[8],p=n[0],g=n[1],d=n[2],h=n[3],y=n[4],m=n[5],A=n[6],M=n[7],T=n[8],v=(0,r.FD)();return Math.abs(e-p)<=v*Math.max(1,Math.abs(e),Math.abs(p))&&Math.abs(o-g)<=v*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(i-d)<=v*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(a-h)<=v*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(u-y)<=v*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(l-m)<=v*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(s-A)<=v*Math.max(1,Math.abs(s),Math.abs(A))&&Math.abs(c-M)<=v*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(f-T)<=v*Math.max(1,Math.abs(f),Math.abs(T))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:u,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],i=t[2],a=t[3],u=t[4],l=t[5],s=t[6],c=t[7],f=t[8];return Math.abs(1-(e*e+a*a+s*s))<=n&&Math.abs(1-(o*o+u*u+c*c))<=n&&Math.abs(1-(i*i+l*l+f*f))<=n},mul:d,multiply:s,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:p,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],i=n[4],a=n[5],u=n[6],l=n[8],s=n[9],c=n[10],f=c*a-u*s,p=-c*i+u*l,g=s*i-a*l,d=e*f+r*p+o*g;if(!d)return null;const h=1/d;return t[0]=f*h,t[1]=(-c*r+o*s)*h,t[2]=(u*r-o*a)*h,t[3]=p*h,t[4]=(c*e-o*l)*h,t[5]=(-u*e+o*i)*h,t[6]=g*h,t[7]=(-s*e+r*l)*h,t[8]=(a*e-r*i)*h,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=n[5],s=n[6],c=n[7],f=n[8],p=Math.sin(e),g=Math.cos(e);return t[0]=g*r+p*a,t[1]=g*o+p*u,t[2]=g*i+p*l,t[3]=g*a-p*r,t[4]=g*u-p*o,t[5]=g*l-p*i,t[6]=s,t[7]=c,t[8]=f,t},scale:c,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:i,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:h,subtract:g,translate:function(t,n,e){const r=n[0],o=n[1],i=n[2],a=n[3],u=n[4],l=n[5],s=n[6],c=n[7],f=n[8],p=e[0],g=e[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=u,t[5]=l,t[6]=p*r+g*a+s,t[7]=p*o+g*u+c,t[8]=p*i+g*l+f,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},98764:(t,n,e)=>{e.d(n,{Y0:()=>s,lO:()=>c});var r=e(73941),o=e(16930),i=e(21325);const a=new o.A(r.fv),u=new o.A(r.FY),l=new o.A(r.LJ),s=new o.A(r.Ro);function c(t){const n=f.get(t);if(n)return n;let e=a;if(t)if(t===u)e=u;else if(t===l)e=l;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,i.tl)(n)||(0,i.tl)(r)?e=u:((0,i.ZL)(n)||(0,i.ZL)(r))&&(e=l);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===p?e=u:t===g&&(e=l)}}}return f.set(t,e),e}const f=new Map,p=u.wkt.toUpperCase(),g=l.wkt.toUpperCase()}}]);