@arcgis/core 5.2.0-next.160 → 5.2.0-next.162

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 (152) hide show
  1. package/arcgisGlobal.d.ts +1 -0
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/{0a5a9885ee6f5b5f99f0.js → 167b057ad50e6aef54de.js} +1 -1
  4. package/assets/esri/core/workers/chunks/17c6d66b47aa690df0d4.js +1 -0
  5. package/assets/esri/core/workers/chunks/{15bcf7cfe603f2ee1a24.js → 28104681ba161967039f.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{842893e75696428d536f.js → 3b0808ee3c4facfaca3d.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{eebbde81e56d69dc602f.js → 44f90e75c1dc3d726a95.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{77ebacfdf8e57f2e03f1.js → 46c5371c7a627537098c.js} +11 -11
  9. package/assets/esri/core/workers/chunks/5daa9429808ca31279f2.js +1 -0
  10. package/assets/esri/core/workers/chunks/{60737732ce495bbdd0fc.js → 5f4feca26102088ea565.js} +1 -1
  11. package/assets/esri/core/workers/chunks/6da7229433105a69eb3f.js +1 -0
  12. package/assets/esri/core/workers/chunks/83f29a159b8b5197e76a.js +1 -0
  13. package/assets/esri/core/workers/chunks/849879c8aed16315194c.js +1 -0
  14. package/assets/esri/core/workers/chunks/{1d77c8c59b0118c7e77b.js → 85bba551057366cd00ae.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{9401cc22373566e1171e.js → 8a7b02037151767542f1.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{4eae066673484986d4c1.js → 8e4a7027d171fb60e51e.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{32b351b047ce1eb58146.js → 9ce8b9b80da146a5bbf5.js} +1 -1
  18. package/assets/esri/core/workers/chunks/a2fcbc494333376192aa.js +1 -0
  19. package/assets/esri/core/workers/chunks/a6f969851d4278865cc5.js +1 -0
  20. package/assets/esri/core/workers/chunks/{f1df76f098a3cc924832.js → b5df193c93e9c19f9700.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{28b74bc77f7c13080074.js → be97a629e2ae4d13ceb3.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{d33360c4f85203edafff.js → bf4d913e523eae2fda28.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{172cfeb5f415e4662432.js → d7429b58c90e015263ad.js} +1 -1
  24. package/assets/esri/core/workers/chunks/{612104dff305ff062dfa.js → dfc81e66196c402f39b4.js} +2 -2
  25. package/assets/esri/core/workers/chunks/{02f8654852d389583891.js → e04fb83ab2634bc15cc7.js} +1 -1
  26. package/assets/esri/core/workers/chunks/f74ae0eff3f08978e607.js +1 -0
  27. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +2 -5
  28. package/assets/esri/themes/dark/main.css +1 -1
  29. package/assets/esri/themes/light/main.css +1 -1
  30. package/assets/esri/themes/light/view.css +1 -1
  31. package/chunks/DefaultMaterial.glsl.js +1 -1
  32. package/chunks/RealisticTree.glsl.js +1 -1
  33. package/chunks/RibbonLine.glsl.js +125 -133
  34. package/config.d.ts +62 -34
  35. package/config.js +1 -1
  36. package/core/has.js +1 -1
  37. package/core/mapCollectionUtils.js +1 -1
  38. package/core/workers/Connection.d.ts +58 -89
  39. package/core/workers.d.ts +45 -54
  40. package/geometry/support/Indices.js +1 -1
  41. package/geometry/support/aaBoundingRect.js +1 -1
  42. package/geometry/support/ray.js +1 -1
  43. package/kernel.js +1 -1
  44. package/layers/FeatureLayer.d.ts +7 -5
  45. package/layers/FeatureLayer.js +1 -1
  46. package/layers/GeospatialPDFLayer.js +1 -1
  47. package/layers/MapImageLayer.d.ts +9 -3
  48. package/layers/MapNotesLayer.d.ts +2 -2
  49. package/layers/SubtypeGroupLayer.d.ts +1 -1
  50. package/layers/SubtypeGroupLayer.js +1 -1
  51. package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
  52. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  53. package/layers/graphics/sources/support/QueryTask.js +1 -1
  54. package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +16 -16
  55. package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
  56. package/layers/mixins/ArcGISMapService.js +1 -1
  57. package/layers/ogc/ogcFeatureUtils.js +1 -1
  58. package/layers/support/Sublayer.d.ts +29 -15
  59. package/layers/support/Sublayer.js +1 -1
  60. package/layers/support/commonProperties.js +1 -1
  61. package/package.json +2 -2
  62. package/rest/layerSources/DynamicDataLayer.d.ts +4 -2
  63. package/rest/layerSources/DynamicDataLayer.js +1 -1
  64. package/rest/layerSources/DynamicMapLayer.d.ts +1 -1
  65. package/rest/layerSources/DynamicWorkspaceLayer.d.ts +45 -0
  66. package/rest/layerSources/DynamicWorkspaceLayer.js +2 -0
  67. package/rest/layerSources/typeUtils.js +2 -0
  68. package/rest/print.js +1 -1
  69. package/rest/query/operations/queryRelatedRecords.js +1 -1
  70. package/rest/query/operations/queryUtils.js +1 -1
  71. package/rest/support/Query.js +1 -1
  72. package/rest/support/RelationshipQuery.js +1 -1
  73. package/symbols/LineSymbol3D.d.ts +5 -3
  74. package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +6 -0
  75. package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
  76. package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
  77. package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
  78. package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
  79. package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
  80. package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
  81. package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +6 -0
  82. package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
  83. package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
  84. package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
  85. package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
  86. package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
  87. package/views/3d/analysis/Viewshed/ViewshedPlacementPointPlugin.js +1 -1
  88. package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
  89. package/views/3d/input/SceneInputManager.js +1 -1
  90. package/views/3d/input/handlers/DragZoom.js +1 -1
  91. package/views/3d/input/handlers/MouseWheelFov.js +1 -1
  92. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  93. package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
  94. package/views/3d/interactive/manipulators/ResizeManipulator.js +1 -1
  95. package/views/3d/interactive/manipulators/RotateManipulator.js +1 -1
  96. package/views/3d/interactive/manipulators/ShiftManipulator.js +1 -1
  97. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  98. package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
  99. package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
  100. package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
  101. package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
  102. package/views/3d/layers/FlowSubView3D.js +1 -1
  103. package/views/3d/layers/I3SMeshView3D.js +1 -1
  104. package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
  105. package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
  106. package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
  107. package/views/3d/layers/graphics/extrudePolygon.js +1 -1
  108. package/views/3d/layers/graphics/tessellationUtils.js +1 -1
  109. package/views/3d/state/controllers/FovController.js +1 -1
  110. package/views/3d/state/controllers/GroundNavigationController.js +1 -1
  111. package/views/3d/state/controllers/momentum/GroundNavigationMomentumController.js +1 -1
  112. package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
  113. package/views/3d/support/elevationUpdateUtils.js +1 -1
  114. package/views/3d/terrain/PatchRenderData.js +1 -1
  115. package/views/3d/terrain/TerrainData.js +1 -1
  116. package/views/3d/terrain/TextureReference.js +1 -1
  117. package/views/3d/terrain/terrainUtils.js +1 -1
  118. package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +2 -2
  119. package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +3 -3
  120. package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialExternalColor.glsl.js +2 -2
  121. package/views/3d/webgl-engine/core/shaderLibrary/output/getEmissions.glsl.js +2 -2
  122. package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
  123. package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
  124. package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
  125. package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
  126. package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
  127. package/views/BreakpointsOwner.d.ts +6 -0
  128. package/views/SceneView.js +1 -1
  129. package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
  130. package/views/interactive/editGeometry/EditGeometry.js +1 -1
  131. package/views/interactive/editGeometry/operations/RotateVertex.js +1 -1
  132. package/views/interactive/editGeometry/operations/ScaleVertex.js +1 -1
  133. package/views/interactive/editGeometry/operations/SetAllVertexPositions.js +1 -1
  134. package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
  135. package/views/types.d.ts +3 -0
  136. package/views/webgl/ShaderBuilder.js +1 -1
  137. package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
  138. package/widgets/Search/LocatorSearchSource.d.ts +22 -1
  139. package/widgets/support/SelectionList/GroupLayerItem.d.ts +2 -0
  140. package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
  141. package/widgets/support/SelectionList/ItemBase.d.ts +2 -0
  142. package/widgets/support/SelectionList/ItemBase.js +1 -1
  143. package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
  144. package/widgets/support/SelectionList.js +1 -1
  145. package/assets/esri/core/workers/chunks/3e3e076fa5e8d5d5f33f.js +0 -1
  146. package/assets/esri/core/workers/chunks/510502a4c9a2ba8d3f7b.js +0 -1
  147. package/assets/esri/core/workers/chunks/7d212c415f2709037408.js +0 -1
  148. package/assets/esri/core/workers/chunks/abb9e820d2871fa7acae.js +0 -1
  149. package/assets/esri/core/workers/chunks/ade5fdcd08dcbac74740.js +0 -1
  150. package/assets/esri/core/workers/chunks/b390b9cde2884755e8be.js +0 -1
  151. package/assets/esri/core/workers/chunks/e8bf653376a607f00897.js +0 -1
  152. package/assets/esri/core/workers/chunks/f4a7aa3cdbc0c429c359.js +0 -1
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[491],{32198(t,e,n){function r(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function i(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>a,mS:()=>i}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function a(t){function e(e){t.error=t.hasError?new o(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(t){return e(t),i()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},4341(t,e,n){n.d(e,{I:()=>i});var r=n(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){let t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,o));t++)this._items.push(this._allocator())}}const o=1024},29242(t,e,n){function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,n,r,i,o,a,s,u){return[t,e,n,r,i,o,a,s,u]}n.d(e,{fA:()=>i,vt:()=>r});const o=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:i},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,o])},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r,i,o,a,s,u,h,c,l,f,d,m,M){return[t,e,n,r,i,o,a,s,u,h,c,l,f,d,m,M]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,o])},82534(t,e,n){function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>i,vt:()=>r});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,o])},77690(t,e,n){n.d(e,{B8:()=>s,Ge:()=>d,I0:()=>f,KC:()=>u,a4:()=>h,hZ:()=>o,hs:()=>l,lw:()=>c,mg:()=>a,z0:()=>i});var r=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function o(t,e,n,r,i,o,a,s,u,h){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=h,t}function a(t,e){if(t===e){let n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function s(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8],l=c*a-s*h,f=-c*o+s*u,d=h*o-a*u,m=n*l+r*f+i*d;return m?(m=1/m,t[0]=l*m,t[1]=(-c*r+i*h)*m,t[2]=(s*r-i*a)*m,t[3]=f*m,t[4]=(c*n-i*u)*m,t[5]=(-s*n+i*o)*m,t[6]=d*m,t[7]=(-h*n+r*u)*m,t[8]=(a*n-r*o)*m,t):null}function u(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8];return t[0]=a*c-s*h,t[1]=i*h-r*c,t[2]=r*s-i*a,t[3]=s*u-o*c,t[4]=n*c-i*u,t[5]=i*o-n*s,t[6]=o*h-a*u,t[7]=r*u-n*h,t[8]=n*a-r*o,t}function h(t){let e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],h=t[8];return e*(h*o-a*u)+n*(-h*i+a*s)+r*(u*i-o*s)}function c(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=e[8],f=n[0],d=n[1],m=n[2],M=n[3],b=n[4],g=n[5],_=n[6],p=n[7],v=n[8];return t[0]=f*r+d*a+m*h,t[1]=f*i+d*s+m*c,t[2]=f*o+d*u+m*l,t[3]=M*r+b*a+g*h,t[4]=M*i+b*s+g*c,t[5]=M*o+b*u+g*l,t[6]=_*r+p*a+v*h,t[7]=_*i+p*s+v*c,t[8]=_*o+p*u+v*l,t}function l(t,e,n){let r=n[0],i=n[1],o=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=o*e[6],t[7]=o*e[7],t[8]=o*e[8],t}function f(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,h=n*a,c=r*a,l=r*s,f=i*a,d=i*s,m=i*u,M=o*a,b=o*s,g=o*u;return t[0]=1-l-m,t[3]=c-g,t[6]=f+b,t[1]=c+g,t[4]=1-h-m,t[7]=d-M,t[2]=f-b,t[5]=d+M,t[8]=1-h-l,t}function d(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8],l=e[9],f=e[10],d=e[11],m=e[12],M=e[13],b=e[14],g=e[15],_=n*s-r*a,p=n*u-i*a,v=n*h-o*a,x=r*u-i*s,y=r*h-o*s,S=i*h-o*u,w=c*M-l*m,A=c*b-f*m,j=c*g-d*m,O=l*b-f*M,T=l*g-d*M,q=f*g-d*b,C=_*q-p*T+v*O+x*j-y*A+S*w;return C?(C=1/C,t[0]=(s*q-u*T+h*O)*C,t[1]=(u*j-a*q-h*A)*C,t[2]=(a*T-s*j+h*w)*C,t[3]=(i*T-r*q-o*O)*C,t[4]=(n*q-i*j+o*A)*C,t[5]=(r*j-n*T-o*w)*C,t[6]=(M*S-b*y+g*x)*C,t[7]=(b*v-m*S-g*p)*C,t[8]=(m*y-M*v+g*_)*C,t):null}function m(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const M=c,b=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:u,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:h,equals:function(t,e){let n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],h=t[6],c=t[7],l=t[8],f=e[0],d=e[1],m=e[2],M=e[3],b=e[4],g=e[5],_=e[6],p=e[7],v=e[8],x=(0,r.FD)();return Math.abs(n-f)<=x*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-d)<=x*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-m)<=x*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(a-M)<=x*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(s-b)<=x*Math.max(1,Math.abs(s),Math.abs(b))&&Math.abs(u-g)<=x*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(h-_)<=x*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(c-p)<=x*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(l-v)<=x*Math.max(1,Math.abs(l),Math.abs(v))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:i,fromQuat:f,fromRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:function(t){let e=(0,r.FD)(),n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],h=t[6],c=t[7],l=t[8];return Math.abs(1-(n*n+a*a+h*h))<=e&&Math.abs(1-(i*i+s*s+c*c))<=e&&Math.abs(1-(o*o+u*u+l*l))<=e},mul:M,multiply:c,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:d,normalFromMat4Legacy:function(t,e){let n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],h=e[9],c=e[10],l=c*a-s*h,f=-c*o+s*u,d=h*o-a*u,m=n*l+r*f+i*d;if(!m)return null;let M=1/m;return t[0]=l*M,t[1]=(-c*r+i*h)*M,t[2]=(s*r-i*a)*M,t[3]=f*M,t[4]=(c*n-i*u)*M,t[5]=(-s*n+i*o)*M,t[6]=d*M,t[7]=(-h*n+r*u)*M,t[8]=(a*n-r*o)*M,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=e[8],f=Math.sin(n),d=Math.cos(n);return t[0]=d*r+f*a,t[1]=d*i+f*s,t[2]=d*o+f*u,t[3]=d*a-f*r,t[4]=d*s-f*i,t[5]=d*u-f*o,t[6]=h,t[7]=c,t[8]=l,t},scale:l,scaleByVec2:function(t,e,n){let r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t},set:o,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:b,subtract:m,translate:function(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=e[8],f=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=f*r+d*a+h,t[7]=f*i+d*s+c,t[8]=f*o+d*u+l,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>O,B8:()=>c,C:()=>o,D_:()=>s,N9:()=>p,O7:()=>j,Qw:()=>h,Tl:()=>f,X_:()=>S,e$:()=>m,eL:()=>M,hM:()=>_,hZ:()=>a,hs:()=>d,kN:()=>b,l:()=>w,lw:()=>l,mg:()=>u,o1:()=>A,sC:()=>y,t2:()=>C,t5:()=>T,tZ:()=>E,ut:()=>R});var r=n(51850),i=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function a(t,e,n,r,i,o,a,s,u,h,c,l,f,d,m,M,b){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=h,t[9]=c,t[10]=l,t[11]=f,t[12]=d,t[13]=m,t[14]=M,t[15]=b,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,e){if(t===e){let n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function h(t,e){return c(t,e)||s(t),t}function c(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8],l=e[9],f=e[10],d=e[11],m=e[12],M=e[13],b=e[14],g=e[15],_=n*s-r*a,p=n*u-i*a,v=n*h-o*a,x=r*u-i*s,y=r*h-o*s,S=i*h-o*u,w=c*M-l*m,A=c*b-f*m,j=c*g-d*m,O=l*b-f*M,T=l*g-d*M,q=f*g-d*b,C=_*q-p*T+v*O+x*j-y*A+S*w;return C?(C=1/C,t[0]=(s*q-u*T+h*O)*C,t[1]=(i*T-r*q-o*O)*C,t[2]=(M*S-b*y+g*x)*C,t[3]=(f*y-l*S-d*x)*C,t[4]=(u*j-a*q-h*A)*C,t[5]=(n*q-i*j+o*A)*C,t[6]=(b*v-m*S-g*p)*C,t[7]=(c*S-f*v+d*p)*C,t[8]=(a*T-s*j+h*w)*C,t[9]=(r*j-n*T-o*w)*C,t[10]=(m*y-M*v+g*_)*C,t[11]=(l*v-c*y-d*_)*C,t[12]=(s*A-a*O-u*w)*C,t[13]=(n*O-r*A+i*w)*C,t[14]=(M*p-m*x-b*_)*C,t[15]=(c*x-l*p+f*_)*C,t):null}function l(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=e[8],f=e[9],d=e[10],m=e[11],M=e[12],b=e[13],g=e[14],_=e[15],p=n[0],v=n[1],x=n[2],y=n[3];return t[0]=p*r+v*s+x*l+y*M,t[1]=p*i+v*u+x*f+y*b,t[2]=p*o+v*h+x*d+y*g,t[3]=p*a+v*c+x*m+y*_,p=n[4],v=n[5],x=n[6],y=n[7],t[4]=p*r+v*s+x*l+y*M,t[5]=p*i+v*u+x*f+y*b,t[6]=p*o+v*h+x*d+y*g,t[7]=p*a+v*c+x*m+y*_,p=n[8],v=n[9],x=n[10],y=n[11],t[8]=p*r+v*s+x*l+y*M,t[9]=p*i+v*u+x*f+y*b,t[10]=p*o+v*h+x*d+y*g,t[11]=p*a+v*c+x*m+y*_,p=n[12],v=n[13],x=n[14],y=n[15],t[12]=p*r+v*s+x*l+y*M,t[13]=p*i+v*u+x*f+y*b,t[14]=p*o+v*h+x*d+y*g,t[15]=p*a+v*c+x*m+y*_,t}function f(t,e,n){let r=n[0],i=n[1],o=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*o+e[12],t[13]=e[1]*r+e[5]*i+e[9]*o+e[13],t[14]=e[2]*r+e[6]*i+e[10]*o+e[14],t[15]=e[3]*r+e[7]*i+e[11]*o+e[15];else{let n=e[0],a=e[1],s=e[2],u=e[3],h=e[4],c=e[5],l=e[6],f=e[7],d=e[8],m=e[9],M=e[10],b=e[11];t[0]=n,t[1]=a,t[2]=s,t[3]=u,t[4]=h,t[5]=c,t[6]=l,t[7]=f,t[8]=d,t[9]=m,t[10]=M,t[11]=b,t[12]=n*r+h*i+d*o+e[12],t[13]=a*r+c*i+m*o+e[13],t[14]=s*r+l*i+M*o+e[14],t[15]=u*r+f*i+b*o+e[15]}return t}function d(t,e,n){let r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function m(t,e,n,r){let a=r[0],s=r[1],u=r[2],h=Math.sqrt(a*a+s*s+u*u);if(h<=(0,i.FD)())return void o(t,e);h=1/h,a*=h,s*=h,u*=h;let c=Math.sin(n),l=Math.cos(n),f=1-l,d=e[0],m=e[1],M=e[2],b=e[3],g=e[4],_=e[5],p=e[6],v=e[7],x=e[8],y=e[9],S=e[10],w=e[11],A=a*a*f+l,j=s*a*f+u*c,O=u*a*f-s*c,T=a*s*f-u*c,q=s*s*f+l,C=u*s*f+a*c,R=a*u*f+s*c,E=s*u*f-a*c,P=u*u*f+l;t[0]=d*A+g*j+x*O,t[1]=m*A+_*j+y*O,t[2]=M*A+p*j+S*O,t[3]=b*A+v*j+w*O,t[4]=d*T+g*q+x*C,t[5]=m*T+_*q+y*C,t[6]=M*T+p*q+S*C,t[7]=b*T+v*q+w*C,t[8]=d*R+g*E+x*P,t[9]=m*R+_*E+y*P,t[10]=M*R+p*E+S*P,t[11]=b*R+v*E+w*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function M(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],u=e[7],h=e[8],c=e[9],l=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+h*r,t[5]=a*i+c*r,t[6]=s*i+l*r,t[7]=u*i+f*r,t[8]=h*i-o*r,t[9]=c*i-a*r,t[10]=l*i-s*r,t[11]=f*i-u*r,t}function b(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return s(t);let r=n[0],o=n[1],a=n[2],u=Math.sqrt(r*r+o*o+a*a);if(u<=(0,i.FD)())return null;u=1/u,r*=u,o*=u,a*=u;let h=Math.sin(e),c=Math.cos(e),l=1-c;return t[0]=r*r*l+c,t[1]=o*r*l+a*h,t[2]=a*r*l-o*h,t[3]=0,t[4]=r*o*l-a*h,t[5]=o*o*l+c,t[6]=a*o*l+r*h,t[7]=0,t[8]=r*a*l+o*h,t[9]=o*a*l-r*h,t[10]=a*a*l+c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function p(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function v(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=r+r,u=i+i,h=o+o,c=r*s,l=r*u,f=r*h,d=i*u,m=i*h,M=o*h,b=a*s,g=a*u,_=a*h;return t[0]=1-(d+M),t[1]=l+_,t[2]=f-g,t[3]=0,t[4]=l-_,t[5]=1-(c+M),t[6]=m+b,t[7]=0,t[8]=f+g,t[9]=m-b,t[10]=1-(c+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const x=(0,r.vt)();function y(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){let n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],h=e[9],c=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(o*o+a*a+s*s),t[2]=Math.sqrt(u*u+h*h+c*c),t}function w(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function A(t,e,n,r){let i=e[0],o=e[1],a=e[2],s=e[3],u=i+i,h=o+o,c=a+a,l=i*u,f=i*h,d=i*c,m=o*h,M=o*c,b=a*c,g=s*u,_=s*h,p=s*c,v=r[0],x=r[1],y=r[2];return t[0]=(1-(m+b))*v,t[1]=(f+p)*v,t[2]=(d-_)*v,t[3]=0,t[4]=(f-p)*x,t[5]=(1-(l+b))*x,t[6]=(M+g)*x,t[7]=0,t[8]=(d+_)*y,t[9]=(M-g)*y,t[10]=(1-(l+m))*y,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function j(t,e,n,r,i){let o=e[0],a=e[1],s=e[2],u=e[3],h=o+o,c=a+a,l=s+s,f=o*h,d=o*c,m=o*l,M=a*c,b=a*l,g=s*l,_=u*h,p=u*c,v=u*l,x=r[0],y=r[1],S=r[2],w=i[0],A=i[1],j=i[2],O=(1-(M+g))*x,T=(d+v)*x,q=(m-p)*x,C=(d-v)*y,R=(1-(f+g))*y,E=(b+_)*y,P=(m+p)*S,I=(b-_)*S,z=(1-(f+M))*S;return t[0]=O,t[1]=T,t[2]=q,t[3]=0,t[4]=C,t[5]=R,t[6]=E,t[7]=0,t[8]=P,t[9]=I,t[10]=z,t[11]=0,t[12]=n[0]+w-(O*w+C*A+P*j),t[13]=n[1]+A-(T*w+R*A+I*j),t[14]=n[2]+j-(q*w+E*A+z*j),t[15]=1,t}function O(t,e,n,r,i,o,a){let s=1/(n-e),u=1/(i-r),h=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(a+o)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*h,t[15]=0,t}function T(t,e,n,r){let o=e[0],a=e[1],u=e[2],h=o-n[0],c=a-n[1],l=u-n[2],f=(0,i.FD)();if(Math.abs(h)<f&&Math.abs(c)<f&&Math.abs(l)<f)return void s(t);let d=1/Math.sqrt(h*h+c*c+l*l);h*=d,c*=d,l*=d;let m=r[0],M=r[1],b=r[2],g=M*l-b*c,_=b*h-m*l,p=m*c-M*h;d=Math.sqrt(g*g+_*_+p*p),d?(d=1/d,g*=d,_*=d,p*=d):(g=0,_=0,p=0);let v=c*p-l*_,x=l*g-h*p,y=h*_-c*g;d=Math.sqrt(v*v+x*x+y*y),d?(d=1/d,v*=d,x*=d,y*=d):(v=0,x=0,y=0),t[0]=g,t[1]=v,t[2]=h,t[3]=0,t[4]=_,t[5]=x,t[6]=c,t[7]=0,t[8]=p,t[9]=y,t[10]=l,t[11]=0,t[12]=-(g*o+_*a+p*u),t[13]=-(v*o+x*a+y*u),t[14]=-(h*o+c*a+l*u),t[15]=1}function q(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function C(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function R(t){let e=(0,i.FD)(),n=t[0],r=t[1],o=t[2],a=t[4],s=t[5],u=t[6],h=t[8],c=t[9],l=t[10];return Math.abs(1-(n*n+a*a+h*h))<=e&&Math.abs(1-(r*r+s*s+c*c))<=e&&Math.abs(1-(o*o+u*u+l*l))<=e}function E(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const P=l,I=q;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8],l=e[9],f=e[10],d=e[11],m=e[12],M=e[13],b=e[14],g=e[15];return t[0]=s*(f*g-d*b)-l*(u*g-h*b)+M*(u*d-h*f),t[1]=-(r*(f*g-d*b)-l*(i*g-o*b)+M*(i*d-o*f)),t[2]=r*(u*g-h*b)-s*(i*g-o*b)+M*(i*h-o*u),t[3]=-(r*(u*d-h*f)-s*(i*d-o*f)+l*(i*h-o*u)),t[4]=-(a*(f*g-d*b)-c*(u*g-h*b)+m*(u*d-h*f)),t[5]=n*(f*g-d*b)-c*(i*g-o*b)+m*(i*d-o*f),t[6]=-(n*(u*g-h*b)-a*(i*g-o*b)+m*(i*h-o*u)),t[7]=n*(u*d-h*f)-a*(i*d-o*f)+c*(i*h-o*u),t[8]=a*(l*g-d*M)-c*(s*g-h*M)+m*(s*d-h*l),t[9]=-(n*(l*g-d*M)-c*(r*g-o*M)+m*(r*d-o*l)),t[10]=n*(s*g-h*M)-a*(r*g-o*M)+m*(r*h-o*s),t[11]=-(n*(s*d-h*l)-a*(r*d-o*l)+c*(r*h-o*s)),t[12]=-(a*(l*b-f*M)-c*(s*b-u*M)+m*(s*f-u*l)),t[13]=n*(l*b-f*M)-c*(r*b-i*M)+m*(r*f-i*l),t[14]=-(n*(s*b-u*M)-a*(r*b-i*M)+m*(r*u-i*s)),t[15]=n*(s*f-u*l)-a*(r*f-i*l)+c*(r*u-i*s),t},copy:o,determinant:function(t){let e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],h=t[8],c=t[9],l=t[10],f=t[11],d=t[12],m=t[13],M=t[14],b=t[15];return(e*a-n*o)*(l*b-f*M)-(e*s-r*o)*(c*b-f*m)+(e*u-i*o)*(c*M-l*m)+(n*s-r*a)*(h*b-f*d)-(n*u-i*a)*(h*M-l*d)+(r*u-i*s)*(h*m-c*d)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],o=t[2],a=t[3],s=t[4],u=t[5],h=t[6],c=t[7],l=t[8],f=t[9],d=t[10],m=t[11],M=t[12],b=t[13],g=t[14],_=t[15],p=e[0],v=e[1],x=e[2],y=e[3],S=e[4],w=e[5],A=e[6],j=e[7],O=e[8],T=e[9],q=e[10],C=e[11],R=e[12],E=e[13],P=e[14],I=e[15],z=(0,i.FD)();return Math.abs(n-p)<=z*Math.max(1,Math.abs(n),Math.abs(p))&&Math.abs(r-v)<=z*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(o-x)<=z*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-y)<=z*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(s-S)<=z*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(u-w)<=z*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(h-A)<=z*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(c-j)<=z*Math.max(1,Math.abs(c),Math.abs(j))&&Math.abs(l-O)<=z*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(f-T)<=z*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(d-q)<=z*Math.max(1,Math.abs(d),Math.abs(q))&&Math.abs(m-C)<=z*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(M-R)<=z*Math.max(1,Math.abs(M),Math.abs(R))&&Math.abs(b-E)<=z*Math.max(1,Math.abs(b),Math.abs(E))&&Math.abs(g-P)<=z*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(_-I)<=z*Math.max(1,Math.abs(_),Math.abs(I))},exactEquals:C,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,h=n*a,c=r*a,l=r*s,f=i*a,d=i*s,m=i*u,M=o*a,b=o*s,g=o*u;return t[0]=1-l-m,t[1]=c+g,t[2]=f-b,t[3]=0,t[4]=c-g,t[5]=1-h-m,t[6]=d+M,t[7]=0,t[8]=f+b,t[9]=d-M,t[10]=1-h-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=x,r=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=r*r+i*i+o*o+a*a;return l>0?(n[0]=2*(s*a+c*r+u*o-h*i)/l,n[1]=2*(u*a+c*i+h*r-s*o)/l,n[2]=2*(h*a+c*o+s*i-u*r)/l):(n[0]=2*(s*a+c*r+u*o-h*i),n[1]=2*(u*a+c*i+h*r-s*o),n[2]=2*(h*a+c*o+s*i-u*r)),v(t,e,n),t},fromRotation:g,fromRotationTranslation:v,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:j,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:b,fromXRotation:_,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:p,frustum:O,getRotation:w,getScale:S,getTranslation:y,hasIdentityRotation:E,identity:s,invert:c,invertOrIdentity:h,isOrthoNormal:R,lookAt:T,mul:P,multiply:l,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,o,a){let s=1/(e-n),u=1/(r-i),h=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(a+o)*h,t[15]=1,t},perspective:function(t,e,n,r,i){let o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(a+s),h=2/(i+o);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=h,t[6]=0,t[7]=0,t[8]=-(a-s)*u*.5,t[9]=(i-o)*h*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:m,rotateX:M,rotateY:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],h=e[8],c=e[9],l=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-h*r,t[1]=a*i-c*r,t[2]=s*i-l*r,t[3]=u*i-f*r,t[8]=o*r+h*i,t[9]=a*r+c*i,t[10]=s*r+l*i,t[11]=u*r+f*i,t},rotateZ:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],h=e[4],c=e[5],l=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+h*r,t[1]=a*i+c*r,t[2]=s*i+l*r,t[3]=u*i+f*r,t[4]=h*i-o*r,t[5]=c*i-a*r,t[6]=l*i-s*r,t[7]=f*i-u*r,t},scale:d,set:a,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:I,subtract:q,targetTo:function(t,e,n,r){let i=e[0],o=e[1],a=e[2],s=r[0],u=r[1],h=r[2],c=i-n[0],l=o-n[1],f=a-n[2],d=c*c+l*l+f*f;d>0&&(d=1/Math.sqrt(d),c*=d,l*=d,f*=d);let m=u*f-h*l,M=h*c-s*f,b=s*l-u*c;return d=m*m+M*M+b*b,d>0&&(d=1/Math.sqrt(d),m*=d,M*=d,b*=d),t[0]=m,t[1]=M,t[2]=b,t[3]=0,t[4]=l*b-f*M,t[5]=f*m-c*b,t[6]=c*M-l*m,t[7]=0,t[8]=c,t[9]=l,t[10]=f,t[11]=0,t[12]=i,t[13]=o,t[14]=a,t[15]=1,t},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},4197(t,e,n){n.d(e,{Vj:()=>c,cj:()=>h,jh:()=>o,l5:()=>s,yH:()=>u});var r=n(34275),i=n(9093);function o(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function a(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function s(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function u(t,e){if(0===e.length)return a(t);if(0===t.length)return a(e);let n=o(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function h(t){return[...t]}function c(t){let e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>O,C:()=>a,DC:()=>f,Ej:()=>p,Ie:()=>A,Jt:()=>j,Lu:()=>x,Ne:()=>y,RF:()=>l,TF:()=>g,VL:()=>m,aI:()=>q,fA:()=>s,gE:()=>h,gX:()=>_,hZ:()=>w,iT:()=>d,is:()=>T,pg:()=>v,uJ:()=>b,vI:()=>S,vY:()=>u,vt:()=>o,w1:()=>c,yr:()=>M}),n(35522);var r=n(5443),i=(n(19419),n(4197));function o(t=R){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e){for(let n=0;n<6;n++)t[n]=e[n];return t}function s(t,e,n,r,i,a,s=o()){return s[0]=t,s[1]=e,s[2]=n,s[3]=r,s[4]=i,s[5]=a,s}function u(t,e=o()){return function(t,e,n,r=o()){return w(r,C),function(t,e,n=0,r=e.length/3){let i=t[0],o=t[1],a=t[2],s=t[3],u=t[4],h=t[5];for(let t=0;t<r;t++)i=Math.min(i,e[n+3*t]),o=Math.min(o,e[n+3*t+1]),a=Math.min(a,e[n+3*t+2]),s=Math.max(s,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),h=Math.max(h,e[n+3*t+2]);t[0]=i,t[1]=o,t[2]=a,t[3]=s,t[4]=u,t[5]=h}(r,t,e,n),r}(t,0,t.length/3,e)}function h(t,e=(0,i.jh)(24)){let[n,r,o,a,s,u]=t;return e[0]=n,e[1]=r,e[2]=o,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=s,e[8]=o,e[9]=n,e[10]=s,e[11]=u,e[12]=a,e[13]=r,e[14]=o,e[15]=a,e[16]=r,e[17]=u,e[18]=a,e[19]=s,e[20]=o,e[21]=a,e[22]=s,e[23]=u,e}function c(t,e){return isFinite(t[2])||isFinite(t[5])?new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function l(t,e,n=t){n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.min(t[2],e[2]),n[3]=Math.max(t[3],e[3]),n[4]=Math.max(t[4],e[4]),n[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function d(t,[e,n,r]){!function(t,e,n,r){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],n),t[5]=Math.max(t[5],r)}(t,e,n,r)}function m(t){return t[0]>=t[3]?0:t[3]-t[0]}function M(t){return t[1]>=t[4]?0:t[4]-t[1]}function b(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){let e=m(t),n=b(t),r=M(t);return e*e+n*n+r*r}function _(t,e=[0,0,0]){return e[0]=t[0]+m(t)/2,e[1]=t[1]+M(t)/2,e[2]=t[2]+b(t)/2,e}function p(t,e=[0,0,0]){return e[0]=m(t),e[1]=M(t),e[2]=b(t),e}function v(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function x(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function y(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function S(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function A(t){return t?w(t,C):o(C)}function j(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function O(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=-1/0,t[3]=r,t[4]=i,t[5]=1/0,t}function T(t){return 6===t.length}function q(t,e,n){if(null==t||null==e)return t===e;if(!T(t)||!T(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],R=[0,0,0,0,0,0];o(),n.d(e,["qv",0,C,"v_",0,R])},19419(t,e,n){n.d(e,{$9:()=>S,C:()=>o,DC:()=>m,HY:()=>y,IO:()=>l,Ie:()=>A,Rj:()=>x,Uc:()=>v,VL:()=>M,VY:()=>s,Wc:()=>g,aI:()=>O,bx:()=>f,fA:()=>a,fT:()=>d,gR:()=>w,gX:()=>_,ib:()=>p,nw:()=>c,pJ:()=>T,tK:()=>h,uJ:()=>b,vt:()=>i,w1:()=>u}),n(34727);var r=n(5443);function i(t=C){return[t[0],t[1],t[2],t[3]]}function o(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function a(t,e,n,r,o=i()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}function s(t,e=i()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function u(t,e,n=new r.A){return n.xmin=t[0],n.ymin=t[1],n.xmax=t[2],n.ymax=t[3],n.spatialReference=e,n}function h(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function c(t,e){e<t[0]&&(t[0]=e),e>t[2]&&(t[2]=e)}function l(t,e){e<t[1]&&(t[1]=e),e>t[3]&&(t[3]=e)}function f(t,{xmin:e,ymin:n,xmax:r,ymax:i}){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],r),t[3]=Math.max(t[3],i)}function d(t,e,n){if(null!=e)if("length"in e)j(e)?(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n[3]=Math.max(t[3],e[3])):(2===e.length||3===e.length)&&(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[0]),n[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":n[0]=Math.min(t[0],e.xmin),n[1]=Math.min(t[1],e.ymin),n[2]=Math.max(t[2],e.xmax),n[3]=Math.max(t[3],e.ymax);break;case"point":n[0]=Math.min(t[0],e.x),n[1]=Math.min(t[1],e.y),n[2]=Math.max(t[2],e.x),n[3]=Math.max(t[3],e.y)}else o(n,t)}function m(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3])}function M(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function b(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function g(t){return M(t)*b(t)}function _(t,e=[0,0]){return e[0]=(t[0]+t[2])/2,e[1]=(t[1]+t[3])/2,e}function p(t){let e=M(t),n=b(t);return Math.sqrt(e*e+n*n)}function v(t,e){return x(t,e[0],e[1])}function x(t,e,n){return e>=t[0]&&n>=t[1]&&e<=t[2]&&n<=t[3]}function y(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function S(t,e,n){return Math.max(e[0],t[0])-n<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])-n<=Math.min(e[3],t[3])}function w(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function A(t){return t?o(t,q):i(q)}function j(t){return null!=t&&4===t.length}function O(t,e){return j(t)&&j(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:t===e}function T(t,e){if(4!==e.length||t[0]===t[2]||t[1]===t[3])return!1;for(let n=0;n<e.length;n++){let r=e[n],i=e[(n+1)%e.length];if(r[0]!==t[0]&&r[0]!==t[2]||r[1]!==t[1]&&r[1]!==t[3])return!1;let o=r[1]===i[1]&&r[0]!==i[0],a=r[0]===i[0]&&r[1]!==i[1];if(!o&&!a)return!1}return!0}const q=[1/0,1/0,-1/0,-1/0],C=[0,0,0,0];n.d(e,["qv",0,q])},65720(t,e,n){n.d(e,{C:()=>g,vt:()=>M,Qy:()=>b,ui:()=>_,ST:()=>w,bU:()=>j,pw:()=>S,m7:()=>p,ZU:()=>v,GH:()=>y,Pi:()=>x,LJ:()=>A,c8:()=>q});var r=n(4341),i=n(58083),o=n(35522),a=n(51850),s=n(78955),u=n(91829),h=n(70328),c=n(71351);function l(t){return t?{ray:(0,c.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,c.vt)(),c0:0,c1:Number.MAX_VALUE}}new r.I(()=>l());var f=n(27921);function d(t,e,n,r){let{t0:i,t1:o}=r,a=(0,f.mN)(t,e),s=(0,f.mN)(t,n);if(a>=0&&s>=0)return!1;if(a<0&&s>=0){let t=-a/(s-a);if(t<i)return!1;t<o&&(o=t)}else if(a>=0&&s<0){let t=a/(a-s);if(t>o)return!1;t>i&&(i=t)}return r.t0=i,r.t1=o,!0}var m=n(32114);function M(t){return t?[(0,f.vt)(t[0]),(0,f.vt)(t[1]),(0,f.vt)(t[2]),(0,f.vt)(t[3]),(0,f.vt)(t[4]),(0,f.vt)(t[5])]:[(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)()]}function b(){return[(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)()]}function g(t,e){for(let n=0;n<C;n++)(0,f.C)(t[n],e[n]);return t}function _(t,e,n,r=I){let a=(0,i.lw)(m.Rc.get(),e,t);(0,i.B8)(a,a);for(let t=0;t<R;++t){let e=(0,s.Z0)(m.Km.get(),E[t],a);(0,o.hZ)(r[t],e[0]/e[3],e[1]/e[3],e[2]/e[3])}!function(t,e){(0,f.Cr)(e[4],e[0],e[3],t[0]),(0,f.Cr)(e[1],e[5],e[6],t[1]),(0,f.Cr)(e[4],e[5],e[1],t[2]),(0,f.Cr)(e[3],e[2],e[6],t[3]),(0,f.Cr)(e[0],e[1],e[2],t[4]),(0,f.Cr)(e[5],e[4],e[7],t[5])}(n,r)}function p(t,e){return v(t,e.center,e.radius)}function v(t,e,n){for(let r=0;r<C;r++){let i=t[r];if(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]>=n)return!1}return!0}function x(t,e,n){for(let r of T)if((0,f.wE)(t[r],e,n))return!0;return!1}function y(t,e,n){let r=(0,h.gX)(e,z),i=(0,h.VL)(e)/2,a=(0,h.yr)(e)/2,s=(0,h.uJ)(e)/2;return n?function(t,e,n,r,i,a){let s=(0,o.Z0)(F,e,a);for(let e=0;e<C;e++){let o=t[e];if(o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]-(Math.abs(o[0]*a[0]+o[1]*a[1]+o[2]*a[2])*n+Math.abs(o[0]*a[4]+o[1]*a[5]+o[2]*a[6])*r+Math.abs(o[0]*a[8]+o[1]*a[9]+o[2]*a[10])*i)>0)return!1}return!0}(t,r,i,a,s,n):function(t,e,n,r,i){for(let o=0;o<C;o++){let a=t[o];if(a[0]*e[0]+a[1]*e[1]+a[2]*e[2]+a[3]-(Math.abs(a[0])*n+Math.abs(a[1])*r+Math.abs(a[2])*i)>0)return!1}return!0}(t,r,i,a,s)}function S(t,e){return O(t,function(t,e=l()){return(0,c.C)(t,e.ray),e.c0=0,e.c1=Number.MAX_VALUE,e}(e,P.get()))}function w(t,e,n){return O(t,function(t,e,n=l()){let r=(0,o.Bw)(t.vector);return(0,c.fA)(t.origin,e,n.ray),n.c0=0,n.c1=r,n}(e,n,P.get()))}function A(t,e,n){return function(t,e,n,r){let i={t0:0,t1:1};for(let o of e)if(!d(t[o],n,r,i))return!1;return i.t0<i.t1}(t,T,e,n)}function j(t,e){for(let n=0;n<C;n++)if((0,f.mN)(t[n],e)>0)return!1;return!0}function O(t,e){for(let n=0;n<C;n++)if(!(0,f.$Q)(t[n],e))return!1;return!0}const T=[0,1,2,3,5],q={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},C=6,R=8,E=[(0,u.fA)(-1,-1,-1,1),(0,u.fA)(1,-1,-1,1),(0,u.fA)(1,1,-1,1),(0,u.fA)(-1,1,-1,1),(0,u.fA)(-1,-1,1,1),(0,u.fA)(1,-1,1,1),(0,u.fA)(1,1,1,1),(0,u.fA)(-1,1,1,1)],P=new r.I(l),I=b(),z=(0,a.vt)(),F=(0,a.vt)()},11964(t,e,n){n.d(e,{Cr:()=>c,H6:()=>d,LV:()=>h,_I:()=>f,kb:()=>l,vt:()=>u});var r=n(34727),i=n(4341),o=n(35522),a=n(51850),s=n(32114);function u(t){return t?{origin:(0,a.o8)(t.origin),vector:(0,a.o8)(t.vector)}:{origin:(0,a.vt)(),vector:(0,a.vt)()}}function h(t,e){let n=m.get();return n.origin=t,n.vector=e,n}function c(t,e,n=u()){return(0,o.C)(n.origin,t),(0,o.Re)(n.vector,e,t),n}function l(t,e){let n=(0,o.Re)(s.rq.get(),e,t.origin),i=(0,o.Om)(t.vector,n),a=(0,o.Om)(t.vector,t.vector);if(Math.abs(a)<M)return(0,o.hG)(t.origin,e);let u=(0,r.qE)(i/a,0,1),h=(0,o.Re)(s.rq.get(),(0,o.hs)(s.rq.get(),t.vector,u),n);return(0,o.Om)(h,h)}function f(t,e,n){return d(t,e,0,1,n)}function d(t,e,n,i,a){let{vector:u,origin:h}=t,c=(0,o.Re)(s.rq.get(),e,h),l=(0,o.Om)(u,c)/(0,o.m3)(u);return(0,o.hs)(a,u,(0,r.qE)(l,n,i)),(0,o.WQ)(a,a,t.origin)}(0,a.vt)(),(0,a.vt)();const m=new i.I(()=>u()),M=1e-9},27921(t,e,n){n.d(e,{$Q:()=>T,BX:()=>O,C:()=>h,Cr:()=>d,H:()=>C,LV:()=>u,O_:()=>f,Qj:()=>c,T7:()=>w,Ui:()=>S,_I:()=>R,fA:()=>l,gv:()=>A,lU:()=>m,mN:()=>E,mP:()=>x,mR:()=>y,vE:()=>z,vt:()=>s,wE:()=>P});var r=n(34727),i=n(35522),o=n(51850),a=(n(78955),n(44280),n(32114));function s(t=F){return[t[0],t[1],t[2],t[3]]}function u(t=F[0],e=F[1],n=F[2],r=F[3]){return l(t,e,n,r,a.Km.get())}function h(t,e){return l(e[0],e[1],e[2],e[3],t)}function c(t){return t}function l(t,e,n,r,i=s()){return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i}function f(t,e,n){let r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function d(t,e,n,r=s()){let i=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2],u=t[0]-e[0],h=t[1]-e[1],c=t[2]-e[2],l=o*c-a*h,f=a*u-i*c,d=i*h-o*u,m=l*l+f*f+d*d,M=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return r[0]=l*M,r[1]=f*M,r[2]=d*M,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function m(t,e,n,r=0,o=Math.floor(1/3*n),a=Math.floor(2/3*n)){if(n<3)return!1;e(b,r);let s=o,u=!1;for(;s<n-1&&!u;)e(g,s),s++,u=!(0,i.t2)(b,g);if(!u)return!1;for(s=Math.max(s,a),u=!1;s<n&&!u;)e(_,s),s++,(0,i.Re)(p,b,g),(0,i.S8)(p,p),(0,i.Re)(v,g,_),(0,i.S8)(v,v),u=!(0,i.t2)(b,_)&&!(0,i.t2)(g,_)&&Math.abs((0,i.Om)(p,v))<M;return u?(d(b,g,_,t),!0):(0!==r||1!==o||2!==a)&&m(t,e,n,0,1,2)}n(32728);const M=.99619469809,b=(0,o.vt)(),g=(0,o.vt)(),_=(0,o.vt)(),p=(0,o.vt)(),v=(0,o.vt)();function x(t,e,n){return e!==t&&h(t,e),t[3]=-(0,i.Om)(t,n),t}function y(t,e,n,r){return(0,i.$A)(_,e,t),f(n,_,r)}function S(t,e,n){return null!=e&&I(z(t,e.origin,e.direction,V,n))}function w(t,e,n){return I(z(t,e.origin,e.vector,0,n))}function A(t,e,n){return I(z(t,e.origin,e.vector,1,n))}function j(t,e){return E(t,e)<=0}function O(t,e){return E(t,e)>=0}function T(t,e){return function(t,e,n,r,o,a,s){let u=(0,i.Om)(t,n),h=E(t,e);if(u>-1e-6&&u<1e-6)return q(h,o,a);let c=-h/u,l=q(u,o,!1);return!(s&&!l&&!q(h,o,a))&&(l?c>r.c0&&(r.c0=c):c<r.c1&&(r.c1=c),r.c0<=r.c1)}(t,e.ray.origin,e.ray.direction,e,!1,!1,!0)}function q(t,e,n){return n?e?t>=0:t<=0:e?t>0:t<0}function C(t,e,n,r=!1){let o=e.at(-1),a=E(t,o),s=r?a>0:a<=0;for(let u=0;u<e.length;u++){let h=e.at(u),c=E(t,h),l=r?c>0:c<=0;s!==l&&(0,i.Cc)(n(),o,h,a/(a-c)),l&&(0,i.C)(n(),h),o=h,a=c,s=l}}function R(t,e,n){let r=(0,i.hs)(a.rq.get(),t,-t[3]),o=function(t,e,n){let r=(0,i.hs)(a.rq.get(),t,(0,i.Om)(t,e));return(0,i.Re)(n,e,r),n}(t,(0,i.Re)(a.rq.get(),e,r),a.rq.get());return(0,i.WQ)(n,o,r),n}function E(t,e){return(0,i.Om)(t,e)+t[3]}function P(t,e,n){for(let r=0;r<n;++r)if(j(t,e[r]))return!1;return!0}function I(t){return 0===t||1===t}function z(t,e,n,o,a){let s=(0,i.Om)(t,n),u=E(t,e);if(0===s)return u>=0?2:3;let h=-u/s;return 1&o&&(h=(0,r.qE)(h,0,1)),!(4&o)&&h<0||!(8&o)&&h>1?u>=0?2:3:((0,i.WQ)(a,e,(0,i.hs)(a,n,h)),u>=0?0:1)}const F=[0,0,1,0],V=8;(0,o.vt)()},71351(t,e,n){n.d(e,{C:()=>l,Cr:()=>f,LV:()=>c,fA:()=>d,kb:()=>m,vt:()=>u}),n(4576);var r=n(4341),i=(n(77690),n(29242)),o=n(35522),a=n(51850),s=n(32114);function u(t){return t?h((0,a.o8)(t.origin),(0,a.o8)(t.direction)):h((0,a.vt)(),(0,a.vt)())}function h(t,e){return{origin:t,direction:e}}function c(t,e){let n=M.get();return n.origin=t,n.direction=e,n}function l(t,e=u()){return d(t.origin,t.direction,e)}function f(t,e,n=u()){return(0,o.C)(n.origin,t),(0,o.Re)(n.direction,e,t),n}function d(t,e,n=u()){return(0,o.C)(n.origin,t),(0,o.C)(n.direction,e),n}function m(t,e){let n=(0,o.$A)(s.rq.get(),(0,o.S8)(s.rq.get(),t.direction),(0,o.Re)(s.rq.get(),e,t.origin));return(0,o.Om)(n,n)}const M=new r.I(()=>u());(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,i.vt)()},94008(t,e,n){n.d(e,{iy:()=>d}),n(44208),n(53966);var r=n(34727),i=n(34304),o=n(58083),a=n(35522),s=n(51850),u=n(91829),h=n(34275);var c=n(71351),l=n(44280),f=n(32114);class d{constructor(t=0,e=0,n=0,r=0){this.radius=r,"number"==typeof t?this._center=(0,s.fA)(t,e,n):function(t){return e=t,(0,h.vZ)(e)&&e.length>=3||function(t){return((0,h.aI)(t)||Array.isArray(t))&&t.length>=3}(t);var e}(t)||function(t){return(e=t)instanceof Float32Array&&e.length>=4||function(t){return Array.isArray(t)&&t.length>=4}(t);var e}(t)?(this._center=(0,s.ci)(t),this.radius=4===t.length?t[3]:e):(this._center=(0,s.o8)(t.center),this.radius=t.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(t){(0,a.C)(this.center,t)}exactEquals(t){return(0,a.aI)(this._center,t.center)&&this.radius===t.radius}copyFrom(t){return t!==this&&((0,a.C)(this._center,t.center),this.radius=t.radius),this}clone(){return new d(this.center,this.radius)}toVec4(){return(0,u.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(t){return(0,a.hG)(this.center,t)<=this.radius**2}intersects(t){let e=this.radius+t.radius;return(0,a.hG)(this.center,t.center)<=e*e}intersectRay(t,e){if(null==t||!this._intersect(t,m))return!1;let{t0:n,t1:r}=m;if((n<0||r<n&&r>0)&&(n=r),n<0)return!1;if(e){let{origin:r,direction:i}=t;e[0]=r[0]+i[0]*n,e[1]=r[1]+i[1]*n,e[2]=r[2]+i[2]*n}return!0}intersectLine(t,e){let n=(0,c.Cr)(t,e);if(!this._intersect(n,m))return[];let{origin:r,direction:o}=n,{t0:u,t1:h}=m,l=t=>{let e=(0,s.vt)();return(0,a.Ln)(e,r,o,t),this.projectPoint(e,e)};return Math.abs(u-h)<(0,i.FD)()?[l(u)]:[l(u),l(h)]}_intersect(t,e){let{origin:n,direction:r}=t,i=M;i[0]=n[0]-this.center[0],i[1]=n[1]-this.center[1],i[2]=n[2]-this.center[2];let o=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===o)return!1;let a=2*(r[0]*i[0]+r[1]*i[1]+r[2]*i[2]),s=a*a-4*o*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-this.radius**2);if(s<0)return!1;let u=Math.sqrt(s);return e.t0=(-a-u)/(2*o),e.t1=(-a+u)/(2*o),!0}projectPoint(t,e){let n=(0,a.Re)(f.rq.get(),t,this.center),r=(0,a.hs)(f.rq.get(),n,this.radius/(0,a.Bw)(n));return(0,a.WQ)(e,r,this.center)}closestPointOnSilhouette(t,e){let n=f.rq.get(),r=f.Rc.get();(0,a.$A)(n,t.origin,t.direction),(0,a.$A)(e,n,t.origin),(0,a.hs)(e,e,1/(0,a.Bw)(e)*this.radius);let i=this._angleToSilhouette(t.origin),s=(0,l.g7)(t.origin,e);return(0,o.$0)(r,s+i,n),(0,a.Z0)(e,e,r),e}frustumCoverage(t,e,n){let r=this.radius,i=r*r,o=t+.5*Math.PI,a=e*e+i-2*Math.cos(o)*e*r,s=Math.sqrt(a),u=a-i;if(u<=0)return.5;let h=Math.acos(Math.sqrt(u)/s)-Math.asin(r/(s/Math.sin(o)));return Math.min(1,(h+.5*n)/n)}_angleToSilhouette(t){let e=(0,a.Re)(f.rq.get(),t,this.center),n=(0,a.Bw)(e),i=this.radius,o=i+Math.abs(i-n);return(0,r.XM)(i/o)}union(t){let e=(0,a.Io)(this._center,t.center),n=this.radius,r=t.radius;return e+r<n?this:e+n<r?(this.copyFrom(t),this):((0,a.Cc)(this._center,this._center,t.center,(e+r-n)/(2*e)),this.radius=(e+n+r)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}signedDistanceToPlane(t){let{center:e,radius:n}=this,r=t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3];return r<0?Math.min(r+n,0):Math.max(r-n,0)}}new d;const m={t0:0,t1:0},M=(0,s.vt)();(0,s.vt)(),(0,s.vt)()},44280(t,e,n){n.d(e,{g7:()=>s,gr:()=>a});var r=n(34727),i=n(35522),o=n(51850);function a(t,e){return(0,i.Om)(t,e)/(0,i.Bw)(t)}function s(t,e){let n=(0,i.Om)(t,e)/((0,i.Bw)(t)*(0,i.Bw)(e));return-(0,r.XM)(n)}(0,o.vt)(),(0,o.vt)()},32114(t,e,n){n.d(e,{Rc:()=>d,rq:()=>l,Km:()=>f}),n(44208);var r=n(26390),i=n(29242),o=n(9093),a=n(82534),s=n(48163),u=n(51850),h=n(91829);class c{constructor(t){this._create=t,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new c(s.vt)}static createVec3f64(){return new c(u.vt)}static createVec4f64(){return new c(h.vt)}static createMat3f64(){return new c(i.vt)}static createMat4f64(){return new c(o.vt)}static createQuatf64(){return new c(a.vt)}get test(){}}c.createVec2f64();const l=c.createVec3f64(),f=c.createVec4f64(),d=(c.createMat3f64(),c.createMat4f64());c.createQuatf64()},32728(t,e,n){n.d(e,{YH:()=>a,nu:()=>s,wp:()=>o}),n(34727);var r=n(35522),i=n(51850);function o(t,e){let n=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),i=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),o=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,r.hZ)(t,n,i,o),t}function a(t,e,n){n||=t;let i=(0,r.Om)(t,e);(0,r.hZ)(n,t[0]-i*e[0],t[1]-i*e[1],t[2]-i*e[2]),(0,r.S8)(n,n)}function s(t,e,n,o=(0,i.vt)()){let a=(0,r.Bw)(t),s=(0,r.Bw)(e),c=(0,r.Om)(t,e)/(a*s);if(c<.9999999999999999){let i=Math.acos(c),l=((1-n)*a+n*s)/Math.sin(i),f=l/a*Math.sin((1-n)*i),d=l/s*Math.sin(n*i);return(0,r.hs)(u,t,f),(0,r.hs)(h,e,d),(0,r.WQ)(o,u,h)}return(0,r.Cc)(o,t,e,n)}(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const u=(0,i.vt)(),h=(0,i.vt)()},70491(t,e,n){n.r(e),n.d(e,{default:()=>K});var r=n(32198),i=n(17676),o=n(24326),a=n(91429),s=n(35522),u=n(51850),h=n(11964),c=n(94008),l=n(93687),f=n(15142),d=n(65720),m=n(71351),M=n(620);class b{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 g,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),g.clearPool(),I[0]=null,N.prune(),W.prune()}add(t){let e=Array.from(t);this._grow(e);let n=g.acquire();for(let t of e)++this._objectCount,this._isDegenerate(t)?this._degenerateObjects.add(t):(n.init(this._root),this._add(t,n));g.release(n)}remove(t,e=null){this._objectCount-=t.length;let n=g.acquire();for(let r of t){let t=e??this.objectToBoundingSphere(r);C(t.radius)?(n.init(this._root),x(r,t,n)):this._degenerateObjects.delete(r)}g.release(n),this._shrink()}update(t,e){if(!C(e.radius)&&this._isDegenerate(t))return;let n=function(t){return I[0]=t,I}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){let r=(0,m.LV)(t,e);p(this._root,t=>{if(!function(t,e){return j(e.bounds.center,2*-e.halfSize,V),j(e.bounds.center,2*e.halfSize,D),(0,M.O_)(t.origin,t.direction,V,D)}(r,t))return!1;let e=t.node;return e.terminals.forAll(t=>{this._intersectsObject(r,t)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObject(r,t)&&n(t)}),!0})}forEachAlongRayWithVerticalOffset(t,e,n,r){let i=(0,m.LV)(t,e);p(this._root,t=>{if(!function(t,e,n){return j(e.bounds.center,2*-e.halfSize,V),j(e.bounds.center,2*e.halfSize,D),n.applyToMinMax(V,D),(0,M.O_)(t.origin,t.direction,V,D)}(i,t,r))return!1;let e=t.node;return e.terminals.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&n(t)}),!0})}forEach(t){for(let e of this.values())t(e)}*values(){for(let t of this._nodeIteratorValues()){let e=t.node;yield*e.terminals,null!==e.residents&&(yield*e.residents)}yield*this.degenerateObjectValues()}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}*degenerateObjectValues(){yield*this._degenerateObjects.values()}findClosest(t,e,n,r=()=>!0,i=1/0){let o=1/0,a=1/0,u=null,h=T(t,e),c=s=>{if(--i,!r(s))return;let h=this.objectToBoundingSphere(s);if(!(0,d.m7)(n,h))return;let c=q(t,e,h.center),l=c-h.radius,f=c+h.radius;l<o&&(o=l,a=f,u=s)};return v(this._root,r=>{if(i<=0||!(0,d.ZU)(n,r.bounds.center,2*r.bounds.radius)||((0,s.hs)(F,h,2*r.halfSize),(0,s.WQ)(F,F,r.bounds.center),q(t,e,F)>a))return!1;let o=r.node;return o.terminals.forAll(t=>c(t)),null!==o.residents&&o.residents.forAll(t=>c(t)),!0},t,e),u}forEachInDepthRange(t,e,n,r,i,o,a){let u=-1/0,h=1/0,c={setRange:t=>{1===n?(u=Math.max(u,t.near),h=Math.min(h,t.far)):(u=Math.max(u,-t.far),h=Math.min(h,-t.near))}};c.setRange(r);let l=q(e,n,t),f=T(e,n),m=T(e,-n),M=t=>{if(!a(t))return;let r=this.objectToBoundingSphere(t),s=q(e,n,r.center)-l,f=s-r.radius,m=s+r.radius;f>h||m<u||!(0,d.m7)(o,r)||i(t,c)};v(this._root,t=>{if(!(0,d.ZU)(o,t.bounds.center,2*t.bounds.radius)||((0,s.hs)(F,f,2*t.halfSize),(0,s.WQ)(F,F,t.bounds.center),q(e,n,F)-l>h)||((0,s.hs)(F,m,2*t.halfSize),(0,s.WQ)(F,F,t.bounds.center),q(e,n,F)-l<u))return!1;let r=t.node;return r.terminals.forAll(t=>M(t)),null!==r.residents&&r.residents.forAll(t=>M(t)),!0},e,n)}forEachNode(t){p(this._root,e=>t(e.node,e.bounds,e.halfSize,e.depth))}forEachIntersectingFrustum(t,e,n=()=>!0){for(let r of this.intersectingFrustumValues(t,n))e(r)}*intersectingFrustumValues(t,e=()=>!0){for(let n of this._nodeIteratorValues(e=>(0,d.ZU)(t,e.bounds.center,2*e.bounds.radius))){let r=n.node;for(let n of r.terminals)e(n)&&(0,d.m7)(t,this.objectToBoundingSphere(n))&&(yield n);if(null!==r.residents)for(let n of r.residents)e(n)&&(0,d.m7)(t,this.objectToBoundingSphere(n))&&(yield n)}}*_nodeIteratorValues(t=()=>!0){yield*_(this._root,t)}forEachNeighbor(t,e){let n=e.radius,r=e.center,i=n=>{let r=this.objectToBoundingSphere(n);return!e.intersects(r)||t(n)},o=!0,a=t=>{o&&=i(t)};p(this._root,t=>{let e=2*t.bounds.radius,i=n+e;if((0,s.hG)(t.bounds.center,r)-i*i>0)return!1;let u=t.node;return u.terminals.forAll(a),o&&null!==u.residents&&u.residents.forAll(a),o}),o&&this.forEachDegenerateObject(a)}_intersectsObject(t,e){let n=this.objectToBoundingSphere(e);return!(n.radius>0)||n.intersectRay(t)}_intersectsObjectWithOffset(t,e,n){let r=this.objectToBoundingSphere(e);return!(r.radius>0)||n.applyToBoundingSphere(r).intersectRay(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){let e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){let r=g.acquire().init(t);this._add(e.at(n),r),g.release(r)}}_grow(t){if(O(t,t=>this.objectToBoundingSphere(t),B),C(B.radius)&&!this._fitsInsideTree(B))if(S(this._root.node))this._root.bounds.copyFrom(B),this._root.halfSize=1.25*this._root.bounds.radius,this._root.updateBoundsRadiusFromHalfSize();else{let t=this._rootBoundsForRootAsSubNode(B);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(B,t):this._growRootAsSubNode(t),g.release(t)}}_rebuildTree(t,e){L.center=e.bounds.center,L.radius=e.halfSize,O([t,L],t=>t,k);let n=g.acquire().init(this._root);this._root.initFrom(null,k,k.radius),this._root.increaseHalfSize(1.25),p(n,t=>(this.add(t.node.terminals.data),null!==t.node.residents&&this.add(t.node.residents.data),!0)),g.release(n)}_placingRootViolatesMaxDepth(t){let e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E,n=0;return p(this._root,t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth)),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){let e=t.radius,n=t.center,r=-1/0,i=this._root.bounds.center,o=this._root.halfSize;for(let t=0;t<3;t++){let a=i[t]-o-(n[t]-e),s=n[t]+e-(i[t]+o),u=Math.max(0,Math.ceil(a/(2*o))),h=Math.max(0,Math.ceil(s/(2*o)))+1,c=2**Math.ceil(Math.log(u+h)*Math.LOG2E);r=Math.max(r,c),Q[t].min=u,Q[t].max=h}for(let t=0;t<3;t++){let e=Q[t].min,n=Q[t].max,a=(r-(e+n))/2;e+=Math.ceil(a),n+=Math.floor(a);let s=i[t]-o-e*o*2;z.center[t]=s+(n+e)*o}let a=r*o;return z.radius=a*P,g.acquire().initFrom(null,z,a,0)}_growRootAsSubNode(t){let e=this._root.node;B.center=this._root.bounds.center,B.radius=this._root.halfSize,this._root.init(t),t.advanceTo(B,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){let 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,e=this._root.node.children,n=0,r=0;for(;r<e.length&&null==t;)n=r++,t=e[n];for(;r<e.length;)if(e[r++])return-1;return n}_isDegenerate(t){return!C(this.objectToBoundingSphere(t).radius)}_fitsInsideTree(t){let e=this._root.bounds,n=this._root.halfSize;return t.radius<=n&&t.center[0]>=e.center[0]-n&&t.center[0]<=e.center[0]+n&&t.center[1]>=e.center[1]-n&&t.center[1]<=e.center[1]+n&&t.center[2]>=e.center[2]-n&&t.center[2]<=e.center[2]+n}_nodeToJSON(t){return{children:t.children.map(t=>t?this._nodeToJSON(t):null),residents:t.residents?.map(t=>this.objectToBoundingSphere(t)),terminals:t.terminals?.map(t=>this.objectToBoundingSphere(t))}}}class g{constructor(){this.bounds=new c.iy,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,r=this.depth){return this.node=t??g.createEmptyNode(),e&&this.bounds.copyFrom(e),this.halfSize=n,this.depth=r,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds.radius=this.halfSize*P}advance(t){let e=this.node.children[t];e||(e=g.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;let n=R[t];return this.bounds.center[0]+=n[0]*this.halfSize,this.bounds.center[1]+=n[1]*this.halfSize,this.bounds.center[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e?.(this,-1),!0;if(this.isLeaf()){if(!n)return e?.(this,-1),!1;this.node.residents=null}let r=this._childIndex(t);e?.(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t.radius>this.halfSize/2}_childIndex(t){let e=this.bounds.center;return+(e[0]<t.center[0])+(e[1]<t.center[1]?2:0)+(e[2]<t.center[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new f.A({shrink:!0}),residents:new f.A({shrink:!0})}}static{this._pool=new l.A(()=>new g)}static acquire(){return g._pool.acquire()}static release(t){g._pool.release(t)}static clearPool(){g._pool.prune()}}function*_(t,e=()=>!0){let n=[g.acquire().init(t)];for(;0!==n.length;){let t=n.pop();if(e(t)){if(yield t,!t.isLeaf())for(let e=0;e<t.node.children.length;e++)t.node.children[e]&&n.push(g.acquire().init(t).advance(e));g.release(t)}}}function p(t,e){let n=_(t,e);for(let t of n);}function v(t,e,n,r=1){let i=g.acquire().init(t),o=[i];for(function(t,e,n){if(!W.length)for(let t=0;t<8;++t)W.push({index:0,distance:0});for(let n=0;n<8;++n){let r=R[n];W.data[n].index=n,W.data[n].distance=q(t,e,r)}W.sort((t,e)=>t.distance-e.distance);for(let t=0;t<8;++t)n[t]=W.data[t].index}(n,r,Z);0!==o.length;){if(i=o.pop(),e(i)&&!i.isLeaf())for(let t=7;t>=0;--t){let e=Z[t];i.node.children[e]&&o.push(g.acquire().init(i).advance(e))}g.release(i)}}function x(t,e,n){N.clear();let r=n.advanceTo(e,(t,e)=>{N.push(t.node),N.push(e)})?n.node.terminals:n.node.residents;if(r.removeUnordered(t),0===r.length)for(let t=N.length-2;t>=0&&y(N.data[t],N.data[t+1]);t-=2);}function y(t,e){return e>=0&&(t.children[e]=null),!!S(t)&&(null===t.residents&&(t.residents=new f.A({shrink:!0})),!0)}function S(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 w(t,e){t[0]=Math.min(t[0],e.center[0]-e.radius),t[1]=Math.min(t[1],e.center[1]-e.radius),t[2]=Math.min(t[2],e.center[2]-e.radius)}function A(t,e){t[0]=Math.max(t[0],e.center[0]+e.radius),t[1]=Math.max(t[1],e.center[1]+e.radius),t[2]=Math.max(t[2],e.center[2]+e.radius)}function j(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function O(t,e,n){V[0]=1/0,V[1]=1/0,V[2]=1/0,D[0]=-1/0,D[1]=-1/0,D[2]=-1/0;for(let n of t){let t=e(n);C(t.radius)&&(w(V,t),A(D,t))}(0,s.Cc)(n.center,V,D,.5),n.radius=Math.max(D[0]-V[0],D[1]-V[1],D[2]-V[2])/2}function T(t,e){let n,r=1/0;for(let i=0;i<8;++i){let o=q(t,e,E[i]);o<r&&(r=o,n=E[i])}return n}function q(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function C(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}const R=[(0,u.fA)(-1,-1,-1),(0,u.fA)(1,-1,-1),(0,u.fA)(-1,1,-1),(0,u.fA)(1,1,-1),(0,u.fA)(-1,-1,1),(0,u.fA)(1,-1,1),(0,u.fA)(-1,1,1),(0,u.fA)(1,1,1)],E=[(0,u.fA)(-1,-1,-1),(0,u.fA)(-1,-1,1),(0,u.fA)(-1,1,-1),(0,u.fA)(-1,1,1),(0,u.fA)(1,-1,-1),(0,u.fA)(1,-1,1),(0,u.fA)(1,1,-1),(0,u.fA)(1,1,1)],P=Math.sqrt(3),I=[null],z=new c.iy,F=(0,u.vt)(),V=(0,u.vt)(),D=(0,u.vt)(),N=new f.A,B=new c.iy,L=new c.iy,k=new c.iy,Q=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],W=new f.A,Z=[0,0,0,0,0,0,0,0];var H=n(44801);function $(t,e,n){let r=new c.iy;return(0,s.hs)(r.center,t,.5),(0,s.Ln)(r.center,r.center,e,.5),r.radius=(0,s.Io)(r.center,t),(0,s.WQ)(r.center,r.center,n),r}class U{constructor(t,e,n){this.objectId=t,this.target=e,this.distance=n}}class X extends U{constructor(t,e,n){super(t,e,n),this.type="vertex"}}class J extends U{constructor(t,e,n,r,i){super(t,e,n),this.start=r,this.end=i,this.type="edge"}}let Y=class{constructor(){this._idToComponent=new Map,this._components=new b(t=>t.bounds),this._edges=new b(t=>t.bounds),this._tmpLineSegment=(0,h.vt)(),this._tmpP1=(0,u.vt)(),this._tmpP2=(0,u.vt)(),this._tmpP3=(0,u.vt)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,i.Te)(e);let n=t;n.mbs=new c.iy(t.mbsJSON),await this._ensureEdgeLocations(n,e);let r=[];return this._edges.forEachNeighbor(t=>(this._addCandidates(n,t,r),r.length<1e3),n.mbs),{result:{candidates:r}}}async _ensureEdgeLocations(t,e){let n=[];if(this._components.forEachNeighbor(t=>{if(null==t.info){let{id:e,uid:r}=t;n.push({id:e,uid:r})}return!0},t.mbs),!n.length)return;let r={components:n},i=await this.remoteClient.invoke("fetchAllEdgeLocations",r,e??{});for(let t of i.components)this._setFetchEdgeLocations(t)}async add(t){let e=new tt(t.id,new c.iy(t.bounds));return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){let e=this._idToComponent.get(t.id);if(e){let 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){let e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;let n=H.HY.createView(t.locations),r=Array(n.count),i=(0,u.vt)(),o=(0,u.vt)();for(let a=0;a<n.count;a++){n.position0.getVec(a,i),n.position1.getVec(a,o);let s=$(i,o,t.origin),u=new et(e,a,s);r[a]=u}this._edges.add(r);let{objectIds:a,origin:s}=t;e.info={locations:n,objectIds:a,origin:s}}_addCandidates(t,e,n){let{info:r}=e.component,{origin:i,objectIds:o}=r,a=r.locations,u=a.position0.getVec(e.index,this._tmpP1),h=a.position1.getVec(e.index,this._tmpP2);(0,s.WQ)(u,u,i),(0,s.WQ)(h,h,i);let c=o[a.componentIndex.get(e.index)];this._addEdgeCandidate(t,c,u,h,n),G(t,c,u,n),G(t,c,h,n)}_addEdgeCandidate(t,e,n,r,i){if(!t.returnEdge)return;let o=t.mbs.center,a=(0,h.Cr)(n,r,this._tmpLineSegment),c=(0,h._I)(a,o,this._tmpP3);t.mbs.contains(c)&&i.push(new J(e,(0,u.o8)(c),(0,s.Io)(o,c),(0,u.o8)(n),(0,u.o8)(r)))}};Y=(0,r.Cg)([(0,a.$K)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],Y);const K=Y;function G(t,e,n,r){t.returnVertex&&t.mbs.contains(n)&&r.push(new X(e,(0,u.o8)(n),(0,s.Io)(t.mbs.center,n)))}class tt{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=(0,o.c)()}}class et{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[491],{32198(t,e,n){function r(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function i(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],n&&(i=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}n.d(e,{Cg:()=>r,hk:()=>a,mS:()=>i}),Object.create,Object.create;var o="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function a(t){function e(e){t.error=t.hasError?new o(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function i(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(i);if(n.dispose){var o=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(o).then(i,function(t){return e(t),i()})}else r|=1}catch(t){e(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},4341(t,e,n){n.d(e,{I:()=>i});var r=n(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){let t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,o));t++)this._items.push(this._allocator())}}const o=1024},29242(t,e,n){function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,n,r,i,o,a,s,u){return[t,e,n,r,i,o,a,s,u]}n.d(e,{fA:()=>i,vt:()=>r});const o=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:i},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,o])},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>i,vt:()=>r});const o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r,i,o,a,s,u,h,c,l,f,d,m,M){return[t,e,n,r,i,o,a,s,u,h,c,l,f,d,m,M]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,o])},82534(t,e,n){function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}n.d(e,{o8:()=>i,vt:()=>r});const o=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:o,clone:i,create:r,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,o])},77690(t,e,n){n.d(e,{B8:()=>s,Ge:()=>d,I0:()=>f,KC:()=>u,a4:()=>h,hZ:()=>o,hs:()=>l,lw:()=>c,mg:()=>a,z0:()=>i});var r=n(34304);function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function o(t,e,n,r,i,o,a,s,u,h){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=h,t}function a(t,e){if(t===e){let n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function s(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8],l=c*a-s*h,f=-c*o+s*u,d=h*o-a*u,m=n*l+r*f+i*d;return m?(m=1/m,t[0]=l*m,t[1]=(-c*r+i*h)*m,t[2]=(s*r-i*a)*m,t[3]=f*m,t[4]=(c*n-i*u)*m,t[5]=(-s*n+i*o)*m,t[6]=d*m,t[7]=(-h*n+r*u)*m,t[8]=(a*n-r*o)*m,t):null}function u(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8];return t[0]=a*c-s*h,t[1]=i*h-r*c,t[2]=r*s-i*a,t[3]=s*u-o*c,t[4]=n*c-i*u,t[5]=i*o-n*s,t[6]=o*h-a*u,t[7]=r*u-n*h,t[8]=n*a-r*o,t}function h(t){let e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],h=t[8];return e*(h*o-a*u)+n*(-h*i+a*s)+r*(u*i-o*s)}function c(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=e[8],f=n[0],d=n[1],m=n[2],M=n[3],b=n[4],g=n[5],_=n[6],p=n[7],v=n[8];return t[0]=f*r+d*a+m*h,t[1]=f*i+d*s+m*c,t[2]=f*o+d*u+m*l,t[3]=M*r+b*a+g*h,t[4]=M*i+b*s+g*c,t[5]=M*o+b*u+g*l,t[6]=_*r+p*a+v*h,t[7]=_*i+p*s+v*c,t[8]=_*o+p*u+v*l,t}function l(t,e,n){let r=n[0],i=n[1],o=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=o*e[6],t[7]=o*e[7],t[8]=o*e[8],t}function f(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,h=n*a,c=r*a,l=r*s,f=i*a,d=i*s,m=i*u,M=o*a,b=o*s,g=o*u;return t[0]=1-l-m,t[3]=c-g,t[6]=f+b,t[1]=c+g,t[4]=1-h-m,t[7]=d-M,t[2]=f-b,t[5]=d+M,t[8]=1-h-l,t}function d(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8],l=e[9],f=e[10],d=e[11],m=e[12],M=e[13],b=e[14],g=e[15],_=n*s-r*a,p=n*u-i*a,v=n*h-o*a,x=r*u-i*s,y=r*h-o*s,S=i*h-o*u,w=c*M-l*m,A=c*b-f*m,j=c*g-d*m,O=l*b-f*M,T=l*g-d*M,q=f*g-d*b,C=_*q-p*T+v*O+x*j-y*A+S*w;return C?(C=1/C,t[0]=(s*q-u*T+h*O)*C,t[1]=(u*j-a*q-h*A)*C,t[2]=(a*T-s*j+h*w)*C,t[3]=(i*T-r*q-o*O)*C,t[4]=(n*q-i*j+o*A)*C,t[5]=(r*j-n*T-o*w)*C,t[6]=(M*S-b*y+g*x)*C,t[7]=(b*v-m*S-g*p)*C,t[8]=(m*y-M*v+g*_)*C,t):null}function m(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const M=c,b=m;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:u,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:h,equals:function(t,e){let n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],h=t[6],c=t[7],l=t[8],f=e[0],d=e[1],m=e[2],M=e[3],b=e[4],g=e[5],_=e[6],p=e[7],v=e[8],x=(0,r.FD)();return Math.abs(n-f)<=x*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-d)<=x*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-m)<=x*Math.max(1,Math.abs(o),Math.abs(m))&&Math.abs(a-M)<=x*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(s-b)<=x*Math.max(1,Math.abs(s),Math.abs(b))&&Math.abs(u-g)<=x*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(h-_)<=x*Math.max(1,Math.abs(h),Math.abs(_))&&Math.abs(c-p)<=x*Math.max(1,Math.abs(c),Math.abs(p))&&Math.abs(l-v)<=x*Math.max(1,Math.abs(l),Math.abs(v))},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},fromMat4:i,fromQuat:f,fromRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:function(t){let e=(0,r.FD)(),n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],h=t[6],c=t[7],l=t[8];return Math.abs(1-(n*n+a*a+h*h))<=e&&Math.abs(1-(i*i+s*s+c*c))<=e&&Math.abs(1-(o*o+u*u+l*l))<=e},mul:M,multiply:c,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},normalFromMat4:d,normalFromMat4Legacy:function(t,e){let n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],h=e[9],c=e[10],l=c*a-s*h,f=-c*o+s*u,d=h*o-a*u,m=n*l+r*f+i*d;if(!m)return null;let M=1/m;return t[0]=l*M,t[1]=(-c*r+i*h)*M,t[2]=(s*r-i*a)*M,t[3]=f*M,t[4]=(c*n-i*u)*M,t[5]=(-s*n+i*o)*M,t[6]=d*M,t[7]=(-h*n+r*u)*M,t[8]=(a*n-r*o)*M,t},projection:function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=e[8],f=Math.sin(n),d=Math.cos(n);return t[0]=d*r+f*a,t[1]=d*i+f*s,t[2]=d*o+f*u,t[3]=d*a-f*r,t[4]=d*s-f*i,t[5]=d*u-f*o,t[6]=h,t[7]=c,t[8]=l,t},scale:l,scaleByVec2:function(t,e,n){let r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t},set:o,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:b,subtract:m,translate:function(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=e[8],f=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=u,t[6]=f*r+d*a+h,t[7]=f*i+d*s+c,t[8]=f*o+d*u+l,t},transpose:a},Symbol.toStringTag,{value:"Module"}))},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>O,B8:()=>c,C:()=>o,D_:()=>s,N9:()=>p,O7:()=>j,Qw:()=>h,Tl:()=>f,X_:()=>S,e$:()=>m,eL:()=>M,hM:()=>_,hZ:()=>a,hs:()=>d,kN:()=>b,l:()=>w,lw:()=>l,mg:()=>u,o1:()=>A,sC:()=>y,t2:()=>C,t5:()=>T,tZ:()=>E,ut:()=>R});var r=n(51850),i=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function a(t,e,n,r,i,o,a,s,u,h,c,l,f,d,m,M,b){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=u,t[8]=h,t[9]=c,t[10]=l,t[11]=f,t[12]=d,t[13]=m,t[14]=M,t[15]=b,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,e){if(t===e){let n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function h(t,e){return c(t,e)||s(t),t}function c(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8],l=e[9],f=e[10],d=e[11],m=e[12],M=e[13],b=e[14],g=e[15],_=n*s-r*a,p=n*u-i*a,v=n*h-o*a,x=r*u-i*s,y=r*h-o*s,S=i*h-o*u,w=c*M-l*m,A=c*b-f*m,j=c*g-d*m,O=l*b-f*M,T=l*g-d*M,q=f*g-d*b,C=_*q-p*T+v*O+x*j-y*A+S*w;return C?(C=1/C,t[0]=(s*q-u*T+h*O)*C,t[1]=(i*T-r*q-o*O)*C,t[2]=(M*S-b*y+g*x)*C,t[3]=(f*y-l*S-d*x)*C,t[4]=(u*j-a*q-h*A)*C,t[5]=(n*q-i*j+o*A)*C,t[6]=(b*v-m*S-g*p)*C,t[7]=(c*S-f*v+d*p)*C,t[8]=(a*T-s*j+h*w)*C,t[9]=(r*j-n*T-o*w)*C,t[10]=(m*y-M*v+g*_)*C,t[11]=(l*v-c*y-d*_)*C,t[12]=(s*A-a*O-u*w)*C,t[13]=(n*O-r*A+i*w)*C,t[14]=(M*p-m*x-b*_)*C,t[15]=(c*x-l*p+f*_)*C,t):null}function l(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=e[8],f=e[9],d=e[10],m=e[11],M=e[12],b=e[13],g=e[14],_=e[15],p=n[0],v=n[1],x=n[2],y=n[3];return t[0]=p*r+v*s+x*l+y*M,t[1]=p*i+v*u+x*f+y*b,t[2]=p*o+v*h+x*d+y*g,t[3]=p*a+v*c+x*m+y*_,p=n[4],v=n[5],x=n[6],y=n[7],t[4]=p*r+v*s+x*l+y*M,t[5]=p*i+v*u+x*f+y*b,t[6]=p*o+v*h+x*d+y*g,t[7]=p*a+v*c+x*m+y*_,p=n[8],v=n[9],x=n[10],y=n[11],t[8]=p*r+v*s+x*l+y*M,t[9]=p*i+v*u+x*f+y*b,t[10]=p*o+v*h+x*d+y*g,t[11]=p*a+v*c+x*m+y*_,p=n[12],v=n[13],x=n[14],y=n[15],t[12]=p*r+v*s+x*l+y*M,t[13]=p*i+v*u+x*f+y*b,t[14]=p*o+v*h+x*d+y*g,t[15]=p*a+v*c+x*m+y*_,t}function f(t,e,n){let r=n[0],i=n[1],o=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*o+e[12],t[13]=e[1]*r+e[5]*i+e[9]*o+e[13],t[14]=e[2]*r+e[6]*i+e[10]*o+e[14],t[15]=e[3]*r+e[7]*i+e[11]*o+e[15];else{let n=e[0],a=e[1],s=e[2],u=e[3],h=e[4],c=e[5],l=e[6],f=e[7],d=e[8],m=e[9],M=e[10],b=e[11];t[0]=n,t[1]=a,t[2]=s,t[3]=u,t[4]=h,t[5]=c,t[6]=l,t[7]=f,t[8]=d,t[9]=m,t[10]=M,t[11]=b,t[12]=n*r+h*i+d*o+e[12],t[13]=a*r+c*i+m*o+e[13],t[14]=s*r+l*i+M*o+e[14],t[15]=u*r+f*i+b*o+e[15]}return t}function d(t,e,n){let r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function m(t,e,n,r){let a=r[0],s=r[1],u=r[2],h=Math.sqrt(a*a+s*s+u*u);if(h<=(0,i.FD)())return void o(t,e);h=1/h,a*=h,s*=h,u*=h;let c=Math.sin(n),l=Math.cos(n),f=1-l,d=e[0],m=e[1],M=e[2],b=e[3],g=e[4],_=e[5],p=e[6],v=e[7],x=e[8],y=e[9],S=e[10],w=e[11],A=a*a*f+l,j=s*a*f+u*c,O=u*a*f-s*c,T=a*s*f-u*c,q=s*s*f+l,C=u*s*f+a*c,R=a*u*f+s*c,E=s*u*f-a*c,P=u*u*f+l;t[0]=d*A+g*j+x*O,t[1]=m*A+_*j+y*O,t[2]=M*A+p*j+S*O,t[3]=b*A+v*j+w*O,t[4]=d*T+g*q+x*C,t[5]=m*T+_*q+y*C,t[6]=M*T+p*q+S*C,t[7]=b*T+v*q+w*C,t[8]=d*R+g*E+x*P,t[9]=m*R+_*E+y*P,t[10]=M*R+p*E+S*P,t[11]=b*R+v*E+w*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function M(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[4],a=e[5],s=e[6],u=e[7],h=e[8],c=e[9],l=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+h*r,t[5]=a*i+c*r,t[6]=s*i+l*r,t[7]=u*i+f*r,t[8]=h*i-o*r,t[9]=c*i-a*r,t[10]=l*i-s*r,t[11]=f*i-u*r,t}function b(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return s(t);let r=n[0],o=n[1],a=n[2],u=Math.sqrt(r*r+o*o+a*a);if(u<=(0,i.FD)())return null;u=1/u,r*=u,o*=u,a*=u;let h=Math.sin(e),c=Math.cos(e),l=1-c;return t[0]=r*r*l+c,t[1]=o*r*l+a*h,t[2]=a*r*l-o*h,t[3]=0,t[4]=r*o*l-a*h,t[5]=o*o*l+c,t[6]=a*o*l+r*h,t[7]=0,t[8]=r*a*l+o*h,t[9]=o*a*l-r*h,t[10]=a*a*l+c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function p(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function v(t,e,n){let r=e[0],i=e[1],o=e[2],a=e[3],s=r+r,u=i+i,h=o+o,c=r*s,l=r*u,f=r*h,d=i*u,m=i*h,M=o*h,b=a*s,g=a*u,_=a*h;return t[0]=1-(d+M),t[1]=l+_,t[2]=f-g,t[3]=0,t[4]=l-_,t[5]=1-(c+M),t[6]=m+b,t[7]=0,t[8]=f+g,t[9]=m-b,t[10]=1-(c+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const x=(0,r.vt)();function y(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){let n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],u=e[8],h=e[9],c=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(o*o+a*a+s*s),t[2]=Math.sqrt(u*u+h*h+c*c),t}function w(t,e){let n=e[0]+e[5]+e[10],r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function A(t,e,n,r){let i=e[0],o=e[1],a=e[2],s=e[3],u=i+i,h=o+o,c=a+a,l=i*u,f=i*h,d=i*c,m=o*h,M=o*c,b=a*c,g=s*u,_=s*h,p=s*c,v=r[0],x=r[1],y=r[2];return t[0]=(1-(m+b))*v,t[1]=(f+p)*v,t[2]=(d-_)*v,t[3]=0,t[4]=(f-p)*x,t[5]=(1-(l+b))*x,t[6]=(M+g)*x,t[7]=0,t[8]=(d+_)*y,t[9]=(M-g)*y,t[10]=(1-(l+m))*y,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function j(t,e,n,r,i){let o=e[0],a=e[1],s=e[2],u=e[3],h=o+o,c=a+a,l=s+s,f=o*h,d=o*c,m=o*l,M=a*c,b=a*l,g=s*l,_=u*h,p=u*c,v=u*l,x=r[0],y=r[1],S=r[2],w=i[0],A=i[1],j=i[2],O=(1-(M+g))*x,T=(d+v)*x,q=(m-p)*x,C=(d-v)*y,R=(1-(f+g))*y,E=(b+_)*y,P=(m+p)*S,I=(b-_)*S,z=(1-(f+M))*S;return t[0]=O,t[1]=T,t[2]=q,t[3]=0,t[4]=C,t[5]=R,t[6]=E,t[7]=0,t[8]=P,t[9]=I,t[10]=z,t[11]=0,t[12]=n[0]+w-(O*w+C*A+P*j),t[13]=n[1]+A-(T*w+R*A+I*j),t[14]=n[2]+j-(q*w+E*A+z*j),t[15]=1,t}function O(t,e,n,r,i,o,a){let s=1/(n-e),u=1/(i-r),h=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*u,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*u,t[10]=(a+o)*h,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*h,t[15]=0,t}function T(t,e,n,r){let o=e[0],a=e[1],u=e[2],h=o-n[0],c=a-n[1],l=u-n[2],f=(0,i.FD)();if(Math.abs(h)<f&&Math.abs(c)<f&&Math.abs(l)<f)return void s(t);let d=1/Math.sqrt(h*h+c*c+l*l);h*=d,c*=d,l*=d;let m=r[0],M=r[1],b=r[2],g=M*l-b*c,_=b*h-m*l,p=m*c-M*h;d=Math.sqrt(g*g+_*_+p*p),d?(d=1/d,g*=d,_*=d,p*=d):(g=0,_=0,p=0);let v=c*p-l*_,x=l*g-h*p,y=h*_-c*g;d=Math.sqrt(v*v+x*x+y*y),d?(d=1/d,v*=d,x*=d,y*=d):(v=0,x=0,y=0),t[0]=g,t[1]=v,t[2]=h,t[3]=0,t[4]=_,t[5]=x,t[6]=c,t[7]=0,t[8]=p,t[9]=y,t[10]=l,t[11]=0,t[12]=-(g*o+_*a+p*u),t[13]=-(v*o+x*a+y*u),t[14]=-(h*o+c*a+l*u),t[15]=1}function q(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function C(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function R(t){let e=(0,i.FD)(),n=t[0],r=t[1],o=t[2],a=t[4],s=t[5],u=t[6],h=t[8],c=t[9],l=t[10];return Math.abs(1-(n*n+a*a+h*h))<=e&&Math.abs(1-(r*r+s*s+c*c))<=e&&Math.abs(1-(o*o+u*u+l*l))<=e}function E(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const P=l,I=q;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],u=e[6],h=e[7],c=e[8],l=e[9],f=e[10],d=e[11],m=e[12],M=e[13],b=e[14],g=e[15];return t[0]=s*(f*g-d*b)-l*(u*g-h*b)+M*(u*d-h*f),t[1]=-(r*(f*g-d*b)-l*(i*g-o*b)+M*(i*d-o*f)),t[2]=r*(u*g-h*b)-s*(i*g-o*b)+M*(i*h-o*u),t[3]=-(r*(u*d-h*f)-s*(i*d-o*f)+l*(i*h-o*u)),t[4]=-(a*(f*g-d*b)-c*(u*g-h*b)+m*(u*d-h*f)),t[5]=n*(f*g-d*b)-c*(i*g-o*b)+m*(i*d-o*f),t[6]=-(n*(u*g-h*b)-a*(i*g-o*b)+m*(i*h-o*u)),t[7]=n*(u*d-h*f)-a*(i*d-o*f)+c*(i*h-o*u),t[8]=a*(l*g-d*M)-c*(s*g-h*M)+m*(s*d-h*l),t[9]=-(n*(l*g-d*M)-c*(r*g-o*M)+m*(r*d-o*l)),t[10]=n*(s*g-h*M)-a*(r*g-o*M)+m*(r*h-o*s),t[11]=-(n*(s*d-h*l)-a*(r*d-o*l)+c*(r*h-o*s)),t[12]=-(a*(l*b-f*M)-c*(s*b-u*M)+m*(s*f-u*l)),t[13]=n*(l*b-f*M)-c*(r*b-i*M)+m*(r*f-i*l),t[14]=-(n*(s*b-u*M)-a*(r*b-i*M)+m*(r*u-i*s)),t[15]=n*(s*f-u*l)-a*(r*f-i*l)+c*(r*u-i*s),t},copy:o,determinant:function(t){let e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],u=t[7],h=t[8],c=t[9],l=t[10],f=t[11],d=t[12],m=t[13],M=t[14],b=t[15];return(e*a-n*o)*(l*b-f*M)-(e*s-r*o)*(c*b-f*m)+(e*u-i*o)*(c*M-l*m)+(n*s-r*a)*(h*b-f*d)-(n*u-i*a)*(h*M-l*d)+(r*u-i*s)*(h*m-c*d)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],o=t[2],a=t[3],s=t[4],u=t[5],h=t[6],c=t[7],l=t[8],f=t[9],d=t[10],m=t[11],M=t[12],b=t[13],g=t[14],_=t[15],p=e[0],v=e[1],x=e[2],y=e[3],S=e[4],w=e[5],A=e[6],j=e[7],O=e[8],T=e[9],q=e[10],C=e[11],R=e[12],E=e[13],P=e[14],I=e[15],z=(0,i.FD)();return Math.abs(n-p)<=z*Math.max(1,Math.abs(n),Math.abs(p))&&Math.abs(r-v)<=z*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(o-x)<=z*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-y)<=z*Math.max(1,Math.abs(a),Math.abs(y))&&Math.abs(s-S)<=z*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(u-w)<=z*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(h-A)<=z*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(c-j)<=z*Math.max(1,Math.abs(c),Math.abs(j))&&Math.abs(l-O)<=z*Math.max(1,Math.abs(l),Math.abs(O))&&Math.abs(f-T)<=z*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(d-q)<=z*Math.max(1,Math.abs(d),Math.abs(q))&&Math.abs(m-C)<=z*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(M-R)<=z*Math.max(1,Math.abs(M),Math.abs(R))&&Math.abs(b-E)<=z*Math.max(1,Math.abs(b),Math.abs(E))&&Math.abs(g-P)<=z*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(_-I)<=z*Math.max(1,Math.abs(_),Math.abs(I))},exactEquals:C,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){let n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,u=i+i,h=n*a,c=r*a,l=r*s,f=i*a,d=i*s,m=i*u,M=o*a,b=o*s,g=o*u;return t[0]=1-l-m,t[1]=c+g,t[2]=f-b,t[3]=0,t[4]=c-g,t[5]=1-h-m,t[6]=d+M,t[7]=0,t[8]=f+b,t[9]=d-M,t[10]=1-h-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=x,r=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],u=e[5],h=e[6],c=e[7],l=r*r+i*i+o*o+a*a;return l>0?(n[0]=2*(s*a+c*r+u*o-h*i)/l,n[1]=2*(u*a+c*i+h*r-s*o)/l,n[2]=2*(h*a+c*o+s*i-u*r)/l):(n[0]=2*(s*a+c*r+u*o-h*i),n[1]=2*(u*a+c*i+h*r-s*o),n[2]=2*(h*a+c*o+s*i-u*r)),v(t,e,n),t},fromRotation:g,fromRotationTranslation:v,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:j,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:b,fromXRotation:_,fromYRotation:function(t,e){let n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:p,frustum:O,getRotation:w,getScale:S,getTranslation:y,hasIdentityRotation:E,identity:s,invert:c,invertOrIdentity:h,isOrthoNormal:R,lookAt:T,mul:P,multiply:l,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,o,a){let s=1/(e-n),u=1/(r-i),h=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*h,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*u,t[14]=(a+o)*h,t[15]=1,t},perspective:function(t,e,n,r,i){let o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(a+s),h=2/(i+o);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=h,t[6]=0,t[7]=0,t[8]=-(a-s)*u*.5,t[9]=(i-o)*h*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:m,rotateX:M,rotateY:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],h=e[8],c=e[9],l=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-h*r,t[1]=a*i-c*r,t[2]=s*i-l*r,t[3]=u*i-f*r,t[8]=o*r+h*i,t[9]=a*r+c*i,t[10]=s*r+l*i,t[11]=u*r+f*i,t},rotateZ:function(t,e,n){let r=Math.sin(n),i=Math.cos(n),o=e[0],a=e[1],s=e[2],u=e[3],h=e[4],c=e[5],l=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+h*r,t[1]=a*i+c*r,t[2]=s*i+l*r,t[3]=u*i+f*r,t[4]=h*i-o*r,t[5]=c*i-a*r,t[6]=l*i-s*r,t[7]=f*i-u*r,t},scale:d,set:a,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:I,subtract:q,targetTo:function(t,e,n,r){let i=e[0],o=e[1],a=e[2],s=r[0],u=r[1],h=r[2],c=i-n[0],l=o-n[1],f=a-n[2],d=c*c+l*l+f*f;d>0&&(d=1/Math.sqrt(d),c*=d,l*=d,f*=d);let m=u*f-h*l,M=h*c-s*f,b=s*l-u*c;return d=m*m+M*M+b*b,d>0&&(d=1/Math.sqrt(d),m*=d,M*=d,b*=d),t[0]=m,t[1]=M,t[2]=b,t[3]=0,t[4]=l*b-f*M,t[5]=f*m-c*b,t[6]=c*M-l*m,t[7]=0,t[8]=c,t[9]=l,t[10]=f,t[11]=0,t[12]=i,t[13]=o,t[14]=a,t[15]=1,t},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},4197(t,e,n){n.d(e,{Vj:()=>c,cj:()=>h,jh:()=>o,l5:()=>s,yH:()=>u});var r=n(34275),i=n(9093);function o(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function a(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function s(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function u(t,e){if(0===e.length)return a(t);if(0===t.length)return a(e);let n=o(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function h(t){return[...t]}function c(t){let e=(0,i.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},70328(t,e,n){n.d(e,{BI:()=>O,C:()=>a,DC:()=>f,Ej:()=>p,Ie:()=>A,Jt:()=>j,Lu:()=>x,Ne:()=>y,RF:()=>l,TF:()=>g,VL:()=>m,aI:()=>q,fA:()=>s,gE:()=>h,gX:()=>_,hZ:()=>w,iT:()=>d,is:()=>T,pg:()=>v,uJ:()=>b,vI:()=>S,vY:()=>u,vt:()=>o,w1:()=>c,yr:()=>M}),n(35522);var r=n(5443),i=(n(19419),n(4197));function o(t=R){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function a(t,e){for(let n=0;n<6;n++)t[n]=e[n];return t}function s(t,e,n,r,i,a,s=o()){return s[0]=t,s[1]=e,s[2]=n,s[3]=r,s[4]=i,s[5]=a,s}function u(t,e=o()){return function(t,e,n,r=o()){return w(r,C),function(t,e,n=0,r=e.length/3){let i=t[0],o=t[1],a=t[2],s=t[3],u=t[4],h=t[5];for(let t=0;t<r;t++)i=Math.min(i,e[n+3*t]),o=Math.min(o,e[n+3*t+1]),a=Math.min(a,e[n+3*t+2]),s=Math.max(s,e[n+3*t]),u=Math.max(u,e[n+3*t+1]),h=Math.max(h,e[n+3*t+2]);t[0]=i,t[1]=o,t[2]=a,t[3]=s,t[4]=u,t[5]=h}(r,t,e,n),r}(t,0,t.length/3,e)}function h(t,e=(0,i.jh)(24)){let[n,r,o,a,s,u]=t;return e[0]=n,e[1]=r,e[2]=o,e[3]=n,e[4]=r,e[5]=u,e[6]=n,e[7]=s,e[8]=o,e[9]=n,e[10]=s,e[11]=u,e[12]=a,e[13]=r,e[14]=o,e[15]=a,e[16]=r,e[17]=u,e[18]=a,e[19]=s,e[20]=o,e[21]=a,e[22]=s,e[23]=u,e}function c(t,e){return isFinite(t[2])||isFinite(t[5])?new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:e}):new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:e})}function l(t,e,n=t){n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.min(t[2],e[2]),n[3]=Math.max(t[3],e[3]),n[4]=Math.max(t[4],e[4]),n[5]=Math.max(t[5],e[5])}function f(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[3]=Math.max(t[3],e[2]),t[4]=Math.max(t[4],e[3])}function d(t,[e,n,r]){!function(t,e,n,r){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],e),t[4]=Math.max(t[4],n),t[5]=Math.max(t[5],r)}(t,e,n,r)}function m(t){return t[0]>=t[3]?0:t[3]-t[0]}function M(t){return t[1]>=t[4]?0:t[4]-t[1]}function b(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){let e=m(t),n=b(t),r=M(t);return e*e+n*n+r*r}function _(t,e=[0,0,0]){return e[0]=t[0]+m(t)/2,e[1]=t[1]+M(t)/2,e[2]=t[2]+b(t)/2,e}function p(t,e=[0,0,0]){return e[0]=m(t),e[1]=M(t),e[2]=b(t),e}function v(t,e){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function x(t,e){return e[0]=t[3],e[1]=t[4],e[2]=t[5],e}function y(t,e,n=t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n!==t&&(n[3]=t[3],n[4]=t[4],n[5]=t[5]),n}function S(t,e,n=t){return n[3]=e[0],n[4]=e[1],n[5]=e[2],n!==t&&(n[0]=t[0],n[1]=t[1],n[2]=t[2]),t}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function A(t){return t?w(t,C):o(C)}function j(t,e){return t[0]=e[0],t[1]=e[1],t[2]=-1/0,t[3]=e[2],t[4]=e[3],t[5]=1/0,t}function O(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=-1/0,t[3]=r,t[4]=i,t[5]=1/0,t}function T(t){return 6===t.length}function q(t,e,n){if(null==t||null==e)return t===e;if(!T(t)||!T(e))return!1;if(n){for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}const C=[1/0,1/0,1/0,-1/0,-1/0,-1/0],R=[0,0,0,0,0,0];o(),n.d(e,["qv",0,C,"v_",0,R])},19419(t,e,n){n.d(e,{$9:()=>S,C:()=>o,DC:()=>m,HY:()=>y,IO:()=>l,Ie:()=>A,Rj:()=>x,Uc:()=>v,VL:()=>M,VY:()=>s,Wc:()=>g,aI:()=>O,bx:()=>f,fA:()=>a,fT:()=>d,gR:()=>w,gX:()=>_,ib:()=>p,nw:()=>c,pJ:()=>T,tK:()=>h,uJ:()=>b,vt:()=>i,w1:()=>u}),n(34727);var r=n(5443);function i(t=C){return[t[0],t[1],t[2],t[3]]}function o(t,e){return t!==e&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3]),t}function a(t,e,n,r,o=i()){return o[0]=t,o[1]=e,o[2]=n,o[3]=r,o}function s(t,e=i()){return e[0]=t.xmin,e[1]=t.ymin,e[2]=t.xmax,e[3]=t.ymax,e}function u(t,e,n=new r.A){return n.xmin=t[0],n.ymin=t[1],n.xmax=t[2],n.ymax=t[3],n.spatialReference=e,n}function h(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function c(t,e){e<t[0]&&(t[0]=e),e>t[2]&&(t[2]=e)}function l(t,e){e<t[1]&&(t[1]=e),e>t[3]&&(t[3]=e)}function f(t,{xmin:e,ymin:n,xmax:r,ymax:i}){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],n),t[2]=Math.max(t[2],r),t[3]=Math.max(t[3],i)}function d(t,e,n){if(null!=e)if("length"in e)j(e)?(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[2]),n[3]=Math.max(t[3],e[3])):(2===e.length||3===e.length)&&(n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n[2]=Math.max(t[2],e[0]),n[3]=Math.max(t[3],e[1]));else switch(e.type){case"extent":n[0]=Math.min(t[0],e.xmin),n[1]=Math.min(t[1],e.ymin),n[2]=Math.max(t[2],e.xmax),n[3]=Math.max(t[3],e.ymax);break;case"point":n[0]=Math.min(t[0],e.x),n[1]=Math.min(t[1],e.y),n[2]=Math.max(t[2],e.x),n[3]=Math.max(t[3],e.y)}else o(n,t)}function m(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[2]),t[3]=Math.max(t[3],e[3])}function M(t){return null==t||t[0]>=t[2]?0:t[2]-t[0]}function b(t){return null==t||t[1]>=t[3]?0:t[3]-t[1]}function g(t){return M(t)*b(t)}function _(t,e=[0,0]){return e[0]=(t[0]+t[2])/2,e[1]=(t[1]+t[3])/2,e}function p(t){let e=M(t),n=b(t);return Math.sqrt(e*e+n*n)}function v(t,e){return x(t,e[0],e[1])}function x(t,e,n){return e>=t[0]&&n>=t[1]&&e<=t[2]&&n<=t[3]}function y(t,e){return Math.max(e[0],t[0])<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])<=Math.min(e[3],t[3])}function S(t,e,n){return Math.max(e[0],t[0])-n<=Math.min(e[2],t[2])&&Math.max(e[1],t[1])-n<=Math.min(e[3],t[3])}function w(t,e){return e[0]>=t[0]&&e[2]<=t[2]&&e[1]>=t[1]&&e[3]<=t[3]}function A(t){return t?o(t,q):i(q)}function j(t){return null!=t&&4===t.length}function O(t,e){return j(t)&&j(e)?t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]:null==t&&null==e||t===e}function T(t,e){if(4!==e.length||t[0]===t[2]||t[1]===t[3])return!1;for(let n=0;n<e.length;n++){let r=e[n],i=e[(n+1)%e.length];if(r[0]!==t[0]&&r[0]!==t[2]||r[1]!==t[1]&&r[1]!==t[3])return!1;let o=r[1]===i[1]&&r[0]!==i[0],a=r[0]===i[0]&&r[1]!==i[1];if(!o&&!a)return!1}return!0}const q=[1/0,1/0,-1/0,-1/0],C=[0,0,0,0];n.d(e,["qv",0,q])},65720(t,e,n){n.d(e,{C:()=>g,vt:()=>M,Qy:()=>b,ui:()=>_,ST:()=>w,bU:()=>j,pw:()=>S,m7:()=>p,ZU:()=>v,GH:()=>y,Pi:()=>x,LJ:()=>A,c8:()=>q});var r=n(4341),i=n(58083),o=n(35522),a=n(51850),s=n(78955),u=n(91829),h=n(70328),c=n(71351);function l(t){return t?{ray:(0,c.vt)(t.ray),c0:t.c0,c1:t.c1}:{ray:(0,c.vt)(),c0:0,c1:Number.MAX_VALUE}}new r.I(()=>l());var f=n(27921);function d(t,e,n,r){let{t0:i,t1:o}=r,a=(0,f.mN)(t,e),s=(0,f.mN)(t,n);if(a>=0&&s>=0)return!1;if(a<0&&s>=0){let t=-a/(s-a);if(t<i)return!1;t<o&&(o=t)}else if(a>=0&&s<0){let t=a/(a-s);if(t>o)return!1;t>i&&(i=t)}return r.t0=i,r.t1=o,!0}var m=n(32114);function M(t){return t?[(0,f.vt)(t[0]),(0,f.vt)(t[1]),(0,f.vt)(t[2]),(0,f.vt)(t[3]),(0,f.vt)(t[4]),(0,f.vt)(t[5])]:[(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)(),(0,f.vt)()]}function b(){return[(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,a.vt)()]}function g(t,e){for(let n=0;n<C;n++)(0,f.C)(t[n],e[n]);return t}function _(t,e,n,r=I){let a=(0,i.lw)(m.Rc.get(),e,t);(0,i.B8)(a,a);for(let t=0;t<R;++t){let e=(0,s.Z0)(m.Km.get(),E[t],a);(0,o.hZ)(r[t],e[0]/e[3],e[1]/e[3],e[2]/e[3])}!function(t,e){(0,f.Cr)(e[4],e[0],e[3],t[0]),(0,f.Cr)(e[1],e[5],e[6],t[1]),(0,f.Cr)(e[4],e[5],e[1],t[2]),(0,f.Cr)(e[3],e[2],e[6],t[3]),(0,f.Cr)(e[0],e[1],e[2],t[4]),(0,f.Cr)(e[5],e[4],e[7],t[5])}(n,r)}function p(t,e){return v(t,e.center,e.radius)}function v(t,e,n){for(let r=0;r<C;r++){let i=t[r];if(i[0]*e[0]+i[1]*e[1]+i[2]*e[2]+i[3]>=n)return!1}return!0}function x(t,e,n){for(let r of T)if((0,f.wE)(t[r],e,n))return!0;return!1}function y(t,e,n){let r=(0,h.gX)(e,z),i=(0,h.VL)(e)/2,a=(0,h.yr)(e)/2,s=(0,h.uJ)(e)/2;return n?function(t,e,n,r,i,a){let s=(0,o.Z0)(F,e,a);for(let e=0;e<C;e++){let o=t[e];if(o[0]*s[0]+o[1]*s[1]+o[2]*s[2]+o[3]-(Math.abs(o[0]*a[0]+o[1]*a[1]+o[2]*a[2])*n+Math.abs(o[0]*a[4]+o[1]*a[5]+o[2]*a[6])*r+Math.abs(o[0]*a[8]+o[1]*a[9]+o[2]*a[10])*i)>0)return!1}return!0}(t,r,i,a,s,n):function(t,e,n,r,i){for(let o=0;o<C;o++){let a=t[o];if(a[0]*e[0]+a[1]*e[1]+a[2]*e[2]+a[3]-(Math.abs(a[0])*n+Math.abs(a[1])*r+Math.abs(a[2])*i)>0)return!1}return!0}(t,r,i,a,s)}function S(t,e){return O(t,function(t,e=l()){return(0,c.C)(t,e.ray),e.c0=0,e.c1=Number.MAX_VALUE,e}(e,P.get()))}function w(t,e,n){return O(t,function(t,e,n=l()){let r=(0,o.Bw)(t.vector);return(0,c.fA)(t.origin,e,n.ray),n.c0=0,n.c1=r,n}(e,n,P.get()))}function A(t,e,n){return function(t,e,n,r){let i={t0:0,t1:1};for(let o of e)if(!d(t[o],n,r,i))return!1;return i.t0<i.t1}(t,T,e,n)}function j(t,e){for(let n=0;n<C;n++)if((0,f.mN)(t[n],e)>0)return!1;return!0}function O(t,e){for(let n=0;n<C;n++)if(!(0,f.$Q)(t[n],e))return!1;return!0}const T=[0,1,2,3,5],q={bottom:[5,1,0,4],near:[0,1,2,3],far:[5,4,7,6],right:[1,5,6,2],left:[4,0,3,7],top:[7,3,2,6]},C=6,R=8,E=[(0,u.fA)(-1,-1,-1,1),(0,u.fA)(1,-1,-1,1),(0,u.fA)(1,1,-1,1),(0,u.fA)(-1,1,-1,1),(0,u.fA)(-1,-1,1,1),(0,u.fA)(1,-1,1,1),(0,u.fA)(1,1,1,1),(0,u.fA)(-1,1,1,1)],P=new r.I(l),I=b(),z=(0,a.vt)(),F=(0,a.vt)()},11964(t,e,n){n.d(e,{Cr:()=>c,H6:()=>d,LV:()=>h,_I:()=>f,kb:()=>l,vt:()=>u});var r=n(34727),i=n(4341),o=n(35522),a=n(51850),s=n(32114);function u(t){return t?{origin:(0,a.o8)(t.origin),vector:(0,a.o8)(t.vector)}:{origin:(0,a.vt)(),vector:(0,a.vt)()}}function h(t,e){let n=m.get();return n.origin=t,n.vector=e,n}function c(t,e,n=u()){return(0,o.C)(n.origin,t),(0,o.Re)(n.vector,e,t),n}function l(t,e){let n=(0,o.Re)(s.rq.get(),e,t.origin),i=(0,o.Om)(t.vector,n),a=(0,o.Om)(t.vector,t.vector);if(Math.abs(a)<M)return(0,o.hG)(t.origin,e);let u=(0,r.qE)(i/a,0,1),h=(0,o.Re)(s.rq.get(),(0,o.hs)(s.rq.get(),t.vector,u),n);return(0,o.Om)(h,h)}function f(t,e,n){return d(t,e,0,1,n)}function d(t,e,n,i,a){let{vector:u,origin:h}=t,c=(0,o.Re)(s.rq.get(),e,h),l=(0,o.Om)(u,c)/(0,o.m3)(u);return(0,o.hs)(a,u,(0,r.qE)(l,n,i)),(0,o.WQ)(a,a,t.origin)}(0,a.vt)(),(0,a.vt)();const m=new i.I(()=>u()),M=1e-9},27921(t,e,n){n.d(e,{$Q:()=>T,BX:()=>O,C:()=>h,Cr:()=>d,H:()=>C,LV:()=>u,O_:()=>f,Qj:()=>c,T7:()=>w,Ui:()=>S,_I:()=>R,fA:()=>l,gv:()=>A,lU:()=>m,mN:()=>E,mP:()=>x,mR:()=>y,vE:()=>z,vt:()=>s,wE:()=>P});var r=n(34727),i=n(35522),o=n(51850),a=(n(78955),n(44280),n(32114));function s(t=F){return[t[0],t[1],t[2],t[3]]}function u(t=F[0],e=F[1],n=F[2],r=F[3]){return l(t,e,n,r,a.Km.get())}function h(t,e){return l(e[0],e[1],e[2],e[3],t)}function c(t){return t}function l(t,e,n,r,i=s()){return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i}function f(t,e,n){let r=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n[3]=-(n[0]*t[0]+n[1]*t[1]+n[2]*t[2]),n}function d(t,e,n,r=s()){let i=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2],u=t[0]-e[0],h=t[1]-e[1],c=t[2]-e[2],l=o*c-a*h,f=a*u-i*c,d=i*h-o*u,m=l*l+f*f+d*d,M=Math.abs(m-1)>1e-5&&m>1e-12?1/Math.sqrt(m):1;return r[0]=l*M,r[1]=f*M,r[2]=d*M,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function m(t,e,n,r=0,o=Math.floor(1/3*n),a=Math.floor(2/3*n)){if(n<3)return!1;e(b,r);let s=o,u=!1;for(;s<n-1&&!u;)e(g,s),s++,u=!(0,i.t2)(b,g);if(!u)return!1;for(s=Math.max(s,a),u=!1;s<n&&!u;)e(_,s),s++,(0,i.Re)(p,b,g),(0,i.S8)(p,p),(0,i.Re)(v,g,_),(0,i.S8)(v,v),u=!(0,i.t2)(b,_)&&!(0,i.t2)(g,_)&&Math.abs((0,i.Om)(p,v))<M;return u?(d(b,g,_,t),!0):(0!==r||1!==o||2!==a)&&m(t,e,n,0,1,2)}n(32728);const M=.99619469809,b=(0,o.vt)(),g=(0,o.vt)(),_=(0,o.vt)(),p=(0,o.vt)(),v=(0,o.vt)();function x(t,e,n){return e!==t&&h(t,e),t[3]=-(0,i.Om)(t,n),t}function y(t,e,n,r){return(0,i.$A)(_,e,t),f(n,_,r)}function S(t,e,n){return null!=e&&I(z(t,e.origin,e.direction,V,n))}function w(t,e,n){return I(z(t,e.origin,e.vector,0,n))}function A(t,e,n){return I(z(t,e.origin,e.vector,1,n))}function j(t,e){return E(t,e)<=0}function O(t,e){return E(t,e)>=0}function T(t,e){return function(t,e,n,r,o,a,s){let u=(0,i.Om)(t,n),h=E(t,e);if(u>-1e-6&&u<1e-6)return q(h,o,a);let c=-h/u,l=q(u,o,!1);return!(s&&!l&&!q(h,o,a))&&(l?c>r.c0&&(r.c0=c):c<r.c1&&(r.c1=c),r.c0<=r.c1)}(t,e.ray.origin,e.ray.direction,e,!1,!1,!0)}function q(t,e,n){return n?e?t>=0:t<=0:e?t>0:t<0}function C(t,e,n,r=!1){let o=e.at(-1),a=E(t,o),s=r?a>0:a<=0;for(let u=0;u<e.length;u++){let h=e.at(u),c=E(t,h),l=r?c>0:c<=0;s!==l&&(0,i.Cc)(n(),o,h,a/(a-c)),l&&(0,i.C)(n(),h),o=h,a=c,s=l}}function R(t,e,n){let r=(0,i.hs)(a.rq.get(),t,-t[3]),o=function(t,e,n){let r=(0,i.hs)(a.rq.get(),t,(0,i.Om)(t,e));return(0,i.Re)(n,e,r),n}(t,(0,i.Re)(a.rq.get(),e,r),a.rq.get());return(0,i.WQ)(n,o,r),n}function E(t,e){return(0,i.Om)(t,e)+t[3]}function P(t,e,n){for(let r=0;r<n;++r)if(j(t,e[r]))return!1;return!0}function I(t){return 0===t||1===t}function z(t,e,n,o,a){let s=(0,i.Om)(t,n),u=E(t,e);if(0===s)return u>=0?2:3;let h=-u/s;return 1&o&&(h=(0,r.qE)(h,0,1)),!(4&o)&&h<0||!(8&o)&&h>1?u>=0?2:3:((0,i.WQ)(a,e,(0,i.hs)(a,n,h)),u>=0?0:1)}const F=[0,0,1,0],V=8;(0,o.vt)()},71351(t,e,n){n.d(e,{C:()=>l,Cr:()=>f,LV:()=>c,fA:()=>d,kb:()=>m,vt:()=>u});var r=n(4341),i=(n(77690),n(29242)),o=n(35522),a=n(51850),s=n(32114);function u(t){return t?h((0,a.o8)(t.origin),(0,a.o8)(t.direction)):h((0,a.vt)(),(0,a.vt)())}function h(t,e){return{origin:t,direction:e}}function c(t,e){let n=M.get();return n.origin=t,n.direction=e,n}function l(t,e=u()){return d(t.origin,t.direction,e)}function f(t,e,n=u()){return(0,o.C)(n.origin,t),(0,o.Re)(n.direction,e,t),n}function d(t,e,n=u()){return(0,o.C)(n.origin,t),(0,o.C)(n.direction,e),n}function m(t,e){let n=(0,o.$A)(s.rq.get(),(0,o.S8)(s.rq.get(),t.direction),(0,o.Re)(s.rq.get(),e,t.origin));return(0,o.Om)(n,n)}const M=new r.I(()=>u());(0,a.vt)(),(0,a.vt)(),(0,a.vt)(),(0,i.vt)()},94008(t,e,n){n.d(e,{iy:()=>d}),n(44208),n(53966);var r=n(34727),i=n(34304),o=n(58083),a=n(35522),s=n(51850),u=n(91829),h=n(34275);var c=n(71351),l=n(44280),f=n(32114);class d{constructor(t=0,e=0,n=0,r=0){this.radius=r,"number"==typeof t?this._center=(0,s.fA)(t,e,n):function(t){return e=t,(0,h.vZ)(e)&&e.length>=3||function(t){return((0,h.aI)(t)||Array.isArray(t))&&t.length>=3}(t);var e}(t)||function(t){return(e=t)instanceof Float32Array&&e.length>=4||function(t){return Array.isArray(t)&&t.length>=4}(t);var e}(t)?(this._center=(0,s.ci)(t),this.radius=4===t.length?t[3]:e):(this._center=(0,s.o8)(t.center),this.radius=t.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(t){(0,a.C)(this.center,t)}exactEquals(t){return(0,a.aI)(this._center,t.center)&&this.radius===t.radius}copyFrom(t){return t!==this&&((0,a.C)(this._center,t.center),this.radius=t.radius),this}clone(){return new d(this.center,this.radius)}toVec4(){return(0,u.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(t){return(0,a.hG)(this.center,t)<=this.radius**2}intersects(t){let e=this.radius+t.radius;return(0,a.hG)(this.center,t.center)<=e*e}intersectRay(t,e){if(null==t||!this._intersect(t,m))return!1;let{t0:n,t1:r}=m;if((n<0||r<n&&r>0)&&(n=r),n<0)return!1;if(e){let{origin:r,direction:i}=t;e[0]=r[0]+i[0]*n,e[1]=r[1]+i[1]*n,e[2]=r[2]+i[2]*n}return!0}intersectLine(t,e){let n=(0,c.Cr)(t,e);if(!this._intersect(n,m))return[];let{origin:r,direction:o}=n,{t0:u,t1:h}=m,l=t=>{let e=(0,s.vt)();return(0,a.Ln)(e,r,o,t),this.projectPoint(e,e)};return Math.abs(u-h)<(0,i.FD)()?[l(u)]:[l(u),l(h)]}_intersect(t,e){let{origin:n,direction:r}=t,i=M;i[0]=n[0]-this.center[0],i[1]=n[1]-this.center[1],i[2]=n[2]-this.center[2];let o=r[0]*r[0]+r[1]*r[1]+r[2]*r[2];if(0===o)return!1;let a=2*(r[0]*i[0]+r[1]*i[1]+r[2]*i[2]),s=a*a-4*o*(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]-this.radius**2);if(s<0)return!1;let u=Math.sqrt(s);return e.t0=(-a-u)/(2*o),e.t1=(-a+u)/(2*o),!0}projectPoint(t,e){let n=(0,a.Re)(f.rq.get(),t,this.center),r=(0,a.hs)(f.rq.get(),n,this.radius/(0,a.Bw)(n));return(0,a.WQ)(e,r,this.center)}closestPointOnSilhouette(t,e){let n=f.rq.get(),r=f.Rc.get();(0,a.$A)(n,t.origin,t.direction),(0,a.$A)(e,n,t.origin),(0,a.hs)(e,e,1/(0,a.Bw)(e)*this.radius);let i=this._angleToSilhouette(t.origin),s=(0,l.g7)(t.origin,e);return(0,o.$0)(r,s+i,n),(0,a.Z0)(e,e,r),e}frustumCoverage(t,e,n){let r=this.radius,i=r*r,o=t+.5*Math.PI,a=e*e+i-2*Math.cos(o)*e*r,s=Math.sqrt(a),u=a-i;if(u<=0)return.5;let h=Math.acos(Math.sqrt(u)/s)-Math.asin(r/(s/Math.sin(o)));return Math.min(1,(h+.5*n)/n)}_angleToSilhouette(t){let e=(0,a.Re)(f.rq.get(),t,this.center),n=(0,a.Bw)(e),i=this.radius,o=i+Math.abs(i-n);return(0,r.XM)(i/o)}union(t){let e=(0,a.Io)(this._center,t.center),n=this.radius,r=t.radius;return e+r<n?this:e+n<r?(this.copyFrom(t),this):((0,a.Cc)(this._center,this._center,t.center,(e+r-n)/(2*e)),this.radius=(e+n+r)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}signedDistanceToPlane(t){let{center:e,radius:n}=this,r=t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3];return r<0?Math.min(r+n,0):Math.max(r-n,0)}}new d;const m={t0:0,t1:0},M=(0,s.vt)();(0,s.vt)(),(0,s.vt)()},44280(t,e,n){n.d(e,{g7:()=>s,gr:()=>a});var r=n(34727),i=n(35522),o=n(51850);function a(t,e){return(0,i.Om)(t,e)/(0,i.Bw)(t)}function s(t,e){let n=(0,i.Om)(t,e)/((0,i.Bw)(t)*(0,i.Bw)(e));return-(0,r.XM)(n)}(0,o.vt)(),(0,o.vt)()},32114(t,e,n){n.d(e,{Rc:()=>d,rq:()=>l,Km:()=>f}),n(44208);var r=n(26390),i=n(29242),o=n(9093),a=n(82534),s=n(48163),u=n(51850),h=n(91829);class c{constructor(t){this._create=t,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new c(s.vt)}static createVec3f64(){return new c(u.vt)}static createVec4f64(){return new c(h.vt)}static createMat3f64(){return new c(i.vt)}static createMat4f64(){return new c(o.vt)}static createQuatf64(){return new c(a.vt)}get test(){}}c.createVec2f64();const l=c.createVec3f64(),f=c.createVec4f64(),d=(c.createMat3f64(),c.createMat4f64());c.createQuatf64()},32728(t,e,n){n.d(e,{YH:()=>a,nu:()=>s,wp:()=>o}),n(34727);var r=n(35522),i=n(51850);function o(t,e){let n=Math.sqrt(e[0]*e[0]+e[4]*e[4]+e[8]*e[8]),i=Math.sqrt(e[1]*e[1]+e[5]*e[5]+e[9]*e[9]),o=Math.sqrt(e[2]*e[2]+e[6]*e[6]+e[10]*e[10]);return(0,r.hZ)(t,n,i,o),t}function a(t,e,n){n||=t;let i=(0,r.Om)(t,e);(0,r.hZ)(n,t[0]-i*e[0],t[1]-i*e[1],t[2]-i*e[2]),(0,r.S8)(n,n)}function s(t,e,n,o=(0,i.vt)()){let a=(0,r.Bw)(t),s=(0,r.Bw)(e),c=(0,r.Om)(t,e)/(a*s);if(c<.9999999999999999){let i=Math.acos(c),l=((1-n)*a+n*s)/Math.sin(i),f=l/a*Math.sin((1-n)*i),d=l/s*Math.sin(n*i);return(0,r.hs)(u,t,f),(0,r.hs)(h,e,d),(0,r.WQ)(o,u,h)}return(0,r.Cc)(o,t,e,n)}(0,i.vt)(),(0,i.vt)(),(0,i.vt)();const u=(0,i.vt)(),h=(0,i.vt)()},70491(t,e,n){n.r(e),n.d(e,{default:()=>K});var r=n(32198),i=n(17676),o=n(24326),a=n(91429),s=n(35522),u=n(51850),h=n(11964),c=n(94008),l=n(93687),f=n(15142),d=n(65720),m=n(71351),M=n(620);class b{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 g,this._objectCount=0,e&&(void 0!==e.maximumObjectsPerNode&&(this._maximumObjectsPerNode=e.maximumObjectsPerNode),void 0!==e.maximumDepth&&(this._maximumDepth=e.maximumDepth))}destroy(){this._degenerateObjects.clear(),g.clearPool(),I[0]=null,N.prune(),W.prune()}add(t){let e=Array.from(t);this._grow(e);let n=g.acquire();for(let t of e)++this._objectCount,this._isDegenerate(t)?this._degenerateObjects.add(t):(n.init(this._root),this._add(t,n));g.release(n)}remove(t,e=null){this._objectCount-=t.length;let n=g.acquire();for(let r of t){let t=e??this.objectToBoundingSphere(r);C(t.radius)?(n.init(this._root),x(r,t,n)):this._degenerateObjects.delete(r)}g.release(n),this._shrink()}update(t,e){if(!C(e.radius)&&this._isDegenerate(t))return;let n=function(t){return I[0]=t,I}(t);this.remove(n,e),this.add(n)}forEachAlongRay(t,e,n){let r=(0,m.LV)(t,e);p(this._root,t=>{if(!function(t,e){return j(e.bounds.center,2*-e.halfSize,V),j(e.bounds.center,2*e.halfSize,D),(0,M.O_)(t.origin,t.direction,V,D)}(r,t))return!1;let e=t.node;return e.terminals.forAll(t=>{this._intersectsObject(r,t)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObject(r,t)&&n(t)}),!0})}forEachAlongRayWithVerticalOffset(t,e,n,r){let i=(0,m.LV)(t,e);p(this._root,t=>{if(!function(t,e,n){return j(e.bounds.center,2*-e.halfSize,V),j(e.bounds.center,2*e.halfSize,D),n.applyToMinMax(V,D),(0,M.O_)(t.origin,t.direction,V,D)}(i,t,r))return!1;let e=t.node;return e.terminals.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&n(t)}),null!==e.residents&&e.residents.forAll(t=>{this._intersectsObjectWithOffset(i,t,r)&&n(t)}),!0})}forEach(t){for(let e of this.values())t(e)}*values(){for(let t of this._nodeIteratorValues()){let e=t.node;yield*e.terminals,null!==e.residents&&(yield*e.residents)}yield*this.degenerateObjectValues()}forEachDegenerateObject(t){this._degenerateObjects.forEach(t)}*degenerateObjectValues(){yield*this._degenerateObjects.values()}findClosest(t,e,n,r=()=>!0,i=1/0){let o=1/0,a=1/0,u=null,h=T(t,e),c=s=>{if(--i,!r(s))return;let h=this.objectToBoundingSphere(s);if(!(0,d.m7)(n,h))return;let c=q(t,e,h.center),l=c-h.radius,f=c+h.radius;l<o&&(o=l,a=f,u=s)};return v(this._root,r=>{if(i<=0||!(0,d.ZU)(n,r.bounds.center,2*r.bounds.radius)||((0,s.hs)(F,h,2*r.halfSize),(0,s.WQ)(F,F,r.bounds.center),q(t,e,F)>a))return!1;let o=r.node;return o.terminals.forAll(t=>c(t)),null!==o.residents&&o.residents.forAll(t=>c(t)),!0},t,e),u}forEachInDepthRange(t,e,n,r,i,o,a){let u=-1/0,h=1/0,c={setRange:t=>{1===n?(u=Math.max(u,t.near),h=Math.min(h,t.far)):(u=Math.max(u,-t.far),h=Math.min(h,-t.near))}};c.setRange(r);let l=q(e,n,t),f=T(e,n),m=T(e,-n),M=t=>{if(!a(t))return;let r=this.objectToBoundingSphere(t),s=q(e,n,r.center)-l,f=s-r.radius,m=s+r.radius;f>h||m<u||!(0,d.m7)(o,r)||i(t,c)};v(this._root,t=>{if(!(0,d.ZU)(o,t.bounds.center,2*t.bounds.radius)||((0,s.hs)(F,f,2*t.halfSize),(0,s.WQ)(F,F,t.bounds.center),q(e,n,F)-l>h)||((0,s.hs)(F,m,2*t.halfSize),(0,s.WQ)(F,F,t.bounds.center),q(e,n,F)-l<u))return!1;let r=t.node;return r.terminals.forAll(t=>M(t)),null!==r.residents&&r.residents.forAll(t=>M(t)),!0},e,n)}forEachNode(t){p(this._root,e=>t(e.node,e.bounds,e.halfSize,e.depth))}forEachIntersectingFrustum(t,e,n=()=>!0){for(let r of this.intersectingFrustumValues(t,n))e(r)}*intersectingFrustumValues(t,e=()=>!0){for(let n of this._nodeIteratorValues(e=>(0,d.ZU)(t,e.bounds.center,2*e.bounds.radius))){let r=n.node;for(let n of r.terminals)e(n)&&(0,d.m7)(t,this.objectToBoundingSphere(n))&&(yield n);if(null!==r.residents)for(let n of r.residents)e(n)&&(0,d.m7)(t,this.objectToBoundingSphere(n))&&(yield n)}}*_nodeIteratorValues(t=()=>!0){yield*_(this._root,t)}forEachNeighbor(t,e){let n=e.radius,r=e.center,i=n=>{let r=this.objectToBoundingSphere(n);return!e.intersects(r)||t(n)},o=!0,a=t=>{o&&=i(t)};p(this._root,t=>{let e=2*t.bounds.radius,i=n+e;if((0,s.hG)(t.bounds.center,r)-i*i>0)return!1;let u=t.node;return u.terminals.forAll(a),o&&null!==u.residents&&u.residents.forAll(a),o}),o&&this.forEachDegenerateObject(a)}_intersectsObject(t,e){let n=this.objectToBoundingSphere(e);return!(n.radius>0)||n.intersectRay(t)}_intersectsObjectWithOffset(t,e,n){let r=this.objectToBoundingSphere(e);return!(r.radius>0)||n.applyToBoundingSphere(r).intersectRay(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){let e=t.node.residents;t.node.residents=null;for(let n=0;n<e.length;n++){let r=g.acquire().init(t);this._add(e.at(n),r),g.release(r)}}_grow(t){if(O(t,t=>this.objectToBoundingSphere(t),B),C(B.radius)&&!this._fitsInsideTree(B))if(S(this._root.node))this._root.bounds.copyFrom(B),this._root.halfSize=1.25*this._root.bounds.radius,this._root.updateBoundsRadiusFromHalfSize();else{let t=this._rootBoundsForRootAsSubNode(B);this._placingRootViolatesMaxDepth(t)?this._rebuildTree(B,t):this._growRootAsSubNode(t),g.release(t)}}_rebuildTree(t,e){L.center=e.bounds.center,L.radius=e.halfSize,O([t,L],t=>t,k);let n=g.acquire().init(this._root);this._root.initFrom(null,k,k.radius),this._root.increaseHalfSize(1.25),p(n,t=>(this.add(t.node.terminals.data),null!==t.node.residents&&this.add(t.node.residents.data),!0)),g.release(n)}_placingRootViolatesMaxDepth(t){let e=Math.log(t.halfSize/this._root.halfSize)*Math.LOG2E,n=0;return p(this._root,t=>(n=Math.max(n,t.depth),n+e<=this._maximumDepth)),n+e>this._maximumDepth}_rootBoundsForRootAsSubNode(t){let e=t.radius,n=t.center,r=-1/0,i=this._root.bounds.center,o=this._root.halfSize;for(let t=0;t<3;t++){let a=i[t]-o-(n[t]-e),s=n[t]+e-(i[t]+o),u=Math.max(0,Math.ceil(a/(2*o))),h=Math.max(0,Math.ceil(s/(2*o)))+1,c=2**Math.ceil(Math.log(u+h)*Math.LOG2E);r=Math.max(r,c),Q[t].min=u,Q[t].max=h}for(let t=0;t<3;t++){let e=Q[t].min,n=Q[t].max,a=(r-(e+n))/2;e+=Math.ceil(a),n+=Math.floor(a);let s=i[t]-o-e*o*2;z.center[t]=s+(n+e)*o}let a=r*o;return z.radius=a*P,g.acquire().initFrom(null,z,a,0)}_growRootAsSubNode(t){let e=this._root.node;B.center=this._root.bounds.center,B.radius=this._root.halfSize,this._root.init(t),t.advanceTo(B,null,!0),t.node.children=e.children,t.node.residents=e.residents,t.node.terminals=e.terminals}_shrink(){for(;;){let 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,e=this._root.node.children,n=0,r=0;for(;r<e.length&&null==t;)n=r++,t=e[n];for(;r<e.length;)if(e[r++])return-1;return n}_isDegenerate(t){return!C(this.objectToBoundingSphere(t).radius)}_fitsInsideTree(t){let e=this._root.bounds,n=this._root.halfSize;return t.radius<=n&&t.center[0]>=e.center[0]-n&&t.center[0]<=e.center[0]+n&&t.center[1]>=e.center[1]-n&&t.center[1]<=e.center[1]+n&&t.center[2]>=e.center[2]-n&&t.center[2]<=e.center[2]+n}_nodeToJSON(t){return{children:t.children.map(t=>t?this._nodeToJSON(t):null),residents:t.residents?.map(t=>this.objectToBoundingSphere(t)),terminals:t.terminals?.map(t=>this.objectToBoundingSphere(t))}}}class g{constructor(){this.bounds=new c.iy,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,r=this.depth){return this.node=t??g.createEmptyNode(),e&&this.bounds.copyFrom(e),this.halfSize=n,this.depth=r,this}increaseHalfSize(t){this.halfSize*=t,this.updateBoundsRadiusFromHalfSize()}updateBoundsRadiusFromHalfSize(){this.bounds.radius=this.halfSize*P}advance(t){let e=this.node.children[t];e||(e=g.createEmptyNode(),this.node.children[t]=e),this.node=e,this.halfSize/=2,this.depth++;let n=R[t];return this.bounds.center[0]+=n[0]*this.halfSize,this.bounds.center[1]+=n[1]*this.halfSize,this.bounds.center[2]+=n[2]*this.halfSize,this.updateBoundsRadiusFromHalfSize(),this}advanceTo(t,e,n=!1){for(;;){if(this.isTerminalFor(t))return e?.(this,-1),!0;if(this.isLeaf()){if(!n)return e?.(this,-1),!1;this.node.residents=null}let r=this._childIndex(t);e?.(this,r),this.advance(r)}}isLeaf(){return null!=this.node.residents}isTerminalFor(t){return t.radius>this.halfSize/2}_childIndex(t){let e=this.bounds.center;return+(e[0]<t.center[0])+(e[1]<t.center[1]?2:0)+(e[2]<t.center[2]?4:0)}static createEmptyNode(){return{children:[null,null,null,null,null,null,null,null],terminals:new f.A({shrink:!0}),residents:new f.A({shrink:!0})}}static{this._pool=new l.A(()=>new g)}static acquire(){return g._pool.acquire()}static release(t){g._pool.release(t)}static clearPool(){g._pool.prune()}}function*_(t,e=()=>!0){let n=[g.acquire().init(t)];for(;0!==n.length;){let t=n.pop();if(e(t)){if(yield t,!t.isLeaf())for(let e=0;e<t.node.children.length;e++)t.node.children[e]&&n.push(g.acquire().init(t).advance(e));g.release(t)}}}function p(t,e){let n=_(t,e);for(let t of n);}function v(t,e,n,r=1){let i=g.acquire().init(t),o=[i];for(function(t,e,n){if(!W.length)for(let t=0;t<8;++t)W.push({index:0,distance:0});for(let n=0;n<8;++n){let r=R[n];W.data[n].index=n,W.data[n].distance=q(t,e,r)}W.sort((t,e)=>t.distance-e.distance);for(let t=0;t<8;++t)n[t]=W.data[t].index}(n,r,Z);0!==o.length;){if(i=o.pop(),e(i)&&!i.isLeaf())for(let t=7;t>=0;--t){let e=Z[t];i.node.children[e]&&o.push(g.acquire().init(i).advance(e))}g.release(i)}}function x(t,e,n){N.clear();let r=n.advanceTo(e,(t,e)=>{N.push(t.node),N.push(e)})?n.node.terminals:n.node.residents;if(r.removeUnordered(t),0===r.length)for(let t=N.length-2;t>=0&&y(N.data[t],N.data[t+1]);t-=2);}function y(t,e){return e>=0&&(t.children[e]=null),!!S(t)&&(null===t.residents&&(t.residents=new f.A({shrink:!0})),!0)}function S(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 w(t,e){t[0]=Math.min(t[0],e.center[0]-e.radius),t[1]=Math.min(t[1],e.center[1]-e.radius),t[2]=Math.min(t[2],e.center[2]-e.radius)}function A(t,e){t[0]=Math.max(t[0],e.center[0]+e.radius),t[1]=Math.max(t[1],e.center[1]+e.radius),t[2]=Math.max(t[2],e.center[2]+e.radius)}function j(t,e,n){n[0]=t[0]+e,n[1]=t[1]+e,n[2]=t[2]+e}function O(t,e,n){V[0]=1/0,V[1]=1/0,V[2]=1/0,D[0]=-1/0,D[1]=-1/0,D[2]=-1/0;for(let n of t){let t=e(n);C(t.radius)&&(w(V,t),A(D,t))}(0,s.Cc)(n.center,V,D,.5),n.radius=Math.max(D[0]-V[0],D[1]-V[1],D[2]-V[2])/2}function T(t,e){let n,r=1/0;for(let i=0;i<8;++i){let o=q(t,e,E[i]);o<r&&(r=o,n=E[i])}return n}function q(t,e,n){return e*(t[0]*n[0]+t[1]*n[1]+t[2]*n[2])}function C(t){return!isNaN(t)&&t!==-1/0&&t!==1/0&&t>0}const R=[(0,u.fA)(-1,-1,-1),(0,u.fA)(1,-1,-1),(0,u.fA)(-1,1,-1),(0,u.fA)(1,1,-1),(0,u.fA)(-1,-1,1),(0,u.fA)(1,-1,1),(0,u.fA)(-1,1,1),(0,u.fA)(1,1,1)],E=[(0,u.fA)(-1,-1,-1),(0,u.fA)(-1,-1,1),(0,u.fA)(-1,1,-1),(0,u.fA)(-1,1,1),(0,u.fA)(1,-1,-1),(0,u.fA)(1,-1,1),(0,u.fA)(1,1,-1),(0,u.fA)(1,1,1)],P=Math.sqrt(3),I=[null],z=new c.iy,F=(0,u.vt)(),V=(0,u.vt)(),D=(0,u.vt)(),N=new f.A,B=new c.iy,L=new c.iy,k=new c.iy,Q=[{min:0,max:0},{min:0,max:0},{min:0,max:0}],W=new f.A,Z=[0,0,0,0,0,0,0,0];var H=n(44801);function $(t,e,n){let r=new c.iy;return(0,s.hs)(r.center,t,.5),(0,s.Ln)(r.center,r.center,e,.5),r.radius=(0,s.Io)(r.center,t),(0,s.WQ)(r.center,r.center,n),r}class U{constructor(t,e,n){this.objectId=t,this.target=e,this.distance=n}}class X extends U{constructor(t,e,n){super(t,e,n),this.type="vertex"}}class J extends U{constructor(t,e,n,r,i){super(t,e,n),this.start=r,this.end=i,this.type="edge"}}let Y=class{constructor(){this._idToComponent=new Map,this._components=new b(t=>t.bounds),this._edges=new b(t=>t.bounds),this._tmpLineSegment=(0,h.vt)(),this._tmpP1=(0,u.vt)(),this._tmpP2=(0,u.vt)(),this._tmpP3=(0,u.vt)(),this.remoteClient=null}async fetchCandidates(t,e){await Promise.resolve(),(0,i.Te)(e);let n=t;n.mbs=new c.iy(t.mbsJSON),await this._ensureEdgeLocations(n,e);let r=[];return this._edges.forEachNeighbor(t=>(this._addCandidates(n,t,r),r.length<1e3),n.mbs),{result:{candidates:r}}}async _ensureEdgeLocations(t,e){let n=[];if(this._components.forEachNeighbor(t=>{if(null==t.info){let{id:e,uid:r}=t;n.push({id:e,uid:r})}return!0},t.mbs),!n.length)return;let r={components:n},i=await this.remoteClient.invoke("fetchAllEdgeLocations",r,e??{});for(let t of i.components)this._setFetchEdgeLocations(t)}async add(t){let e=new tt(t.id,new c.iy(t.bounds));return this._idToComponent.set(e.id,e),this._components.add([e]),{result:{}}}async remove(t){let e=this._idToComponent.get(t.id);if(e){let 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){let e=this._idToComponent.get(t.id);if(null==e||t.uid!==e.uid)return;let n=H.HY.createView(t.locations),r=Array(n.count),i=(0,u.vt)(),o=(0,u.vt)();for(let a=0;a<n.count;a++){n.position0.getVec(a,i),n.position1.getVec(a,o);let s=$(i,o,t.origin),u=new et(e,a,s);r[a]=u}this._edges.add(r);let{objectIds:a,origin:s}=t;e.info={locations:n,objectIds:a,origin:s}}_addCandidates(t,e,n){let{info:r}=e.component,{origin:i,objectIds:o}=r,a=r.locations,u=a.position0.getVec(e.index,this._tmpP1),h=a.position1.getVec(e.index,this._tmpP2);(0,s.WQ)(u,u,i),(0,s.WQ)(h,h,i);let c=o[a.componentIndex.get(e.index)];this._addEdgeCandidate(t,c,u,h,n),G(t,c,u,n),G(t,c,h,n)}_addEdgeCandidate(t,e,n,r,i){if(!t.returnEdge)return;let o=t.mbs.center,a=(0,h.Cr)(n,r,this._tmpLineSegment),c=(0,h._I)(a,o,this._tmpP3);t.mbs.contains(c)&&i.push(new J(e,(0,u.o8)(c),(0,s.Io)(o,c),(0,u.o8)(n),(0,u.o8)(r)))}};Y=(0,r.Cg)([(0,a.$K)("esri.views.interactive.snapping.featureSources.sceneLayerSource.SceneLayerSnappingSourceWorker")],Y);const K=Y;function G(t,e,n,r){t.returnVertex&&t.mbs.contains(n)&&r.push(new X(e,(0,u.o8)(n),(0,s.Io)(t.mbs.center,n)))}class tt{constructor(t,e){this.id=t,this.bounds=e,this.info=null,this.uid=(0,o.c)()}}class et{constructor(t,e,n){this.component=t,this.index=e,this.bounds=n}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2889],{99959(e,t,r){r.d(t,{A:()=>o});var i=r(32198),n=r(91429);let o=class{};o=(0,i.Cg)([(0,n.$K)("esri.graphic.GraphicOrigin")],o)},89808(e,t,r){const i=Symbol("getSliceableSymbol");r.d(t,["Q",0,i])},15426(e,t,r){r.d(t,{Xl:()=>j,ct:()=>Z,pc:()=>Q,C$:()=>X,PD:()=>ee,VZ:()=>V,mm:()=>R,VA:()=>U,WP:()=>O,iX:()=>I,Nv:()=>H,xd:()=>ie,Vq:()=>$,GA:()=>re,rQ:()=>_,jp:()=>E,tG:()=>te,lV:()=>q,B5:()=>B,Ye:()=>T,sg:()=>L,hM:()=>D,S2:()=>N,jD:()=>k,Zm:()=>G,$4:()=>z,Pt:()=>ne,uU:()=>K,bt:()=>x,rn:()=>P,ZJ:()=>oe});var i=r(70333),n=(r(5757),r(60999)),o=r(49186),s=r(66552),a=r(53966),l=r(39516),u=r(13069),p=r(90360),d=r(60694),c=r(39357),y=r(53177),h=r(97552);async function m(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=f(e));let i=function(e){return f(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),n=e.capabilities.query.supportsPagination;t.start=0,t.num=i;let o=null;for(;;){let s=await e.source.queryFeaturesJSON(t,r);if(null==o?o=s:o.features=o.features.concat(s.features),o.exceededTransferLimit=s.exceededTransferLimit,!n||!s.exceededTransferLimit)break;t.start+=i}return o}function f(e){return e.capabilities.query.supportsMaxRecordCountFactor?h.A.MAX_MAX_RECORD_COUNT_FACTOR:1}var w=r(30524),g=(r(32730),r(77548)),b=r(96576),v=r(93618),A=(r(98205),r(54546)),C=r(41366),M=r(26591),F=r(33910);const I=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function j(e,t,r,i,n){let s=await W(e);if(await S(e,t,i),!s.addAttachment)throw new o.A(i,"Layer source does not support addAttachment capability");return s.addAttachment(t,r,n)}function S(e,t,r){let{attributes:i}=t,{objectIdField:n}=e;return e.capabilities?.data?.supportsAttachment?t?i?n&&null!=i[n]?Promise.resolve():Promise.reject(new o.A(r,`feature is missing the identifying attribute ${n}`)):Promise.reject(new o.A(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new o.A(r,"A feature is required to add/delete/update attachments")):Promise.reject(new o.A(r,"this layer doesn't support attachments"))}async function x(e,t,r,i,n,s){let a=await W(e);if(await S(e,t,n),!a.updateAttachment)throw new o.A(n,"Layer source does not support updateAttachment capability");return a.updateAttachment(t,r,i,s)}async function Z(e,t,i){let{applyEdits:n}=await r.e(8628).then(()=>r(78628)),o=await e.load(),s=i,{url:a,type:l,globalIdField:u}=o;return"feature"===l&&(0,d.Wo)(a)&&o.infoFor3D&&null!=t.deleteFeatures&&null!=u&&(s={...s,globalIdToObjectId:await re(o,t.deleteFeatures,u)}),n(o,o.source,t,s)}async function P(e,t,i){let{uploadAssets:n}=await r.e(8628).then(()=>r(78628)),o=await e.load();return n(o,o.source,t,i)}async function R(e,t,r,i,n){let s=await W(e);if(await S(e,t,i),!s.deleteAttachments)throw new o.A(i,"Layer source does not support deleteAttachments capability");return s.deleteAttachments(t,r,n)}async function O(e,t,r){let i=(await e.load({signal:t?.signal})).source;if(!i.fetchRecomputedExtents)throw new o.A(r,"Layer source does not support fetchUpdates capability");return i.fetchRecomputedExtents(t)}async function q(e,t,r,i){let n=A.A.from(t),s=await e.load(),a=s.source,l=s.capabilities;if(!l?.data?.supportsAttachment)throw new o.A(i,"this layer doesn't support attachments");let{attachmentTypes:u,objectIds:p,globalIds:d,num:c,size:y,start:h,where:m}=n;if(!l?.operations?.supportsQueryAttachments&&(u?.length>0||d?.length>0||y?.length>0||c||h||m))throw new o.A(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",n);if(!(p?.length||d?.length||m))throw new o.A(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",n);if(!a.queryAttachments)throw new o.A(i,"Layer source does not support queryAttachments capability",n);return!l?.attachment?.supportsOrderByFields&&n.orderByFields?.length&&(n=n.clone(),n.orderByFields=null),a.queryAttachments(n)}async function L(e,t,r,i){let n=await W(e);if(!n.queryObjectIds)throw new o.A(i,"Layer source does not support queryObjectIds capability");return n.queryObjectIds(h.A.from(t)??e.createQuery(),r)}async function T(e,t,r,i){let n=await W(e);if(!n.queryFeatureCount)throw new o.A(i,"Layer source does not support queryFeatureCount capability");return n.queryFeatureCount(h.A.from(t)??e.createQuery(),r)}async function B(e,t,r,i){let n=await W(e);if(!n.queryExtent)throw new o.A(i,"Layer source does not support queryExtent capability");return n.queryExtent(h.A.from(t)??e.createQuery(),r)}async function D(e,t,r,i){let n=await W(e);if(!n.queryRelatedFeatures)throw new o.A(i,"Layer source does not support queryRelatedFeatures capability");return n.queryRelatedFeatures(M.default.from(t),r)}async function N(e,t,r,i){let n=await W(e);if(!n.queryRelatedFeaturesCount)throw new o.A(i,"Layer source does not support queryRelatedFeaturesCount capability");return n.queryRelatedFeaturesCount(M.default.from(t),r)}async function E(e){let t=e.source;if(t?.refresh)try{let{dataChanged:r,updates:i}=await t.refresh();if(null!=i&&(e.sourceJSON={...e.sourceJSON,...i},e.read(i,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,l.GP)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function V(e){let t=new h.A;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,t.outFields=["*"],t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null;let r=e.capabilities?.query;r&&(t.compactGeometryEnabled=r.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=r.supportsDefaultSpatialReference);let i=e.capabilities?.data;i?.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),i?.supportsM&&null!=e.returnM&&(t.returnM=e.returnM);let{timeOffset:n,timeExtent:o}=e;return t.timeExtent=null!=n&&null!=o?o.offset(-n.value,n.unit):o||null,t}function k(e){let{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(let e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function G(e){let{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(let e of r)if("esriFieldTypeOID"===e.type)return e.name}function z(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}function $(e,t,r,i){let n=r?.feature,o=!!e.subtypes?.length;if(o&&!r?.excludeImpliedDomains){let r=Q(e,t);if(r)return r}let s=o&&H(e,n);if(s){let e=s?.domains?.[t];return"inherited"===e?.type?i:e}let a=ie(e.types,e.typeIdField,n);if(a){let e=a.domains&&a.domains[t];if(e&&"inherited"!==e?.type)return e}if(i)return i;if(!r?.excludeImpliedDomains){let r=function(e,t){let{fieldsIndex:r}=e,{name:i,type:n}=r.get(t)??{};if(!i)return null;if(("typeIdField"in e?r.get(e.typeIdField)?.name:null)===i&&"types"in e&&e.types?.length&&K(e.types)){let t=e.types?.map(e=>new c.A({code:J(e.id,n),name:e.name}));return new y.A({codedValues:t})}return null}(e,t);if(r)return r}return null}function H(e,t){let{subtypes:r,subtypeField:i}=e;if(!t?.attributes||!r?.length||!i)return null;let n=t.attributes[i];return null==n?null:r.find(e=>e.code===n)}function Q(e,t){let{fieldsIndex:r,subtypeField:i}=e,{name:n,type:o}=r.get(t)??{};if(!n)return null;if((i&&r.get(i)?.name)===n&&e.subtypes?.length){let t=e.subtypes.map(e=>new c.A({code:J(e.code,o),name:e.name}));if(t?.length)return new y.A({codedValues:t})}return null}function K(e){let t=new Set,r=new Set;for(let i of e){if(t.has(i.id)||r.has(i.name))return!1;t.add(i.id),r.add(i.name)}return!0}function J(e,t){return t?(0,w.yM)({type:t})&&"number"==typeof e?`${e}`:(0,w.R3)({type:t})&&"string"==typeof e?Number.parseInt(e,10):e:e}async function W(e){return(await e.load()).source}async function U(e,t,r){let n=e.parsedUrl?.path;n&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id||i.id.findCredential(e))return;let r;try{let n=await(0,g.wI)(e,t);n&&(r=await i.id.checkSignInStatus(`${n}/sharing`))}catch{}if(r)try{let r=null==t?null:t.signal;await i.id.getCredential(e,{signal:r})}catch{}}(n,r)}function _(e){return!!e?.toLowerCase().includes("current_user")}function X(e){return!ne(e)&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const Y=(0,p.C)({types:F.xK});function ee(e,t){if(e.defaultSymbol)return e.types?.length?new v.A({defaultSymbol:Y(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map(e=>({id:e.id,symbol:Y(e.symbol,e,t)}))}):new b.A({symbol:Y(e.defaultSymbol,e,t)})}function te(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;let r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}async function re(e,t,r){if(null==t)return null;let i=[],{objectIdField:o}=e;if(t.forEach(e=>{let t=null;if("attributes"in e){let{attributes:i}=e;t={globalId:i[r],objectId:null!=i[o]&&-1!==i[o]?i[o]:null}}else t={globalId:e.globalId,objectId:null!=e.objectId&&-1!==e.objectId?e.objectId:null};null!=t.globalId&&(null==t.objectId||-1===t.objectId)&&i.push(t.globalId)}),0===i.length)return null;let s=e.createQuery();s.where=i.map(e=>`${r}='${e}'`).join(" OR "),s.returnGeometry=!1,s.outFields=[o,r],s.cacheHint=!1;let a=await(0,n.DZ)(m(e,s));if(!a.ok)return null;let l=new Map,p=a.value.features;for(let e of p){let t=e.attributes[r],i=e.attributes[o];null!=t&&null!=i&&-1!==i&&l.set((0,u.AG)(t),i)}return l}function ie(e,t,r){if(!t||!r||!e)return null;let i=r.getAttribute(t);if(null==i)return null;let n=e.filter(e=>{let{id:t}=e;return null!=t&&t.toString()===i.toString()});return n.length>1&&a.A.getLogger("esri.layers.support.featureLayerUtils").warn("getFeatureType",`Cannot unambiguously determine feature type because multiple types have the id ${i}.`),n[0]??null}function ne(e){let t=e.sourceJSON;return t?.isMultiServicesView||t?.isReadOnly||function(e){return!!e.sourceJSON?.capabilities?.toLowerCase().split(",").map(e=>e.trim()).includes("map")}(e)}function oe(e,t,r){let i=t?.queryAttributeBins;if(!t?.operations?.supportsQueryBins||!i)throw new o.A(r,"Layer source does not support binning");switch(e.binParameters?.type){case"auto-interval":if(!i.supportsAutoInterval)throw new o.A(r,"Layer source does not support auto-interval binning");if(e.binParameters.normalizationType&&(!i.supportsNormalization||!se(e.binParameters.normalizationType,i.supportedNormalizationTypes)))throw new o.A(r,"Layer source does not support normalization binning");break;case"date":if(!i.supportsDate)throw new o.A(r,"Layer source does not support date binning");if(e.binParameters.snapToData&&!i.supportsSnapToData)throw new o.A(r,"Layer source does not support snapToData binning");if(e.binParameters.returnFullIntervalBin&&!i.supportsReturnFullIntervalBin)throw new o.A(r,"Layer source does not support returnFullIntervalBin binning");break;case"fixed-boundaries":if(!i.supportsFixedBoundaries)throw new o.A(r,"Layer source does not support fixed-boundaries binning");break;case"fixed-interval":if(!i.supportsFixedInterval)throw new o.A(r,"Layer source does not support fixed-interval binning");if(e.binParameters.normalizationType&&(!i.supportsNormalization||!se(e.binParameters.normalizationType,i.supportedNormalizationTypes)))throw new o.A(r,"Layer source does not support normalization binning")}if(e.binParameters?.stackBy&&!i.supportsStackBy)throw new o.A(r,"Layer source does not support stackBy binning");if(e.binParameters?.splitBy&&!i.supportsSplitBy)throw new o.A(r,"Layer source does not support splitBy binning");if(e.binParameters?.firstDayOfWeek&&!i.supportsFirstDayOfWeek)throw new o.A(r,"Layer source does not support firstDayOfWeek binning");let n=i?.supportedStatistics;if(e.outStatistics&&n){let t=new Map([["count","count"],["sum","sum"],["min","min"],["max","max"],["avg","avg"],["stddev","stddev"],["var","var"],["percentile-continuous","percentileContinuous"],["percentile-discrete","percentileDiscrete"],["centroid-aggregate","centroid"],["convex-hull-aggregate","convexHull"],["envelope-aggregate","envelope"]]);for(let{statisticType:i}of e.outStatistics){let e=t.get(i);if(e&&!n[e])throw new o.A(r,`Layer source does not support ${i} statistic type`)}}}function se(e,t){return null!=e&&!!t?.[C.Q.toJSON(e)]}},96576(e,t,r){r.d(t,{A:()=>d});var i,n=r(32198),o=r(4718),s=r(91429),a=r(92438),l=r(63988),u=r(49849),p=r(93223);let d=i=class extends((0,l.h)(a.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new i({description:this.description,label:this.label,symbol:(0,o.o8)(this.symbol),visualVariables:(0,o.o8)(this.visualVariables),authoringInfo:(0,o.o8)(this.authoringInfo)})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,n.Cg)([(0,s.MZ)(u.Wp)],d.prototype,"symbol",void 0),(0,n.Cg)([(0,p.e)({simple:"simple"})],d.prototype,"type",void 0),d=i=(0,n.Cg)([(0,s.$K)("esri.renderers.SimpleRenderer")],d)},54546(e,t,r){r.d(t,{A:()=>p});var i,n=r(32198),o=r(25482),s=r(4718),a=r(91429),l=r(78888),u=r(43937);let p=class extends o.o{static{i=this}constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.orderByFields=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}clone(){return new i((0,s.o8)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,historicMoment:this.historicMoment,name:this.name,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"attachmentTypes",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],p.prototype,"attachmentsWhere",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"cacheHint",void 0),(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"keywords",void 0),(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"globalIds",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],p.prototype,"num",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"objectIds",void 0),(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"orderByFields",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],p.prototype,"returnMetadata",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"size",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],p.prototype,"start",void 0),(0,n.Cg)([(0,u.K)("start"),(0,u.K)("num")],p.prototype,"writeStart",null),(0,n.Cg)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],p.prototype,"where",void 0),(0,n.Cg)([(0,a.MZ)()],p.prototype,"historicMoment",void 0),(0,n.Cg)([(0,u.K)("historicMoment")],p.prototype,"writeHistoricMoment",null),p=i=(0,n.Cg)([(0,a.$K)("esri.rest.support.AttachmentQuery")],p),p.from=(0,l.dp)(p)},26591(e,t,r){r.r(t),r.d(t,{default:()=>c});var i,n=r(32198),o=r(25482),s=r(4718),a=r(91429),l=r(78888),u=r(16930),p=r(65615),d=r(43937);let c=class extends o.o{static{i=this}constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new i((0,s.o8)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,returnM:this.returnM}))}};(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"cacheHint",void 0),(0,n.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],c.prototype,"dynamicDataSource",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"gdbVersion",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"geometryPrecision",void 0),(0,n.Cg)([(0,a.MZ)({type:Date})],c.prototype,"historicMoment",void 0),(0,n.Cg)([(0,d.K)("historicMoment")],c.prototype,"_writeHistoricMoment",null),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxAllowableOffset",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"objectIds",void 0),(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"outFields",void 0),(0,n.Cg)([(0,a.MZ)({type:u.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],c.prototype,"outSpatialReference",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"relationshipId",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0),(0,n.Cg)([(0,d.K)("start"),(0,d.K)("num")],c.prototype,"writeStart",null),(0,n.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"returnGeometry",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],c.prototype,"returnM",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],c.prototype,"returnZ",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"returnTrueCurves",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0),c=i=(0,n.Cg)([(0,a.$K)("esri.rest.support.RelationshipQuery")],c),c.from=(0,l.dp)(c)},30291(e,t,r){r.d(t,{tn:()=>u});var i=r(37838),n=r(30524),o=r(41227),s=r(89893),a=r(66159),l=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},y){if(!r)return null;let m=function(e,t){let r=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:r}){let i=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===i&&(e=e.slice()),!0!==r&&e.sort(d),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||h,sortDisabled:t?.sortDisabled}).map(t=>new o.A({fieldName:t.name,isEditable:(0,n.R$)(t,e),label:t.alias,format:c(t),visible:p(t,{...e,visibleFieldNames:r})}))}({editFieldsInfo:t,fields:r,objectIdField:l},y);if(!m.length)return null;let f=function(e){let t=(0,n.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),w=[new a.A,new s.A];return new i.A({title:f,content:w,fieldInfos:m})}const p=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Bz)(e,t);function d(e,t){return"oid"===e.type?-1:"oid"===t.type?1:y(e)?-1:y(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function c(e){switch(e.type){case"small-integer":case"integer":return new l.A({digitSeparator:!0,places:0});case"single":case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,n.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function y(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===e.alias?.toLowerCase()}const h=["geometry","blob","raster","guid","xml"]}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2889],{99959(e,t,r){r.d(t,{A:()=>o});var i=r(32198),n=r(91429);let o=class{};o=(0,i.Cg)([(0,n.$K)("esri.graphic.GraphicOrigin")],o)},89808(e,t,r){const i=Symbol("getSliceableSymbol");r.d(t,["Q",0,i])},15426(e,t,r){r.d(t,{Xl:()=>j,ct:()=>Z,pc:()=>Q,C$:()=>X,PD:()=>ee,VZ:()=>V,mm:()=>R,VA:()=>U,WP:()=>O,iX:()=>I,Nv:()=>H,xd:()=>ie,Vq:()=>$,GA:()=>re,rQ:()=>_,jp:()=>E,tG:()=>te,lV:()=>q,B5:()=>B,Ye:()=>T,sg:()=>L,hM:()=>D,S2:()=>N,jD:()=>k,Zm:()=>G,$4:()=>z,Pt:()=>ne,uU:()=>K,bt:()=>x,rn:()=>P,ZJ:()=>oe});var i=r(70333),n=(r(5757),r(60999)),o=r(49186),s=r(66552),a=r(53966),l=r(39516),u=r(13069),p=r(90360),d=r(60694),c=r(39357),y=r(53177),h=r(97552);async function m(e,t,r){t=t.clone(),e.capabilities.query.supportsMaxRecordCountFactor&&(t.maxRecordCountFactor=f(e));let i=function(e){return f(e)*function(e){return e.capabilities.query.maxRecordCount||2e3}(e)}(e),n=e.capabilities.query.supportsPagination;t.start=0,t.num=i;let o=null;for(;;){let s=await e.source.queryFeaturesJSON(t,r);if(null==o?o=s:o.features=o.features.concat(s.features),o.exceededTransferLimit=s.exceededTransferLimit,!n||!s.exceededTransferLimit)break;t.start+=i}return o}function f(e){return e.capabilities.query.supportsMaxRecordCountFactor?h.A.MAX_MAX_RECORD_COUNT_FACTOR:1}var w=r(30524),g=(r(32730),r(77548)),b=r(96576),v=r(93618),A=(r(98205),r(54546)),C=r(41366),M=r(26591),F=r(33910);const I=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryMultiPatch:"multipatch"});async function j(e,t,r,i,n){let s=await W(e);if(await S(e,t,i),!s.addAttachment)throw new o.A(i,"Layer source does not support addAttachment capability");return s.addAttachment(t,r,n)}function S(e,t,r){let{attributes:i}=t,{objectIdField:n}=e;return e.capabilities?.data?.supportsAttachment?t?i?n&&null!=i[n]?Promise.resolve():Promise.reject(new o.A(r,`feature is missing the identifying attribute ${n}`)):Promise.reject(new o.A(r,"'attributes' are required on a feature to query attachments")):Promise.reject(new o.A(r,"A feature is required to add/delete/update attachments")):Promise.reject(new o.A(r,"this layer doesn't support attachments"))}async function x(e,t,r,i,n,s){let a=await W(e);if(await S(e,t,n),!a.updateAttachment)throw new o.A(n,"Layer source does not support updateAttachment capability");return a.updateAttachment(t,r,i,s)}async function Z(e,t,i){let{applyEdits:n}=await r.e(8628).then(()=>r(78628)),o=await e.load(),s=i,{url:a,type:l,globalIdField:u}=o;return"feature"===l&&(0,d.Wo)(a)&&o.infoFor3D&&null!=t.deleteFeatures&&null!=u&&(s={...s,globalIdToObjectId:await re(o,t.deleteFeatures,u)}),n(o,o.source,t,s)}async function P(e,t,i){let{uploadAssets:n}=await r.e(8628).then(()=>r(78628)),o=await e.load();return n(o,o.source,t,i)}async function R(e,t,r,i,n){let s=await W(e);if(await S(e,t,i),!s.deleteAttachments)throw new o.A(i,"Layer source does not support deleteAttachments capability");return s.deleteAttachments(t,r,n)}async function O(e,t,r){let i=(await e.load({signal:t?.signal})).source;if(!i.fetchRecomputedExtents)throw new o.A(r,"Layer source does not support fetchUpdates capability");return i.fetchRecomputedExtents(t)}async function q(e,t,r,i){let n=A.A.from(t),s=await e.load(),a=s.source,l=s.capabilities;if(!l?.data?.supportsAttachment)throw new o.A(i,"this layer doesn't support attachments");let{attachmentTypes:u,objectIds:p,globalIds:d,num:c,size:y,start:h,where:m}=n;if(!l?.operations?.supportsQueryAttachments&&(u?.length>0||d?.length>0||y?.length>0||c||h||m))throw new o.A(i,"when 'capabilities.operations.supportsQueryAttachments' is false, only objectIds is supported",n);if(!(p?.length||d?.length||m))throw new o.A(i,"'objectIds', 'globalIds', or 'where' are required to perform attachment query",n);if(!a.queryAttachments)throw new o.A(i,"Layer source does not support queryAttachments capability",n);return!l?.attachment?.supportsOrderByFields&&n.orderByFields?.length&&(n=n.clone(),n.orderByFields=null),a.queryAttachments(n)}async function L(e,t,r,i){let n=await W(e);if(!n.queryObjectIds)throw new o.A(i,"Layer source does not support queryObjectIds capability");return n.queryObjectIds(h.A.from(t)??e.createQuery(),r)}async function T(e,t,r,i){let n=await W(e);if(!n.queryFeatureCount)throw new o.A(i,"Layer source does not support queryFeatureCount capability");return n.queryFeatureCount(h.A.from(t)??e.createQuery(),r)}async function B(e,t,r,i){let n=await W(e);if(!n.queryExtent)throw new o.A(i,"Layer source does not support queryExtent capability");return n.queryExtent(h.A.from(t)??e.createQuery(),r)}async function D(e,t,r,i){let n=await W(e);if(!n.queryRelatedFeatures)throw new o.A(i,"Layer source does not support queryRelatedFeatures capability");return n.queryRelatedFeatures(M.default.from(t),r)}async function N(e,t,r,i){let n=await W(e);if(!n.queryRelatedFeaturesCount)throw new o.A(i,"Layer source does not support queryRelatedFeaturesCount capability");return n.queryRelatedFeaturesCount(M.default.from(t),r)}async function E(e){let t=e.source;if(t?.refresh)try{let{dataChanged:r,updates:i}=await t.refresh();if(null!=i&&(e.sourceJSON={...e.sourceJSON,...i},e.read(i,{origin:"service",url:e.parsedUrl})),r)return!0}catch{}if(e.definitionExpression)try{return(await(0,l.GP)(e.definitionExpression,e.fieldsIndex)).hasDateFunctions}catch{}return!1}function V(e){let t=new h.A;t.historicMoment=e.historicMoment,t.gdbVersion=e.gdbVersion,t.returnGeometry=!0,t.outFields=["*"],t.multipatchOption="multipatch"===e.geometryType?"xyFootprint":null;let r=e.capabilities?.query;r&&(t.compactGeometryEnabled=r.supportsCompactGeometry,t.defaultSpatialReferenceEnabled=r.supportsDefaultSpatialReference);let i=e.capabilities?.data;i?.supportsZ&&null!=e.returnZ&&(t.returnZ=e.returnZ),i?.supportsM&&null!=e.returnM&&(t.returnM=e.returnM);let{timeOffset:n,timeExtent:o}=e;return t.timeExtent=null!=n&&null!=o?o.offset(-n.value,n.unit):o||null,t}function k(e){let{globalIdField:t,fields:r}=e;if(t)return t;if(r)for(let e of r)if("esriFieldTypeGlobalID"===e.type)return e.name}function G(e){let{objectIdField:t,fields:r}=e;if(t)return t;if(r)for(let e of r)if("esriFieldTypeOID"===e.type)return e.name}function z(e){return e.currentVersion?e.currentVersion:e.hasOwnProperty("capabilities")||e.hasOwnProperty("drawingInfo")||e.hasOwnProperty("hasAttachments")||e.hasOwnProperty("htmlPopupType")||e.hasOwnProperty("relationships")||e.hasOwnProperty("timeInfo")||e.hasOwnProperty("typeIdField")||e.hasOwnProperty("types")?10:9.3}function $(e,t,r,i){let n=r?.feature,o=!!e.subtypes?.length;if(o&&!r?.excludeImpliedDomains){let r=Q(e,t);if(r)return r}let s=o&&H(e,n);if(s){let e=s?.domains?.[t];return"inherited"===e?.type?i:e}let a=ie(e.types,e.typeIdField,n);if(a){let e=a.domains&&a.domains[t];if(e&&"inherited"!==e?.type)return e}if(i)return i;if(!r?.excludeImpliedDomains){let r=function(e,t){let{fieldsIndex:r}=e,{name:i,type:n}=r.get(t)??{};if(!i)return null;if(("typeIdField"in e?r.get(e.typeIdField)?.name:null)===i&&"types"in e&&e.types?.length&&K(e.types)){let t=e.types?.map(e=>new c.A({code:J(e.id,n),name:e.name}));return new y.A({codedValues:t})}return null}(e,t);if(r)return r}return null}function H(e,t){let{subtypes:r,subtypeField:i}=e;if(!t?.attributes||!r?.length||!i)return null;let n=t.attributes[i];return null==n?null:r.find(e=>e.code===n)}function Q(e,t){let{fieldsIndex:r,subtypeField:i}=e,{name:n,type:o}=r.get(t)??{};if(!n)return null;if((i&&r.get(i)?.name)===n&&e.subtypes?.length){let t=e.subtypes.map(e=>new c.A({code:J(e.code,o),name:e.name}));if(t?.length)return new y.A({codedValues:t})}return null}function K(e){let t=new Set,r=new Set;for(let i of e){if(t.has(i.id)||r.has(i.name))return!1;t.add(i.id),r.add(i.name)}return!0}function J(e,t){return t?(0,w.yM)({type:t})&&"number"==typeof e?`${e}`:(0,w.R3)({type:t})&&"string"==typeof e?Number.parseInt(e,10):e:e}async function W(e){return(await e.load()).source}async function U(e,t,r){let n=e.parsedUrl?.path;n&&e.authenticationTriggerEvent===t&&await async function(e,t){if(!i.id||i.id.findCredential(e))return;let r;try{let n=await(0,g.wI)(e,t);n&&(r=await i.id.checkSignInStatus(`${n}/sharing`))}catch{}if(r)try{let r=null==t?null:t.signal;await i.id.getCredential(e,{signal:r})}catch{}}(n,r)}function _(e){return!!e?.toLowerCase().includes("current_user")}function X(e){return!ne(e)&&(e.userHasUpdateItemPrivileges||e.editingEnabled)}const Y=(0,p.C)({types:F.xK});function ee(e,t){if(e.defaultSymbol)return e.types?.length?new v.A({defaultSymbol:Y(e.defaultSymbol,e,t),field:e.typeIdField,uniqueValueInfos:e.types.map(e=>({id:e.id,symbol:Y(e.symbol,e,t)}))}):new b.A({symbol:Y(e.defaultSymbol,e,t)})}function te(e){let t=e.sourceJSON?.cacheMaxAge;if(!t)return!1;let r=e.editingInfo?.lastEditDate?.getTime();return null==r||(t*=1e3,Date.now()-r<t)}async function re(e,t,r){if(null==t)return null;let i=[],{objectIdField:o}=e;if(t.forEach(e=>{let t=null;if("attributes"in e){let{attributes:i}=e;t={globalId:i[r],objectId:null!=i[o]&&-1!==i[o]?i[o]:null}}else t={globalId:e.globalId,objectId:null!=e.objectId&&-1!==e.objectId?e.objectId:null};null!=t.globalId&&(null==t.objectId||-1===t.objectId)&&i.push(t.globalId)}),0===i.length)return null;let s=e.createQuery();s.where=i.map(e=>`${r}='${e}'`).join(" OR "),s.returnGeometry=!1,s.outFields=[o,r],s.cacheHint=!1;let a=await(0,n.DZ)(m(e,s));if(!a.ok)return null;let l=new Map,p=a.value.features;for(let e of p){let t=e.attributes[r],i=e.attributes[o];null!=t&&null!=i&&-1!==i&&l.set((0,u.AG)(t),i)}return l}function ie(e,t,r){if(!t||!r||!e)return null;let i=r.getAttribute(t);if(null==i)return null;let n=e.filter(e=>{let{id:t}=e;return null!=t&&t.toString()===i.toString()});return n.length>1&&a.A.getLogger("esri.layers.support.featureLayerUtils").warn("getFeatureType",`Cannot unambiguously determine feature type because multiple types have the id ${i}.`),n[0]??null}function ne(e){let t=e.sourceJSON;return t?.isMultiServicesView||t?.isReadOnly||function(e){return!!e.sourceJSON?.capabilities?.toLowerCase().split(",").map(e=>e.trim()).includes("map")}(e)}function oe(e,t,r){let i=t?.queryAttributeBins;if(!t?.operations?.supportsQueryBins||!i)throw new o.A(r,"Layer source does not support binning");switch(e.binParameters?.type){case"auto-interval":if(!i.supportsAutoInterval)throw new o.A(r,"Layer source does not support auto-interval binning");if(e.binParameters.normalizationType&&(!i.supportsNormalization||!se(e.binParameters.normalizationType,i.supportedNormalizationTypes)))throw new o.A(r,"Layer source does not support normalization binning");break;case"date":if(!i.supportsDate)throw new o.A(r,"Layer source does not support date binning");if(e.binParameters.snapToData&&!i.supportsSnapToData)throw new o.A(r,"Layer source does not support snapToData binning");if(e.binParameters.returnFullIntervalBin&&!i.supportsReturnFullIntervalBin)throw new o.A(r,"Layer source does not support returnFullIntervalBin binning");break;case"fixed-boundaries":if(!i.supportsFixedBoundaries)throw new o.A(r,"Layer source does not support fixed-boundaries binning");break;case"fixed-interval":if(!i.supportsFixedInterval)throw new o.A(r,"Layer source does not support fixed-interval binning");if(e.binParameters.normalizationType&&(!i.supportsNormalization||!se(e.binParameters.normalizationType,i.supportedNormalizationTypes)))throw new o.A(r,"Layer source does not support normalization binning")}if(e.binParameters?.stackBy&&!i.supportsStackBy)throw new o.A(r,"Layer source does not support stackBy binning");if(e.binParameters?.splitBy&&!i.supportsSplitBy)throw new o.A(r,"Layer source does not support splitBy binning");if(e.binParameters?.firstDayOfWeek&&!i.supportsFirstDayOfWeek)throw new o.A(r,"Layer source does not support firstDayOfWeek binning");let n=i?.supportedStatistics;if(e.outStatistics&&n){let t=new Map([["count","count"],["sum","sum"],["min","min"],["max","max"],["avg","avg"],["stddev","stddev"],["var","var"],["percentile-continuous","percentileContinuous"],["percentile-discrete","percentileDiscrete"],["centroid-aggregate","centroid"],["convex-hull-aggregate","convexHull"],["envelope-aggregate","envelope"]]);for(let{statisticType:i}of e.outStatistics){let e=t.get(i);if(e&&!n[e])throw new o.A(r,`Layer source does not support ${i} statistic type`)}}}function se(e,t){return null!=e&&!!t?.[C.Q.toJSON(e)]}},96576(e,t,r){r.d(t,{A:()=>d});var i,n=r(32198),o=r(4718),s=r(91429),a=r(92438),l=r(63988),u=r(49849),p=r(93223);let d=i=class extends((0,l.h)(a.A)){constructor(e){super(e),this.description=null,this.label=null,this.symbol=null,this.type="simple"}async collectRequiredFields(e,t){await Promise.all([this.collectSymbolFields(e,t),this.collectVVRequiredFields(e,t)])}async collectSymbolFields(e,t){await Promise.all(this.symbols.map(r=>r.collectRequiredFields(e,t)))}getSymbol(e,t){return this.symbol}async getSymbolAsync(e,t){return this.symbol}get symbols(){return this.symbol?[this.symbol]:[]}get arcadeRequired(){return this.arcadeRequiredForVisualVariables}clone(){return new i({description:this.description,label:this.label,symbol:(0,o.o8)(this.symbol),visualVariables:(0,o.o8)(this.visualVariables),authoringInfo:(0,o.o8)(this.authoringInfo)})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"description",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0}})],d.prototype,"label",void 0),(0,n.Cg)([(0,s.MZ)(u.Wp)],d.prototype,"symbol",void 0),(0,n.Cg)([(0,p.e)({simple:"simple"})],d.prototype,"type",void 0),d=i=(0,n.Cg)([(0,s.$K)("esri.renderers.SimpleRenderer")],d)},54546(e,t,r){r.d(t,{A:()=>p});var i,n=r(32198),o=r(25482),s=r(4718),a=r(91429),l=r(78888),u=r(43937);let p=class extends o.o{static{i=this}constructor(e){super(e),this.attachmentTypes=null,this.attachmentsWhere=null,this.cacheHint=void 0,this.keywords=null,this.globalIds=null,this.name=null,this.num=null,this.objectIds=null,this.orderByFields=null,this.returnMetadata=!1,this.size=null,this.start=null,this.where=null}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}clone(){return new i((0,s.o8)({attachmentTypes:this.attachmentTypes,attachmentsWhere:this.attachmentsWhere,cacheHint:this.cacheHint,keywords:this.keywords,where:this.where,globalIds:this.globalIds,historicMoment:this.historicMoment,name:this.name,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,returnMetadata:this.returnMetadata,size:this.size,start:this.start}))}};(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"attachmentTypes",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{read:{source:"attachmentsDefinitionExpression"},write:{target:"attachmentsDefinitionExpression"}}})],p.prototype,"attachmentsWhere",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],p.prototype,"cacheHint",void 0),(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"keywords",void 0),(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"globalIds",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],p.prototype,"name",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],p.prototype,"num",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"objectIds",void 0),(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],p.prototype,"orderByFields",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],p.prototype,"returnMetadata",void 0),(0,n.Cg)([(0,a.MZ)({type:[Number],json:{write:!0}})],p.prototype,"size",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],p.prototype,"start",void 0),(0,n.Cg)([(0,u.K)("start"),(0,u.K)("num")],p.prototype,"writeStart",null),(0,n.Cg)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],p.prototype,"where",void 0),(0,n.Cg)([(0,a.MZ)()],p.prototype,"historicMoment",void 0),(0,n.Cg)([(0,u.K)("historicMoment")],p.prototype,"writeHistoricMoment",null),p=i=(0,n.Cg)([(0,a.$K)("esri.rest.support.AttachmentQuery")],p),p.from=(0,l.dp)(p)},26591(e,t,r){r.r(t),r.d(t,{default:()=>c});var i,n=r(32198),o=r(25482),s=r(4718),a=r(91429),l=r(78888),u=r(16930),p=r(99614),d=r(43937);let c=class extends o.o{static{i=this}constructor(e){super(e),this.cacheHint=void 0,this.dynamicDataSource=void 0,this.gdbVersion=null,this.geometryPrecision=void 0,this.historicMoment=null,this.maxAllowableOffset=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.relationshipId=void 0,this.start=void 0,this.num=void 0,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.where=null}_writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,this.start>0&&null==this.where&&(t.definitionExpression="1=1")}clone(){return new i((0,s.o8)({cacheHint:this.cacheHint,dynamicDataSource:this.dynamicDataSource,gdbVersion:this.gdbVersion,geometryPrecision:this.geometryPrecision,historicMoment:this.historicMoment&&new Date(this.historicMoment),maxAllowableOffset:this.maxAllowableOffset,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,relationshipId:this.relationshipId,start:this.start,num:this.num,returnGeometry:this.returnGeometry,where:this.where,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,returnM:this.returnM}))}};(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"cacheHint",void 0),(0,n.Cg)([(0,a.MZ)({types:p.e,json:{write:!0}})],c.prototype,"dynamicDataSource",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"gdbVersion",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"geometryPrecision",void 0),(0,n.Cg)([(0,a.MZ)({type:Date})],c.prototype,"historicMoment",void 0),(0,n.Cg)([(0,d.K)("historicMoment")],c.prototype,"_writeHistoricMoment",null),(0,n.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxAllowableOffset",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"objectIds",void 0),(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),(0,n.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],c.prototype,"outFields",void 0),(0,n.Cg)([(0,a.MZ)({type:u.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],c.prototype,"outSpatialReference",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"relationshipId",void 0),(0,n.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],c.prototype,"start",void 0),(0,n.Cg)([(0,d.K)("start"),(0,d.K)("num")],c.prototype,"writeStart",null),(0,n.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],c.prototype,"num",void 0),(0,n.Cg)([(0,a.MZ)({json:{write:!0}})],c.prototype,"returnGeometry",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],c.prototype,"returnM",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],c.prototype,"returnZ",void 0),(0,n.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],c.prototype,"returnTrueCurves",void 0),(0,n.Cg)([(0,a.MZ)({type:String,json:{read:{source:"definitionExpression"},write:{target:"definitionExpression"}}})],c.prototype,"where",void 0),c=i=(0,n.Cg)([(0,a.$K)("esri.rest.support.RelationshipQuery")],c),c.from=(0,l.dp)(c)},30291(e,t,r){r.d(t,{tn:()=>u});var i=r(37838),n=r(30524),o=r(41227),s=r(89893),a=r(66159),l=r(68780);function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:l,title:u},y){if(!r)return null;let m=function(e,t){let r=t?.visibleFieldNames;return function({fields:e,ignoreFieldTypes:t,sortDisabled:r}){let i=e;return t&&(e=e.filter(e=>!t.includes(e.type))),e===i&&(e=e.slice()),!0!==r&&e.sort(d),e}({fields:e.fields??[],ignoreFieldTypes:t?.ignoreFieldTypes||h,sortDisabled:t?.sortDisabled}).map(t=>new o.A({fieldName:t.name,isEditable:(0,n.R$)(t,e),label:t.alias,format:c(t),visible:p(t,{...e,visibleFieldNames:r})}))}({editFieldsInfo:t,fields:r,objectIdField:l},y);if(!m.length)return null;let f=function(e){let t=(0,n.mB)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r??""}({titleBase:u,fields:r,displayField:e}),w=[new a.A,new s.A];return new i.A({title:f,content:w,fieldInfos:m})}const p=(e,t)=>t.visibleFieldNames?t.visibleFieldNames.has(e.name):(0,n.Bz)(e,t);function d(e,t){return"oid"===e.type?-1:"oid"===t.type?1:y(e)?-1:y(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function c(e){switch(e.type){case"small-integer":case"integer":return new l.A({digitSeparator:!0,places:0});case"single":case"double":return new l.A({digitSeparator:!0,places:2});case"string":return(0,n.JL)(e.name)?new l.A({digitSeparator:!0,places:0}):void 0;default:return}}function y(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===e.alias?.toLowerCase()}const h=["geometry","blob","raster","guid","xml"]}}]);