@arcgis/core 6.0.0-next.4 → 6.0.0-next.6

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 (108) hide show
  1. package/analysis/AreaMeasurementAnalysis.d.ts +11 -1
  2. package/analysis/DirectLineMeasurementAnalysis.d.ts +11 -1
  3. package/analysis/DistanceMeasurementAnalysis.d.ts +8 -0
  4. package/arcade/geometry/unitConversion.js +1 -1
  5. package/arcgisGlobal.d.ts +5 -5
  6. package/assets/esri/core/workers/RemoteClient.js +1 -1
  7. package/assets/esri/core/workers/chunks/{1ede8666d804c553803e.js → 0b6941781e35ce0f7274.js} +1 -1
  8. package/assets/esri/core/workers/chunks/0ccab50877b24f862d6e.js +1 -0
  9. package/assets/esri/core/workers/chunks/{a0d459bdb91ee892d4b6.js → 116293b1ee788a89ce1e.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{8959a825f5e1ce6f38ac.js → 1c65ab9ed611c322ce27.js} +1 -1
  11. package/assets/esri/core/workers/chunks/{ff3a53c3f00335552317.js → 250d3be6d3849d71fed8.js} +1 -1
  12. package/assets/esri/core/workers/chunks/257910cca66dc5df465e.js +1 -0
  13. package/assets/esri/core/workers/chunks/27da9ece2afaeec39f59.js +1 -0
  14. package/assets/esri/core/workers/chunks/2c90f7a6432cd716db8b.js +1 -0
  15. package/assets/esri/core/workers/chunks/2e096537a3a5555a4a93.js +1 -0
  16. package/assets/esri/core/workers/chunks/{b612de42ee86c0d95247.js → 3d9d7d3a40b51eb7ee3d.js} +1 -1
  17. package/assets/esri/core/workers/chunks/4d3f97a48046021713a6.js +1 -0
  18. package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +1 -0
  19. package/assets/esri/core/workers/chunks/557671c897ca5563be6c.js +1 -0
  20. package/assets/esri/core/workers/chunks/56851011276de0b3e318.js +1 -0
  21. package/assets/esri/core/workers/chunks/56a24061589f4a968818.js +1 -0
  22. package/assets/esri/core/workers/chunks/{9232f57623e1fa3ccabc.js → 67e4b5651fd7ff7d8cf0.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{e521bb9ee2030245c3ce.js → 6f358116f79021ff9687.js} +1 -1
  24. package/assets/esri/core/workers/chunks/76196c414e48834f7b92.js +1 -0
  25. package/assets/esri/core/workers/chunks/{5078b66ba31b770b689f.js → 85908e6e9c50749cee60.js} +1 -1
  26. package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +1 -0
  27. package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +1 -0
  28. package/assets/esri/core/workers/chunks/ae40eac1eadd1a537bf4.js +1 -0
  29. package/assets/esri/core/workers/chunks/bbf993dba74850bbf9d7.js +1 -0
  30. package/assets/esri/core/workers/chunks/bfd85e8d54062a590f0e.js +1 -0
  31. package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +1 -0
  32. package/assets/esri/core/workers/chunks/d90a3bfd45b5ed4092e0.js +1 -0
  33. package/assets/esri/core/workers/chunks/f43a50d4bd9636e68ae5.js +1118 -0
  34. package/assets/esri/core/workers/chunks/f46a0d7cf588ba1b4157.js +1 -0
  35. package/{basemaps/BasemapCollection.d.ts → basemapGallery/BasemapGalleryModel.d.ts} +8 -8
  36. package/{basemaps/BasemapCollection.js → basemapGallery/BasemapGalleryModel.js} +1 -1
  37. package/{basemaps → basemapGallery}/BasemapsSource.d.ts +1 -1
  38. package/{basemaps → basemapGallery}/BasemapsSource.js +1 -1
  39. package/{basemaps → basemapGallery}/LocalBasemapsSource.d.ts +2 -2
  40. package/{basemaps → basemapGallery}/LocalBasemapsSource.js +1 -1
  41. package/{basemaps → basemapGallery}/PortalBasemapsSource.d.ts +2 -2
  42. package/{basemaps → basemapGallery}/PortalBasemapsSource.js +1 -1
  43. package/{basemaps → basemapGallery}/support/BasemapItem.d.ts +2 -2
  44. package/{basemaps → basemapGallery}/support/BasemapItem.js +1 -1
  45. package/{basemaps → basemapGallery}/types.d.ts +2 -2
  46. package/config.js +1 -1
  47. package/core/units.js +1 -1
  48. package/geometry/support/wkt.js +2 -0
  49. package/kernel.js +1 -1
  50. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  51. package/layers/graphics/transferFeatures.js +1 -1
  52. package/package.json +2 -2
  53. package/symbols/cim/cimAnalyzer.js +1 -1
  54. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -4
  55. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -4
  56. package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +1 -1
  57. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  58. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +3 -0
  59. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +2 -1
  60. package/views/3d/layers/support/FeatureMemory.js +1 -1
  61. package/views/3d/layers/support/FeatureTile.js +1 -1
  62. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  63. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  64. package/views/3d/support/PBFDecoder.js +1 -1
  65. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +16 -11
  66. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  67. package/views/SceneView.d.ts +4 -10
  68. package/views/View.d.ts +4 -12
  69. package/views/interactive/options/SnappingOptions.d.ts +28 -12
  70. package/views/interactive/options/TooltipOptions.d.ts +8 -1
  71. package/views/interactive/options/ValueOptions.d.ts +9 -2
  72. package/views/interactive/options/ViewOptions.d.ts +81 -6
  73. package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +2 -2
  74. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  75. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +3 -3
  76. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +2 -2
  77. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
  78. package/widgets/BasemapGallery/types.d.ts +3 -3
  79. package/widgets/BatchAttributeForm.js +1 -1
  80. package/widgets/Editor/EditorViewModel.d.ts +13 -8
  81. package/widgets/Editor.d.ts +9 -9
  82. package/widgets/Sketch/SketchViewModel.d.ts +13 -8
  83. package/widgets/Sketch.d.ts +9 -9
  84. package/arcade/geometry/wkt.js +0 -2
  85. package/assets/esri/core/workers/chunks/05d865b2736f452ad2aa.js +0 -1
  86. package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +0 -1
  87. package/assets/esri/core/workers/chunks/260dcb79dfd0f981949f.js +0 -1
  88. package/assets/esri/core/workers/chunks/303676d1b10676c9cab4.js +0 -1
  89. package/assets/esri/core/workers/chunks/33956f12505e72e60293.js +0 -1
  90. package/assets/esri/core/workers/chunks/512628db534605a2a93e.js +0 -1742
  91. package/assets/esri/core/workers/chunks/57970d43cdcc5cf57a30.js +0 -1
  92. package/assets/esri/core/workers/chunks/5e184fd47e76eb976fa9.js +0 -1
  93. package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +0 -1
  94. package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +0 -1
  95. package/assets/esri/core/workers/chunks/6aebf7cfd294e88bf926.js +0 -1
  96. package/assets/esri/core/workers/chunks/71103472c45928bd730c.js +0 -1
  97. package/assets/esri/core/workers/chunks/73a87fb270818aa75fc5.js +0 -1
  98. package/assets/esri/core/workers/chunks/776565dd9741ba2ba151.js +0 -1
  99. package/assets/esri/core/workers/chunks/8e7a33cc1f83063043f2.js +0 -1
  100. package/assets/esri/core/workers/chunks/a23272a7a47a95f6ddea.js +0 -1
  101. package/assets/esri/core/workers/chunks/aa5b42e44d2959fdacd3.js +0 -1
  102. package/assets/esri/core/workers/chunks/cbdebdfa5f2cded29d0d.js +0 -1
  103. package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +0 -1
  104. package/assets/esri/core/workers/chunks/d89fe41c71c9621c41ae.js +0 -1
  105. package/assets/esri/core/workers/chunks/e22d45aeef293a5ffb78.js +0 -1
  106. package/assets/esri/core/workers/chunks/edf3be87a997f4f05b96.js +0 -1
  107. package/assets/esri/core/workers/chunks/f0c0c02730fe0d948fc1.js +0 -1
  108. /package/{basemaps → basemapGallery}/support/basemapCompatibilityUtils.js +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9692],{87367(e,n,t){t.r(n),t.d(n,{registerFunctions:()=>R});var r=t(47609),a=t(67862),o=t(66395),i=t(85935),l=t(54639),s=t(78878),u=t(80672),c=t(38222),f=t(98919),d=t(71163),m=t(36983),y=t(70333),h=t(56507);async function w(e,n,t){if(!y.id?.findCredential(e.restUrl))return null;if("loaded"===e.loadStatus&&""===n&&e.user?.sourceJSON&&!1===t)return e.user.sourceJSON;let r={responseType:"json",query:{f:"json"}};if(t&&(r.query.returnUserLicenseTypeExtensions=!0),""===n){let n=await(0,h.A)(e.restUrl+"/community/self",r);if(n.data){let e=n.data;if(e?.username)return e}return null}let a=await(0,h.A)(e.restUrl+"/community/users/"+n,r);if(a.data){let e=a.data;return e.error?null:e}return null}var g=t(54218);function p(e){if(null==e)return e;switch(typeof e){case"string":case"number":return e;default:throw new i.D$("InvalidParameter",null)}}function R(e){"async"===e.mode&&(e.functions.disjoint=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null===r[0]||null===r[1]||(0,d.C)("disjoint",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.intersects=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("intersects",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.touches=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("touches",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.crosses=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("crosses",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.within=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("within",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.contains=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("contains",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.overlaps=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("overlaps",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.equals=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>((0,s.E)(r,2,2,t),r[0]===r[1]||((0,s.d)(r[0])&&(0,s.d)(r[1])?(0,d.C)("equals",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)]):!!((0,s.f)(r[0])&&(0,s.f)(r[1])||(0,s.r)(r[0])&&(0,s.r)(r[1])||(0,s.q)(r[0])&&(0,s.q)(r[1]))&&r[0].equals(r[1]))))},e.functions.relate=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,3,3,t),(0,s.d)(r[0])&&(0,s.d)(r[1]))return(0,d.C)("relate",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference),(0,s.w)(r[2])]);if((0,s.d)(r[0])&&null===r[1]||(0,s.d)(r[1])&&null===r[0]||null===r[0]&&null===r[1])return!1;throw new i.D$("InvalidParameter",t)})},e.functions.intersection=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null===r[0]||null===r[1]?null:(0,m.R)(await(0,d.C)("intersection",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)]),r[0].spatialReference)))},e.functions.union=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(0===(r=(0,s.H)(r)).length)throw new i.D$("WrongNumberOfParameters",t);let a=[];if(1===r.length)if((0,g.cy)(r[0])){for(let e of(0,s.H)(r[0]))if(null!==e){if(!(0,s.d)(e))throw new i.D$("InvalidParameter",t);a.push(e)}}else{if(!(0,s.g)(r[0])){if((0,s.d)(r[0]))return r[0].clone();if(null===r[0])return null;throw new i.D$("InvalidParameter",t)}for(let e of(0,s.H)(r[0].toArray()))if(null!==e){if(!(0,s.d)(e))throw new i.D$("InvalidParameter",t);a.push(e)}}else for(let e of r)if(null!==e){if(!(0,s.d)(e))throw new i.D$("InvalidParameter",t);a.push(e)}if(0===a.length)return null;let o=a[0].spatialReference;return(0,m.R)(await(0,d.C)("union",[a.map(e=>e.asJsonGeometry()),(0,l.b)(o)]),o)})},e.functions.difference=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null===r[0]?null:null===r[1]?r[0].clone():(0,m.R)(await(0,d.C)("difference",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)]),r[0].spatialReference)))},e.functions.symmetricdifference=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null===r[0]&&null===r[1]?null:null===r[0]?r[1]?.clone()??null:null===r[1]?r[0]?.clone()??null:(0,m.R)(await(0,d.C)("symmetricDifference",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)]),r[0].spatialReference)))},e.functions.clip=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,2,t),!(0,s.J)(r[1])&&null!==r[1])throw new i.D$("InvalidParameter",t);if(null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);return null===r[1]?null:(0,m.R)(await(0,d.C)("clip",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)]),r[0].spatialReference)})},e.functions.cut=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,2,t),!(0,s.K)(r[1])&&null!==r[1])throw new i.D$("InvalidParameter",t);if(null===r[0])return[];if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);if(null===r[1])return[r[0].clone()];let a=r[0].spatialReference;return(await(0,d.C)("cut",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])).map(e=>(0,m.R)(e,a)).filter(e=>null!=e)})},e.functions.area=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{if((0,s.E)(a,1,2,t),a=(0,s.H)(a),(0,s.k)(a[0])){let e=await a[0].sumArea(p(a[1]),null,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}let o=a[0];if(((0,g.cy)(o)||(0,s.g)(o))&&(o=(0,c.zt)(a[0],n.spatialReference)),null===o)return 0;if(!(0,s.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("area",[o.asJsonGeometry(),(0,l.b)(o.spatialReference),p(a[1])])})},e.functions.areageodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{(0,s.E)(a,1,3,t);let o=(a=(0,s.H)(a))[0];((0,g.cy)(o)||(0,s.g)(o))&&(o=(0,c.zt)(o,n.spatialReference));let u=p(a[1]),m=(0,f.qr)(a[2]);if((0,s.k)(o)){let e=await o.sumArea(u,m,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}if(null==o)return 0;if(!(0,s.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("geodeticArea",[o.asJsonGeometry(),(0,l.b)(o.spatialReference),u,m])})},e.functions.length=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{if((0,s.E)(a,1,2,t),a=(0,s.H)(a),(0,s.k)(a[0])){let e=await a[0].sumLength(p(a[1]),null,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}let o=a[0];if(((0,g.cy)(a[0])||(0,s.g)(a[0]))&&(o=(0,c.X1)(a[0],n.spatialReference)),null===o)return 0;if(!(0,s.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("length",[o.asJsonGeometry(),(0,l.b)(o.spatialReference),p(a[1])])})},e.functions.length3d=function(n,r){return e.standardFunctionAsync(n,r,async(e,a,o)=>{if((0,s.E)(o,1,2,r),null===(o=(0,s.H)(o))[0])return 0;let u=o[0];if(((0,g.cy)(o[0])||(0,s.g)(o[0]))&&(u=(0,c.X1)(o[0],n.spatialReference)),null===u)return 0;if(!(0,s.d)(u))throw new i.D$("InvalidParameter",r);if(!0===u.hasZ){let{convertFromSpatialReferenceUnit:e,toLengthUnit:n}=await Promise.resolve().then(()=>t(40547)),r=(0,f.UI)(u);return e(u.spatialReference,n(o[1]),r)}return(0,d.C)("length",[u.asJsonGeometry(),(0,l.b)(u.spatialReference),p(o[1])])})},e.functions.lengthgeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{(0,s.E)(a,1,3,t);let o=(a=(0,s.H)(a))[0];((0,g.cy)(a[0])||(0,s.g)(a[0]))&&(o=(0,c.X1)(a[0],n.spatialReference));let u=p(a[1]),m=(0,f.qr)(a[2]);if((0,s.k)(o)){let e=await o.sumLength(u,m,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}if(null===o)return 0;if(!(0,s.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("geodeticLength",[o.asJsonGeometry(),(0,l.b)(o.spatialReference),u,m])})},e.functions.distance=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{a=(0,s.H)(a),(0,s.E)(a,2,3,t);let o=a[0];if(((0,g.cy)(a[0])||(0,s.g)(a[0]))&&(o=(0,c.yg)(a[0],n.spatialReference)),!(0,s.d)(o))throw new i.D$("InvalidParameter",t);let u=a[1];if(((0,g.cy)(a[1])||(0,s.g)(a[1]))&&(u=(0,c.yg)(a[1],n.spatialReference)),!(0,s.d)(u))throw new i.D$("InvalidParameter",t);return(0,d.C)("distance",[o.asJsonGeometry(),u.asJsonGeometry(),(0,l.b)(o.spatialReference),p(a[2])])})},e.functions.distancegeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,s.H)(r),(0,s.E)(r,2,4,t);let a=r[0];if(!(0,s.L)(a))throw new i.D$("InvalidParameter",t);let o=r[1];if(!(0,s.L)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("geodeticDistance",[a.asJsonGeometry(),o.asJsonGeometry(),(0,l.b)(a.spatialReference),p(r[2]),(0,f.qr)(r[3])])})},e.functions.densify=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,3,t),null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);let a=(0,s.v)(r[1]);if(isNaN(a)||a<=0)throw new i.D$("InvalidParameter",t);switch(r[0].type){case"polygon":case"polyline":case"extent":return(0,m.R)(await(0,d.C)("densify",[r[0].asJsonGeometry(),(0,l.b)(r[0].spatialReference),a,p(r[2])]),r[0].spatialReference);default:return r[0]}})},e.functions.densifygeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,s.H)(r),(0,s.E)(r,2,4,t);let a=r[0];if(null==a)return null;if(!(0,s.d)(a))throw new i.D$("InvalidParameter",t);let o=(0,s.v)(r[1]);if(isNaN(o)||o<=0)throw new i.D$("InvalidParameter",t);let u=p(r[2]),c=(0,f.qr)(r[3]);switch(a.type){case"polygon":case"polyline":case"extent":return(0,m.R)(await(0,d.C)("geodeticDensify",[a.asJsonGeometry(),(0,l.b)(a.spatialReference),o,u,c]),a.spatialReference);default:return a}})},e.functions.generalize=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,4,t),null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);let a=(0,s.v)(r[1]);if(isNaN(a))throw new i.D$("InvalidParameter",t);let o=(0,s.M)((0,s.N)(r[2],!0));return(0,m.R)(await(0,d.C)("generalize",[r[0].asJsonGeometry(),(0,l.b)(r[0].spatialReference),a,p(r[3]),o]),r[0].spatialReference)})},e.functions.buffer=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,3,t),null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);let a=(0,s.v)(r[1]);if(isNaN(a))throw new i.D$("InvalidParameter",t);return 0===a?r[0].clone():(0,m.R)(await(0,d.C)("buffer",[r[0].asJsonGeometry(),(0,l.b)(r[0].spatialReference),a,p(r[2])]),r[0].spatialReference)})},e.functions.buffergeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,s.H)(r),(0,s.E)(r,2,4,t);let a=r[0];if(null==a)return null;if(!(0,s.d)(a))throw new i.D$("InvalidParameter",t);let o=(0,s.v)(r[1]);if(isNaN(o))throw new i.D$("InvalidParameter",t);if(0===o)return a.clone();let u=p(r[2]),c=(0,f.qr)(r[3]);return(0,m.R)(await(0,d.C)("geodesicBuffer",[a.asJsonGeometry(),(0,l.b)(a.spatialReference),o,u,c]),a.spatialReference)})},e.functions.offset=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,s.H)(r),(0,s.E)(r,2,6,t);let a=r[0];if(null===a)return null;if(!(0,s.d)(a)||"polygon"!==a.type&&"polyline"!==a.type)throw new i.D$("InvalidParameter",t);let o=(0,s.v)(r[1]);if(isNaN(o))throw new i.D$("InvalidParameter",t);let u=r[2],c=(0,f.ug)(r[3]),y=(0,s.v)((0,s.N)(r[4],10));if(isNaN(y))throw new i.D$("InvalidParameter",t);let h=(0,s.v)((0,s.N)(r[5],0));if(isNaN(h))throw new i.D$("InvalidParameter",t);return(0,m.R)(await(0,d.C)("offset",[a.asJsonGeometry(),(0,l.b)(a.spatialReference),o,p(u),c,y,h]),a.spatialReference)})},e.functions.rotate=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,s.H)(r),(0,s.E)(r,2,3,t);let a=r[0];if(null===a)return null;if(!(0,s.d)(a))throw new i.D$("InvalidParameter",t);let o=(0,s.v)(r[1]);if(!Number.isFinite(o))throw new i.D$("InvalidParameter",t);let l=r[2];if(null!=l&&!(0,s.L)(l))throw new i.D$("InvalidParameter",t);let u=l?.asJsonLikeGeometry();return(0,m.R)(await(0,d.C)("rotate",[a.asJsonGeometry(),o,u?.x,u?.y]),a.spatialReference)})},e.functions.centroid=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{if(a=(0,s.H)(a),(0,s.E)(a,1,2,t),null===a[0])return null;let o=(0,f.Hz)(a[1]),l=a[0];if(((0,g.cy)(a[0])||(0,s.g)(a[0]))&&(l="geometric"===o?(0,c.yg)(a[0],n.spatialReference):(0,c.zt)(a[0],n.spatialReference),null===l))return null;if(!(0,s.d)(l))throw new i.D$("InvalidParameter",t);return"geometric"===o?(0,m.p)("point",await(0,d.C)("centroid",[l.asJsonGeometry()]),l.spatialReference):(0,m.p)("point",await(0,d.C)("labelPoint",[l.asJsonGeometry()]),l.spatialReference)})},e.functions.measuretocoordinate=function(n,t){return e.standardFunctionAsync(n,t,f.Cd)},e.functions.pointtocoordinate=function(n,t){return e.standardFunctionAsync(n,t,f.kr)},e.functions.distancetocoordinate=function(n,t){return e.standardFunctionAsync(n,t,f.Bn)},e.functions.multiparttosinglepart=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,1,1,t),null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);let a=r[0].spatialReference;return(await(0,d.C)("multiPartToSinglePart",[r[0].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])).map(e=>(0,m.R)(e,a)).filter(e=>null!=e)})},e.functions.isselfintersecting=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,t)=>{(0,s.E)(t,1,1,n);let r=(t=(0,s.H)(t))[0];if(((0,g.cy)(t[0])||(0,s.g)(t[0]))&&(r=(0,c.X1)(t[0],e.spatialReference)),null==r)return!1;if((0,s.d)(r))return await(0,d.C)("isSelfIntersecting",[r.asJsonGeometry(),(0,l.b)(r.spatialReference)]);throw new i.D$("InvalidParameter",n)})},e.functions.issimple=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,1,1,t),null===r[0])return!0;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);return(0,d.C)("isSimple",[r[0].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])})},e.functions.simplify=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,1,1,t),null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);return(0,m.R)(await(0,d.C)("simplify",[r[0].asJsonGeometry(),(0,l.b)(r[0].spatialReference)]),r[0].spatialReference)})},e.functions.convexhull=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,1,1,t),null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);return(0,m.R)(await(0,d.C)("convexHull",[r[0].asJsonGeometry()]),r[0].spatialReference)})},e.functions.getuser=function(n,t){return e.standardFunctionAsync(n,t,async(e,o,l)=>{(0,s.E)(l,0,2,t);let c=(0,s.N)(l[1],""),f=!0===c;if(c=!0===c||!1===c?"":(0,s.w)(c),0===l.length||l[0]instanceof r.A){let e=(0,u.RI)(n,l.length>0?l[0]:null),t=await w(e,c,f);return null==t?null:(0,a.Tg)(JSON.parse(JSON.stringify(t)))}let d=null;if((0,s.k)(l[0])&&(d=l[0]),d){if(f=!1,c)return null;await d.load();let e=await d.getOwningSystemUrl();if(!e){if(!c){let e=await d.getIdentityUser();return null==e?null:(0,a.Tg)({username:e})}return null}let t=(0,u.RI)(n,new r.A(e)),o=await w(t,c,f);return null==o?null:(0,a.Tg)(JSON.parse(JSON.stringify(o)))}throw new i.D$("InvalidParameter",t)})},e.functions.nearestcoordinate=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,2,t),null==r[0]||null==r[1])return null;if(!(0,s.d)(r[0])||!(0,s.L)(r[1]))throw new i.D$("InvalidParameter",t);let a=await(0,d.C)("getNearestCoordinate",[r[0].asJsonGeometry(),r[1].asJsonGeometry()]);return null==a?null:o.A.createMutable({__proto__:null,coordinate:(0,m.p)("point",a.coordinate,r[0].spatialReference),distance:a.distance,sideOfLine:a.sideOfLine})})},e.functions.nearestvertex=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,2,t),null==r[0]||null==r[1])return null;if(!(0,s.d)(r[0])||!(0,s.L)(r[1]))throw new i.D$("InvalidParameter",t);let a=await(0,d.C)("getNearestVertex",[r[0].asJsonGeometry(),r[1].asJsonGeometry()]);return null==a?null:o.A.createMutable({__proto__:null,coordinate:(0,m.p)("point",a.coordinate,r[0].spatialReference),distance:a.distance,sideOfLine:a.sideOfLine})})})}},71163(e,n,t){t.d(n,{C:()=>s});var r=t(29953);let a,o,i=!1;function l(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(e=>{o=e,i=!0,a=void 0})}async function s(e,n){return i?o.apply("invokeGeometryOp",[e,n]):(await l(),s(e,n))}},97770(e,n,t){t.d(n,{Ey:()=>F,F8:()=>$,J2:()=>b,Yq:()=>A,_m:()=>I,iS:()=>P,wj:()=>S});var r=t(66552),a=t(73444),o=t(98623),i=t(34747);const l={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},s={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},f={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},y={hour:"numeric",minute:"numeric"},h={...y,second:"numeric"},w={hourCycle:"h23"},g={...y,...w},p={...h,...w},R={"short-date":c,"short-date-short-time":{...c,...y},"short-date-short-time-24":{...c,...g},"short-date-long-time":{...c,...h},"short-date-long-time-24":{...c,...p},"short-date-le":c,"short-date-le-short-time":{...c,...y},"short-date-le-short-time-24":{...c,...g},"short-date-le-long-time":{...c,...h},"short-date-le-long-time-24":{...c,...p},"long-month-day-year":f,"long-month-day-year-short-time":{...f,...y},"long-month-day-year-short-time-24":{...f,...g},"long-month-day-year-long-time":{...f,...h},"long-month-day-year-long-time-24":{...f,...p},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...y},"day-short-month-year-short-time-24":{...d,...g},"day-short-month-year-long-time":{...d,...h},"day-short-month-year-long-time-24":{...d,...p},"long-date":m,"long-date-short-time":{...m,...y},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...h},"long-date-long-time-24":{...m,...p},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":y,"long-time":h},v=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),D={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function J(){let e=(0,a.lR)();return(e&&D[e])??(0,a.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(D.bs="sr-Latn-CS");let G=new WeakMap;const C=R["short-date-short-time"];function b(e){return R[e]}function I(e){let{dateStyle:n,timeStyle:t,hour12:r,year:a,month:o}=e,i={};return n?i.dateStyle=n:a&&(i.year=a,i.month=o||void 0),t&&!i.year&&(i.timeStyle=t,i.hour12="auto"===r?void 0:"always"===r),i}function A(e,n=C){return function(e){let n=G.get(e);if(!n){let t=J(),r=S(e.timeZone??"system"),a={...e,timeZone:r};n=new Intl.DateTimeFormat(t,a),G.set(e,n)}return n}(n).format(e)}function P(e,n=C){return A(new Date(e),{...n,...u,...s})}function $(e,n=C){return A(new Date(`1970-01-01T${e}Z`),{...n,...u,...l})}function F(e,n=C){let t=i.c9.fromISO(e,{setZone:!0});if(!t.isValid)return e;if(n.timeZone)return A(t.toJSDate(),n);let r=0===t.offset?"UTC":n.timeZone,a={...n,timeZone:r};return t.toLocaleString(a,{locale:J()})}function S(e){switch(e){case"system":return o.N;case o.L:return"UTC";default:return e}}(0,a.Ml)(()=>{G=new WeakMap}),t.d(n,["_v",0,v])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9692],{87367(e,n,t){t.r(n),t.d(n,{registerFunctions:()=>R});var r=t(47609),a=t(67862),o=t(66395),i=t(85935),l=t(54639),s=t(78878),u=t(80672),c=t(38222),f=t(98919),d=t(71163),m=t(36983),y=t(70333),h=t(56507);async function w(e,n,t){if(!y.id?.findCredential(e.restUrl))return null;if("loaded"===e.loadStatus&&""===n&&e.user?.sourceJSON&&!1===t)return e.user.sourceJSON;let r={responseType:"json",query:{f:"json"}};if(t&&(r.query.returnUserLicenseTypeExtensions=!0),""===n){let n=await(0,h.A)(e.restUrl+"/community/self",r);if(n.data){let e=n.data;if(e?.username)return e}return null}let a=await(0,h.A)(e.restUrl+"/community/users/"+n,r);if(a.data){let e=a.data;return e.error?null:e}return null}var g=t(54218);function p(e){if(null==e)return e;switch(typeof e){case"string":case"number":return e;default:throw new i.D$("InvalidParameter",null)}}function R(e){"async"===e.mode&&(e.functions.disjoint=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null===r[0]||null===r[1]||(0,d.C)("disjoint",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.intersects=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("intersects",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.touches=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("touches",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.crosses=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("crosses",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.within=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("within",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.contains=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("contains",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.overlaps=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null!==r[0]&&null!==r[1]&&(0,d.C)("overlaps",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])))},e.functions.equals=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>((0,s.E)(r,2,2,t),r[0]===r[1]||((0,s.d)(r[0])&&(0,s.d)(r[1])?(0,d.C)("equals",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)]):!!((0,s.f)(r[0])&&(0,s.f)(r[1])||(0,s.r)(r[0])&&(0,s.r)(r[1])||(0,s.q)(r[0])&&(0,s.q)(r[1]))&&r[0].equals(r[1]))))},e.functions.relate=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,3,3,t),(0,s.d)(r[0])&&(0,s.d)(r[1]))return(0,d.C)("relate",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference),(0,s.w)(r[2])]);if((0,s.d)(r[0])&&null===r[1]||(0,s.d)(r[1])&&null===r[0]||null===r[0]&&null===r[1])return!1;throw new i.D$("InvalidParameter",t)})},e.functions.intersection=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null===r[0]||null===r[1]?null:(0,m.R)(await(0,d.C)("intersection",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)]),r[0].spatialReference)))},e.functions.union=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(0===(r=(0,s.H)(r)).length)throw new i.D$("WrongNumberOfParameters",t);let a=[];if(1===r.length)if((0,g.cy)(r[0])){for(let e of(0,s.H)(r[0]))if(null!==e){if(!(0,s.d)(e))throw new i.D$("InvalidParameter",t);a.push(e)}}else{if(!(0,s.g)(r[0])){if((0,s.d)(r[0]))return r[0].clone();if(null===r[0])return null;throw new i.D$("InvalidParameter",t)}for(let e of(0,s.H)(r[0].toArray()))if(null!==e){if(!(0,s.d)(e))throw new i.D$("InvalidParameter",t);a.push(e)}}else for(let e of r)if(null!==e){if(!(0,s.d)(e))throw new i.D$("InvalidParameter",t);a.push(e)}if(0===a.length)return null;let o=a[0].spatialReference;return(0,m.R)(await(0,d.C)("union",[a.map(e=>e.asJsonGeometry()),(0,l.b)(o)]),o)})},e.functions.difference=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null===r[0]?null:null===r[1]?r[0].clone():(0,m.R)(await(0,d.C)("difference",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)]),r[0].spatialReference)))},e.functions.symmetricdifference=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>(r=(0,s.H)(r),(0,f.ZL)(r,t),null===r[0]&&null===r[1]?null:null===r[0]?r[1]?.clone()??null:null===r[1]?r[0]?.clone()??null:(0,m.R)(await(0,d.C)("symmetricDifference",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)]),r[0].spatialReference)))},e.functions.clip=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,2,t),!(0,s.J)(r[1])&&null!==r[1])throw new i.D$("InvalidParameter",t);if(null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);return null===r[1]?null:(0,m.R)(await(0,d.C)("clip",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)]),r[0].spatialReference)})},e.functions.cut=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,2,t),!(0,s.K)(r[1])&&null!==r[1])throw new i.D$("InvalidParameter",t);if(null===r[0])return[];if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);if(null===r[1])return[r[0].clone()];let a=r[0].spatialReference;return(await(0,d.C)("cut",[r[0].asJsonGeometry(),r[1].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])).map(e=>(0,m.R)(e,a)).filter(e=>null!=e)})},e.functions.area=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{if((0,s.E)(a,1,2,t),a=(0,s.H)(a),(0,s.k)(a[0])){let e=await a[0].sumArea(p(a[1]),null,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}let o=a[0];if(((0,g.cy)(o)||(0,s.g)(o))&&(o=(0,c.zt)(a[0],n.spatialReference)),null===o)return 0;if(!(0,s.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("area",[o.asJsonGeometry(),(0,l.b)(o.spatialReference),p(a[1])])})},e.functions.areageodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{(0,s.E)(a,1,3,t);let o=(a=(0,s.H)(a))[0];((0,g.cy)(o)||(0,s.g)(o))&&(o=(0,c.zt)(o,n.spatialReference));let u=p(a[1]),m=(0,f.qr)(a[2]);if((0,s.k)(o)){let e=await o.sumArea(u,m,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}if(null==o)return 0;if(!(0,s.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("geodeticArea",[o.asJsonGeometry(),(0,l.b)(o.spatialReference),u,m])})},e.functions.length=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{if((0,s.E)(a,1,2,t),a=(0,s.H)(a),(0,s.k)(a[0])){let e=await a[0].sumLength(p(a[1]),null,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}let o=a[0];if(((0,g.cy)(a[0])||(0,s.g)(a[0]))&&(o=(0,c.X1)(a[0],n.spatialReference)),null===o)return 0;if(!(0,s.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("length",[o.asJsonGeometry(),(0,l.b)(o.spatialReference),p(a[1])])})},e.functions.length3d=function(n,r){return e.standardFunctionAsync(n,r,async(e,a,o)=>{if((0,s.E)(o,1,2,r),null===(o=(0,s.H)(o))[0])return 0;let u=o[0];if(((0,g.cy)(o[0])||(0,s.g)(o[0]))&&(u=(0,c.X1)(o[0],n.spatialReference)),null===u)return 0;if(!(0,s.d)(u))throw new i.D$("InvalidParameter",r);if(!0===u.hasZ){let{convertFromSpatialReferenceUnit:e,toLengthUnit:n}=await Promise.resolve().then(()=>t(88020)),r=(0,f.UI)(u);return e(u.spatialReference,n(o[1]),r)}return(0,d.C)("length",[u.asJsonGeometry(),(0,l.b)(u.spatialReference),p(o[1])])})},e.functions.lengthgeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{(0,s.E)(a,1,3,t);let o=(a=(0,s.H)(a))[0];((0,g.cy)(a[0])||(0,s.g)(a[0]))&&(o=(0,c.X1)(a[0],n.spatialReference));let u=p(a[1]),m=(0,f.qr)(a[2]);if((0,s.k)(o)){let e=await o.sumLength(u,m,n.abortSignal);if(n.abortSignal.aborted)throw new i.D$("Cancelled",t);return e}if(null===o)return 0;if(!(0,s.d)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("geodeticLength",[o.asJsonGeometry(),(0,l.b)(o.spatialReference),u,m])})},e.functions.distance=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{a=(0,s.H)(a),(0,s.E)(a,2,3,t);let o=a[0];if(((0,g.cy)(a[0])||(0,s.g)(a[0]))&&(o=(0,c.yg)(a[0],n.spatialReference)),!(0,s.d)(o))throw new i.D$("InvalidParameter",t);let u=a[1];if(((0,g.cy)(a[1])||(0,s.g)(a[1]))&&(u=(0,c.yg)(a[1],n.spatialReference)),!(0,s.d)(u))throw new i.D$("InvalidParameter",t);return(0,d.C)("distance",[o.asJsonGeometry(),u.asJsonGeometry(),(0,l.b)(o.spatialReference),p(a[2])])})},e.functions.distancegeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,s.H)(r),(0,s.E)(r,2,4,t);let a=r[0];if(!(0,s.L)(a))throw new i.D$("InvalidParameter",t);let o=r[1];if(!(0,s.L)(o))throw new i.D$("InvalidParameter",t);return(0,d.C)("geodeticDistance",[a.asJsonGeometry(),o.asJsonGeometry(),(0,l.b)(a.spatialReference),p(r[2]),(0,f.qr)(r[3])])})},e.functions.densify=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,3,t),null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);let a=(0,s.v)(r[1]);if(isNaN(a)||a<=0)throw new i.D$("InvalidParameter",t);switch(r[0].type){case"polygon":case"polyline":case"extent":return(0,m.R)(await(0,d.C)("densify",[r[0].asJsonGeometry(),(0,l.b)(r[0].spatialReference),a,p(r[2])]),r[0].spatialReference);default:return r[0]}})},e.functions.densifygeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,s.H)(r),(0,s.E)(r,2,4,t);let a=r[0];if(null==a)return null;if(!(0,s.d)(a))throw new i.D$("InvalidParameter",t);let o=(0,s.v)(r[1]);if(isNaN(o)||o<=0)throw new i.D$("InvalidParameter",t);let u=p(r[2]),c=(0,f.qr)(r[3]);switch(a.type){case"polygon":case"polyline":case"extent":return(0,m.R)(await(0,d.C)("geodeticDensify",[a.asJsonGeometry(),(0,l.b)(a.spatialReference),o,u,c]),a.spatialReference);default:return a}})},e.functions.generalize=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,4,t),null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);let a=(0,s.v)(r[1]);if(isNaN(a))throw new i.D$("InvalidParameter",t);let o=(0,s.M)((0,s.N)(r[2],!0));return(0,m.R)(await(0,d.C)("generalize",[r[0].asJsonGeometry(),(0,l.b)(r[0].spatialReference),a,p(r[3]),o]),r[0].spatialReference)})},e.functions.buffer=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,3,t),null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);let a=(0,s.v)(r[1]);if(isNaN(a))throw new i.D$("InvalidParameter",t);return 0===a?r[0].clone():(0,m.R)(await(0,d.C)("buffer",[r[0].asJsonGeometry(),(0,l.b)(r[0].spatialReference),a,p(r[2])]),r[0].spatialReference)})},e.functions.buffergeodetic=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,s.H)(r),(0,s.E)(r,2,4,t);let a=r[0];if(null==a)return null;if(!(0,s.d)(a))throw new i.D$("InvalidParameter",t);let o=(0,s.v)(r[1]);if(isNaN(o))throw new i.D$("InvalidParameter",t);if(0===o)return a.clone();let u=p(r[2]),c=(0,f.qr)(r[3]);return(0,m.R)(await(0,d.C)("geodesicBuffer",[a.asJsonGeometry(),(0,l.b)(a.spatialReference),o,u,c]),a.spatialReference)})},e.functions.offset=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,s.H)(r),(0,s.E)(r,2,6,t);let a=r[0];if(null===a)return null;if(!(0,s.d)(a)||"polygon"!==a.type&&"polyline"!==a.type)throw new i.D$("InvalidParameter",t);let o=(0,s.v)(r[1]);if(isNaN(o))throw new i.D$("InvalidParameter",t);let u=r[2],c=(0,f.ug)(r[3]),y=(0,s.v)((0,s.N)(r[4],10));if(isNaN(y))throw new i.D$("InvalidParameter",t);let h=(0,s.v)((0,s.N)(r[5],0));if(isNaN(h))throw new i.D$("InvalidParameter",t);return(0,m.R)(await(0,d.C)("offset",[a.asJsonGeometry(),(0,l.b)(a.spatialReference),o,p(u),c,y,h]),a.spatialReference)})},e.functions.rotate=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{r=(0,s.H)(r),(0,s.E)(r,2,3,t);let a=r[0];if(null===a)return null;if(!(0,s.d)(a))throw new i.D$("InvalidParameter",t);let o=(0,s.v)(r[1]);if(!Number.isFinite(o))throw new i.D$("InvalidParameter",t);let l=r[2];if(null!=l&&!(0,s.L)(l))throw new i.D$("InvalidParameter",t);let u=l?.asJsonLikeGeometry();return(0,m.R)(await(0,d.C)("rotate",[a.asJsonGeometry(),o,u?.x,u?.y]),a.spatialReference)})},e.functions.centroid=function(n,t){return e.standardFunctionAsync(n,t,async(e,r,a)=>{if(a=(0,s.H)(a),(0,s.E)(a,1,2,t),null===a[0])return null;let o=(0,f.Hz)(a[1]),l=a[0];if(((0,g.cy)(a[0])||(0,s.g)(a[0]))&&(l="geometric"===o?(0,c.yg)(a[0],n.spatialReference):(0,c.zt)(a[0],n.spatialReference),null===l))return null;if(!(0,s.d)(l))throw new i.D$("InvalidParameter",t);return"geometric"===o?(0,m.p)("point",await(0,d.C)("centroid",[l.asJsonGeometry()]),l.spatialReference):(0,m.p)("point",await(0,d.C)("labelPoint",[l.asJsonGeometry()]),l.spatialReference)})},e.functions.measuretocoordinate=function(n,t){return e.standardFunctionAsync(n,t,f.Cd)},e.functions.pointtocoordinate=function(n,t){return e.standardFunctionAsync(n,t,f.kr)},e.functions.distancetocoordinate=function(n,t){return e.standardFunctionAsync(n,t,f.Bn)},e.functions.multiparttosinglepart=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,1,1,t),null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);let a=r[0].spatialReference;return(await(0,d.C)("multiPartToSinglePart",[r[0].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])).map(e=>(0,m.R)(e,a)).filter(e=>null!=e)})},e.functions.isselfintersecting=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,t)=>{(0,s.E)(t,1,1,n);let r=(t=(0,s.H)(t))[0];if(((0,g.cy)(t[0])||(0,s.g)(t[0]))&&(r=(0,c.X1)(t[0],e.spatialReference)),null==r)return!1;if((0,s.d)(r))return await(0,d.C)("isSelfIntersecting",[r.asJsonGeometry(),(0,l.b)(r.spatialReference)]);throw new i.D$("InvalidParameter",n)})},e.functions.issimple=function(n,t){return e.standardFunctionAsync(n,t,(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,1,1,t),null===r[0])return!0;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);return(0,d.C)("isSimple",[r[0].asJsonGeometry(),(0,l.b)(r[0].spatialReference)])})},e.functions.simplify=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,1,1,t),null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);return(0,m.R)(await(0,d.C)("simplify",[r[0].asJsonGeometry(),(0,l.b)(r[0].spatialReference)]),r[0].spatialReference)})},e.functions.convexhull=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,1,1,t),null===r[0])return null;if(!(0,s.d)(r[0]))throw new i.D$("InvalidParameter",t);return(0,m.R)(await(0,d.C)("convexHull",[r[0].asJsonGeometry()]),r[0].spatialReference)})},e.functions.getuser=function(n,t){return e.standardFunctionAsync(n,t,async(e,o,l)=>{(0,s.E)(l,0,2,t);let c=(0,s.N)(l[1],""),f=!0===c;if(c=!0===c||!1===c?"":(0,s.w)(c),0===l.length||l[0]instanceof r.A){let e=(0,u.RI)(n,l.length>0?l[0]:null),t=await w(e,c,f);return null==t?null:(0,a.Tg)(JSON.parse(JSON.stringify(t)))}let d=null;if((0,s.k)(l[0])&&(d=l[0]),d){if(f=!1,c)return null;await d.load();let e=await d.getOwningSystemUrl();if(!e){if(!c){let e=await d.getIdentityUser();return null==e?null:(0,a.Tg)({username:e})}return null}let t=(0,u.RI)(n,new r.A(e)),o=await w(t,c,f);return null==o?null:(0,a.Tg)(JSON.parse(JSON.stringify(o)))}throw new i.D$("InvalidParameter",t)})},e.functions.nearestcoordinate=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,2,t),null==r[0]||null==r[1])return null;if(!(0,s.d)(r[0])||!(0,s.L)(r[1]))throw new i.D$("InvalidParameter",t);let a=await(0,d.C)("getNearestCoordinate",[r[0].asJsonGeometry(),r[1].asJsonGeometry()]);return null==a?null:o.A.createMutable({__proto__:null,coordinate:(0,m.p)("point",a.coordinate,r[0].spatialReference),distance:a.distance,sideOfLine:a.sideOfLine})})},e.functions.nearestvertex=function(n,t){return e.standardFunctionAsync(n,t,async(e,n,r)=>{if(r=(0,s.H)(r),(0,s.E)(r,2,2,t),null==r[0]||null==r[1])return null;if(!(0,s.d)(r[0])||!(0,s.L)(r[1]))throw new i.D$("InvalidParameter",t);let a=await(0,d.C)("getNearestVertex",[r[0].asJsonGeometry(),r[1].asJsonGeometry()]);return null==a?null:o.A.createMutable({__proto__:null,coordinate:(0,m.p)("point",a.coordinate,r[0].spatialReference),distance:a.distance,sideOfLine:a.sideOfLine})})})}},71163(e,n,t){t.d(n,{C:()=>s});var r=t(29953);let a,o,i=!1;function l(){return a??=(0,r.ho)("arcadeGeometryOperatorsWorker").then(e=>{o=e,i=!0,a=void 0})}async function s(e,n){return i?o.apply("invokeGeometryOp",[e,n]):(await l(),s(e,n))}},97770(e,n,t){t.d(n,{Ey:()=>F,F8:()=>$,J2:()=>b,Yq:()=>A,_m:()=>I,iS:()=>P,wj:()=>S});var r=t(66552),a=t(73444),o=t(98623),i=t(34747);const l={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},s={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},u={timeZone:"UTC"},c={year:"numeric",month:"numeric",day:"numeric"},f={year:"numeric",month:"long",day:"numeric"},d={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},y={hour:"numeric",minute:"numeric"},h={...y,second:"numeric"},w={hourCycle:"h23"},g={...y,...w},p={...h,...w},R={"short-date":c,"short-date-short-time":{...c,...y},"short-date-short-time-24":{...c,...g},"short-date-long-time":{...c,...h},"short-date-long-time-24":{...c,...p},"short-date-le":c,"short-date-le-short-time":{...c,...y},"short-date-le-short-time-24":{...c,...g},"short-date-le-long-time":{...c,...h},"short-date-le-long-time-24":{...c,...p},"long-month-day-year":f,"long-month-day-year-short-time":{...f,...y},"long-month-day-year-short-time-24":{...f,...g},"long-month-day-year-long-time":{...f,...h},"long-month-day-year-long-time-24":{...f,...p},"day-short-month-year":d,"day-short-month-year-short-time":{...d,...y},"day-short-month-year-short-time-24":{...d,...g},"day-short-month-year-long-time":{...d,...h},"day-short-month-year-long-time-24":{...d,...p},"long-date":m,"long-date-short-time":{...m,...y},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...h},"long-date-long-time-24":{...m,...p},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":y,"long-time":h},v=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),D={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"};function J(){let e=(0,a.lR)();return(e&&D[e])??(0,a.QC)()}"mart"!==new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)).find(({type:e})=>"month"===e)?.value.toLowerCase()&&(D.bs="sr-Latn-CS");let G=new WeakMap;const C=R["short-date-short-time"];function b(e){return R[e]}function I(e){let{dateStyle:n,timeStyle:t,hour12:r,year:a,month:o}=e,i={};return n?i.dateStyle=n:a&&(i.year=a,i.month=o||void 0),t&&!i.year&&(i.timeStyle=t,i.hour12="auto"===r?void 0:"always"===r),i}function A(e,n=C){return function(e){let n=G.get(e);if(!n){let t=J(),r=S(e.timeZone??"system"),a={...e,timeZone:r};n=new Intl.DateTimeFormat(t,a),G.set(e,n)}return n}(n).format(e)}function P(e,n=C){return A(new Date(e),{...n,...u,...s})}function $(e,n=C){return A(new Date(`1970-01-01T${e}Z`),{...n,...u,...l})}function F(e,n=C){let t=i.c9.fromISO(e,{setZone:!0});if(!t.isValid)return e;if(n.timeZone)return A(t.toJSDate(),n);let r=0===t.offset?"UTC":n.timeZone,a={...n,timeZone:r};return t.toLocaleString(a,{locale:J()})}function S(e){switch(e){case"system":return o.N;case o.L:return"UTC";default:return e}}(0,a.Ml)(()=>{G=new WeakMap}),t.d(n,["_v",0,v])}}]);
@@ -26,4 +26,4 @@ return vec4(delinearizeGamma(color.rgb), color.a);
26
26
  }
27
27
  vec3 linearizeGamma(vec3 color) {
28
28
  return pow(color, vec3(GAMMA));
29
- }`)}},40710(e,t,r){r.d(t,{W:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"vec3",2,(o,n,i,a)=>o.setUniform3fv(e,t(n,i,a),r))}}},33079(e,t,r){r.d(t,{t:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"vec3",1,(o,n,i)=>o.setUniform3fv(e,t(n,i),r))}}},28421(e,t,r){r.d(t,{J:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"float",2,(o,n,i)=>o.setUniform1f(e,t(n,i),r))}}},20304(e,t,r){r.d(t,{m:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"float",1,(o,n,i)=>o.setUniform1f(e,t(n,i),r))}}},15976(e,t,r){r.d(t,{o:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"sampler2D",2,(o,n,i)=>o.bindTexture(e,t(n,i),r?.(n,i)))}}},63761(e,t,r){r.d(t,{N:()=>n});var o=r(74333);class n extends o.n{constructor(e,t){super(e,"sampler2D",1,(r,o,n)=>r.bindTexture(e,t(o,n)))}}},31821(e,t,r){r.d(t,{If:()=>n});const o=(e,...t)=>{let r="";for(let o=0;o<t.length;o++)r+=e[o]+t[o];return r+=e[e.length-1],r};function n(e,t,r=""){return e?t:r}o.int=e=>e.toFixed(),o.uint=e=>`${Math.max(0,e).toFixed()}u`,o.hexuint=e=>`0x${Math.round(Math.max(0,e)).toString(16)}u`,o.float=e=>e.toPrecision(8),r.d(t,["H",0,o])},51976(e,t,r){r.d(t,{K:()=>s,W:()=>l});var o=r(49186),n=r(4576);class i{constructor(e){this._bits=[...e]}equals(e){return(0,n.aI)(this._bits,e.bits)}get code(){return this._code??=String.fromCharCode(...this._bits),this._code}get bits(){return this._bits}}var a=r(65786);class s extends a.Y{constructor(){super(),this._parameterBits=this._parameterBits?.map(()=>0)??[],this._parameterNames??=[]}get key(){return this._key??=new i(this._parameterBits),this._key}decode(e=this.key){let t=this._parameterBits;this._parameterBits=[...e.bits];let r=this._parameterNames.map(e=>` ${e}: ${this[e]}`).join("\n");return this._parameterBits=t,r}}function l(e={}){return(t,r)=>{t.hasOwnProperty("_parameterNames")||Object.defineProperty(t,"_parameterNames",{value:t._parameterNames?.slice()??[],configurable:!0,writable:!0}),t.hasOwnProperty("_parameterBits")||Object.defineProperty(t,"_parameterBits",{value:t._parameterBits?.slice()??[0],configurable:!0,writable:!0}),t._parameterNames.push(r);let n=e.count||2,i=Math.ceil(Math.log2(n)),a=t._parameterBits,s=0;for(;a[s]+i>16;)s++,s>=a.length&&a.push(0);let l=a[s],u=(1<<i)-1<<l;a[s]+=i,e.count?Object.defineProperty(t,r,{get(){return(this._parameterBits[s]&u)>>l},set(t){let n=this._parameterBits[s];if((n&u)>>l!==t){if(this._key=null,this._parameterBits[s]=n&~u|+t<<l&u,"number"!=typeof t)throw new o.A("internal:invalid-shader-configuration",`Configuration value for ${r} must be a number, got ${typeof t}`);if(null==e.count)throw new o.A("internal:invalid-shader-configuration",`Configuration value for ${r} must provide a count option`)}}}):Object.defineProperty(t,r,{get(){return!!((this._parameterBits[s]&u)>>l)},set(e){let t=this._parameterBits[s];if(!!((t&u)>>l)!==e&&(this._key=null,this._parameterBits[s]=t&~u|+e<<l,"boolean"!=typeof e))throw new o.A("internal:invalid-shader-configurationx",`Configuration value for ${r} must be boolean, got ${typeof e}`)}})}}},72458(e,t,r){r.d(t,{C:()=>i,O:()=>a});var o=r(32198),n=r(51976);class i extends n.K{constructor(){super(...arguments),this.useFloatBlend=!0}}function a(e,t){t.useFloatBlend?(e.constants.add("floatBlendOutputScale","float",1),e.constants.add("floatBlendInputScale","float",1)):(e.constants.add("floatBlendOutputScale","float",1/16),e.constants.add("floatBlendInputScale","float",16)),e.constants.add("maxEmissiveStrength","float",16)}(0,o.Cg)([(0,n.W)()],i.prototype,"useFloatBlend",void 0)},65786(e,t,r){const o=class{};new o,r.d(t,["Y",0,o])},74333(e,t,r){r.d(t,{n:()=>o});class o{constructor(e,t,r,o,n=null){if(this.name=e,this.type=t,this.arraySize=n,this.bind={0:null,1:null,2:null},o)switch(r){case void 0:break;case 0:this.bind[0]=o;break;case 1:this.bind[1]=o;break;case 2:this.bind[2]=o}}equals(e){return this.type===e.type&&this.name===e.name&&this.arraySize===e.arraySize}}},91682(e,t,r){r.d(t,{S:()=>l,r:()=>s});var o=r(49186),n=r(17676),i=r(13069),a=r(15804);async function s(e,t,r){await c(await u(e,t,r),t,r)}async function l(e,t,r,o,n){let i=await u(r,o,n);await e.update({data:t}),await c(i,o,n)}async function u(e,t,s){if(!t?.resources)return;let l=function(e,t){let{portalItem:r,portalItemResourcePath:o}=e,{portalItem:n,portalItemResourcePath:i}=t;return r===n&&(!(o||i)||o===i)}(e,t)?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem,e.portalItemResourcePath=t.portalItemResourcePath;let u=new Set(t.resources.toKeep.map(e=>e.resource.path)),c=new Set,d=[];u.forEach(t=>{l.delete(t),e.paths.push(t)});let p=[],f=[],h=[];for(let r of t.resources.toUpdate)if(l.delete(r.resource.path),u.has(r.resource.path)||c.has(r.resource.path)){let{resource:t,content:o,finish:n}=r,s=(0,a.bg)(t,(0,i.lk)());e.paths.push(s.path),p.push({resource:s,content:await(0,a.cL)(o),compress:r.compress}),n&&h.push(()=>n(s))}else{e.paths.push(r.resource.path),f.push({resource:r.resource,content:await(0,a.cL)(r.content),compress:r.compress});let t=r.finish;t&&h.push(()=>t(r.resource)),c.add(r.resource.path)}for(let r of t.resources.toAdd)if(e.paths.push(r.resource.path),l.has(r.resource.path))l.delete(r.resource.path);else{p.push({resource:r.resource,content:await(0,a.cL)(r.content),compress:r.compress});let e=r.finish;e&&h.push(()=>e(r.resource))}if(p.length||f.length){let{addOrUpdateResources:e}=await Promise.resolve().then(()=>r(15804));await e(t.portalItem,p,"add",s),await e(t.portalItem,f,"update",s)}if(h.forEach(e=>e()),0===d.length)return l;let y=await(0,n.Ol)(d);if((0,n.Te)(s),y.length>0)throw new o.A("save:resources","Failed to save one or more resources",{errors:y});return l}async function c(e,t,r){if(!e||!t.portalItem)return;let o=[];for(let n of e){let e=t.portalItem.resourceFromPath(n);o.push(e.portalItem.removeResource(e,r))}await(0,n.Lx)(o)}},26121(e,t,r){r.d(t,{I6:()=>l,ci:()=>s,dL:()=>a});var o=r(49186),n=r(77548),i=r(59923);async function a(e){let t=[];for(let r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function s(e,t,r){let n=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new o.A(e,t,r));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map(e=>(0,i.GL)("url",`Relative url '${e}' is not supported`)))),r){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:o}=r;e&&(n=n.filter(({name:e})=>!(i.MG.has(e)||t.includes(e)))),o&&(n=n.filter(e=>"web-document-write:property-required"!==e.name))}if(n.length>0)throw new o.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}function l(e){return(0,n.qd)(e).some(e=>!!e.charts?.length)}}}]);
29
+ }`)}},40710(e,t,r){r.d(t,{W:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"vec3",2,(o,n,i,a)=>o.setUniform3fv(e,t(n,i,a),r))}}},33079(e,t,r){r.d(t,{t:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"vec3",1,(o,n,i)=>o.setUniform3fv(e,t(n,i),r))}}},28421(e,t,r){r.d(t,{J:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"float",2,(o,n,i)=>o.setUniform1f(e,t(n,i),r))}}},20304(e,t,r){r.d(t,{m:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"float",1,(o,n,i)=>o.setUniform1f(e,t(n,i),r))}}},15976(e,t,r){r.d(t,{o:()=>n});var o=r(74333);class n extends o.n{constructor(e,t,r){super(e,"sampler2D",2,(o,n,i)=>o.bindTexture(e,t(n,i),r?.(n,i)))}}},63761(e,t,r){r.d(t,{N:()=>n});var o=r(74333);class n extends o.n{constructor(e,t){super(e,"sampler2D",1,(r,o,n)=>r.bindTexture(e,t(o,n)))}}},31821(e,t,r){r.d(t,{If:()=>n});const o=(e,...t)=>{let r="";for(let o=0;o<t.length;o++)r+=e[o]+t[o];return r+=e[e.length-1],r};function n(e,t,r=""){return e?t:r}o.int=e=>e.toFixed(),o.uint=e=>`${Math.max(0,e).toFixed()}u`,o.hexuint=e=>`0x${Math.round(Math.max(0,e)).toString(16)}u`,o.float=e=>e.toPrecision(8),r.d(t,["H",0,o])},51976(e,t,r){r.d(t,{K:()=>s,W:()=>l});var o=r(49186),n=r(4576);class i{constructor(e){this._bits=[...e]}equals(e){return(0,n.aI)(this._bits,e.bits)}get code(){return this._code??=String.fromCharCode(...this._bits),this._code}get bits(){return this._bits}}var a=r(65786);class s extends a.Y{constructor(){super(),this._parameterBits=this._parameterBits?.map(()=>0)??[],this._parameterNames??=[]}get key(){return this._key??=new i(this._parameterBits),this._key}decode(e=this.key){let t=this._parameterBits;this._parameterBits=[...e.bits];let r=this._parameterNames.map(e=>` ${e}: ${this[e]}`).join("\n");return this._parameterBits=t,r}}function l(e={}){return(t,r)=>{t.hasOwnProperty("_parameterNames")||Object.defineProperty(t,"_parameterNames",{value:t._parameterNames?.slice()??[],configurable:!0,writable:!0}),t.hasOwnProperty("_parameterBits")||Object.defineProperty(t,"_parameterBits",{value:t._parameterBits?.slice()??[0],configurable:!0,writable:!0}),t._parameterNames.push(r);let n=e.count||2,i=Math.ceil(Math.log2(n)),a=t._parameterBits,s=0;for(;a[s]+i>16;)s++,s>=a.length&&a.push(0);let l=a[s],u=(1<<i)-1<<l;a[s]+=i,e.count?Object.defineProperty(t,r,{get(){return(this._parameterBits[s]&u)>>l},set(t){let n=this._parameterBits[s];if((n&u)>>l!==t){if(this._key=null,this._parameterBits[s]=n&~u|+t<<l&u,"number"!=typeof t)throw new o.A("internal:invalid-shader-configuration",`Configuration value for ${r} must be a number, got ${typeof t}`);if(null==e.count)throw new o.A("internal:invalid-shader-configuration",`Configuration value for ${r} must provide a count option`)}}}):Object.defineProperty(t,r,{get(){return!!((this._parameterBits[s]&u)>>l)},set(e){let t=this._parameterBits[s];if(!!((t&u)>>l)!==e&&(this._key=null,this._parameterBits[s]=t&~u|+e<<l,"boolean"!=typeof e))throw new o.A("internal:invalid-shader-configurationx",`Configuration value for ${r} must be boolean, got ${typeof e}`)}})}}},72458(e,t,r){r.d(t,{O:()=>a});var o=r(32198),n=r(51976);class i extends n.K{constructor(){super(...arguments),this.useFloatBlend=!0}}function a(e,t){t.useFloatBlend?(e.constants.add("floatBlendOutputScale","float",1),e.constants.add("floatBlendInputScale","float",1)):(e.constants.add("floatBlendOutputScale","float",1/16),e.constants.add("floatBlendInputScale","float",16)),e.constants.add("maxEmissiveStrength","float",16)}(0,o.Cg)([(0,n.W)()],i.prototype,"useFloatBlend",void 0)},65786(e,t,r){const o=class{};new o,r.d(t,["Y",0,o])},74333(e,t,r){r.d(t,{n:()=>o});class o{constructor(e,t,r,o,n=null){if(this.name=e,this.type=t,this.arraySize=n,this.bind={0:null,1:null,2:null},o)switch(r){case void 0:break;case 0:this.bind[0]=o;break;case 1:this.bind[1]=o;break;case 2:this.bind[2]=o}}equals(e){return this.type===e.type&&this.name===e.name&&this.arraySize===e.arraySize}}},91682(e,t,r){r.d(t,{S:()=>l,r:()=>s});var o=r(49186),n=r(17676),i=r(13069),a=r(15804);async function s(e,t,r){await c(await u(e,t,r),t,r)}async function l(e,t,r,o,n){let i=await u(r,o,n);await e.update({data:t}),await c(i,o,n)}async function u(e,t,s){if(!t?.resources)return;let l=function(e,t){let{portalItem:r,portalItemResourcePath:o}=e,{portalItem:n,portalItemResourcePath:i}=t;return r===n&&(!(o||i)||o===i)}(e,t)?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem,e.portalItemResourcePath=t.portalItemResourcePath;let u=new Set(t.resources.toKeep.map(e=>e.resource.path)),c=new Set,d=[];u.forEach(t=>{l.delete(t),e.paths.push(t)});let p=[],f=[],h=[];for(let r of t.resources.toUpdate)if(l.delete(r.resource.path),u.has(r.resource.path)||c.has(r.resource.path)){let{resource:t,content:o,finish:n}=r,s=(0,a.bg)(t,(0,i.lk)());e.paths.push(s.path),p.push({resource:s,content:await(0,a.cL)(o),compress:r.compress}),n&&h.push(()=>n(s))}else{e.paths.push(r.resource.path),f.push({resource:r.resource,content:await(0,a.cL)(r.content),compress:r.compress});let t=r.finish;t&&h.push(()=>t(r.resource)),c.add(r.resource.path)}for(let r of t.resources.toAdd)if(e.paths.push(r.resource.path),l.has(r.resource.path))l.delete(r.resource.path);else{p.push({resource:r.resource,content:await(0,a.cL)(r.content),compress:r.compress});let e=r.finish;e&&h.push(()=>e(r.resource))}if(p.length||f.length){let{addOrUpdateResources:e}=await Promise.resolve().then(()=>r(15804));await e(t.portalItem,p,"add",s),await e(t.portalItem,f,"update",s)}if(h.forEach(e=>e()),0===d.length)return l;let y=await(0,n.Ol)(d);if((0,n.Te)(s),y.length>0)throw new o.A("save:resources","Failed to save one or more resources",{errors:y});return l}async function c(e,t,r){if(!e||!t.portalItem)return;let o=[];for(let n of e){let e=t.portalItem.resourceFromPath(n);o.push(e.portalItem.removeResource(e,r))}await(0,n.Lx)(o)}},26121(e,t,r){r.d(t,{I6:()=>l,ci:()=>s,dL:()=>a});var o=r(49186),n=r(77548),i=r(59923);async function a(e){let t=[];for(let r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){let e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}function s(e,t,r){let n=(e.messages??[]).filter(({type:e})=>"error"===e).map(({name:e,message:t,details:r})=>new o.A(e,t,r));if(e.blockedRelativeUrls&&(n=n.concat(e.blockedRelativeUrls.map(e=>(0,i.GL)("url",`Relative url '${e}' is not supported`)))),r){let{ignoreUnsupported:e,supplementalUnsupportedErrors:t=[],requiredPropertyChecksDisabled:o}=r;e&&(n=n.filter(({name:e})=>!(i.MG.has(e)||t.includes(e)))),o&&(n=n.filter(e=>"web-document-write:property-required"!==e.name))}if(n.length>0)throw new o.A(t.errorName,"Failed to save due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:n})}function l(e){return(0,n.qd)(e).some(e=>!!e.charts?.length)}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5992],{32198(t,e,n){function r(t,e,n,r){var o,a=arguments.length,u=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,n,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(u=(a<3?o(u):a>3?o(e,n,u):o(e,n))||u);return a>3&&u&&Object.defineProperty(e,n,u),u}function o(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r,o;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&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.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:()=>u,mS:()=>o}),Object.create,Object.create;var a="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 u(t){function e(e){t.error=t.hasError?new a(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}var n,r=0;return function o(){for(;n=t.stack.pop();)try{if(!n.async&&1===r)return r=0,t.stack.push(n),Promise.resolve().then(o);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(o,function(t){return e(t),o()})}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}()}},69540(t,e,n){var r=n(32198),o=n(69622),a=(n(44208),n(4718)),u=(n(53966),n(97768)),i=n(88620),l=n(64108);const c=Symbol("ClonableMixin"),s=t=>{var e;let n=t,o=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=c}clone(t){let e=(0,i.oY)(this);(0,u.Lw)(e,"unable to clone instance of non-accessor class");let n=e.metadata,r=e.store,o={},l=new Map;for(let e in n){let u=n[e],i=r?.originOf(e),c=u.clonable;if(u.readOnly||!1===c||7!==i&&0!==i&&5!==i&&4!==i)continue;let s=this[e],f=null;if("function"==typeof c)f=c(s,t);else if("reference"===c)f=s;else if(f=(0,a.TU)(s,t),null!=s&&null==f)continue;0===i?l.set(e,f):o[e]=f}let c=new(0,Object.getPrototypeOf(this).constructor)(o);if(l.size){let t=(0,i.oY)(c)?.store;if(t)for(let[e,n]of l)t.set(e,n,0)}return c}};return o=(0,r.Cg)([(0,l.$)("esri.core.Clonable")],o),o},f=s(o.A);n.d(e,["OU",0,s,"Pw",0,f])},29242(t,e,n){function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,e,n,r,o,a,u,i,l){return[t,e,n,r,o,a,u,i,l]}n.d(e,{fA:()=>o,vt:()=>r});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b){return[t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,a])},48163(t,e,n){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function a(t,e){return[t,e]}function u(){return a(1,1)}function i(){return a(-1,-1)}function l(){return a(1,0)}function c(){return a(0,1)}n.d(e,{fA:()=>a,o8:()=>o,vt:()=>r});const s=u(),f=i(),h=l(),M=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:f,ONES:s,UNIT_X:h,UNIT_Y:M,ZEROS:[0,0],clone:o,create:r,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:a,negativeOnes:i,ones:u,unitX:l,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["IA",0,f,"Un",0,s])},51850(t,e,n){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,e,n){return[t,e,n]}function u(t,e,n){return[t,e,n]}function i(t,e=[0,0,0]){let n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function l(){return a(1,1,1)}function c(){return a(1,0,0)}function s(){return a(0,1,0)}function f(){return a(0,0,1)}n.d(e,{CN:()=>u,ci:()=>i,fA:()=>a,o8:()=>o,vt:()=>r});const h=[0,0,0],M=l(),d=c(),b=s(),m=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:M,UNIT_X:d,UNIT_Y:b,UNIT_Z:m,ZEROS:h,clone:o,create:r,freeze:u,fromArray:i,fromValues:a,ones:l,unitX:c,unitY:s,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,m,"Cw",0,d,"JP",0,b,"Un",0,M,"uY",0,h])},91829(t,e,n){function r(){return[0,0,0,0]}function o(t,e,n,r){return[t,e,n,r]}function a(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function i(){return o(0,1,0,0)}function l(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}n.d(e,{_Y:()=>c,fA:()=>o,vt:()=>r});const s=[0,0,0,0],f=a(),h=u(),M=i(),d=l(),b=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:b,UNIT_X:h,UNIT_Y:M,UNIT_Z:d,ZEROS:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,e,n,r){return[t,e,n,r]},fromArray:function(t,e=[0,0,0,0]){let n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:o,ones:a,unitW:c,unitX:u,unitY:i,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Un",0,f,"uY",0,s])},34304(t,e,n){n.d(e,{DF:()=>l,FD:()=>o,ct:()=>c});let r=1e-6;function o(){return r}const a=Math.random,u=Math.PI/180,i=180/Math.PI;function l(t){return t*u}function c(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:l},Symbol.toStringTag,{value:"Module"})),n.d(e,["Ov",0,a])},77690(t,e,n){n.d(e,{B8:()=>i,Ge:()=>M,I0:()=>h,KC:()=>l,a4:()=>c,hZ:()=>a,hs:()=>f,lw:()=>s,mg:()=>u,z0:()=>o});var r=n(34304);function o(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 a(t,e,n,r,o,a,u,i,l,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=l,t[8]=c,t}function u(t,e){if(t===e){let n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}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 i(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=s*u-i*c,h=-s*a+i*l,M=c*a-u*l,d=n*f+r*h+o*M;return d?(d=1/d,t[0]=f*d,t[1]=(-s*r+o*c)*d,t[2]=(i*r-o*u)*d,t[3]=h*d,t[4]=(s*n-o*l)*d,t[5]=(-i*n+o*a)*d,t[6]=M*d,t[7]=(-c*n+r*l)*d,t[8]=(u*n-r*a)*d,t):null}function l(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8];return t[0]=u*s-i*c,t[1]=o*c-r*s,t[2]=r*i-o*u,t[3]=i*l-a*s,t[4]=n*s-o*l,t[5]=o*a-n*i,t[6]=a*c-u*l,t[7]=r*l-n*c,t[8]=n*u-r*a,t}function c(t){let e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],l=t[7],c=t[8];return e*(c*a-u*l)+n*(-c*o+u*i)+r*(l*o-a*i)}function s(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=n[0],M=n[1],d=n[2],b=n[3],m=n[4],p=n[5],g=n[6],y=n[7],w=n[8];return t[0]=h*r+M*u+d*c,t[1]=h*o+M*i+d*s,t[2]=h*a+M*l+d*f,t[3]=b*r+m*u+p*c,t[4]=b*o+m*i+p*s,t[5]=b*a+m*l+p*f,t[6]=g*r+y*u+w*c,t[7]=g*o+y*i+w*s,t[8]=g*a+y*l+w*f,t}function f(t,e,n){let r=n[0],o=n[1],a=n[2];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=a*e[6],t[7]=a*e[7],t[8]=a*e[8],t}function h(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n+n,i=r+r,l=o+o,c=n*u,s=r*u,f=r*i,h=o*u,M=o*i,d=o*l,b=a*u,m=a*i,p=a*l;return t[0]=1-f-d,t[3]=s-p,t[6]=h+m,t[1]=s+p,t[4]=1-c-d,t[7]=M-b,t[2]=h-m,t[5]=M+b,t[8]=1-c-f,t}function M(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15],g=n*i-r*u,y=n*l-o*u,w=n*c-a*u,v=r*l-o*i,A=r*c-a*i,S=o*c-a*l,I=s*b-f*d,C=s*m-h*d,O=s*p-M*d,T=f*m-h*b,U=f*p-M*b,x=h*p-M*m,E=g*x-y*U+w*T+v*O-A*C+S*I;return E?(E=1/E,t[0]=(i*x-l*U+c*T)*E,t[1]=(l*O-u*x-c*C)*E,t[2]=(u*U-i*O+c*I)*E,t[3]=(o*U-r*x-a*T)*E,t[4]=(n*x-o*O+a*C)*E,t[5]=(r*O-n*U-a*I)*E,t[6]=(b*S-m*A+p*v)*E,t[7]=(m*w-d*S-p*y)*E,t[8]=(d*A-b*w+p*g)*E,t):null}function d(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}const b=s,m=d;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},adjoint:l,copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},determinant:c,equals:function(t,e){let n=t[0],o=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8],h=e[0],M=e[1],d=e[2],b=e[3],m=e[4],p=e[5],g=e[6],y=e[7],w=e[8],v=(0,r.FD)();return Math.abs(n-h)<=v*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(o-M)<=v*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(a-d)<=v*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(u-b)<=v*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(i-m)<=v*Math.max(1,Math.abs(i),Math.abs(m))&&Math.abs(l-p)<=v*Math.max(1,Math.abs(l),Math.abs(p))&&Math.abs(c-g)<=v*Math.max(1,Math.abs(c),Math.abs(g))&&Math.abs(s-y)<=v*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(f-w)<=v*Math.max(1,Math.abs(f),Math.abs(w))},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:o,fromQuat:h,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:i,isOrthoNormal:function(t){let e=(0,r.FD)(),n=t[0],o=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8];return Math.abs(1-(n*n+u*u+c*c))<=e&&Math.abs(1-(o*o+i*i+s*s))<=e&&Math.abs(1-(a*a+l*l+f*f))<=e},mul:b,multiply:s,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:M,normalFromMat4Legacy:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[4],u=e[5],i=e[6],l=e[8],c=e[9],s=e[10],f=s*u-i*c,h=-s*a+i*l,M=c*a-u*l,d=n*f+r*h+o*M;if(!d)return null;let b=1/d;return t[0]=f*b,t[1]=(-s*r+o*c)*b,t[2]=(i*r-o*u)*b,t[3]=h*b,t[4]=(s*n-o*l)*b,t[5]=(-i*n+o*a)*b,t[6]=M*b,t[7]=(-c*n+r*l)*b,t[8]=(u*n-r*a)*b,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],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=Math.sin(n),M=Math.cos(n);return t[0]=M*r+h*u,t[1]=M*o+h*i,t[2]=M*a+h*l,t[3]=M*u-h*r,t[4]=M*i-h*o,t[5]=M*l-h*a,t[6]=c,t[7]=s,t[8]=f,t},scale:f,scaleByVec2:function(t,e,n){let r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:m,subtract:d,translate:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=n[0],M=n[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=i,t[5]=l,t[6]=h*r+M*u+c,t[7]=h*o+M*i+s,t[8]=h*a+M*l+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},58083(t,e,n){n.d(e,{$0:()=>p,$h:()=>T,B8:()=>s,C:()=>a,D_:()=>i,N9:()=>y,O7:()=>O,Qw:()=>c,Tl:()=>h,X_:()=>S,e$:()=>d,eL:()=>b,hM:()=>g,hZ:()=>u,hs:()=>M,kN:()=>m,l:()=>I,lw:()=>f,mg:()=>l,o1:()=>C,sC:()=>A,t2:()=>E,t5:()=>U,tZ:()=>_,ut:()=>F});var r=n(51850),o=n(34304);function a(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 u(t,e,n,r,o,a,u,i,l,c,s,f,h,M,d,b,m){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=l,t[8]=c,t[9]=s,t[10]=f,t[11]=h,t[12]=M,t[13]=d,t[14]=b,t[15]=m,t}function i(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 l(t,e){if(t===e){let n=e[1],r=e[2],o=e[3],a=e[6],u=e[7],i=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=o,t[13]=u,t[14]=i}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 c(t,e){return s(t,e)||i(t),t}function s(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15],g=n*i-r*u,y=n*l-o*u,w=n*c-a*u,v=r*l-o*i,A=r*c-a*i,S=o*c-a*l,I=s*b-f*d,C=s*m-h*d,O=s*p-M*d,T=f*m-h*b,U=f*p-M*b,x=h*p-M*m,E=g*x-y*U+w*T+v*O-A*C+S*I;return E?(E=1/E,t[0]=(i*x-l*U+c*T)*E,t[1]=(o*U-r*x-a*T)*E,t[2]=(b*S-m*A+p*v)*E,t[3]=(h*A-f*S-M*v)*E,t[4]=(l*O-u*x-c*C)*E,t[5]=(n*x-o*O+a*C)*E,t[6]=(m*w-d*S-p*y)*E,t[7]=(s*S-h*w+M*y)*E,t[8]=(u*U-i*O+c*I)*E,t[9]=(r*O-n*U-a*I)*E,t[10]=(d*A-b*w+p*g)*E,t[11]=(f*w-s*A-M*g)*E,t[12]=(i*C-u*T-l*I)*E,t[13]=(n*T-r*C+o*I)*E,t[14]=(b*y-d*v-m*g)*E,t[15]=(s*v-f*y+h*g)*E,t):null}function f(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=e[8],h=e[9],M=e[10],d=e[11],b=e[12],m=e[13],p=e[14],g=e[15],y=n[0],w=n[1],v=n[2],A=n[3];return t[0]=y*r+w*i+v*f+A*b,t[1]=y*o+w*l+v*h+A*m,t[2]=y*a+w*c+v*M+A*p,t[3]=y*u+w*s+v*d+A*g,y=n[4],w=n[5],v=n[6],A=n[7],t[4]=y*r+w*i+v*f+A*b,t[5]=y*o+w*l+v*h+A*m,t[6]=y*a+w*c+v*M+A*p,t[7]=y*u+w*s+v*d+A*g,y=n[8],w=n[9],v=n[10],A=n[11],t[8]=y*r+w*i+v*f+A*b,t[9]=y*o+w*l+v*h+A*m,t[10]=y*a+w*c+v*M+A*p,t[11]=y*u+w*s+v*d+A*g,y=n[12],w=n[13],v=n[14],A=n[15],t[12]=y*r+w*i+v*f+A*b,t[13]=y*o+w*l+v*h+A*m,t[14]=y*a+w*c+v*M+A*p,t[15]=y*u+w*s+v*d+A*g,t}function h(t,e,n){let r=n[0],o=n[1],a=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*a+e[12],t[13]=e[1]*r+e[5]*o+e[9]*a+e[13],t[14]=e[2]*r+e[6]*o+e[10]*a+e[14],t[15]=e[3]*r+e[7]*o+e[11]*a+e[15];else{let n=e[0],u=e[1],i=e[2],l=e[3],c=e[4],s=e[5],f=e[6],h=e[7],M=e[8],d=e[9],b=e[10],m=e[11];t[0]=n,t[1]=u,t[2]=i,t[3]=l,t[4]=c,t[5]=s,t[6]=f,t[7]=h,t[8]=M,t[9]=d,t[10]=b,t[11]=m,t[12]=n*r+c*o+M*a+e[12],t[13]=u*r+s*o+d*a+e[13],t[14]=i*r+f*o+b*a+e[14],t[15]=l*r+h*o+m*a+e[15]}return t}function M(t,e,n){let r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let u=r[0],i=r[1],l=r[2],c=Math.sqrt(u*u+i*i+l*l);if(c<=(0,o.FD)())return void a(t,e);c=1/c,u*=c,i*=c,l*=c;let s=Math.sin(n),f=Math.cos(n),h=1-f,M=e[0],d=e[1],b=e[2],m=e[3],p=e[4],g=e[5],y=e[6],w=e[7],v=e[8],A=e[9],S=e[10],I=e[11],C=u*u*h+f,O=i*u*h+l*s,T=l*u*h-i*s,U=u*i*h-l*s,x=i*i*h+f,E=l*i*h+u*s,F=u*l*h+i*s,_=i*l*h-u*s,P=l*l*h+f;t[0]=M*C+p*O+v*T,t[1]=d*C+g*O+A*T,t[2]=b*C+y*O+S*T,t[3]=m*C+w*O+I*T,t[4]=M*U+p*x+v*E,t[5]=d*U+g*x+A*E,t[6]=b*U+y*x+S*E,t[7]=m*U+w*x+I*E,t[8]=M*F+p*_+v*P,t[9]=d*F+g*_+A*P,t[10]=b*F+y*_+S*P,t[11]=m*F+w*_+I*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function b(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[4],u=e[5],i=e[6],l=e[7],c=e[8],s=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*o+c*r,t[5]=u*o+s*r,t[6]=i*o+f*r,t[7]=l*o+h*r,t[8]=c*o-a*r,t[9]=s*o-u*r,t[10]=f*o-i*r,t[11]=h*o-l*r,t}function m(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function p(t,e,n){if(0===e)return i(t);let r=n[0],a=n[1],u=n[2],l=Math.sqrt(r*r+a*a+u*u);if(l<=(0,o.FD)())return null;l=1/l,r*=l,a*=l,u*=l;let c=Math.sin(e),s=Math.cos(e),f=1-s;return t[0]=r*r*f+s,t[1]=a*r*f+u*c,t[2]=u*r*f-a*c,t[3]=0,t[4]=r*a*f-u*c,t[5]=a*a*f+s,t[6]=u*a*f+r*c,t[7]=0,t[8]=r*u*f+a*c,t[9]=a*u*f-r*c,t[10]=u*u*f+s,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(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 y(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 w(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3],i=r+r,l=o+o,c=a+a,s=r*i,f=r*l,h=r*c,M=o*l,d=o*c,b=a*c,m=u*i,p=u*l,g=u*c;return t[0]=1-(M+b),t[1]=f+g,t[2]=h-p,t[3]=0,t[4]=f-g,t[5]=1-(s+b),t[6]=d+m,t[7]=0,t[8]=h+p,t[9]=d-m,t[10]=1-(s+M),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function A(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],o=e[2],a=e[4],u=e[5],i=e[6],l=e[8],c=e[9],s=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(a*a+u*u+i*i),t[2]=Math.sqrt(l*l+c*c+s*s),t}function I(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 C(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=e[3],l=o+o,c=a+a,s=u+u,f=o*l,h=o*c,M=o*s,d=a*c,b=a*s,m=u*s,p=i*l,g=i*c,y=i*s,w=r[0],v=r[1],A=r[2];return t[0]=(1-(d+m))*w,t[1]=(h+y)*w,t[2]=(M-g)*w,t[3]=0,t[4]=(h-y)*v,t[5]=(1-(f+m))*v,t[6]=(b+p)*v,t[7]=0,t[8]=(M+g)*A,t[9]=(b-p)*A,t[10]=(1-(f+d))*A,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function O(t,e,n,r,o){let a=e[0],u=e[1],i=e[2],l=e[3],c=a+a,s=u+u,f=i+i,h=a*c,M=a*s,d=a*f,b=u*s,m=u*f,p=i*f,g=l*c,y=l*s,w=l*f,v=r[0],A=r[1],S=r[2],I=o[0],C=o[1],O=o[2],T=(1-(b+p))*v,U=(M+w)*v,x=(d-y)*v,E=(M-w)*A,F=(1-(h+p))*A,_=(m+g)*A,P=(d+y)*S,q=(m-g)*S,D=(1-(h+b))*S;return t[0]=T,t[1]=U,t[2]=x,t[3]=0,t[4]=E,t[5]=F,t[6]=_,t[7]=0,t[8]=P,t[9]=q,t[10]=D,t[11]=0,t[12]=n[0]+I-(T*I+E*C+P*O),t[13]=n[1]+C-(U*I+F*C+q*O),t[14]=n[2]+O-(x*I+_*C+D*O),t[15]=1,t}function T(t,e,n,r,o,a,u){let i=1/(n-e),l=1/(o-r),c=1/(a-u);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(n+e)*i,t[9]=(o+r)*l,t[10]=(u+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*a*2*c,t[15]=0,t}function U(t,e,n,r){let a=e[0],u=e[1],l=e[2],c=a-n[0],s=u-n[1],f=l-n[2],h=(0,o.FD)();if(Math.abs(c)<h&&Math.abs(s)<h&&Math.abs(f)<h)return void i(t);let M=1/Math.sqrt(c*c+s*s+f*f);c*=M,s*=M,f*=M;let d=r[0],b=r[1],m=r[2],p=b*f-m*s,g=m*c-d*f,y=d*s-b*c;M=Math.sqrt(p*p+g*g+y*y),M?(M=1/M,p*=M,g*=M,y*=M):(p=0,g=0,y=0);let w=s*y-f*g,v=f*p-c*y,A=c*g-s*p;M=Math.sqrt(w*w+v*v+A*A),M?(M=1/M,w*=M,v*=M,A*=M):(w=0,v=0,A=0),t[0]=p,t[1]=w,t[2]=c,t[3]=0,t[4]=g,t[5]=v,t[6]=s,t[7]=0,t[8]=y,t[9]=A,t[10]=f,t[11]=0,t[12]=-(p*a+g*u+y*l),t[13]=-(w*a+v*u+A*l),t[14]=-(c*a+s*u+f*l),t[15]=1}function x(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function E(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 F(t){let e=(0,o.FD)(),n=t[0],r=t[1],a=t[2],u=t[4],i=t[5],l=t[6],c=t[8],s=t[9],f=t[10];return Math.abs(1-(n*n+u*u+c*c))<=e&&Math.abs(1-(r*r+i*i+s*s))<=e&&Math.abs(1-(a*a+l*l+f*f))<=e}function _(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=f,q=x;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=e[4],i=e[5],l=e[6],c=e[7],s=e[8],f=e[9],h=e[10],M=e[11],d=e[12],b=e[13],m=e[14],p=e[15];return t[0]=i*(h*p-M*m)-f*(l*p-c*m)+b*(l*M-c*h),t[1]=-(r*(h*p-M*m)-f*(o*p-a*m)+b*(o*M-a*h)),t[2]=r*(l*p-c*m)-i*(o*p-a*m)+b*(o*c-a*l),t[3]=-(r*(l*M-c*h)-i*(o*M-a*h)+f*(o*c-a*l)),t[4]=-(u*(h*p-M*m)-s*(l*p-c*m)+d*(l*M-c*h)),t[5]=n*(h*p-M*m)-s*(o*p-a*m)+d*(o*M-a*h),t[6]=-(n*(l*p-c*m)-u*(o*p-a*m)+d*(o*c-a*l)),t[7]=n*(l*M-c*h)-u*(o*M-a*h)+s*(o*c-a*l),t[8]=u*(f*p-M*b)-s*(i*p-c*b)+d*(i*M-c*f),t[9]=-(n*(f*p-M*b)-s*(r*p-a*b)+d*(r*M-a*f)),t[10]=n*(i*p-c*b)-u*(r*p-a*b)+d*(r*c-a*i),t[11]=-(n*(i*M-c*f)-u*(r*M-a*f)+s*(r*c-a*i)),t[12]=-(u*(f*m-h*b)-s*(i*m-l*b)+d*(i*h-l*f)),t[13]=n*(f*m-h*b)-s*(r*m-o*b)+d*(r*h-o*f),t[14]=-(n*(i*m-l*b)-u*(r*m-o*b)+d*(r*l-o*i)),t[15]=n*(i*h-l*f)-u*(r*h-o*f)+s*(r*l-o*i),t},copy:a,determinant:function(t){let e=t[0],n=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],l=t[7],c=t[8],s=t[9],f=t[10],h=t[11],M=t[12],d=t[13],b=t[14],m=t[15];return(e*u-n*a)*(f*m-h*b)-(e*i-r*a)*(s*m-h*d)+(e*l-o*a)*(s*b-f*d)+(n*i-r*u)*(c*m-h*M)-(n*l-o*u)*(c*b-f*M)+(r*l-o*i)*(c*d-s*M)},equals:function(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],u=t[3],i=t[4],l=t[5],c=t[6],s=t[7],f=t[8],h=t[9],M=t[10],d=t[11],b=t[12],m=t[13],p=t[14],g=t[15],y=e[0],w=e[1],v=e[2],A=e[3],S=e[4],I=e[5],C=e[6],O=e[7],T=e[8],U=e[9],x=e[10],E=e[11],F=e[12],_=e[13],P=e[14],q=e[15],D=(0,o.FD)();return Math.abs(n-y)<=D*Math.max(1,Math.abs(n),Math.abs(y))&&Math.abs(r-w)<=D*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-v)<=D*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-A)<=D*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(i-S)<=D*Math.max(1,Math.abs(i),Math.abs(S))&&Math.abs(l-I)<=D*Math.max(1,Math.abs(l),Math.abs(I))&&Math.abs(c-C)<=D*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(s-O)<=D*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(f-T)<=D*Math.max(1,Math.abs(f),Math.abs(T))&&Math.abs(h-U)<=D*Math.max(1,Math.abs(h),Math.abs(U))&&Math.abs(M-x)<=D*Math.max(1,Math.abs(M),Math.abs(x))&&Math.abs(d-E)<=D*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(b-F)<=D*Math.max(1,Math.abs(b),Math.abs(F))&&Math.abs(m-_)<=D*Math.max(1,Math.abs(m),Math.abs(_))&&Math.abs(p-P)<=D*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(g-q)<=D*Math.max(1,Math.abs(g),Math.abs(q))},exactEquals:E,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],o=e[2],a=e[3],u=n+n,i=r+r,l=o+o,c=n*u,s=r*u,f=r*i,h=o*u,M=o*i,d=o*l,b=a*u,m=a*i,p=a*l;return t[0]=1-f-d,t[1]=s+p,t[2]=h-m,t[3]=0,t[4]=s-p,t[5]=1-c-d,t[6]=M+b,t[7]=0,t[8]=h+m,t[9]=M-b,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){let n=v,r=-e[0],o=-e[1],a=-e[2],u=e[3],i=e[4],l=e[5],c=e[6],s=e[7],f=r*r+o*o+a*a+u*u;return f>0?(n[0]=2*(i*u+s*r+l*a-c*o)/f,n[1]=2*(l*u+s*o+c*r-i*a)/f,n[2]=2*(c*u+s*a+i*o-l*r)/f):(n[0]=2*(i*u+s*r+l*a-c*o),n[1]=2*(l*u+s*o+c*r-i*a),n[2]=2*(c*u+s*a+i*o-l*r)),w(t,e,n),t},fromRotation:p,fromRotationTranslation:w,fromRotationTranslationScale:C,fromRotationTranslationScaleOrigin:O,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:m,fromXRotation:g,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:y,frustum:T,getRotation:I,getScale:S,getTranslation:A,hasIdentityRotation:_,identity:i,invert:s,invertOrIdentity:c,isOrthoNormal:F,lookAt:U,mul:P,multiply:f,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,o,a,u){let i=1/(e-n),l=1/(r-o),c=1/(a-u);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*i,t[13]=(o+r)*l,t[14]=(u+a)*c,t[15]=1,t},perspective:function(t,e,n,r,o){let a,u=1/Math.tan(e/2);return t[0]=u/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,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!=o&&o!==1/0?(a=1/(r-o),t[10]=(o+r)*a,t[14]=2*o*r*a):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){let o=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),u=Math.tan(e.leftDegrees*Math.PI/180),i=Math.tan(e.rightDegrees*Math.PI/180),l=2/(u+i),c=2/(o+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(u-i)*l*.5,t[9]=(o-a)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:b,rotateY:function(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[0],u=e[1],i=e[2],l=e[3],c=e[8],s=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o-c*r,t[1]=u*o-s*r,t[2]=i*o-f*r,t[3]=l*o-h*r,t[8]=a*r+c*o,t[9]=u*r+s*o,t[10]=i*r+f*o,t[11]=l*r+h*o,t},rotateZ:function(t,e,n){let r=Math.sin(n),o=Math.cos(n),a=e[0],u=e[1],i=e[2],l=e[3],c=e[4],s=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*o+c*r,t[1]=u*o+s*r,t[2]=i*o+f*r,t[3]=l*o+h*r,t[4]=c*o-a*r,t[5]=s*o-u*r,t[6]=f*o-i*r,t[7]=h*o-l*r,t},scale:M,set:u,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:q,subtract:x,targetTo:function(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=r[0],l=r[1],c=r[2],s=o-n[0],f=a-n[1],h=u-n[2],M=s*s+f*f+h*h;M>0&&(M=1/Math.sqrt(M),s*=M,f*=M,h*=M);let d=l*h-c*f,b=c*s-i*h,m=i*f-l*s;return M=d*d+b*b+m*m,M>0&&(M=1/Math.sqrt(M),d*=M,b*=M,m*=M),t[0]=d,t[1]=b,t[2]=m,t[3]=0,t[4]=f*m-h*b,t[5]=h*d-s*m,t[6]=s*b-f*d,t[7]=0,t[8]=s,t[9]=f,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=u,t[15]=1,t},translate:h,transpose:l},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>C,Bw:()=>a,C:()=>u,Cc:()=>O,DI:()=>A,Io:()=>g,Ln:()=>p,Om:()=>I,Qr:()=>f,Re:()=>c,S8:()=>S,T9:()=>b,WQ:()=>l,Z0:()=>T,_S:()=>M,aI:()=>q,ei:()=>U,fw:()=>E,gL:()=>x,hG:()=>y,hZ:()=>i,hs:()=>m,jk:()=>d,lw:()=>s,m3:()=>w,oW:()=>D,t2:()=>P,tn:()=>h,ze:()=>v});var r=n(51850),o=n(34304);function a(t){let e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function i(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function l(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function h(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function M(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function b(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function p(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function g(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function y(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function w(t){let e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e=t){let n=e[0],r=e[1],o=e[2],a=n*n+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a),t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function C(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2];return t[0]=o*l-a*i,t[1]=a*u-r*l,t[2]=r*i-o*u,t}function O(t,e,n,r){let o=e[0],a=e[1],u=e[2];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t}function T(t,e,n){let r=e[0],o=e[1],a=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12],t[1]=n[1]*r+n[5]*o+n[9]*a+n[13],t[2]=n[2]*r+n[6]*o+n[10]*a+n[14],t}function U(t,e,n){let r=e[0],o=e[1],a=e[2];return t[0]=r*n[0]+o*n[3]+a*n[6],t[1]=r*n[1]+o*n[4]+a*n[7],t[2]=r*n[2]+o*n[5]+a*n[8],t}function x(t,e,n){return E(t,e,n[0],n[1],n[2],n[3])}function E(t,e,n,r,o,a){let u=e[0],i=e[1],l=e[2],c=r*l-o*i,s=o*u-n*l,f=n*i-r*u,h=r*f-o*s,M=o*c-n*f,d=n*s-r*c,b=2*a;return t[0]=u+c*b+2*h,t[1]=i+s*b+2*M,t[2]=l+f*b+2*d,t}const F=(0,r.vt)(),_=(0,r.vt)();function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function q(t,e){if(t===e)return!0;let n=t[0],r=t[1],a=t[2],u=e[0],i=e[1],l=e[2],c=(0,o.FD)();return Math.abs(n-u)<=c*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(r-i)<=c*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))}function D(t,e,n){let r=n[0]-e[0],o=n[1]-e[1],a=n[2]-e[2],u=r*r+o*o+a*a;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=o*u,t[2]=a*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const k=c,j=s,R=f,z=g,N=y,B=a,L=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:l,angle:function(t,e){S(F,t),S(_,e);let n=I(F,_);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,o,a){let u=1-a,i=u*u,l=a*a,c=i*u,s=3*a*i,f=3*l*u,h=l*a;return t[0]=e[0]*c+n[0]*s+r[0]*f+o[0]*h,t[1]=e[1]*c+n[1]*s+r[1]*f+o[1]*h,t[2]=e[2]*c+n[2]*s+r[2]*f+o[2]*h,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:u,cross:C,crossAndNormalize:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],c=o*l-a*i,s=a*u-r*l,f=r*i-o*u,h=Math.sqrt(c*c+s*s+f*f);return t[0]=c/h,t[1]=s/h,t[2]=f/h,t},direction:D,dist:z,distance:g,div:R,divide:f,dot:I,equals:q,exactEquals:P,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,a){let u=a*a,i=u*(2*a-3)+1,l=u*(a-2)+a,c=u*(a-1),s=u*(3-2*a);return t[0]=e[0]*i+n[0]*l+r[0]*c+o[0]*s,t[1]=e[1]*i+n[1]*l+r[1]*c+o[1]*s,t[2]=e[2]*i+n[2]*l+r[2]*c+o[2]*s,t},inverse:A,len:B,length:a,lerp:O,max:b,min:d,mul:j,multiply:s,negate:v,normalize:S,random:function(t,e=1){let n=o.Ov,r=2*n()*Math.PI,a=2*n()-1,u=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*e,t},rotateX:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateY:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},rotateZ:function(t,e,n,r){let o=[],a=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:m,scaleAndAdd:p,scaleTo:function(t,e){return m(t,t,e/B(t))},set:i,sign:M,sqrDist:N,sqrLen:L,squaredDistance:y,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:k,subtract:c,transformMat3:U,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:x,transformQuatValues:E},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,B,"jb",0,k,"lo",0,N,"uE",0,L])},78955(t,e,n){n.d(e,{Bw:()=>m,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>y,S8:()=>g,T9:()=>f,WQ:()=>u,Z0:()=>v,aI:()=>S,hG:()=>b,hZ:()=>a,hs:()=>M,jk:()=>s,m3:()=>p,t2:()=>A});var r=n(34304);function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function a(t,e,n,r,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function i(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}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function c(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function s(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function f(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function h(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function M(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}function d(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(n*n+r*r+o*o+a*a)}function b(t,e){let n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+o*o+a*a}function m(t){let e=t[0],n=t[1],r=t[2],o=t[3];return Math.sqrt(e*e+n*n+r*r+o*o)}function p(t){let e=t[0],n=t[1],r=t[2],o=t[3];return e*e+n*n+r*r+o*o}function g(t,e){let n=e[0],r=e[1],o=e[2],a=e[3],u=n*n+r*r+o*o+a*a;return u>0&&(u=1/Math.sqrt(u),t[0]=n*u,t[1]=r*u,t[2]=o*u,t[3]=a*u),t}function y(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function w(t,e,n,r){let o=e[0],a=e[1],u=e[2],i=e[3];return t[0]=o+r*(n[0]-o),t[1]=a+r*(n[1]-a),t[2]=u+r*(n[2]-u),t[3]=i+r*(n[3]-i),t}function v(t,e,n){let r=e[0],o=e[1],a=e[2],u=e[3];return t[0]=n[0]*r+n[4]*o+n[8]*a+n[12]*u,t[1]=n[1]*r+n[5]*o+n[9]*a+n[13]*u,t[2]=n[2]*r+n[6]*o+n[10]*a+n[14]*u,t[3]=n[3]*r+n[7]*o+n[11]*a+n[15]*u,t}function A(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function S(t,e){let n=t[0],o=t[1],a=t[2],u=t[3],i=e[0],l=e[1],c=e[2],s=e[3],f=(0,r.FD)();return Math.abs(n-i)<=f*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(o-l)<=f*Math.max(1,Math.abs(o),Math.abs(l))&&Math.abs(a-c)<=f*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(u-s)<=f*Math.max(1,Math.abs(u),Math.abs(s))}const I=i,C=l,O=c,T=d,U=b,x=m,E=p;Object.freeze(Object.defineProperty({__proto__:null,add:u,ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},copy:o,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:T,distance:d,div:O,divide:c,dot:y,equals:S,exactEquals:A,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},inverse:function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},len:x,length:m,lerp:w,max:f,min:s,mul:C,multiply:l,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},normalize:g,random:function(t,e=1){let n,o,a,u,i,l,c=r.Ov;do{n=2*c()-1,o=2*c()-1,i=n*n+o*o}while(i>=1);do{a=2*c()-1,u=2*c()-1,l=a*a+u*u}while(l>=1);let s=Math.sqrt((1-i)/l);return t[0]=e*n,t[1]=e*o,t[2]=e*a*s,t[3]=e*u*s,t},round:h,scale:M,scaleAndAdd: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},set:a,sqrDist:U,sqrLen:E,squaredDistance:b,squaredLength:p,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:i,transformMat4:v,transformQuat:function(t,e,n){let r=e[0],o=e[1],a=e[2],u=n[0],i=n[1],l=n[2],c=n[3],s=c*r+i*a-l*o,f=c*o+l*r-u*a,h=c*a+u*o-i*r,M=-u*r-i*o-l*a;return t[0]=s*c+M*-u+f*-l-h*-i,t[1]=f*c+M*-i+h*-u-s*-l,t[2]=h*c+M*-l+s*-i-f*-u,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},34727(t,e,n){n.d(e,{$8:()=>I,Cc:()=>i,Hx:()=>m,Io:()=>A,KJ:()=>s,OS:()=>T,Sp:()=>M,XM:()=>f,YN:()=>h,ZH:()=>b,b6:()=>S,cU:()=>o,gg:()=>d,hs:()=>l,kU:()=>c,mP:()=>u,or:()=>O,pF:()=>x,qE:()=>a});const r=new Float32Array(1);function o(t){--t;for(let e=1;e<32;e<<=1)t|=t>>e;return t+1}function a(t,e,n){return Math.min(Math.max(t,e),n)}function u(t,e){return 0===e?0:Math.ceil(t/e)*e}function i(t,e,n){return t+(e-t)*n}function l(t,e,n,r,o){return i(r,o,(t-e)/(n-e))}function c(t){return t*Math.PI/180}function s(t){return 180*t/Math.PI}function f(t){return Math.acos(a(t,-1,1))}function h(t){return Math.asin(a(t,-1,1))}function M(t,e,n=1e-6){return t===e||!(!Number.isFinite(t)||!Number.isFinite(e))&&(t>e?t-e:e-t)<=n}function d(t,e,n=1e-6){return!M(t,e,n)&&t>e}function b(t,e,n=1e-6){return!M(t,e,n)&&t<e}function m(t,e,n=1e-6){return M(t,e,n)||t>e}const p=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function g(t){return p.setFloat64(0,t),p.getBigInt64(0)}const y=1000000n,w=v(1);function v(t){let e=g(t=Math.abs(t)),n=function(t){return p.setBigInt64(0,t),p.getFloat64(0)}(e<=y?y:e-y);return Math.abs(t-n)}function A(t,e,n=w){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;if(null!=n&&v(Math.min(Math.abs(t),Math.abs(e)))<n)return Math.abs(t-e)<=n;let r=g(t),o=g(e);return!(r<0!=o<0||(r<o?o-r:r-o)>y)}function S(t,e,n=1e-6){if(t===e)return!0;if(!Number.isFinite(t)||!Number.isFinite(e))return!1;let r=Math.abs(t-e),o=Math.abs(t),a=Math.abs(e);if(0===t||0===e||o<1e-12&&a<1e-12){if(r>.01*n)return!1}else if(r/(o+a)>n)return!1;return!0}function I(t){return C(Math.max(-U,Math.min(t,U)))}function C(t){return r[0]=t,r[0]}function O(t){let e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[3]*t[3]+t[4]*t[4]+t[5]*t[5],r=t[6]*t[6]+t[7]*t[7]+t[8]*t[8];return!(M(e,1)&&M(n,1)&&M(r,1))}function T(t,e){return(t%e+e)%e}const U=C(34028234663852886e22);function x(t,e,n){if(void 0===n||0==+n)return Math[t](e);if(e=+e,n=+n,isNaN(e)||"number"!=typeof n||n%1!=0)return NaN;let r=e.toString().split("e");return r=(e=Math[t](+(r[0]+"e"+(r[1]?+r[1]-n:-n)))).toString().split("e"),+(r[0]+"e"+(r[1]?+r[1]+n:n))}n.d(e,["pq",0,U])},9762(t,e,n){n.r(e),n.d(e,{projectBuffer:()=>o});var r=n(49208);function o(t,e,n,o,a,u,i=Math.floor(t.length/3)){let l=(0,r.jd)(e,a);if(null==l)return!1;if(l===r.pO){if(t===o&&n===u)return!0;let e=n+3*i;for(let r=n,a=u;r<e;r++,a++)o[a]=t[r]??0;return!0}let c=n+3*i;for(let e=n,r=u;e<c;e+=3,r+=3)l(t,e,o,r);return!0}},49208(t,e,n){n.d(e,{Tp:()=>f,jd:()=>s,pO:()=>d,s7:()=>g,wy:()=>h});var r=n(34727),o=n(86211),a=n(73941),u=n(79258),i=n(34403),l=n(21325);const c={2:{5:d,7:null,9:null,10:d,1:C,6:null,8:null,0:null,3:g,11:y,2:d,4:_},5:{5:d,7:null,9:null,10:d,1:C,6:null,8:null,0:null,3:g,11:y,2:d,4:_},7:{5:null,7:d,9:null,10:d,1:null,6:I,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:S,0:null,3:null,11:null,2:null,4:null},3:{5:b,7:null,9:null,10:b,1:m,6:null,8:null,0:null,3:d,11:v,2:b,4:p},4:{5:P,7:null,9:null,10:P,1:q,6:null,8:null,0:null,3:D,11:function(t,e,n,r){P(t,e,n,r),y(n,r,n,r)},2:P,4:d},1:{5:x,7:null,9:null,10:x,1:d,6:null,8:null,0:null,3:E,11:function(t,e,n,r){x(t,e,n,r),y(n,r,n,r)},2:x,4:F},6:{5:null,7:U,9:null,10:U,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:T,10:T,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:C,6:I,8:S,0:null,3:g,11:y,2:d,4:_},11:{5:w,7:null,9:null,10:w,1:function(t,e,n,r){w(t,e,n,r),C(n,r,n,r)},6:null,8:null,0:null,3:function(t,e,n,r){w(t,e,n,r),g(n,r,n,r)},11:d,2:w,4:function(t,e,n,r){w(t,e,n,r),_(n,r,n,r)}}};function s(t,e){return f(t,e)?.projector}function f(t,e){if(null==t||null==e)return null;if(k.source.spatialReference===t&&k.dest.spatialReference===e)return k;let n=M(t,k.source),r=M(e,k.dest);return 0===n&&0===r?(0,l.aI)(t,e)?k.projector=d:k.projector=null:k.projector=c[n][r],k}function h(t,e){switch(s(t,e)){case d:return"copy3";case C:return"wgs84ToSphericalECEF";case g:return"wgs84ToWebMercator";case y:return"wgs84ToPlateCarree";case _:return"wgs84ToWGS84ECEF";case b:return"webMercatorToWGS84";case m:return"webMercatorToSphericalECEF";case p:return"webMercatorToWGS84ECEF";case v:return"webMercatorToPlateCarree";case P:return"wgs84ECEFToWGS84";case q:return"wgs84ECEFToSphericalECEF";case D:return"wgs84ECEFToWebMercator";case x:return"sphericalECEFToWGS84";case E:return"sphericalECEFToWebMercator";case U:return"sphericalMarsPCPFToMars2000";case T:return"sphericalMoonPCPFToMoon2000";case F:return"sphericalECEFToWGS84ECEF";case I:return"mars2000ToSphericalPCPF";case S:return"moon2000ToSphericalPCPF";default:return null}}function M(t,e){return t?e.spatialReference===t?e.spatialReferenceId:(e.spatialReference=t,"metersPerUnit"in e&&(e.metersPerUnit=(0,o.GA)(t,1)),e.spatialReferenceId=(0,a.jA)(t)?1:(0,l.oT)(t)?2:(0,l.K8)(t)?3:(0,l.r1)(t)?11:t.wkt===a.Ro.wkt?4:4490===t.wkid?5:t.wkt===a.FY.wkt?6:t.wkt===a.LJ.wkt?8:(0,a.q8)(t)?7:(0,a.KQ)(t)?9:0):0}function d(t,e,n,r){t!==n&&(n[r++]=t[e++],n[r++]=t[e++],n[r]=t[e]??0)}function b(t,e,n,r){n[r]=R*(t[e]/N),n[r+1]=R*(z-2*Math.atan(Math.exp(-t[e+1]/N))),n[r+2]=t[e+2]??0}function m(t,e,n,r){let o=t[e]/N,a=z-2*Math.atan(Math.exp(-t[e+1]/N)),u=N+(t[e+2]??0),i=Math.cos(a)*u;n[r]=Math.cos(o)*i,n[r+1]=Math.sin(o)*i,n[r+2]=Math.sin(a)*u}function p(t,e,n,r){b(t,e,n,r),_(n,r,n,r)}function g(t,e,n,o){!function(t,e,n,o,a){let u=.4999999*Math.PI,i=(0,r.qE)(j*t[e+1],-u,u),l=Math.sin(i);n[o++]=j*t[e]*a.radius,n[o++]=a.halfSemiMajorAxis*Math.log((1+l)/(1-l)),n[o]=t[e+2]??0}(t,e,n,o,u.$O)}function y(t,e,n,r){n[r]=t[e]*B,n[r+1]=t[e+1]*B,n[r+2]=t[e+2]??0}function w(t,e,n,r){n[r]=t[e]*L,n[r+1]=t[e+1]*L,n[r+2]=t[e+2]??0}function v(t,e,n,r){b(t,e,n,r),y(n,r,n,r)}function A(t,e,n,r,o){let a=o+(t[e+2]??0),u=j*t[e],i=j*t[e+1],l=Math.cos(i)*a;n[r]=Math.cos(u)*l,n[r+1]=Math.sin(u)*l,n[r+2]=Math.sin(i)*a}function S(t,e,n,r){A(t,e,n,r,u.Sw.radius)}function I(t,e,n,r){A(t,e,n,r,u.sH.radius)}function C(t,e,n,r){A(t,e,n,r,u.$O.radius)}function O(t,e,n,o,a){let u=t[e],i=t[e+1],l=t[e+2]??0,c=Math.sqrt(u*u+i*i+l*l),s=(0,r.YN)(l/(0===c?1:c)),f=Math.atan2(i,u);n[o++]=R*f,n[o++]=R*s,n[o]=c-a}function T(t,e,n,r){O(t,e,n,r,u.Sw.radius)}function U(t,e,n,r){O(t,e,n,r,u.sH.radius)}function x(t,e,n,r){O(t,e,n,r,u.$O.radius)}function E(t,e,n,r){x(t,e,n,r),g(n,r,n,r)}function F(t,e,n,r){x(t,e,n,r),_(n,r,n,r)}function _(t,e,n,r){!function(t,e,n,r,o){let a=j*t[e],u=j*t[e+1],i=t[e+2]??0,l=Math.sin(u),c=Math.cos(u),s=o.radius/Math.sqrt(1-o.eccentricitySquared*l*l);n[r++]=(s+i)*c*Math.cos(a),n[r++]=(s+i)*c*Math.sin(a),n[r++]=(s*(1-o.eccentricitySquared)+i)*l}(t,e,n,r,u.$O)}function P(t,e,n,r){let o,a,l,c,s,f,h,M,d,b,m,p,g,y,w,v,A,S,I,C,O,T=i.TP,U=t[e],x=t[e+1],E=t[e+2]??0;o=Math.abs(E),a=U*U+x*x,l=Math.sqrt(a),c=a+E*E,s=Math.sqrt(c),C=Math.atan2(x,U),f=E*E/c,h=a/c,y=T.a2/s,w=T.a3-T.a4/s,h>.3?(M=o/s*(1+h*(T.a1+y+f*w)/s),I=Math.asin(M),b=M*M,d=Math.sqrt(1-b)):(d=l/s*(1-f*(T.a5-y-h*w)/s),I=Math.acos(d),b=1-d*d,M=Math.sqrt(b)),m=1-u.$O.eccentricitySquared*b,p=u.$O.radius/Math.sqrt(m),g=T.a6*p,y=l-p*d,w=o-g*M,A=d*y+M*w,v=d*w-M*y,S=v/(g/m+A),I+=S,O=A+v*S/2,E<0&&(I=-I),n[r++]=R*C,n[r++]=R*I,n[r]=O}function q(t,e,n,r){P(t,e,n,r),C(n,r,n,r)}function D(t,e,n,r){P(t,e,n,r),g(n,r,n,r)}const k={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},j=(0,r.kU)(1),R=(0,r.KJ)(1),z=.5*Math.PI,N=u.$O.radius,B=N*Math.PI/180,L=180/(N*Math.PI);n.d(e,["w5",0,c])},98764(t,e,n){n.d(e,{lO:()=>s});var r=n(73941),o=n(16930),a=n(21325);const u=new o.A(r.fv),i=new o.A(r.FY),l=new o.A(r.LJ),c=new o.A(r.Ro);function s(t){let e=f.get(t);if(e)return e;let n=u;if(t)if(t===i)n=i;else if(t===l)n=l;else{let e=t.wkid,r=t.latestWkid;if(null!=e||null!=r)(0,a.tl)(e)||(0,a.tl)(r)?n=i:((0,a.ZL)(e)||(0,a.ZL)(r))&&(n=l);else{let e=t.wkt2??t.wkt;if(e){let t=e.toUpperCase();t===h?n=i:t===M&&(n=l)}}}return f.set(t,n),n}const f=new Map,h=i.wkt.toUpperCase(),M=l.wkt.toUpperCase();n.d(e,["GD",0,u,"Y0",0,c])},34403(t,e,n){var r=n(79258);Math.PI;const o=r.$O.radius,a=r.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,n.d(e,["TP",0,u])},64798(t,e,n){n.r(e),n.d(e,{default:()=>q});var r=n(4576),o=n(34275),a=n(82534),u=n(35522);function i(){return new Float32Array(3)}function l(t){let e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function c(t,e,n){let r=new Float32Array(3);return r[0]=t,r[1]=e,r[2]=n,r}function s(){return i()}function f(){return c(1,1,1)}function h(){return c(1,0,0)}function M(){return c(0,1,0)}function d(){return c(0,0,1)}const b=s(),m=f(),p=h(),g=M(),y=d();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:p,UNIT_Y:g,UNIT_Z:y,ZEROS:b,clone:l,create:i,fromValues:c,ones:f,unitX:h,unitY:M,unitZ:d,zeros:s},Symbol.toStringTag,{value:"Module"}));var w=n(51850),v=n(16930),A=n(9762),S=n(63531),I=n(69846),C=n(48425),O=n(59418),T=n(37203);function U(t,e,n){return t?.attributeInfo.useElevation?e?function(t,e){let n=new Float64Array(e);for(let r=0;r<e;r++)n[r]=t[3*r+2];return n}(e,n):null:t?.attributeInfo.storageInfo?(0,O.m0)(t.attributeInfo.storageInfo,t.buffer,n,!0):null}function x(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function E(t){let e=0;for(let n of t||[])e|=1<<n;return e}var F=n(57005);class _{transform(t){let e=this._transform(t),n=[e.points.buffer,e.rgb.buffer];null!=e.pointIdFilterMap&&n.push(e.pointIdFilterMap.buffer);for(let t of e.attributes)"buffer"in t.values&&(0,o.mw)(t.values.buffer)&&t.values.buffer!==e.rgb.buffer&&n.push(t.values.buffer);return Promise.resolve({result:e,transferList:n})}_transform(t){let e=function(t,e){if(null==t.encoding||""===t.encoding){let n=(0,O.wH)(e,t);if(null==n.vertexAttributes.position)return;let r=(0,O.MA)(e,n.vertexAttributes.position),o=n.header.fields,a=[o.offsetX,o.offsetY,o.offsetZ],u=[o.scaleX,o.scaleY,o.scaleZ],i=r.length/3,l=new Float64Array(3*i);for(let t=0;t<i;t++)l[3*t]=r[3*t]*u[0]+a[0],l[3*t+1]=r[3*t+1]*u[1]+a[1],l[3*t+2]=r[3*t+2]*u[2]+a[2];return l}if("lepcc-xyz"===t.encoding)return(0,T.Me)(e).result}(t.schema,t.geometryBuffer),n=e.length/3,o=null,a=[],s=U(t.primaryAttributeData,e,n);null!=t.primaryAttributeData&&s&&a.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:s});let f=U(t.modulationAttributeData,e,n);null!=t.modulationAttributeData&&f&&a.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:f});let h=function(t,e,n,r){let{rendererJSON:o,isRGBRenderer:a}=t,u=null,i=null;if(e&&a)u=e;else if(e&&"pointCloudUniqueValueRenderer"===o?.type){i=C.A.fromJSON(o);let t=i.colorUniqueValueInfos;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=(n?n(e[o]):e[o])+"";for(let e=0;e<t.length;e++)if(t[e].values.includes(r)){u[3*o]=t[e].color.r,u[3*o+1]=t[e].color.g,u[3*o+2]=t[e].color.b;break}}}else if(e&&"pointCloudStretchRenderer"===o?.type){i=I.A.fromJSON(o);let t=i.stops;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=n?n(e[o]):e[o],a=t.length-1;if(r<t[0].value)u[3*o]=t[0].color.r,u[3*o+1]=t[0].color.g,u[3*o+2]=t[0].color.b;else if(r>=t[a].value)u[3*o]=t[a].color.r,u[3*o+1]=t[a].color.g,u[3*o+2]=t[a].color.b;else for(let e=1;e<t.length;e++)if(r<t[e].value){let n=(r-t[e-1].value)/(t[e].value-t[e-1].value);u[3*o]=t[e].color.r*n+t[e-1].color.r*(1-n),u[3*o+1]=t[e].color.g*n+t[e-1].color.g*(1-n),u[3*o+2]=t[e].color.b*n+t[e-1].color.b*(1-n);break}}}else if(e&&"pointCloudClassBreaksRenderer"===o?.type){i=S.A.fromJSON(o);let t=i.colorClassBreakInfos;u=new Uint8Array(3*r);let n=x(i.fieldTransformType);for(let o=0;o<r;o++){let r=n?n(e[o]):e[o];for(let e=0;e<t.length;e++)if(r>=t[e].minValue&&r<=t[e].maxValue){u[3*o]=t[e].color.r,u[3*o+1]=t[e].color.g,u[3*o+2]=t[e].color.b;break}}}else u=new Uint8Array(3*r).fill(255);if(n&&i?.colorModulation){let t=i.colorModulation.minValue,e=i.colorModulation.maxValue,o=.3;for(let a=0;a<r;a++){let r=n[a],i=r>=e?1:r<=t?o:o+.7*(r-t)/(e-t);u[3*a]=i*u[3*a],u[3*a+1]=i*u[3*a+1],u[3*a+2]=i*u[3*a+2]}}return u}(t.rendererInfo,s,f,n);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){let u=t.filterAttributesData.filter(r.Ru).map(t=>{let r=U(t,e,n),o={attributeInfo:t.attributeInfo,values:r};return a.push(o),o});o=new Uint32Array(n),n=function(t,e,n,r,o){let a=t.length/3,u=function(t){return t.map(t=>{let{filterJSON:e}=t;switch(e.type){case"pointCloudValueFilter":return{...t,valuesSet:new Set(e.values)};case"pointCloudBitfieldFilter":return{...t,clearMask:E(e.requiredClearBits),requiredMask:E(e.requiredSetBits)};default:return t}})}(r),i=0;for(let r=0;r<a;r++){let a=!0;for(let t=0;t<u.length&&a;t++){let{clearMask:e,filterJSON:n,requiredMask:i,valuesSet:l}=u[t],c=o[t].values[r];switch(n.type){case"pointCloudValueFilter":{let t="exclude"===n.mode;l.has(c)===t&&(a=!1);break}case"pointCloudBitfieldFilter":((c&i)!==i||0!==(c&e))&&(a=!1);break;case"pointCloudReturnFilter":{let t=15&c,e=c>>>4&15,r=e>1,o=1===t,u=t===e,i=!1;for(let t of n.includedReturns)if("last"===t&&u||"firstOfMany"===t&&o&&r||"lastOfMany"===t&&u&&r||"single"===t&&!r){i=!0;break}i||(a=!1);break}}}a&&(n[i]=r,t[3*i]=t[3*r],t[3*i+1]=t[3*r+1],t[3*i+2]=t[3*r+2],e[3*i]=e[3*r],e[3*i+1]=e[3*r+1],e[3*i+2]=e[3*r+2],i++)}return i}(e,h,o,t.filterInfo,u)}for(let r of t.userAttributesData){let t=U(r,e,n);a.push({attributeInfo:r.attributeInfo,values:t})}3*n<h.length&&(h=h.slice(0,3*n)),function(t,e,n){if(0!==n)for(let r=0;r<e;r++)t[3*r+2]+=n}(e,n,t.elevationOffset);let M=function(t,e,n,r,o){if(!(0,A.projectBuffer)(t,r,0,t,o,0,e))throw Error("Can't reproject");let a=l(n.getCenter((0,w.vt)())),s=i(),f=i(),h=c(n.halfSizeX,n.halfSizeY,n.halfSizeZ);n.getQuaternionConjugate(P);let M=new Float32Array(3*e);for(let n=0;n<e;n++){let e=3*n;s[0]=t[e]-a[0],s[1]=t[e+1]-a[1],s[2]=t[e+2]-a[2],(0,u.gL)(f,s,P),h[0]=Math.max(h[0],Math.abs(f[0])),h[1]=Math.max(h[1],Math.abs(f[1])),h[2]=Math.max(h[2],Math.abs(f[2])),M[e++]=s[0],M[e++]=s[1],M[e]=s[2]}return n.setHalfSize(h),M}(e,n,F.ab.fromData(t.obbData),v.A.fromJSON(t.inSR),v.A.fromJSON(t.outSR));return{obbData:t.obbData,points:M,rgb:h,attributes:a,pointIdFilterMap:o}}}const P=(0,a.vt)();function q(){return new _}},59418(t,e,n){n.d(e,{qs:()=>m,wH:()=>b,MA:()=>h,E5:()=>M,m0:()=>g});var r=n(49186),o=n(4718),a=n(53966),u=n(34275),i=n(37203);const l=()=>a.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(t,e,n){let o="",a=0;for(;a<n;){let u=t[e+a];if(u<128)o+=String.fromCharCode(u),a++;else if(u>=192&&u<224){if(a+1>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");let i=(31&u)<<6|63&t[e+a+1];o+=String.fromCharCode(i),a+=2}else if(u>=224&&u<240){if(a+2>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let i=(15&u)<<12|(63&t[e+a+1])<<6|63&t[e+a+2];o+=String.fromCharCode(i),a+=3}else{if(!(u>=240&&u<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(a+3>=n)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");let i=(7&u)<<18|(63&t[e+a+1])<<12|(63&t[e+a+2])<<6|63&t[e+a+3];if(i>=65536){let t=55296+(i-65536>>10),e=56320+(1023&i);o+=String.fromCharCode(t,e)}else o+=String.fromCharCode(i);a+=4}}}return o}function s(t,e){let n={byteOffset:0,byteCount:0,fields:Object.create(null)},r=0;for(let o=0;o<e.length;o++){let a=e[o],u=a.valueType||a.type,i=w[u];n.fields[a.property]=i(t,r),r+=y[u].BYTES_PER_ELEMENT}return n.byteCount=r,n}function f(t,e,n){let o,a=[],u=0,i=0;for(;i<t;i+=1){if(o=e[i],o>0){if(a.push(c(n,u,o-1)),0!==n[u+o-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else a.push(null);u+=o}return a}function h(t,e){return new(0,y[e.valueType])(t,e.byteOffset,e.count*e.valuesPerElement)}function M(t,e){if(!t)return null;let n=t[e];return(0,u.IY)(t)?-32768===n?null:n:(0,u._G)(t)?n===u.h2?null:n:n==n?n:null}function d(t,e,n){if(e!==t&&l().error(`Invalid ${n} buffer size\n expected: ${t}, actual: ${e})`),e<t)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:e})}function b(t,e){let n=s(t,e&&e.header),r=n.byteCount,o={isDraco:!1,header:n,byteOffset:n.byteCount,byteCount:0,vertexAttributes:{}},a=n.fields,u=null==a.vertexCount?a.count:a.vertexCount;for(let t of e.ordering){if(!e.vertexAttributes[t])continue;let n={...e.vertexAttributes[t],byteOffset:r,count:u},a=p[t]||"_"+t;o.vertexAttributes[a]=n,r+=A(n.valueType)*n.valuesPerElement*u}let i=a.faceCount;if(e.faces&&i){o.faces={};for(let t of e.ordering){if(!e.faces[t])continue;let n={...e.faces[t],byteOffset:r,count:i};o.faces[t]=n,r+=A(n.valueType)*n.valuesPerElement*i}}let l=a.featureCount;if(e.featureAttributes&&e.featureAttributeOrder&&l){o.featureAttributes={};for(let t of e.featureAttributeOrder){if(!e.featureAttributes[t])continue;let n={...e.featureAttributes[t],byteOffset:r,count:l};o.featureAttributes[t]=n,r+=("UInt64"===n.valueType?8:A(n.valueType))*n.valuesPerElement*l}}return d(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}function m(t,e){return t&&t.compressedAttributes&&"draco"===t.compressedAttributes.encoding?function(t){let e={isDraco:!0,isLegacy:!1,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let n of t)switch(n){case"position":break;case"normal":e.normal=!0;break;case"uv0":e.uv0=!0;break;case"color":e.color=!0;break;case"uv-region":e.uvRegion=!0;break;case"feature-index":e.featureIndex=!0}return e}(t.compressedAttributes.attributes):t?function(t){return{isDraco:!1,isLegacy:!1,color:null!=t.color,normal:null!=t.normal,uv0:null!=t.uv0,uvRegion:null!=t.uvRegion,featureIndex:null!=t.faceRange&&null!=t.featureId}}(t):function(t){let e={isDraco:!1,isLegacy:!0,color:!1,normal:!1,uv0:!1,uvRegion:!1,featureIndex:!1};for(let n of t.ordering)if(t.vertexAttributes[n])switch(n){case"position":break;case"normal":e.normal=!0;break;case"color":e.color=!0;break;case"uv0":e.uv0=!0;break;case"region":e.uvRegion=!0}return t.featureAttributes&&t.featureAttributeOrder&&(e.featureIndex=!0),e}(e)}const p={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function g(t,e,n,a=!1){if("lepcc-rgb"===t.encoding)return a?(0,i.mb)(e):function(t){return Array.isArray(t)?t.length<1024?t:new Uint8Array(t):t.length<1024?Array.from(t):t}((0,i.mb)(e));if("lepcc-intensity"===t.encoding)return a?(0,i.Ax)(e):function(t){return Array.isArray(t)?t.length<1024?t:new Uint16Array(t):t.length<1024?Array.from(t):t}((0,i.Ax)(e));if(null!=t.encoding&&""!==t.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(l().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(l().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");let u=function(t,e,n){let a=null==e.header?{byteOffset:0,byteCount:0,fields:{count:n}}:s(t,e.header),u={header:a,byteOffset:a.byteCount,byteCount:0,entries:Object.create(null)},i=a.byteCount;for(let t=0;t<e.ordering.length;t++){let n=e.ordering[t],l=(0,o.o8)(e[n]);if(l.count=a.fields.count??0,"String"===l.valueType){if(l.byteOffset=i,l.byteCount=a.fields[n+"ByteCount"],"UTF-8"!==l.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:l.encoding});if(l.timeEncoding&&"ECMA_ISO8601"!==l.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:l.timeEncoding})}else{if(!v(l.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:l.valueType});{let t=A(l.valueType);i+=i%t===0?0:t-i%t,l.byteOffset=i,l.byteCount=t*l.valuesPerElement*l.count}}i+=l.byteCount??0,u.entries[n]=l}return u.byteCount=i-u.byteOffset,u}(e,t,n);d(u.byteOffset+u.byteCount,e.byteLength,"attribute");let c=u.entries.attributeValues||u.entries.objectIds;if(c){if("String"===c.valueType){let t=u.entries.attributeByteCounts,n=h(e,t),r=function(t,e){return new Uint8Array(t,e.byteOffset,e.byteCount)}(e,c);return c.timeEncoding?function(t,e,n){return f(t,e,n).map(t=>{let e=t?Date.parse(t):null;return null==e||Number.isNaN(e)?null:e})}(t.count,n,r):f(t.count,n,r)}return a?h(e,c):function(t,e){let n=h(t,e);if(n.length>=1024)return n;let r=[];return n.forEach((t,e)=>r.push(M(n,e))),r}(e,c)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},w={Float32:(t,e)=>new DataView(t,0).getFloat32(e,!0),Float64:(t,e)=>new DataView(t,0).getFloat64(e,!0),UInt8:(t,e)=>new DataView(t,0).getUint8(e),Int8:(t,e)=>new DataView(t,0).getInt8(e),UInt16:(t,e)=>new DataView(t,0).getUint16(e,!0),Int16:(t,e)=>new DataView(t,0).getInt16(e,!0),UInt32:(t,e)=>new DataView(t,0).getUint32(e,!0),Int32:(t,e)=>new DataView(t,0).getInt32(e,!0)};function v(t){return y.hasOwnProperty(t)}function A(t){return v(t)?y[t].BYTES_PER_ELEMENT:0}},37203(t,e,n){n.d(e,{Ax:()=>c,Me:()=>a,mb:()=>l});var r=n(49186);function o(t,e,n){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,n+0,10)),version:e.getUint16(n+10,!0),checksum:e.getUint32(n+12,!0)}}function a(t){let e=new DataView(t,0),n=0,{identifier:a,version:i}=o(t,e,n);if(n+=16,"LEPCC "!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(i>1)throw new r.A("lepcc-decode-error","Unknown version");let l=(s=n,{sizeLo:(c=e).getUint32(s+0,!0),sizeHi:c.getUint32(s+4,!0),minX:c.getFloat64(s+8,!0),minY:c.getFloat64(s+16,!0),minZ:c.getFloat64(s+24,!0),maxX:c.getFloat64(s+32,!0),maxY:c.getFloat64(s+40,!0),maxZ:c.getFloat64(s+48,!0),errorX:c.getFloat64(s+56,!0),errorY:c.getFloat64(s+64,!0),errorZ:c.getFloat64(s+72,!0),count:c.getUint32(s+80,!0),reserved:c.getUint32(s+84,!0)});var c,s;if(n+=88,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let f=new Float64Array(3*l.count),h=[],M=[],d=[],b=[];if(n=u(t,n,h),n=u(t,n,M),n=u(t,n,d),n=u(t,n,b),n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad length");let m=0,p=0;for(let t=0;t<h.length;t++){p+=h[t];let e=0;for(let n=0;n<M[t];n++){e+=d[m];let t=b[m];f[3*m]=Math.min(l.maxX,l.minX+2*l.errorX*e),f[3*m+1]=Math.min(l.maxY,l.minY+2*l.errorY*p),f[3*m+2]=Math.min(l.maxZ,l.minZ+2*l.errorZ*t),m++}}return{errorX:l.errorX,errorY:l.errorY,errorZ:l.errorZ,result:f}}function u(t,e,n){let r=[];e=i(t,e,r);let o=[];for(let a=0;a<r.length;a++){o.length=0,e=i(t,e,o);for(let t=0;t<o.length;t++)n.push(o[t]+r[a])}return e}function i(t,e,n){let o=new DataView(t,e),a=o.getUint8(0),u=31&a,i=!!(32&a),l=(192&a)>>6,c=0;if(0===l)c=o.getUint32(1,!0),e+=5;else if(1===l)c=o.getUint16(1,!0),e+=3;else{if(2!==l)throw new r.A("lepcc-decode-error","Bad count type");c=o.getUint8(1),e+=2}if(i)throw new r.A("lepcc-decode-error","LUT not implemented");let s=Math.ceil(c*u/8),f=new Uint8Array(t,e,s),h=0,M=0,d=0,b=-1>>>32-u;for(let t=0;t<c;t++){for(;M<u;)h|=f[d]<<M,M+=8,d+=1;n[t]=h&b,h>>>=u,M-=u,M+u>32&&(h|=f[d-1]>>8-M)}return e+d}function l(t){let e=new DataView(t,0),n=0,{identifier:a,version:u}=o(t,e,n);if(n+=16,"ClusterRGB"!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");let i=(c=n,{sizeLo:(l=e).getUint32(c+0,!0),sizeHi:l.getUint32(c+4,!0),count:l.getUint32(c+8,!0),colorMapCount:l.getUint16(c+12,!0),lookupMethod:l.getUint8(c+14),compressionMethod:l.getUint8(c+15)});var l,c;if(n+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===i.lookupMethod||1===i.lookupMethod)&&0===i.compressionMethod){if(3*i.colorMapCount+i.count+n!==t.byteLength||i.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");let e=new Uint8Array(t,n,3*i.colorMapCount),o=new Uint8Array(t,n+3*i.colorMapCount,i.count),a=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++){let n=o[t];a[3*t]=e[3*n],a[3*t+1]=e[3*n+1],a[3*t+2]=e[3*n+2]}return a}if(0===i.lookupMethod&&0===i.compressionMethod){if(3*i.count+n!==t.byteLength||0!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(t,n).slice()}if(i.lookupMethod<=2&&1===i.compressionMethod){if(n+3!==t.byteLength||1!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");let o=e.getUint8(n),a=e.getUint8(n+1),u=e.getUint8(n+2),l=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++)l[3*t]=o,l[3*t+1]=a,l[3*t+2]=u;return l}throw new r.A("lepcc-decode-error","Bad method "+i.lookupMethod+","+i.compressionMethod)}function c(t){let e=new DataView(t,0),n=0,{identifier:a,version:u}=o(t,e,n);if(n+=16,"Intensity "!==a)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");let l=(s=n,{sizeLo:(c=e).getUint32(s+0,!0),sizeHi:c.getUint32(s+4,!0),count:c.getUint32(s+8,!0),scaleFactor:c.getUint16(s+12,!0),bitsPerPoint:c.getUint8(s+14),reserved:c.getUint8(s+15)});var c,s;if(n+=16,l.sizeHi*2**32+l.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let f=new Uint16Array(l.count);if(8===l.bitsPerPoint){if(l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let e=new Uint8Array(t,n,l.count);for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}else if(16===l.bitsPerPoint){if(2*l.count+n!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");let e=new Uint16Array(t,n,l.count);for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}else{let e=[];if(i(t,n,e)!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let t=0;t<l.count;t++)f[t]=e[t]*l.scaleFactor}return f}}}]);