@arcgis/core 5.2.0-next.144 → 5.2.0-next.146

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 (138) 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/featureSetUtils.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/{a0d459bdb91ee892d4b6.js → 116293b1ee788a89ce1e.js} +1 -1
  9. package/assets/esri/core/workers/chunks/18f20fd43ec9ce03cef1.js +1 -0
  10. package/assets/esri/core/workers/chunks/{8959a825f5e1ce6f38ac.js → 1c65ab9ed611c322ce27.js} +1 -1
  11. package/assets/esri/core/workers/chunks/257910cca66dc5df465e.js +1 -0
  12. package/assets/esri/core/workers/chunks/2e096537a3a5555a4a93.js +1 -0
  13. package/assets/esri/core/workers/chunks/{8ba32d3a0df4a206ef1c.js → 392bcef780df52fb4cca.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{d4926545193414cf2f16.js → 4ed8655770a3e018e366.js} +1 -1
  15. package/assets/esri/core/workers/chunks/505227797bcf2a1d908d.js +1 -0
  16. package/assets/esri/core/workers/chunks/532a1b6ff9a7c950e325.js +1 -0
  17. package/assets/esri/core/workers/chunks/56a24061589f4a968818.js +1 -0
  18. package/assets/esri/core/workers/chunks/{5b3cfe95314a75a735c1.js → 588e677f33df86a595bf.js} +1 -1
  19. package/assets/esri/core/workers/chunks/{25e6013e2c095629b236.js → 58c252289411b0d86473.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{1c0975c2dd1d0e2710bb.js → 6883a5c6883eccaddf64.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{f74e32d2ffe81778826b.js → 6c1d5577a17a5c8ccf39.js} +1 -1
  22. package/assets/esri/core/workers/chunks/6c83398cf586ecea0eb1.js +1 -0
  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/{cbe6c0f32608cb504695.js → 776ae25a34352d3468bc.js} +1 -1
  26. package/assets/esri/core/workers/chunks/77ebacfdf8e57f2e03f1.js +1118 -0
  27. package/assets/esri/core/workers/chunks/794e5a67a88cb10c1a19.js +1 -0
  28. package/assets/esri/core/workers/chunks/943a0f140813ee4ab04a.js +1 -0
  29. package/assets/esri/core/workers/chunks/{fccbb902fe08448f91de.js → 9c1e69ac82e2bf746191.js} +1 -1
  30. package/assets/esri/core/workers/chunks/aba42885c5d6b2b5fe7f.js +1 -0
  31. package/assets/esri/core/workers/chunks/b61008f28b788f759e2a.js +1 -0
  32. package/assets/esri/core/workers/chunks/{402a82c77420254831bc.js → b7d77dd2abb255fd2e5a.js} +1 -1
  33. package/assets/esri/core/workers/chunks/{8b54589f173259c1ba55.js → b8054adc45bca069b948.js} +1 -1
  34. package/assets/esri/core/workers/chunks/ba48045a81acc4cda927.js +1 -0
  35. package/assets/esri/core/workers/chunks/d21257d2e2a37266c0f7.js +1 -0
  36. package/assets/esri/core/workers/chunks/d4f038e04c42aed588c1.js +1 -0
  37. package/assets/esri/core/workers/chunks/d90a3bfd45b5ed4092e0.js +1 -0
  38. package/assets/esri/core/workers/chunks/{43fc42405167a5537039.js → f095cf98940e3f95d51e.js} +1 -1
  39. package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +0 -2
  40. package/assets/esri/themes/dark/main.css +1 -1
  41. package/assets/esri/themes/light/main.css +1 -1
  42. package/assets/esri/themes/light/view.css +1 -1
  43. package/assets/esri/widgets/BatchAttributeForm/t9n/messages.en.json +1 -1
  44. package/{basemaps/BasemapCollection.d.ts → basemapGallery/BasemapGalleryModel.d.ts} +8 -8
  45. package/{basemaps/BasemapCollection.js → basemapGallery/BasemapGalleryModel.js} +1 -1
  46. package/{basemaps → basemapGallery}/BasemapsSource.d.ts +1 -1
  47. package/{basemaps → basemapGallery}/BasemapsSource.js +1 -1
  48. package/{basemaps → basemapGallery}/LocalBasemapsSource.d.ts +2 -2
  49. package/{basemaps → basemapGallery}/LocalBasemapsSource.js +1 -1
  50. package/{basemaps → basemapGallery}/PortalBasemapsSource.d.ts +2 -2
  51. package/{basemaps → basemapGallery}/PortalBasemapsSource.js +1 -1
  52. package/{basemaps → basemapGallery}/support/BasemapItem.d.ts +2 -2
  53. package/{basemaps → basemapGallery}/support/BasemapItem.js +1 -1
  54. package/{basemaps → basemapGallery}/types.d.ts +2 -2
  55. package/chunks/GlobalIllumination.glsl.js +4 -2
  56. package/chunks/GlobalIlluminationBlur.glsl.js +3 -5
  57. package/chunks/GlobalIlluminationUpscale.glsl.js +1 -1
  58. package/config.js +1 -1
  59. package/core/colorUtils.js +1 -1
  60. package/form/elements/inputs/DynamicChoiceInput.d.ts +35 -5
  61. package/kernel.js +1 -1
  62. package/layers/ParquetLayer.d.ts +9 -8
  63. package/layers/ParquetLayer.js +1 -1
  64. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  65. package/layers/graphics/transferFeatures.js +1 -1
  66. package/layers/raster/datasets/TIFFRaster.js +1 -1
  67. package/layers/support/ParquetPortalItemData.d.ts +2 -0
  68. package/layers/support/ParquetPortalItemData.js +1 -1
  69. package/layers/support/PortalItemData.d.ts +21 -0
  70. package/layers/support/parquetUtils.d.ts +1 -1
  71. package/layers/support/types.d.ts +1 -1
  72. package/package.json +2 -2
  73. package/symbols/cim/cimAnalyzer.js +1 -1
  74. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -4
  75. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -4
  76. package/views/2d/layers/features/sources/strategies/FeatureDrillDownTileLoadStrategy.js +1 -1
  77. package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
  78. package/views/3d/analysis/LineOfSight/LineOfSightEditTool.js +1 -1
  79. package/views/3d/analysis/LineOfSight/LineOfSightItemTool.js +1 -1
  80. package/views/3d/analysis/ViewshedAnalysisView3D.d.ts +3 -0
  81. package/views/3d/analysis/VolumeMeasurementAnalysisView3D.d.ts +2 -1
  82. package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
  83. package/views/3d/layers/support/FeatureMemory.js +1 -1
  84. package/views/3d/layers/support/FeatureTile.js +1 -1
  85. package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
  86. package/views/3d/layers/support/featureTileQuery3D.js +1 -1
  87. package/views/3d/support/PBFDecoder.js +1 -1
  88. package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadGlobalIllumination.glsl.js +16 -11
  89. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIllumination.js +1 -1
  90. package/views/3d/webgl-engine/effects/globalIllumination/GlobalIlluminationColorQuantization.glsl.js +2 -2
  91. package/views/SceneView.d.ts +4 -10
  92. package/views/View.d.ts +4 -12
  93. package/views/interactive/options/SnappingOptions.d.ts +29 -12
  94. package/views/interactive/options/TooltipOptions.d.ts +9 -1
  95. package/views/interactive/options/ValueOptions.d.ts +9 -2
  96. package/views/interactive/options/ViewOptions.d.ts +82 -6
  97. package/views/interactive/support/Units.d.ts +1 -0
  98. package/widgets/BasemapGallery/BasemapGalleryViewModel.d.ts +2 -2
  99. package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
  100. package/widgets/BasemapGallery/support/BasemapGalleryItem.d.ts +3 -3
  101. package/widgets/BasemapGallery/support/LocalBasemapsSource.d.ts +2 -2
  102. package/widgets/BasemapGallery/support/PortalBasemapsSource.d.ts +2 -2
  103. package/widgets/BasemapGallery/types.d.ts +3 -3
  104. package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
  105. package/widgets/BatchAttributeForm/expressions/ExpressionsManager.js +1 -1
  106. package/widgets/BatchAttributeForm/expressions/expressionUtils.js +1 -1
  107. package/widgets/BatchAttributeForm/inputs/FieldInput.d.ts +6 -0
  108. package/widgets/BatchAttributeForm/inputs/FieldInput.js +1 -1
  109. package/widgets/BatchAttributeForm/inputs/support/DynamicChoiceController.js +1 -1
  110. package/widgets/BatchAttributeForm/inputs/support/createBatchFormInputs.js +1 -1
  111. package/widgets/BatchAttributeForm.js +1 -1
  112. package/widgets/Editor/EditorViewModel.d.ts +13 -8
  113. package/widgets/Editor.d.ts +9 -9
  114. package/widgets/FeatureForm.d.ts +2 -2
  115. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  116. package/widgets/Sketch/SketchViewModel.d.ts +13 -8
  117. package/widgets/Sketch.d.ts +9 -9
  118. package/assets/esri/core/workers/chunks/14a3808427deaaa85bf2.js +0 -1
  119. package/assets/esri/core/workers/chunks/1b551ef3d84d9c1e93f9.js +0 -1
  120. package/assets/esri/core/workers/chunks/260dcb79dfd0f981949f.js +0 -1
  121. package/assets/esri/core/workers/chunks/303676d1b10676c9cab4.js +0 -1
  122. package/assets/esri/core/workers/chunks/37a636f61cfe89c6bfd1.js +0 -1
  123. package/assets/esri/core/workers/chunks/4097edb2ad522dff50ce.js +0 -1
  124. package/assets/esri/core/workers/chunks/4a0216ee6382d9276f1c.js +0 -1
  125. package/assets/esri/core/workers/chunks/55766692b578e60dd70e.js +0 -1742
  126. package/assets/esri/core/workers/chunks/57970d43cdcc5cf57a30.js +0 -1
  127. package/assets/esri/core/workers/chunks/5fd099ca1024707387b2.js +0 -1
  128. package/assets/esri/core/workers/chunks/68e24fa3f564c2a5c9fd.js +0 -1
  129. package/assets/esri/core/workers/chunks/8e7a33cc1f83063043f2.js +0 -1
  130. package/assets/esri/core/workers/chunks/a23272a7a47a95f6ddea.js +0 -1
  131. package/assets/esri/core/workers/chunks/cbdebdfa5f2cded29d0d.js +0 -1
  132. package/assets/esri/core/workers/chunks/cfae60b9d2f2939e9c16.js +0 -1
  133. package/assets/esri/core/workers/chunks/d56780290e0218d3e9de.js +0 -1
  134. package/assets/esri/core/workers/chunks/de24fc414a3f243d675e.js +0 -1
  135. package/assets/esri/core/workers/chunks/e22d45aeef293a5ffb78.js +0 -1
  136. package/assets/esri/core/workers/chunks/ea746d9bbea170719a1c.js +0 -1
  137. package/assets/esri/core/workers/chunks/f0c0c02730fe0d948fc1.js +0 -1
  138. /package/{basemaps → basemapGallery}/support/basemapCompatibilityUtils.js +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2013],{42013(e,l,a){a.r(l),a.d(l,{GlobalIlluminationBlurDrawParameters:()=>t.G,build:()=>t.b}),a(48163),a(82048),a(52540),a(72885),a(34845),a(32976),a(68259),a(20304),a(31821),a(15976),a(63761),a(94046),a(72458),a(65786),a(14113);var t=a(52516)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9794],{89794(a,e,t){t.r(e),t.d(e,{GlobalIlluminationPassParameters:()=>l.G,build:()=>l.c,defaultColorBleedWeight:()=>0,defaultEmissionBoostFactor:()=>2.5,defaultFactorDaylightDirectional:()=>.8,defaultRayMarchMaxReach:()=>.5,defaultRayMarchMaxReachEmissionWeight:()=>1,defaultRayMarchMaxSteps:()=>16,defaultRayMarchMinReach:()=>.15,defaultRayMarchMinReachEmissionWeight:()=>1,defaultRayMarchWorldReach:()=>25}),t(82048),t(92573),t(65261),t(98619),t(70893),t(34845),t(45324),t(33094),t(20304),t(31821),t(58029),t(12791),t(63761),t(94046),t(72458),t(18519),t(63907),t(65786),t(14113);var l=t(587)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9933],{39933(e,t,l){l.r(t),l.d(t,{build:()=>s.b}),l(32680),l(34711),l(71020),l(72722),l(96336),l(53466),l(54154),l(9169),l(12696),l(72233),l(18e3),l(98619),l(20598),l(22393),l(59469),l(56529),l(51406),l(89435),l(58614),l(20693),l(33079),l(31821),l(63761),l(27832),l(47630),l(14113);var s=l(57323)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5051],{46140(e,t,r){r.d(t,{A:()=>i});var n=r(49186);class i{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}greaterEqual(e,t){return!this.lessThan(e,t)}toString(){return`${this.major}.${this.minor}`}validate(e){if(this.major!==e.major){let t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.A(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new i(this.major,this.minor,this._context)}static parse(e,t=""){let[r,o]=e.split("."),a=/^\s*\d+\s*$/;if(!r?.match||!a.test(r)){let r=t&&t+":";throw new n.A(r+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e})}if(!o?.match||!a.test(o)){let r=t&&t+":";throw new n.A(r+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e})}return new i(parseInt(r,10),parseInt(o,10),t)}}},91829(e,t,r){function n(){return[0,0,0,0]}function i(e,t,r,n){return[e,t,r,n]}function o(){return i(1,1,1,1)}function a(){return i(1,0,0,0)}function l(){return i(0,1,0,0)}function s(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}r.d(t,{_Y:()=>c,fA:()=>i,vt:()=>n});const u=[0,0,0,0],f=o(),d=a(),m=l(),h=s(),M=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:M,UNIT_X:d,UNIT_Y:m,UNIT_Z:h,ZEROS:u,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:n,freeze:function(e,t,r,n){return[e,t,r,n]},fromArray:function(e,t=[0,0,0,0]){let r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},fromValues:i,ones:o,unitW:c,unitX:a,unitY:l,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(t,["Un",0,f,"uY",0,u,"v7",0,M])},78955(e,t,r){r.d(t,{Bw:()=>p,C:()=>i,Cc:()=>C,LI:()=>d,Om:()=>g,S8:()=>b,T9:()=>f,WQ:()=>a,Z0:()=>I,aI:()=>w,hG:()=>M,hZ:()=>o,hs:()=>m,jk:()=>u,m3:()=>y,t2:()=>S});var n=r(34304);function i(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function o(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function a(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e}function l(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e}function s(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e[3]=t[3]*r[3],e}function c(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e[3]=t[3]/r[3],e}function u(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e[3]=Math.min(t[3],r[3]),e}function f(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e[3]=Math.max(t[3],r[3]),e}function d(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e[3]=Math.round(t[3]),e}function m(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e}function h(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return Math.sqrt(r*r+n*n+i*i+o*o)}function M(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2],o=t[3]-e[3];return r*r+n*n+i*i+o*o}function p(e){let t=e[0],r=e[1],n=e[2],i=e[3];return Math.sqrt(t*t+r*r+n*n+i*i)}function y(e){let t=e[0],r=e[1],n=e[2],i=e[3];return t*t+r*r+n*n+i*i}function b(e,t){let r=t[0],n=t[1],i=t[2],o=t[3],a=r*r+n*n+i*i+o*o;return a>0&&(a=1/Math.sqrt(a),e[0]=r*a,e[1]=n*a,e[2]=i*a,e[3]=o*a),e}function g(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function C(e,t,r,n){let i=t[0],o=t[1],a=t[2],l=t[3];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=a+n*(r[2]-a),e[3]=l+n*(r[3]-l),e}function I(e,t,r){let n=t[0],i=t[1],o=t[2],a=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*o+r[12]*a,e[1]=r[1]*n+r[5]*i+r[9]*o+r[13]*a,e[2]=r[2]*n+r[6]*i+r[10]*o+r[14]*a,e[3]=r[3]*n+r[7]*i+r[11]*o+r[15]*a,e}function S(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}function w(e,t){let r=e[0],i=e[1],o=e[2],a=e[3],l=t[0],s=t[1],c=t[2],u=t[3],f=(0,n.FD)();return Math.abs(r-l)<=f*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(i-s)<=f*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-c)<=f*Math.max(1,Math.abs(o),Math.abs(c))&&Math.abs(a-u)<=f*Math.max(1,Math.abs(a),Math.abs(u))}const _=l,k=s,v=c,x=h,T=M,A=p,P=y;Object.freeze(Object.defineProperty({__proto__:null,add:a,ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e[3]=Math.ceil(t[3]),e},copy:i,copyVec3:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},dist:x,distance:h,div:v,divide:c,dot:g,equals:w,exactEquals:S,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e[3]=Math.floor(t[3]),e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e},len:A,length:p,lerp:C,max:f,min:u,mul:k,multiply:s,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e},normalize:b,random:function(e,t=1){let r,i,o,a,l,s,c=n.Ov;do{r=2*c()-1,i=2*c()-1,l=r*r+i*i}while(l>=1);do{o=2*c()-1,a=2*c()-1,s=o*o+a*a}while(s>=1);let u=Math.sqrt((1-l)/s);return e[0]=t*r,e[1]=t*i,e[2]=t*o*u,e[3]=t*a*u,e},round:d,scale:m,scaleAndAdd:function(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e},set:o,sqrDist:T,sqrLen:P,squaredDistance:M,squaredLength:y,str:function(e){return"vec4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+")"},sub:_,subtract:l,transformMat4:I,transformQuat:function(e,t,r){let n=t[0],i=t[1],o=t[2],a=r[0],l=r[1],s=r[2],c=r[3],u=c*n+l*o-s*i,f=c*i+s*n-a*o,d=c*o+a*i-l*n,m=-a*n-l*i-s*o;return e[0]=u*c+m*-a+f*-s-d*-l,e[1]=f*c+m*-l+d*-a-u*-s,e[2]=d*c+m*-s+u*-l-f*-a,e[3]=t[3],e}},Symbol.toStringTag,{value:"Module"}))},73681(e,t,r){r.d(t,{n:()=>s});var n=r(49186),i=r(53966),o=r(46140),a=r(95466),l=r(55674);class s{static async from(e,t,r){let a=e.dictionary_version?o.A.parse(e.dictionary_version):null,u=new Set(e.itemsNames),f={};if(t)for(let e in t)f[e]=t[e];if(e.authoringInfo.configuration)for(let t of e.authoringInfo.configuration)f.hasOwnProperty(t.name)||(f[t.name]=t.value);let d=new Set(e.authoringInfo.symbol);for(let e of Object.keys(r))d.delete(e);d.size&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("missing-fields: fieldMap entries for the following symbol fields are missing",{symbolFields:d});let m=await(0,l.xR)(e.expression,null,f);if(!m)throw new n.A("dictionary-renderer:expression-error","Unable to create dictionary renderer expression");let h=!a||!a.greaterEqual(4,0);h&&i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("Dictionary script does not support native field types. Applying fallback",{version:a});let M=new c(r,h);return new s(h,u,m,M)}constructor(e,t,r,n){this._requiresFieldCoercionToString=e,this._itemNames=t,this._compiled=r,this._reader=n}get itemNames(){return this._itemNames}evaluate(e,t,r,n){try{return this._reader.bind(e,r,n),this._compiled.evaluate(this._reader,{$view:{scale:t}})}catch(e){i.A.getLogger("esri.renderers.support.DictionaryScriptEvaluator").warnOnce("arcade: dictionary script evaluation failed",{error:e})}return null}createDictionaryFieldsIndex(e){if(!this._requiresFieldCoercionToString)return new a.A(e);let t=e.map(e=>({...e,type:"esriFieldTypeString"}));return new a.A(t)}}class c extends l.Gj{constructor(e,t){super(),this._fieldMap=e,this._requiresFieldCoercionToString=t}_getField(e){let t=this._fieldMap[e]??e;return this._boundSchema.fieldsIndex.get(t)}field(e){if(!this._requiresFieldCoercionToString)return super.field(e,!1);let t=this._getField(e);return null==t||null==this._boundTarget.attributes[t.name]?"":""+this._boundTarget.attributes[t.name]}}},55674(e,t,r){r.d(t,{Ad:()=>h,Gj:()=>y,QY:()=>m,lL:()=>b,xR:()=>M});var n=r(66131),i=r(19334),o=r(36983),a=r(49186),l=(r(44208),r(44729)),s=r(15032),c=r(95466),u=r(43668),f=r(98623);const d=["geometry","scale","timeProperties"];function m(e,t){if(null!=t)for(let r of d)t.hasArcadeDependency(r)&&e.add(r);return e}function h(e,t){return p.create(e,t,null,["$feature","$view"])}function M(e,t,r){return p.create(e,t,r,["$feature","$view","$config"])}class p{static async create(e,t,r,n){let i,{arcade:o,Dictionary:l}=await(0,u.l)();try{i=o.parseScript(e)}catch(t){throw new a.A("arcade-bad-expression","Failed to parse arcade script",{script:e,error:t})}let s=o.scriptUsesGeometryEngine(i);s&&await o.enableGeometrySupport(),await o.loadDependentModules(new Set,i,null,!1,s);let c={vars:n.reduce((e,t)=>({...e,[t]:null}),{}),spatialReference:t,useAsync:!1},f=o.compileScript(i,c),d=null;null!=r&&(d=new l(r),d.immutable=!0);let m=new l;return m.immutable=!1,m.setField("scale",0),new p(e,o,i,f,t,m,d,l)}constructor(e,t,r,n,i,o,a,l){this.script=e,this._arcade=t,this._syntaxTree=r,this._compiled=n,this._spatialReference=i,this._viewDict=o,this._configDict=a,this._dictionaryCtor=l,this._dependencies=new Map,this._featureReader=new y,this._dependencies.set("geometry",t.scriptTouchesGeometry(this._syntaxTree)),this._dependencies.set("scale",this._arcade.referencesMember(this._syntaxTree,"scale")),this._dependencies.set("timeProperties",this._arcade.scriptUsesViewProperties(this._syntaxTree,["timeProperties"]))}evaluate(e,t){let r=t.$view?.timeZone;if(t.$view){let e;if(this._viewDict.setField("scale",t.$view.scale),null!=t.$view.timeProperties){let{currentStart:i,currentEnd:o}=t.$view.timeProperties;e=new this._dictionaryCtor({__proto__:null,currentStart:null==i?void 0:null==r?n.lY.unknownEpochToArcadeDate(i):n.lY.epochToArcadeDate(i,r),currentEnd:null==o?void 0:null==r?n.lY.unknownEpochToArcadeDate(o):n.lY.epochToArcadeDate(o,r),startIncluded:!0,endIncluded:!0})}this._viewDict.setField("timeProperties",e)}return this._compiled({vars:{$view:this._viewDict,$config:this._configDict,$feature:e},spatialReference:this._spatialReference,timeZone:r})}repurposeFeature(e,t){return this._featureReader.bind(e,t,this._spatialReference),this._featureReader}references(e){return this._dependencies.get(e)??!1}}class y{constructor(){this._boundTarget=null,this._boundSchema={fields:null,fieldsIndex:null,spatialReference:null,get geometryType(){return null},get objectIdField(){return null}},this.arcadeDeclaredClass="esri.arcade.Feature",this._contextTimeZone=null}bind(e,t,r){let n=t??new c.A(b(e.attributes));this._boundTarget=e,this._boundSchema.fields=n.fields,this._boundSchema.fieldsIndex=n,this._boundSchema.spatialReference=r}_getField(e){return this._boundSchema.fieldsIndex.get(e)}get contextTimeZone(){return this._contextTimeZone}set contextTimeZone(e){this._contextTimeZone=e}readArcadeFeature(){return this}hasField(e){return this._boundSchema.fieldsIndex.has(e)}geometry(){let e=this._boundTarget.geometry;if(null==e)return null;if("fromJSON"in e)return(0,i.e)(e);if(!this._boundSchema.spatialReference)throw Error("InternalError: Expected spatial reference to be defined");return(0,o.R)(e,this._boundSchema.spatialReference)}_hasGeometry(){return null!=this._boundTarget.geometry}isUnknownDateTimeField(e){return this._boundSchema.fieldsIndex.getTimeZone(e)===f.L}field(e,t=!0){let r=this._getField(e);if(r){let t=this._boundTarget.attributes[r.name];if(null==t)return null;switch(r.type){case"date-only":case"esriFieldTypeDateOnly":return l.n.fromReader(t);case"time-only":case"esriFieldTypeTimeOnly":return s.k.fromReader(t);case"esriFieldTypeTimestampOffset":case"timestamp-offset":return n.lY.fromReaderAsTimeStampOffset(t);case"date":case"esriFieldTypeDate":return this.isUnknownDateTimeField(e)?n.lY.unknownEpochToArcadeDate(t):n.lY.epochToArcadeDate(t,this.contextTimeZone??"system");default:return t}}if(t)throw Error(`Field ${e} does not exist`);return null}setField(e,t){throw Error("Unable to update feature attribute values, feature is readonly")}keys(){return this._boundSchema.fieldsIndex.fields.map(e=>e.name)}isEmpty(){return this._boundSchema.fields.length<=0&&!this._hasGeometry()}castToText(e=!1){return JSON.stringify(this._boundTarget)}gdbVersion(){return null}fullSchema(){return this._boundSchema}castAsJson(){return{attributes:this._boundTarget.attributes,geometry:this.geometry()?.castAsJson()??null}}castAsJsonAsync(){return Promise.resolve(this.castAsJson())}}function b(e){let t=[];for(let r in e)t.push({name:r,alias:r,type:"string"==typeof e[r]?"esriFieldTypeString":"esriFieldTypeDouble"});return t}},28076(e,t,r){var n=r(13337);const i={CIMVectorMarker:{scalesymbolsproportionally:!1,respectframe:!0,anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMPictureMarker:{scalex:1,texturefilter:"Draft",anchorpointunits:"Relative",offsetx:0,offsety:0,rotateclockwise:!1,rotation:0,size:10,enable:!0,colorlocked:!1},CIMTextSymbol:{angle:0,anglex:0,angley:0,halosize:1,height:10,horizontalalignment:"Left",kerning:!0,letterspacing:0,letterwidth:100,ligatures:!0,linegap:0,offsetx:0,offsety:0,strikethrough:!1,textcase:"Normal",textstring:"",underline:!1,verticalalignment:"Bottom",enable:!0,colorlocked:!1},CIMSolidStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMPictureStroke:{texturefilter:"Draft",capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1},CIMGradientStroke:{capstyle:"Round",joinstyle:"Round",miterlimit:4,width:4,enable:!0,colorlocked:!1,gradientMethod:"AcrossLine",gradientSize:75,gradientSizeUnits:n.h.Relative,gradientType:"Discrete",interval:5},CIMSolidFill:{enable:!0,colorlocked:!1},CIMPictureFill:{offsetx:0,offsety:0,rotation:0,scalex:1,height:10,texturefilter:"Draft",enable:!0,colorlocked:!1},CIMHatchFill:{offsetx:0,offsety:0,rotation:0,separation:4,enable:!0,colorlocked:!1},CIMGradientFill:{enable:!0,angle:90,gradientMethod:"Linear",gradientSize:75,gradientSizeUnits:n.h.Relative,gradientType:"Discrete",interval:5},CIMGeometricEffectAddControlPoints:{angletolerance:120},CIMGeometricEffectArrow:{arrowtype:"OpenEnded",width:5},CIMGeometricEffectBuffer:{size:1},CIMGeometricEffectCircularSector:{radius:25,startangle:0,endangle:45},CIMGeometricEffectCut:{begincut:1,endcut:1,middlecut:0,invert:!1},CIMGeometricEffectDashes:{customendingoffset:0,linedashending:"NoConstraint",offsetalongline:0},CIMGeometricEffectDonut:{method:"Mitered",option:"Accurate",width:2},CIMGeometricEffectJog:{angle:225,length:20,position:50},CIMGeometricEffectControlMeasureLine:{rule:"FullGeometry",width:25},CIMGeometricEffectMove:{offsetx:1,offsety:-1},CIMGeometricEffectOffset:{method:"Square",offset:1,option:"Fast"},CIMGeometricEffectRadial:{angle:0,length:5},CIMGeometricEffectRotate:{angle:15},CIMGeometricEffectScale:{xscalefactor:1.15,yscalefactor:1.15},CIMGeometricEffectWave:{amplitude:2,period:3,seed:1,waveform:"Sinus"},CIMMarkerPlacementAlongLine:{customendingoffset:0,endings:"WithHalfGap",offsetalongline:0,placeperpart:!0,angletoline:!0,offset:0},CIMMarkerPlacementAtExtremities:{extremityplacement:"Both",offsetalongline:0,angletoline:!0,offset:0},CIMMarkerPlacementAtRatioPositions:{beginposition:0,endposition:0,flipfirst:!0,angletoline:!0,offset:0},CIMMarkerPlacementInsidePolygon:{gridangle:0,gridtype:"Fixed",offsetx:0,offsety:0,randomness:100,seed:0,shiftoddrows:!1,stepx:16,stepy:16,clipping:"ClipAtBoundary"},CIMMarkerPlacementOnLine:{relativeto:"LineMiddle",startpointoffset:0,angletoline:!0,offset:0},CIMMarkerPlacementOnVertices:{placeperpart:!0,placeoncontrolpoints:!0,placeonendpoints:!0,placeonregularvertices:!0,angletoline:!0,offset:0},CIMMarkerPlacementPolygonCenter:{method:"OnPolygon",offsetx:0,offsety:0,clipatboundary:!1},CIMAnimatedSymbolProperties:{playanimation:!1,reverseanimation:!1,randomizestarttime:!1,randomizestartseed:0,starttimeoffset:0,duration:3,endingduration:3,useendingduration:!1,repeattype:"Loop",repeatdelay:0,easing:"Linear"},CIMSymbolAnimationSize:{tosize:10},CIMSymbolAnimationScale:{scalefactor:1},CIMSymbolAnimationColor:{tocolor:[255,255,255,1],colormode:"Multiply"},CIMSymbolAnimationTransparency:{totransparency:0},CIMSymbolAnimationRotation:{torotation:0,rotateclockwise:!1},CIMSymbolAnimationOffset:{offsetx:0,offsety:0},CIMSymbolAnimationMoveAlongLine:{speed:30,distancealong:100,movementtype:"Distance"}};r.d(t,["D",0,i])},13337(e,t,r){r.d(t,["h",0,{Relative:0,Absolute:1}])},93397(e,t,r){r.d(t,{Bu:()=>S,DW:()=>b,FM:()=>l,Kn:()=>y,Kq:()=>z,MM:()=>f,Nl:()=>w,O2:()=>_,YC:()=>T,YF:()=>k,_1:()=>C,_h:()=>a,bs:()=>x,e6:()=>c,gQ:()=>o,jn:()=>m,lW:()=>u,ll:()=>F,mA:()=>d,oI:()=>j,pM:()=>g,pV:()=>p,pk:()=>P,rB:()=>E,xo:()=>I,yX:()=>O,zb:()=>v,zr:()=>h});var n=r(28076);function i(e){let t=e.length;for(;t--;)if(!" /-,\n".includes(e.charAt(t)))return!1;return!0}function o(e,t){let r=[],n=0,o=-1;do{if(o=e.indexOf("[",n),o>=n){if(o>n){let t=e.slice(n,o);r.push([t,null,i(t)])}if(n=o+1,o=e.indexOf("]",n),o>=n){if(o>n){let i=t[e.slice(n,o)];i&&r.push([null,i,!1])}n=o+1}}}while(-1!==o);if(n<e.length){let t=e.slice(n);r.push([t,null,i(t)])}return r}function a(e,t,r){let n="",i=null;for(let r of t){let[t,o,a]=r;if(null!=t&&""!==t)a?i=t:(null!=i&&(n+=i,i=null),n+=t);else{let t=e.readAttribute(o);null!=t&&""!==t&&(null!==i&&(n+=i,i=null),n+=t)}}return s(n,r)}function l(e,t,r,n){let i="",o=null;for(let n of t){let[t,a,l]=n;if(null!=t&&""!==t)l?o=t:(null!=o&&(i+=o,o=null),i+=t);else{let t=a;null!=r&&(t=A(a,r));let n=e.attributes[t];null!=n&&""!==n&&(null!=o&&(i+=o,o=null),i+=n)}}return s(i,n)}function s(e,t){switch("string"!=typeof e&&(e=String(e)),t){case"LowerCase":return e.toLowerCase();case"Allcaps":return e.toUpperCase();default:return e}}function c(e){return e?[e[0],e[1],e[2],e[3]/255]:[0,0,0,0]}function u(e){return e.data?.symbol??null}function f(e){return"CIMVectorMarker"===e.type||"CIMPictureMarker"===e.type||"CIMBarChartMarker"===e.type||"CIMCharacterMarker"===e.type||"CIMPieChartMarker"===e.type||"CIMStackedBarChartMarker"===e.type}function d(e){return"CIMGradientStroke"===e.type||"CIMPictureStroke"===e.type||"CIMSolidStroke"===e.type}function m(e){return null!=e&&("CIMGradientFill"===e.type||"CIMHatchFill"===e.type||"CIMPictureFill"===e.type||"CIMSolidFill"===e.type||"CIMWaterFill"===e.type)}function h(e){return null!=e&&("CIMMarkerPlacementAlongLineRandomSize"===e.type||"CIMMarkerPlacementAlongLineSameSize"===e.type||"CIMMarkerPlacementAlongLineVariableSize"===e.type||"CIMMarkerPlacementAtExtremities"===e.type||"CIMMarkerPlacementAtMeasuredUnits"===e.type||"CIMMarkerPlacementAtRatioPositions"===e.type||"CIMMarkerPlacementOnLine"===e.type||"CIMMarkerPlacementOnVertices"===e.type)}const M=(e,t=0)=>null==e||isNaN(e)?t:e;function p(e){if(!e)return"normal";switch(e.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function y(e){if(!e)return"normal";switch(e.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function b(e){return e.underline?"underline":e.strikethrough?"line-through":"none"}function g(e){if(!e)return null;switch(e.type){case"CIMPolygonSymbol":if(e.symbolLayers)for(let t of e.symbolLayers){let e=g(t);if(null!=e)return e}break;case"CIMTextSymbol":return g(e.symbol);case"CIMSolidFill":return e.color}return null}function C(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{let t=e.symbolLayers;if(t)for(let e of t){let t=C(e);if(null!=t)return t}break}case"CIMTextSymbol":return C(e.symbol);case"CIMSolidStroke":return e.color}}function I(e){if(e)switch(e.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(e.symbolLayers)for(let t of e.symbolLayers){let e=I(t);if(void 0!==e)return e}break;case"CIMTextSymbol":return I(e.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return e.width}}function S(e){switch(e){case"Left":default:return"left";case"Right":return"right";case"Center":return"center";case"Justify":return"justify"}}function w(e){switch(e){default:case"Bottom":return"bottom";case"Top":return"top";case"Center":return"middle";case"Baseline":return"baseline"}}function _(e){return(e?Object.keys(e):[]).map(t=>({name:t,alias:t,type:"string"==typeof e[t]?"esriFieldTypeString":"esriFieldTypeDouble"}))}function k(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function v(e,t,r,n,i,o,a=!0){let{infos:l}=o,s=1,c=0,u=0,f=0,d=1;for(let{absoluteAnchorPoint:e,offsetX:t,offsetY:r,rotation:n,size:i,frameHeight:o,rotateClockWise:m,scaleSymbolsProportionally:h}of l)d=e?1:s,u=L(t,r,c,d,u),f=D(t,r,c,d,f),o&&(h||a)&&(s*=i/o),c=R(n,m,c);let m=L(n,i,c,d,u),h=D(n,i,c,d,f);return{size:e*s,rotation:R(t,r,c),offsetX:m,offsetY:h}}function x(e){if(null==e)return"Normal";switch(e.type){case"CIMTextSymbol":return e.textCase??"Normal";case"CIMPointSymbol":case"CIMLineSymbol":case"CIMPolygonSymbol":{let t=e.symbolLayers;if(!t)return"Normal";for(let e of t)if("CIMVectorMarker"===e.type)return x(e)}break;case"CIMVectorMarker":{let t=e.markerGraphics;if(!t)return"Normal";for(let e of t)if(e.symbol)return x(e.symbol)}}return"Normal"}function T(e){if(e)switch(e.type){case"CIMTextSymbol":return e.height;case"CIMPointSymbol":{let t=0;if(e.symbolLayers)for(let r of e.symbolLayers)if(r)switch(r.type){case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":{let e=r.size??n.D.CIMVectorMarker.size;e>t&&(t=e);break}}return t}case"CIMLineSymbol":case"CIMPolygonSymbol":{let t=0;if(e.symbolLayers)for(let r of e.symbolLayers)if(r)switch(r.type){case"CIMSolidStroke":case"CIMPictureStroke":case"CIMGradientStroke":{let e=r.width;null!=e&&e>t&&(t=e);break}case"CIMCharacterMarker":case"CIMPictureMarker":case"CIMVectorMarker":case"CIMObjectMarker3D":case"CIMglTFMarker3D":if(r.markerPlacement&&h(r.markerPlacement)){let e=r.size??n.D.CIMVectorMarker.size;e>t&&(t=e)}break;case"CIMPictureFill":{let e=r.height;null!=e&&e>t&&(t=e)}}return t}}}function A(e,t){if(null!==t){let r=t.get(e);return r?r.name:e}return e}function P(e){return e.map(e=>({...e,propertyName:k(e.propertyName)}))}function E(e){let t={};for(let r in e){let n=e[r];t[k(r)]=n}return t}function F(e){if(!e)return 0;let t=0;for(let r of e)t+=G(r);return t}function G(e){if(!e)return 0;if(z(e))return e.inflateSize??256;if(function(e){return"CIMSimpleLineCallout"===e.type||"CIMBackgroundCallout"===e.type||"CIMBalloonCallout"===e.type||"CIMPointSymbolCallout"===e.type}(e))return Math.abs(e.inflateSize);switch(e.type){case"CIMGeometricEffectArrow":return Math.abs(.5*e.width);case"CIMGeometricEffectBuffer":return Math.abs(e.size);case"CIMGeometricEffectCircularSector":return Math.abs(e.radius??25);case"CIMGeometricEffectControlMeasureLine":return 500;case"CIMGeometricEffectExtension":return Math.abs(e.length);case"CIMGeometricEffectJog":return Math.abs(.5*e.length);case"CIMGeometricEffectMove":return Math.max(Math.abs(M(e.offsetX)),Math.abs(M(e.offsetY)));case"CIMGeometricEffectOffset":case"CIMGeometricEffectOffsetTangent":return Math.abs(e.offset);case"CIMGeometricEffectRadial":return Math.abs(e.length??5);case"CIMGeometricEffectRegularPolygon":return Math.abs(e.radius);case"CIMGeometricEffectRotate":case"CIMGeometricEffectScale":default:return 0;case"CIMGeometricEffectTaperedPolygon":return.5*Math.max(Math.abs(e.fromWidth),Math.abs(e.toWidth));case"CIMGeometricEffectWave":return Math.abs(e.amplitude);case"CIMGeometricEffectDonut":return Math.abs(e.width)}}function D(e,t,r,n,i){let o=r*Math.PI/180;if(o){let r=Math.cos(o);return(Math.sin(o)*e+r*t)*n+i}return t*n+i}function L(e,t,r,n,i){let o=r*Math.PI/180;return o?(Math.cos(o)*e-Math.sin(o)*t)*n+i:e*n+i}function R(e,t,r){return t?r-e:r+e}function O(e,t){return Math.max(Math.min((e??t)/100,1),0)}function z(e){return e.type.startsWith("Private")}function j(e){return null!=e&&function(e){return"setControlPoint"in e&&"getControlPoint"in e&&"setControlPointAt"in e&&"getControlPointAt"in e}(e)?e:void 0}r.d(t,["$w",0,M,"UE",0,e=>e.includes("data:image/svg+xml")])}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4548,8846],{73354(t,e,r){r.d(e,{a:()=>c,b:()=>l,c:()=>o,d:()=>u,e:()=>g,f:()=>s,l:()=>f,n:()=>p,t:()=>i}),r(44208);var n=r(72727);function o(t,e,r){i(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function i(t,e,r,o=3,i=o){let u=(0,n.k)(t.length,o,3),l=(0,n.k)(e.length,i,3),a=Math.min(u,l),f=r[0],s=r[1],c=r[2],g=r[4],p=r[5],d=r[6],y=r[8],h=r[9],m=r[10],v=r[12],b=r[13],M=r[14],w=0,A=0;for(let r=0;r<a;r++){let r=e[w],n=e[w+1],u=e[w+2];t[A]=f*r+g*n+y*u+v,t[A+1]=s*r+p*n+h*u+b,t[A+2]=c*r+d*n+m*u+M,w+=i,A+=o}return t}function u(t,e,r){l(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)}function l(t,e,r,o=3,i=o){let u=(0,n.k)(t.length,o,3),l=(0,n.k)(e.length,i,3),a=Math.min(u,l),f=r[0],s=r[1],c=r[2],g=r[3],p=r[4],d=r[5],y=r[6],h=r[7],m=r[8],v=0,b=0;for(let r=0;r<a;r++){let r=e[v],n=e[v+1],u=e[v+2];t[b]=f*r+g*n+y*u,t[b+1]=s*r+p*n+h*u,t[b+2]=c*r+d*n+m*u,v+=i,b+=o}}function a(t,e,r,n=3,o=n){let i=Math.min(t.length/n,e.length/o),u=0,l=0;for(let a=0;a<i;a++)t[l]=r*e[u],t[l+1]=r*e[u+1],t[l+2]=r*e[u+2],u+=o,l+=n;return t}function f(t,e,r,n){s(t.typedBuffer,e.typedBuffer,r,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,r,n,o=3,i=o){let u=Math.min(t.length/o,e.length/i),l=0,a=0,f=1/2.2;for(let s=0;s<u;s++)t[a]=n*(r*e[l])**f,t[a+1]=n*(r*e[l+1])**f,t[a+2]=n*(r*e[l+2])**f,l+=i,a+=o}function c(t,e,r,o=3,i=o){let u=(0,n.k)(t.length,o,3),l=(0,n.k)(e.length,i,3),a=Math.min(u,l),f=0,s=0;for(let n=0;n<a;n++)t[s]=e[f]+r[0],t[s+1]=e[f+1]+r[1],t[s+2]=e[f+2]+r[2],f+=i,s+=o;return t}function g(t,e){p(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function p(t,e,r=3,n=r){let o=Math.min(t.length/r,e.length/n),i=0,u=0;for(let l=0;l<o;l++){let o=e[i],l=e[i+1],a=e[i+2],f=o*o+l*l+a*a;if(f>0){let e=1/Math.sqrt(f);t[u]=e*o,t[u+1]=e*l,t[u+2]=e*a}i+=n,u+=r}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:s,linearToSRGBView:f,normalize:p,normalizeView:g,scale:a,scaleView:function(t,e,r){a(t.typedBuffer,e.typedBuffer,r,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,r){let n=Math.min(t.count,e.count),o=t.typedBuffer,i=t.typedBufferStride,u=e.typedBuffer,l=e.typedBufferStride,a=0,f=0;for(let t=0;t<n;t++)o[f]=u[a]>>r,o[f+1]=u[a+1]>>r,o[f+2]=u[a+2]>>r,a+=l,f+=i},transformMat3:l,transformMat3View:u,transformMat4:i,transformMat4View:o,translate:c},Symbol.toStringTag,{value:"Module"}))},48163(t,e,r){function n(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,e){return[t,e]}function u(){return i(1,1)}function l(){return i(-1,-1)}function a(){return i(1,0)}function f(){return i(0,1)}r.d(e,{fA:()=>i,o8:()=>o,vt:()=>n});const s=u(),c=l(),g=a(),p=f();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:c,ONES:s,UNIT_X:g,UNIT_Y:p,ZEROS:[0,0],clone:o,create:n,freeze:function(t,e){return[t,e]},fromArray:function(t,e=[0,0]){let r=Math.min(2,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:i,negativeOnes:l,ones:u,unitX:a,unitY:f,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["IA",0,c,"Un",0,s])},91829(t,e,r){function n(){return[0,0,0,0]}function o(t,e,r,n){return[t,e,r,n]}function i(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function l(){return o(0,1,0,0)}function a(){return o(0,0,1,0)}function f(){return o(0,0,0,1)}r.d(e,{_Y:()=>f,fA:()=>o,vt:()=>n});const s=[0,0,0,0],c=i(),g=u(),p=l(),d=a(),y=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:y,UNIT_X:g,UNIT_Y:p,UNIT_Z:d,ZEROS:s,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:n,freeze:function(t,e,r,n){return[t,e,r,n]},fromArray:function(t,e=[0,0,0,0]){let r=Math.min(4,t.length);for(let n=0;n<r;++n)e[n]=t[n];return e},fromValues:o,ones:i,unitW:f,unitX:u,unitY:l,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,c,"uY",0,s,"v7",0,y])},48353(t,e,r){r.d(e,{l:()=>f});var n=r(34727),o=r(58083),i=r(51850);function u(t,e,r){let n=Math.sin(t),o=Math.cos(t),i=Math.sin(e),u=Math.cos(e),l=r;return l[0]=-n,l[4]=-i*o,l[8]=u*o,l[12]=0,l[1]=o,l[5]=-i*n,l[9]=u*n,l[13]=0,l[2]=0,l[6]=u,l[10]=i,l[14]=0,l[3]=0,l[7]=0,l[11]=0,l[15]=1,l}var l=r(49208),a=r(21325);function f(t,e,r,n){let i=(0,l.Tp)(t,n);if(null==i)return!1;let f=i.source.spatialReferenceId,d=i.dest.spatialReferenceId;if(f===d&&!s(d)&&(0!==f||(0,a.aI)(t,n)))return(0,o.kN)(r,e),!0;if(s(d)){let t=l.w5[f][10],n=l.w5[10][d];return null!=t&&null!=n&&(t(e,0,g,0),n(g,0,p,0),u(c*g[0],c*g[1],r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}let y=s(f);if((3===d||11===d||2===d||5===d)&&(2===f||y||3===f||5===f)){let t=l.w5[f][10],n=l.w5[10][d];return null!=t&&null!=n&&(t(e,0,g,0),n(g,0,p,0),y?function(t,e,r){u(t,e,r),(0,o.mg)(r,r)}(c*g[0],c*g[1],r):(0,o.D_)(r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}return!1}function s(t){return 1===t||6===t||8===t||4===t}const c=(0,n.kU)(1),g=(0,i.vt)(),p=(0,i.vt)()},65806(t,e,r){r.d(e,{g:()=>u});var n=r(51850),o=r(99917),i=r(9762);function u(t,e,r,n){if((0,o.canProjectWithoutEngine)(t.spatialReference,r))return l[0]=t.x,l[1]=t.y,l[2]=t.z??0,(0,i.projectBuffer)(l,t.spatialReference,0,e,r,0);let u=(0,o.tryProject)(t,r,n);return!!u&&(e[0]=u.x,e[1]=u.y,e[2]=u.z??0,!0)}const l=(0,n.vt)()},1193(t,e,r){r.r(e),r.d(e,{default:()=>c});var n,o=r(32198),i=r(69540),u=r(25482),l=r(4718),a=r(53966),f=r(91429),s=r(31199);let c=n=class extends((0,i.OU)(u.o)){constructor(t){super(t),this.color=null,this.position=new Float64Array,this.uv=null,this.normal=null,this.tangent=null}castColor(t){return(0,s.b)(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},a.A.getLogger(this))}castPosition(t){return t&&t instanceof Float32Array&&a.A.getLogger(this).warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),(0,s.b)(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},a.A.getLogger(this))}castUv(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},a.A.getLogger(this))}castNormal(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},a.A.getLogger(this))}castTangent(t){return(0,s.b)(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},a.A.getLogger(this))}clonePositional(){let t={position:(0,l.o8)(this.position),normal:(0,l.o8)(this.normal),tangent:(0,l.o8)(this.tangent),uv:this.uv,color:this.color};return new n(t)}get usedMemory(){return this.position.byteLength+(this.uv?.byteLength??0)+(this.normal?.byteLength??0)+(this.tangent?.byteLength??0)+(this.color?.byteLength??0)}};(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"color",void 0),(0,o.Cg)([(0,f.wg)("color")],c.prototype,"castColor",null),(0,o.Cg)([(0,f.MZ)({nonNullable:!0,json:{write:s.B}})],c.prototype,"position",void 0),(0,o.Cg)([(0,f.wg)("position")],c.prototype,"castPosition",null),(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"uv",void 0),(0,o.Cg)([(0,f.wg)("uv")],c.prototype,"castUv",null),(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"normal",void 0),(0,o.Cg)([(0,f.wg)("normal")],c.prototype,"castNormal",null),(0,o.Cg)([(0,f.MZ)({json:{write:s.B}})],c.prototype,"tangent",void 0),(0,o.Cg)([(0,f.wg)("tangent")],c.prototype,"castTangent",null),c=n=(0,o.Cg)([(0,f.$K)("esri.geometry.support.MeshVertexAttributes")],c)},72727(t,e,r){function n(t,e,r){if(e<=0)return 0;let n=t-r;return n<0?0:Math.floor(n/e)+1}r.d(e,{k:()=>n}),r(53966)},31199(t,e,r){function n(t,e,r,n){let{loggerTag:o,stride:i}=e;return t.length%i===0?t:(n.error(o,`Invalid array length, expected a multiple of ${i}`),new r([]))}function o(t,e,r,o,i){if(!t)return t;if(t instanceof e)return n(t,o,e,i);for(let u of r)if(t instanceof u)return n(new e(t),o,e,i);if(Array.isArray(t))return n(new e(t),o,e,i);{let n=r.map(t=>`'${t.name}'`);return i.error(`Failed to set property, expected one of ${n}, but got ${t.constructor.name}`),new e([])}}function i(t,e,r){e[r]=function(t){let e=Array(t.length);for(let r=0;r<t.length;r++)e[r]=t[r];return e}(t)}r.d(e,{B:()=>i,b:()=>o})},28846(t,e,r){r.d(e,{convertMeshVertexSpace:()=>f});var n=r(49186),o=r(4718),i=r(17676),u=r(1193),l=r(66895),a=r(72258);async function f(t,e,r){await Promise.resolve(),(0,i.Te)(r);let f=(0,a.UR)(t,e,{useEllipsoid:r?.useEllipsoid});if(!f)throw new n.A("meshUtils:convertVertexSpace()","Failed to convert to provided vertex space due to projection errors");return t.clone((0,l.Lz)(void 0,{vertexAttributes:new u.default({...f,uv:(0,o.o8)(t.vertexAttributes.uv),color:(0,o.o8)(t.vertexAttributes.color)}),vertexSpace:e,transform:null}))}},66895(t,e,r){r.d(e,{$N:()=>s,Lz:()=>i,QN:()=>c,WO:()=>a,hz:()=>l,o2:()=>o});const n=Symbol("meshContext");function o(t){return t&&"object"==typeof t&&n in t?t[n]:void 0}function i(t,e){let r=o(t);return{...t,[n]:{...r,...e}}}const u=Symbol("meshMaterialContext");function l(t){return t&&"object"==typeof t&&u in t?t[u]:void 0}function a(t){if(l(t)?.materialMap)return t;let e={materialMap:new Map};return{...t,[u]:e}}const f=Symbol("meshTextureContext");function s(t){return t&&"object"==typeof t&&f in t?t[f]:void 0}function c(t){if(s(t)?.textureMap)return t;let e={textureMap:new Map};return{...t,[f]:e}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7499],{68197(t,e,r){r.d(e,{A:()=>h});var i=r(40876),a=r(4576),n=r(34727),s=r(78888);function o(t){return(0,n.qE)((0,s.Vr)(t),0,255)}function l(t,e){let r=t.toString(16).padStart(2,"0");return e?r.slice(0,1):r}function u(t){return.2126*(0,i.Q6)(t.r)+.7152*(0,i.Q6)(t.g)+.0722*(0,i.Q6)(t.b)}class h{static blendColors(t,e,r,i=new h){return i.r=Math.round(t.r+(e.r-t.r)*r),i.g=Math.round(t.g+(e.g-t.g)*r),i.b=Math.round(t.b+(e.b-t.b)*r),i.a=t.a+(e.a-t.a)*r,i._sanitize()}static fromRgb(t,e){let r=(0,i.lT)(t);return r?h.fromArray(r,e):null}static fromHex(t,e=new h){let r=(0,i.oW)(t);return r?h.fromArray(r,e):null}static fromArray(t,e=new h){return e._set(Number(t[0]),Number(t[1]),Number(t[2]),Number(t[3])),isNaN(e.a)&&(e.a=1),e._sanitize()}static fromString(t,e){let r=(0,i.Eq)(t);return r?h.fromArray(r,e):null}static fromJSON(t){return null==t?void 0:new h([t[0],t[1],t[2],(t[3]??255)/255])}toUnitRGB(){return[this.r/255,this.g/255,this.b/255]}toUnitRGBA(t){return t??=[0,0,0,0],t[0]=this.r/255,t[1]=this.g/255,t[2]=this.b/255,t[3]=null==this.a?1:this.a,t}constructor(t){this.r=255,this.g=255,this.b=255,this.a=1,t&&this.setColor(t)}get isBright(){return this.toYiq()>=127}isLowContrastBlend(t,e=3){let r=t instanceof h?t:new h(t),i=u(this),a=u(r);return(Math.max(i,a)+.05)/(Math.min(i,a)+.05)<e}setColor(t){if("string"==typeof t)h.fromString(t,this);else if((0,a.yc)(t))h.fromArray(t,this);else{let e=t;this._set(e.r??0,e.g??0,e.b??0,e.a??1),t instanceof h||this._sanitize()}return this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(t){let e=t?.capitalize??!1,r=t?.digits??6,i=3===r||4===r,a=4===r||8===r,n=`#${l(this.r,i)}${l(this.g,i)}${l(this.b,i)}${a?l(Math.round(255*this.a),i):""}`;return e?n.toUpperCase():n}toYiq(){return.299*this.r+.587*this.g+.114*this.b}toCss(t=!1){let e=this.r+", "+this.g+", "+this.b;return t?`rgba(${e}, ${this.a})`:`rgb(${e})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(t=0){let e=o(this.r),r=o(this.g),i=o(this.b);return 0===t||1!==this.a?[e,r,i,o(255*this.a)]:[e,r,i]}clone(){return new h(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(t){return null!=t&&t.r===this.r&&t.g===this.g&&t.b===this.b&&t.a===this.a}_sanitize(){return this.r=(0,i.c1)(this.r),this.g=(0,i.c1)(this.g),this.b=(0,i.c1)(this.b),this.a=(0,i.G1)(this.a),this}_set(t,e,r,i){this.r=t,this.g=e,this.b=r,this.a=i}}h.prototype.declaredClass="esri.Color"},40876(t,e,r){r.d(e,{Eq:()=>y,G1:()=>m,Q6:()=>_,TS:()=>n,V6:()=>a,Vm:()=>f,ay:()=>l,c1:()=>g,c4:()=>s,j5:()=>u,lT:()=>c,oW:()=>h,xV:()=>v});const i={transparent:[0,0,0,0],black:[0,0,0,1],silver:[192,192,192,1],gray:[128,128,128,1],white:[255,255,255,1],maroon:[128,0,0,1],red:[255,0,0,1],purple:[128,0,128,1],fuchsia:[255,0,255,1],green:[0,128,0,1],lime:[0,255,0,1],olive:[128,128,0,1],yellow:[255,255,0,1],navy:[0,0,128,1],blue:[0,0,255,1],teal:[0,128,128,1],aqua:[0,255,255,1],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],blanchedalmond:[255,235,205,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],oldlace:[253,245,230,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],rebeccapurple:[102,51,153,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],whitesmoke:[245,245,245,1],yellowgreen:[154,205,50,1]};function a(t){return!!i[t]||!!i[t.toLowerCase()]}function n(t){return i[t]??i[t.toLowerCase()]}function s(t){return[...n(t)]}function o(t,e,r){r<0&&++r,r>1&&--r;let i=6*r;return i<1?t+(e-t)*i:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}function l(t,e,r,i=1){let a=(t%360+360)%360/360,n=r<=.5?r*(e+1):r+e-r*e,s=2*r-n;return[Math.round(255*o(s,n,a+1/3)),Math.round(255*o(s,n,a)),Math.round(255*o(s,n,a-1/3)),i]}function u(t){let e=t.length>5,r=e?8:4,i=(1<<r)-1,a=e?1:17,n=e?9===t.length:5===t.length,s=Number("0x"+t.slice(1));if(isNaN(s))return null;let o,l=[0,0,0,1];return n&&(o=s&i,s>>=r,l[3]=a*o/255),o=s&i,s>>=r,l[2]=a*o,o=s&i,s>>=r,l[1]=a*o,o=s&i,s>>=r,l[0]=a*o,l}function h(t){if(!t.startsWith("#")||isNaN(Number(`0x${t.slice(1)}`)))return null;switch(t.length){case 4:case 5:{let e=parseInt(t.slice(1,2),16),r=parseInt(t.slice(2,3),16),i=parseInt(t.slice(3,4),16),a=4===t.length?15:parseInt(t.slice(4),16);return[e+16*e,r+16*r,i+16*i,(a+16*a)/255]}case 7:case 9:return[parseInt(t.slice(1,3),16),parseInt(t.slice(3,5),16),parseInt(t.slice(5,7),16),(7===t.length?255:parseInt(t.slice(7),16))/255];default:return null}}function c(t){let e=t.toLowerCase().match(/^(rgba?|hsla?)\(([\s.\-,%0-9]+)\)/);if(e){let t=e[2].split(/\s*,\s*/),r=e[1];if("rgb"===r&&3===t.length||"rgba"===r&&4===t.length){if(t[0].endsWith("%")){let e=t.map(t=>2.56*parseFloat(t));return 4===t.length&&(e[3]=parseFloat(t[3])),p(e)}return p(t.map(t=>parseFloat(t)))}if("hsl"===r&&3===t.length||"hsla"===r&&4===t.length)return l(parseFloat(t[0]),parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3]??"1"))}return null}function p(t){return t[0]=g(t[0]),t[1]=g(t[1]),t[2]=g(t[2]),t[3]=4===t.length?m(t[3]):1,t}function y(t){let e=a(t)?n(t):null;return e??=c(t),e??=h(t),e}function f(t){let e=y(t);return null==e?null:[e[0]/255,e[1]/255,e[2]/255,e[3]]}function m(t){return d(t,0,1)}function g(t){return Math.round(d(t,0,255))}function d(t,e,r){return t=Number(t),isNaN(t)?r:t<e?e:t>r?r:t}const b=1/2.2;function _(t){return t**2.2}function v(t){return t**b}r.d(e,["iw",0,b])},91829(t,e,r){function i(){return[0,0,0,0]}function a(t,e,r,i){return[t,e,r,i]}function n(){return a(1,1,1,1)}function s(){return a(1,0,0,0)}function o(){return a(0,1,0,0)}function l(){return a(0,0,1,0)}function u(){return a(0,0,0,1)}r.d(e,{_Y:()=>u,fA:()=>a,vt:()=>i});const h=[0,0,0,0],c=n(),p=s(),y=o(),f=l(),m=u();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_W:m,UNIT_X:p,UNIT_Y:y,UNIT_Z:f,ZEROS:h,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:i,freeze:function(t,e,r,i){return[t,e,r,i]},fromArray:function(t,e=[0,0,0,0]){let r=Math.min(4,t.length);for(let i=0;i<r;++i)e[i]=t[i];return e},fromValues:a,ones:n,unitW:u,unitX:s,unitY:o,unitZ:l,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),r.d(e,["Un",0,c,"uY",0,h,"v7",0,m])},78955(t,e,r){r.d(e,{Bw:()=>g,C:()=>a,Cc:()=>v,LI:()=>p,Om:()=>_,S8:()=>b,T9:()=>c,WQ:()=>s,Z0:()=>x,aI:()=>T,hG:()=>m,hZ:()=>n,hs:()=>y,jk:()=>h,m3:()=>d,t2:()=>w});var i=r(34304);function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function n(t,e,r,i,a){return t[0]=e,t[1]=r,t[2]=i,t[3]=a,t}function s(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function o(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function l(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}function u(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}function h(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}function c(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}function p(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 y(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function f(t,e){let r=e[0]-t[0],i=e[1]-t[1],a=e[2]-t[2],n=e[3]-t[3];return Math.sqrt(r*r+i*i+a*a+n*n)}function m(t,e){let r=e[0]-t[0],i=e[1]-t[1],a=e[2]-t[2],n=e[3]-t[3];return r*r+i*i+a*a+n*n}function g(t){let e=t[0],r=t[1],i=t[2],a=t[3];return Math.sqrt(e*e+r*r+i*i+a*a)}function d(t){let e=t[0],r=t[1],i=t[2],a=t[3];return e*e+r*r+i*i+a*a}function b(t,e){let r=e[0],i=e[1],a=e[2],n=e[3],s=r*r+i*i+a*a+n*n;return s>0&&(s=1/Math.sqrt(s),t[0]=r*s,t[1]=i*s,t[2]=a*s,t[3]=n*s),t}function _(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function v(t,e,r,i){let a=e[0],n=e[1],s=e[2],o=e[3];return t[0]=a+i*(r[0]-a),t[1]=n+i*(r[1]-n),t[2]=s+i*(r[2]-s),t[3]=o+i*(r[3]-o),t}function x(t,e,r){let i=e[0],a=e[1],n=e[2],s=e[3];return t[0]=r[0]*i+r[4]*a+r[8]*n+r[12]*s,t[1]=r[1]*i+r[5]*a+r[9]*n+r[13]*s,t[2]=r[2]*i+r[6]*a+r[10]*n+r[14]*s,t[3]=r[3]*i+r[7]*a+r[11]*n+r[15]*s,t}function w(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function T(t,e){let r=t[0],a=t[1],n=t[2],s=t[3],o=e[0],l=e[1],u=e[2],h=e[3],c=(0,i.FD)();return Math.abs(r-o)<=c*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(a-l)<=c*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(n-u)<=c*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(s-h)<=c*Math.max(1,Math.abs(s),Math.abs(h))}const I=o,E=l,P=u,D=f,L=m,A=g,k=d;Object.freeze(Object.defineProperty({__proto__:null,add:s,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:a,copyVec3:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},dist:D,distance:f,div:P,divide:u,dot:_,equals:T,exactEquals:w,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:A,length:g,lerp:v,max:c,min:h,mul:E,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:b,random:function(t,e=1){let r,a,n,s,o,l,u=i.Ov;do{r=2*u()-1,a=2*u()-1,o=r*r+a*a}while(o>=1);do{n=2*u()-1,s=2*u()-1,l=n*n+s*s}while(l>=1);let h=Math.sqrt((1-o)/l);return t[0]=e*r,t[1]=e*a,t[2]=e*n*h,t[3]=e*s*h,t},round:p,scale:y,scaleAndAdd:function(t,e,r,i){return t[0]=e[0]+r[0]*i,t[1]=e[1]+r[1]*i,t[2]=e[2]+r[2]*i,t[3]=e[3]+r[3]*i,t},set:n,sqrDist:L,sqrLen:k,squaredDistance:m,squaredLength:d,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:I,subtract:o,transformMat4:x,transformQuat:function(t,e,r){let i=e[0],a=e[1],n=e[2],s=r[0],o=r[1],l=r[2],u=r[3],h=u*i+o*n-l*a,c=u*a+l*i-s*n,p=u*n+s*a-o*i,y=-s*i-o*a-l*n;return t[0]=h*u+y*-s+c*-l-p*-o,t[1]=c*u+y*-o+p*-s-h*-l,t[2]=p*u+y*-l+h*-o-c*-s,t[3]=e[3],t}},Symbol.toStringTag,{value:"Module"}))},69397(t,e,r){r.d(e,{Qf:()=>o,Qh:()=>n,lM:()=>a});var i=r(34275);function a(t){if(!t)return 0;let e=u;for(let r in t)t.hasOwnProperty(r)&&(e+=s(t[r],!1));return e}function n(t){if(!t)return 0;if("number"==typeof t[0])return o(t);if(Array.isArray(t))return function(t){let e=t.length;if(0===e||"number"==typeof t[0])return l(t,8);let r=h;for(let i=0;i<e;i++)r+=s(t[i]);return r}(t);let e=u;for(let r in t)t.hasOwnProperty(r)&&(e+=s(t[r]));return e}function s(t,e=!0){switch(typeof t){case"object":return e?n(t):u;case"string":return function(t){return 32+t.length}(t);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...t){return t.reduce((t,e)=>t+(e?(0,i.iu)(e)?e.byteLength+c:Array.isArray(e)?l(e,16):0:0),0)}function l(t,e){return h+t.length*e}const u=32,h=16,c=145},4264(t,e,r){r.d(e,{lf:()=>St,L:()=>Rt,A4:()=>Mt,aR:()=>zt,tU:()=>Ot,V1:()=>Nt,uU:()=>Ut});var i=r(19419),a=r(12176),n=r(13195),s=r(89518),o=r(68572),l=r(63907),u=r(85079),h=r(74038);class c{constructor(t){this._precisionFactors={},this._key=t}get key(){return this._key}get type(){return 7&this._key}defines(){return[]}getStride(){return this._geometryLayout||this._buildMaterialInfo(),this._stride}getAttributeLocations(){return this._geometryLayout||this._buildMaterialInfo(),this._locations}getPrecisionFactors(){return this._precisionFactors||this._buildMaterialInfo(),this._precisionFactors}get geometryLayout(){return this._geometryLayout||this._buildMaterialInfo(),this._geometryLayout}getEncodingInfos(){return this._propertyEncodingInfo||this._buildMaterialInfo(),this._propertyEncodingInfo}getUniforms(){return this._uniforms||this._buildMaterialInfo(),this._uniforms}getUsedAttributes(){return this._usedAttributes||this._buildMaterialInfo(),this._usedAttributes}encodeAttributes(t,e,r,i){let a=this.propertyInfos,n=this.getEncodingInfos(),s=[],o=Math.ceil(this._ddStrideInBytes/4);for(let t=0;t<o;t++)s.push(0);for(let o of Object.keys(n)){let l=n[o],{type:u,precisionFactor:h,isLayout:c}=a[o],p=c?r.getLayoutProperty(o):r.getPaintProperty(o),y=p.interpolator?.getInterpolationRange(e),f=0;for(let r of l){let{offset:a}=r,n=Math.floor(a/4),o=a%4*8,l=null==i||11!==u&&12!==u?p.getValue(y?y[f]:e,t):i,c=h||1;switch(u){case 0:case 1:s[n]|=this._encodeByte(l*c,0)<<o;break;case 2:case 3:s[n]|=this._encodeShort(l*c,0)<<o;break;case 4:case 5:{let t=this._encodeByte(l*c,0),e=this._encodeByte(l*c,8);s[n]|=t<<o,s[n]|=e<<o}break;case 6:case 7:s[n]|=this._encodeShort(l*c,0),s[n]|=this._encodeShort(l*c,16);break;case 8:case 9:s[n]|=this._encodeByte(l*c,0),s[n]|=this._encodeByte(l*c,8),s[n]|=this._encodeByte(l*c,16),s[n]|=this._encodeByte(l*c,24);break;case 10:s[n]=this._encodeColor(l);break;case 11:case 12:this._encodePattern(n,s,l);break;default:throw Error("Unsupported encoding type")}f++}}return s}getAtributeState(t){let e=0,r=3+2*t;return e|=this._bit(r),e|=this._bit(r+1)<<1,e}static{this._encodingInfo={0:{dataType:l.pe.BYTE,bytesPerElement:1,count:1,normalized:!1},1:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:1,normalized:!1},2:{dataType:l.pe.SHORT,bytesPerElement:2,count:1,normalized:!1},3:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:1,normalized:!1},4:{dataType:l.pe.BYTE,bytesPerElement:1,count:2,normalized:!1},5:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:2,normalized:!1},6:{dataType:l.pe.SHORT,bytesPerElement:2,count:2,normalized:!1},7:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:2,normalized:!1},8:{dataType:l.pe.BYTE,bytesPerElement:1,count:4,normalized:!1},9:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!1},10:{dataType:l.pe.UNSIGNED_BYTE,bytesPerElement:1,count:4,normalized:!0},11:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1},12:{dataType:l.pe.UNSIGNED_SHORT,bytesPerElement:2,count:4,normalized:!1}}}_getLayoutElementsForPropertyState(t,e,r){let i=r[t],a=i.name,{count:n,dataType:s,normalized:o}=c._encodingInfo[i.type],{attribueIdx:l,precisionFactor:u}=i,h=u||1,p=[{location:l[0],name:a,propertyName:t,count:n,type:s,normalized:o,precisionFactor:h}];if(this._precisionFactors[a]=h,2===e){let e=`${a}To`;p.push({location:l[1],name:e,propertyName:t,count:n,type:s,normalized:o,precisionFactor:h}),this._precisionFactors[e]=h}return p}_buildMaterialInfo(){let t=[];this._propertyEncodingInfo={};let e={},r=this.properties,i=this.propertyInfos,a=-1;for(let n of r){a++;let r=i[n].name;e[r]=!1,e[`${r}To`]=!1;let s=this.getAtributeState(a);if(0===s||3===s)continue;let o=this._getLayoutElementsForPropertyState(n,s,i);t.push(...o)}for(let r of t)e[r.name]=!0;let n=function(t){let e=(0,o.H)(t),r=[],i=0;for(let t of e)r.push({...t,offset:i}),i+=p(t.type)*t.count;return r}(t);this._buildLayout(n),this._buildShaderUniforms(),this._usedAttributes=e}_buildLayout(t){this._locations=this.opacityLayout?(0,u._u)([this.baseGeometryLayout,this.opacityLayout]):(0,u.Xk)(this.baseGeometryLayout);let e=this.baseGeometryLayout,r=e[0].stride,i=[],a=0;for(let e of t)a+=p(e.type)*e.count;r=y(r+a);for(let t of e)i.push(new h._(t.name,t.count,t.type,t.offset,r,t.normalized));let n=0;for(let a of t)i.push(new h._(a.name,a.count,a.type,e[0].stride+n,r,a.normalized)),void 0===this._propertyEncodingInfo[a.propertyName]&&(this._propertyEncodingInfo[a.propertyName]=[]),this._propertyEncodingInfo[a.propertyName].push({offset:n}),n+=p(a.type)*a.count;this._ddStrideInBytes=n,this._geometryLayout=i;let s=this._locations;for(let e of t)s.set(e.name,e.location);this._stride=r}_buildShaderUniforms(){let t=[],e=this.properties,r=this.propertyInfos,i=-1;for(let a of e){i++;let{name:e,type:n,isLayout:s}=r[a];switch(this.getAtributeState(i)){case 0:t.push({name:e,getValue:(t,e,r,i)=>{let o=s?t.getLayoutValue(a,e):t.getPaintValue(a,e);switch(n){case 11:{let r=t.getDashKey(o,t.getLayoutValue("line-cap",e)),a=i.getMosaicItemPosition(r,!1);if(null==a)return null;let{tl:n,br:s}=a;return[n[0],s[1],s[0],n[1]]}case 12:{let t=i.getMosaicItemPosition(o,!a.includes("line-"));if(null==t)return null;let{tl:e,br:r}=t;return[e[0],r[1],r[0],e[1]]}case 10:{let t=o[3];return[t*o[0],t*o[1],t*o[2],t]}default:return o}}});break;case 2:{let r=`${e}Mix`;t.push({name:r,getValue:(t,e,r,i)=>(s?t.getLayoutProperty(a):t.getPaintProperty(a)).interpolator.interpolationUniformValue(r,e)})}}}this._uniforms=t}_bit(t){return(this._key&1<<t)>>t}_encodeColor(t){let e=255*t[3];return(0,s.Ss)(t[0]*e,t[1]*e,t[2]*e,e)}_encodePattern(t,e,r){if(!r?.rect)return;let i=r.rect,a=r.width,n=r.height;e[t]=this._encodeShort(i.x+2,0),e[t]|=this._encodeShort(i.y+2+n,16),e[t+1]=this._encodeShort(i.x+2+a,0),e[t+1]|=this._encodeShort(i.y+2,16)}_encodeByte(t,e){return(255&t)<<e}_encodeShort(t,e){return(65535&t)<<e}}const p=t=>{switch(t){case l.pe.FLOAT:case l.pe.INT:case l.pe.UNSIGNED_INT:return 4;case l.pe.SHORT:case l.pe.UNSIGNED_SHORT:case l.pe.HALF_FLOAT:return 2;case l.pe.BYTE:case l.pe.UNSIGNED_BYTE:return 1}},y=t=>t+3&-4;class f extends c{static{this.ATTRIBUTES=[]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={}}constructor(t){super(t),this.baseGeometryLayout=f.GEOMETRY_LAYOUT,this.properties=f.ATTRIBUTES,this.propertyInfos=f.ATTRIBUTES_INFO}}class m extends c{static{this.ATTRIBUTES=["circle-radius","circle-color","circle-opacity","circle-stroke-width","circle-stroke-color","circle-stroke-opacity","circle-blur"]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"circle-radius":{name:"radius",type:1,attribueIdx:[1,8]},"circle-color":{name:"color",type:10,attribueIdx:[2,9]},"circle-opacity":{name:"opacity",type:1,attribueIdx:[3,10],precisionFactor:100},"circle-stroke-width":{name:"strokeWidth",type:1,attribueIdx:[4,11],precisionFactor:4},"circle-stroke-color":{name:"strokeColor",type:10,attribueIdx:[5,12]},"circle-stroke-opacity":{name:"strokeOpacity",type:1,attribueIdx:[6,13],precisionFactor:100},"circle-blur":{name:"blur",type:1,attribueIdx:[7,14],precisionFactor:32}}}constructor(t){super(t),this.baseGeometryLayout=m.GEOMETRY_LAYOUT,this.properties=m.ATTRIBUTES,this.propertyInfos=m.ATTRIBUTES_INFO}}class g extends c{static{this.ATTRIBUTES=["fill-color","fill-opacity","fill-pattern"]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,4)]}static{this.ATTRIBUTES_INFO={"fill-color":{name:"color",type:10,attribueIdx:[1,4]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[2,5]},"fill-pattern":{name:"tlbr",type:12,isOptional:!0,attribueIdx:[3,3]}}}constructor(t){super(t),this.baseGeometryLayout=g.GEOMETRY_LAYOUT,this.properties=g.ATTRIBUTES,this.propertyInfos=g.ATTRIBUTES_INFO}}class d extends c{static{this.ATTRIBUTES_OUTLINE=["fill-outline-color","fill-opacity"]}static{this.ATTRIBUTES_FILL=["fill-color","fill-opacity"]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,8),new h._("offset",2,l.pe.BYTE,4,8),new h._("normal",2,l.pe.BYTE,6,8)]}static{this.ATTRIBUTES_INFO_OUTLINE={"fill-outline-color":{name:"color",type:10,attribueIdx:[3,5]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[4,6]}}}static{this.ATTRIBUTES_INFO_FILL={"fill-color":{name:"color",type:10,attribueIdx:[3,5]},"fill-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[4,6]}}}constructor(t,e){super(t),this.baseGeometryLayout=d.GEOMETRY_LAYOUT,this.properties=e?d.ATTRIBUTES_FILL:d.ATTRIBUTES_OUTLINE,this.propertyInfos=e?d.ATTRIBUTES_INFO_FILL:d.ATTRIBUTES_INFO_OUTLINE}}class b extends c{static{this.ATTRIBUTES=["line-color","line-width","line-opacity","line-blur","line-offset","line-pattern","line-dasharray"]}static{this.GEOMETRY_LAYOUT=[new h._("position",2,l.pe.SHORT,0,16),new h._("extrudeOffset",4,l.pe.BYTE,4,16),new h._("directionNormal",4,l.pe.BYTE,8,16),new h._("accumulatedDistance",2,l.pe.UNSIGNED_SHORT,12,16)]}static{this.ATTRIBUTES_INFO={"line-color":{name:"color",type:10,attribueIdx:[4,10]},"line-width":{name:"width",type:1,attribueIdx:[5,11],precisionFactor:2},"line-opacity":{name:"opacity",type:1,attribueIdx:[6,12],precisionFactor:100},"line-blur":{name:"blur",type:1,attribueIdx:[7,13],precisionFactor:4},"line-offset":{name:"offset",type:0,attribueIdx:[8,14],precisionFactor:2},"line-pattern":{name:"tlbr",type:12,attribueIdx:[9,9],isOptional:!0},"line-dasharray":{name:"tlbr",type:11,attribueIdx:[9,9],isOptional:!0}}}constructor(t){super(t),this.baseGeometryLayout=b.GEOMETRY_LAYOUT,this.properties=b.ATTRIBUTES,this.propertyInfos=b.ATTRIBUTES_INFO}}const _=[new h._("positionAndOffset",4,l.pe.SHORT,0,16),new h._("iconInfo",4,l.pe.UNSIGNED_SHORT,8,16)],v=[new h._("opacityInfo",1,l.pe.UNSIGNED_BYTE,0,1)];class x extends c{static{this.ATTRIBUTES=["icon-color","icon-opacity","icon-halo-blur","icon-halo-color","icon-halo-width","icon-size"]}static{this.ATTRIBUTES_INFO={"icon-color":{name:"color",type:10,attribueIdx:[2,8]},"icon-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[3,9]},"icon-halo-color":{name:"haloColor",type:10,attribueIdx:[4,10]},"icon-halo-width":{name:"haloWidth",type:1,precisionFactor:4,attribueIdx:[5,11]},"icon-halo-blur":{name:"haloBlur",type:1,precisionFactor:4,attribueIdx:[6,12]},"icon-size":{name:"size",type:1,precisionFactor:32,isLayout:!0,attribueIdx:[7,13]}}}constructor(t){super(t),this.baseGeometryLayout=_,this.opacityLayout=v,this.properties=x.ATTRIBUTES,this.propertyInfos=x.ATTRIBUTES_INFO}}class w extends c{static{this.ATTRIBUTES=["text-color","text-opacity","text-halo-blur","text-halo-color","text-halo-width","text-size"]}static{this.ATTRIBUTES_INFO={"text-color":{name:"color",type:10,attribueIdx:[4,10]},"text-opacity":{name:"opacity",type:1,precisionFactor:100,attribueIdx:[3,9]},"text-halo-color":{name:"haloColor",type:10,attribueIdx:[5,11]},"text-halo-width":{name:"haloWidth",type:1,precisionFactor:4,attribueIdx:[6,12]},"text-halo-blur":{name:"haloBlur",type:1,precisionFactor:4,attribueIdx:[7,13]},"text-size":{name:"size",type:1,isLayout:!0,attribueIdx:[2,8]}}}constructor(t){super(t),this.baseGeometryLayout=_,this.opacityLayout=v,this.properties=w.ATTRIBUTES,this.propertyInfos=w.ATTRIBUTES_INFO}}var T=r(68197),I=r(85334);function E(t,e,r,i){let a=3*t,n=3*(r-t)-a,s=1-a-n,o=3*e,l=3*(i-e)-o,u=1-o-l;function h(t){return((s*t+n)*t+a)*t}function c(t){return(3*s*t+2*n)*t+a}return function(t,e=1e-6){return function(t){return((u*t+l)*t+o)*t}(function(t,e){let r,i,a,n,s,o;for(a=t,o=0;o<8;o++){if(n=h(a)-t,Math.abs(n)<e)return a;if(s=c(a),Math.abs(s)<1e-6)break;a-=n/s}if(r=0,i=1,a=t,a<r)return r;if(a>i)return i;for(;r<i;){if(n=h(a),Math.abs(n-t)<e)return a;t>n?r=a:i=a,a=.5*(i-r)+r}return a}(t,e))}}const P={ease:E(.25,.1,.25,1),linear:E(0,0,1,1),easeIn:E(.42,0,1,1),easeOut:E(0,0,.58,1),easeInOut:E(.42,0,.58,1)};P["ease-in"]=P.easeIn,P["ease-out"]=P.easeOut,P["ease-in-out"]=P.easeInOut;const D={kind:"null"},L={kind:"number"},A={kind:"string"},k={kind:"boolean"},S={kind:"color"},M={kind:"object"},O={kind:"value"};function N(t,e){return{kind:"array",itemType:t,n:e}}const R=[D,L,A,k,S,M,N(O)];function z(t){if("array"===t.kind){let e=z(t.itemType);return"number"==typeof t.n?`array<${e}, ${t.n}>`:"value"===t.itemType.kind?"array":`array<${e}>`}return t.kind}function U(t){if(null===t)return D;if("string"==typeof t)return A;if("boolean"==typeof t)return k;if("number"==typeof t)return L;if(t instanceof T.A)return S;if(Array.isArray(t)){let e;for(let r of t){let t=U(r);if(e){if(e!==t){e=O;break}}else e=t}return N(e||O,t.length)}return"object"==typeof t?M:O}function B(t,e){if("array"===e.kind)return"array"===t.kind&&(0===t.n&&"value"===t.itemType.kind||B(t.itemType,e.itemType))&&("number"!=typeof e.n||e.n===t.n);if("value"===e.kind)for(let e of R)if(B(t,e))return!0;return e.kind===t.kind}function V(t){if(null===t)return"";let e=typeof t;return"string"===e?t:"number"===e||"boolean"===e?String(t):t instanceof T.A?t.toString():JSON.stringify(t)}class F{constructor(t){this._parent=t,this._vars={}}add(t,e){this._vars[t]=e}get(t){return this._vars[t]?this._vars[t]:this._parent?this._parent.get(t):null}}function G(t){if(!Array.isArray(t)||0===t.length)return!1;let e=t[0];if("literal"===e)return!1;if("accumulated"===e||"feature-state"===e||"geometry-type"===e||"id"===e||"line-progress"===e||"properties"===e||"has-id"===e||("get"===e||"has"===e)&&2===t.length)return!0;for(let e=1;e<t.length;e++)if(G(t[e]))return!0;return!1}class ${constructor(){this.type=O}static parse(t){if(t.length>1)throw Error('"id" does not expect arguments');return new $}evaluate(t,e){return t?.id}}class C{constructor(){this.type=A}static parse(t){if(t.length>1)throw Error('"geometry-type" does not expect arguments');return new C}evaluate(t,e){if(!t)return null;switch(t.type){case 1:return"Point";case 2:return"LineString";case 3:return"Polygon";default:return null}}}class Y{constructor(){this.type=M}static parse(t){if(t.length>1)throw Error('"properties" does not expect arguments');return new Y}evaluate(t,e){return t?.values}}class q{constructor(){this.type=L}static parse(t){if(t.length>1)throw Error('"zoom" does not expect arguments');return new q}evaluate(t,e){return e}}class j{constructor(t,e,r){this._lhs=t,this._rhs=e,this._compare=r,this.type=k}static parse(t,e,r){if(3!==t.length&&4!==t.length)throw Error(`"${t[0]}" expects 2 or 3 arguments`);if(4===t.length)throw Error(`"${t[0]}" collator not supported`);return new j(It(t[1],e),It(t[2],e),r)}evaluate(t,e){return this._compare(this._lhs.evaluate(t,e),this._rhs.evaluate(t,e))}}class H{constructor(t){this._arg=t,this.type=k}static parse(t,e){if(2!==t.length)throw Error('"!" expects 1 argument');return new H(It(t[1],e))}evaluate(t,e){return!this._arg.evaluate(t,e)}}class W{constructor(t){this._args=t,this.type=k}static parse(t,e){let r=[];for(let i=1;i<t.length;i++)r.push(It(t[i],e));return new W(r)}evaluate(t,e){for(let r of this._args)if(!r.evaluate(t,e))return!1;return!0}}class Z{constructor(t){this._args=t,this.type=k}static parse(t,e){let r=[];for(let i=1;i<t.length;i++)r.push(It(t[i],e));return new Z(r)}evaluate(t,e){for(let r of this._args)if(r.evaluate(t,e))return!0;return!1}}class K{constructor(t){this._args=t,this.type=k}static parse(t,e){let r=[];for(let i=1;i<t.length;i++)r.push(It(t[i],e));return new K(r)}evaluate(t,e){for(let r of this._args)if(r.evaluate(t,e))return!1;return!0}}class X{constructor(t,e,r){this.type=t,this._args=e,this._fallback=r}static parse(t,e,r){if(t.length<4)throw Error('"case" expects at least 3 arguments');if(t.length%2==1)throw Error('"case" expects an odd number of arguments');let i,a=[];for(let n=1;n<t.length-1;n+=2){let s=It(t[n],e),o=It(t[n+1],e,r);i||=o.type,a.push({condition:s,output:o})}let n=It(t[t.length-1],e,r);return i||=n.type,new X(i,a,n)}evaluate(t,e){for(let r of this._args)if(r.condition.evaluate(t,e))return r.output.evaluate(t,e);return this._fallback.evaluate(t,e)}}class Q{constructor(t,e){this.type=t,this._args=e}static parse(t,e){if(t.length<2)throw Error('"coalesce" expects at least 1 argument');let r,i=[];for(let a=1;a<t.length;a++){let n=It(t[a],e);r||=n.type,i.push(n)}return new Q(r,i)}evaluate(t,e){for(let r of this._args){let i=r.evaluate(t,e);if(null!==i)return i}return null}}class J{constructor(t,e,r,i,a){this.type=t,this._input=e,this._labels=r,this._outputs=i,this._fallback=a}static parse(t,e){if(t.length<3)throw Error('"match" expects at least 3 arguments');if(t.length%2==0)throw Error('"case" expects an even number of arguments');let r,i,a=It(t[1],e),n=[],s={};for(let a=2;a<t.length-1;a+=2){let o=t[a];Array.isArray(o)||(o=[o]);for(let t of o){let e=typeof t;if("string"!==e&&"number"!==e)throw Error('"match" requires string or number literal as labels');if(i){if(e!==i)throw Error('"match" requires labels to have the same type')}else i=e;s[t]=n.length}let l=It(t[a+1],e);r||=l.type,n.push(l)}return new J(r,a,s,n,It(t[t.length-1],e))}evaluate(t,e){let r=this._input.evaluate(t,e);return(this._outputs[this._labels[r]]||this._fallback).evaluate(t,e)}}class tt{constructor(t,e,r,i,a){this._operator=t,this.type=e,this.interpolation=r,this.input=i,this._stops=a}static parse(t,e,r){let i=t[0];if(t.length<5)throw Error(`"${i}" expects at least 4 arguments`);let a=t[1];if(!Array.isArray(a)||0===a.length)throw Error(`"${a}" is not a valid interpolation`);switch(a[0]){case"linear":if(1!==a.length)throw Error("Linear interpolation cannot have parameters");break;case"exponential":if(2!==a.length||"number"!=typeof a[1])throw Error("Exponential interpolation requires one numeric argument");break;case"cubic-bezier":if(5!==a.length)throw Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1");for(let t=1;t<5;t++){let e=a[t];if("number"!=typeof e||e<0||e>1)throw Error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1")}break;default:throw Error(`"${t[0]}" unknown interpolation type "${a[0]}"`)}if(t.length%2!=1)throw Error(`"${i}" expects an even number of arguments`);let n,s=It(t[2],e,L);"interpolate-hcl"===i||"interpolate-lab"===i?n=S:r&&"value"!==r.kind&&(n=r);let o=[];for(let r=3;r<t.length;r+=2){let a=t[r];if("number"!=typeof a)throw Error(`"${i}" requires stop inputs as literal numbers`);if(o.length&&o[o.length-1][0]>=a)throw Error(`"${i}" requires strictly ascending stop inputs`);let s=It(t[r+1],e,n);n||=s.type,o.push([a,s])}if(n&&n!==S&&n!==L&&("array"!==n.kind||n.itemType!==L))throw Error(`"${i}" cannot interpolate type ${z(n)}`);return new tt(i,n,a,s,o)}evaluate(t,e){let r=this._stops;if(1===r.length)return r[0][1].evaluate(t,e);let i=this.input.evaluate(t,e);if(i<=r[0][0])return r[0][1].evaluate(t,e);if(i>=r[r.length-1][0])return r[r.length-1][1].evaluate(t,e);let a=0;for(;++a<r.length&&!(i<r[a][0]););let s=r[a-1][0],o=r[a][0],l=tt.interpolationRatio(this.interpolation,i,s,o),u=r[a-1][1].evaluate(t,e),h=r[a][1].evaluate(t,e);if("interpolate"===this._operator){if("array"===this.type.kind&&Array.isArray(u)&&Array.isArray(h))return u.map((t,e)=>(0,n.GW)(t,h[e],l));if("color"===this.type.kind&&u instanceof T.A&&h instanceof T.A){let t=new T.A(u),e=new T.A(h);return new T.A([(0,n.GW)(t.r,e.r,l),(0,n.GW)(t.g,e.g,l),(0,n.GW)(t.b,e.b,l),(0,n.GW)(t.a,e.a,l)])}if("number"===this.type.kind&&"number"==typeof u&&"number"==typeof h)return(0,n.GW)(u,h,l);throw Error(`"${this._operator}" cannot interpolate type ${z(this.type)}`)}if("interpolate-hcl"===this._operator){let t=(0,I.RH)(u),e=(0,I.RH)(h),r=e.h-t.h,i=(0,I.$)({h:t.h+l*(r>180||r<-180?r-360*Math.round(r/360):r),c:(0,n.GW)(t.c,e.c,l),l:(0,n.GW)(t.l,e.l,l)});return new T.A({a:(0,n.GW)(u.a,h.a,l),...i})}if("interpolate-lab"===this._operator){let t=(0,I.ZD)(u),e=(0,I.ZD)(h),r=(0,I.$)({l:(0,n.GW)(t.l,e.l,l),a:(0,n.GW)(t.a,e.a,l),b:(0,n.GW)(t.b,e.b,l)});return new T.A({a:(0,n.GW)(u.a,h.a,l),...r})}throw Error(`Unexpected operator "${this._operator}"`)}interpolationUniformValue(t,e){let r=this._stops;if(1===r.length||t>=r[r.length-1][0])return 0;let i=0;for(;++i<r.length&&!(t<r[i][0]););let a=r[i-1][0],n=r[i][0];return tt.interpolationRatio(this.interpolation,e,a,n)}getInterpolationRange(t){let e=this._stops;if(1===e.length){let t=e[0][0];return[t,t]}let r=e[e.length-1][0];if(t>=r)return[r,r];let i=0;for(;++i<e.length&&!(t<e[i][0]););return[e[i-1][0],e[i][0]]}static interpolationRatio(t,e,r,i){let a=0;return"linear"===t[0]?a=tt._exponentialInterpolationRatio(e,1,r,i):"exponential"===t[0]?a=tt._exponentialInterpolationRatio(e,t[1],r,i):"cubic-bezier"===t[0]&&(a=E(t[1],t[2],t[3],t[4])(tt._exponentialInterpolationRatio(e,1,r,i),1e-5)),a<0?a=0:a>1&&(a=1),a}static _exponentialInterpolationRatio(t,e,r,i){let a=i-r;if(0===a)return 0;let n=t-r;return 1===e?n/a:(e**n-1)/(e**a-1)}}class et{constructor(t,e,r){this.type=t,this._input=e,this._stops=r}static parse(t,e){if(t.length<5)throw Error('"step" expects at least 4 arguments');if(t.length%2!=1)throw Error('"step" expects an even number of arguments');let r,i=It(t[1],e,L),a=[];a.push([-1/0,It(t[2],e)]);for(let i=3;i<t.length;i+=2){let n=t[i];if("number"!=typeof n)throw Error('"step" requires stop inputs as literal numbers');if(a.length&&a[a.length-1][0]>=n)throw Error('"step" requires strictly ascending stop inputs');let s=It(t[i+1],e);r||=s.type,a.push([n,s])}return new et(r,i,a)}evaluate(t,e){let r=this._stops;if(1===r.length)return r[0][1].evaluate(t,e);let i=this._input.evaluate(t,e),a=0;for(;++a<r.length&&!(i<r[a][0]););return this._stops[a-1][1].evaluate(t,e)}}class rt{constructor(t,e){this.type=t,this._output=e}static parse(t,e,r){if(t.length<4)throw Error('"let" expects at least 3 arguments');if(t.length%2==1)throw Error('"let" expects an odd number of arguments');let i=new F(e);for(let r=1;r<t.length-1;r+=2){let a=t[r];if("string"!=typeof a)throw Error(`"let" requires a string to define variable names - found ${a}`);i.add(a,It(t[r+1],e))}let a=It(t[t.length-1],i,r);return new rt(a.type,a)}evaluate(t,e){return this._output.evaluate(t,e)}}class it{constructor(t,e){this.type=t,this.output=e}static parse(t,e,r){if(2!==t.length||"string"!=typeof t[1])throw Error('"var" requires just one literal string argument');let i=e.get(t[1]);if(!i)throw Error(`${t[1]} must be defined before being used in a "var" expression`);return new it(r||O,i)}evaluate(t,e){return this.output.evaluate(t,e)}}class at{constructor(t,e,r){this.type=t,this._index=e,this._array=r}static parse(t,e){if(3!==t.length)throw Error('"at" expects 2 arguments');let r=It(t[1],e,L),i=It(t[2],e);return new at(i.type.itemType,r,i)}evaluate(t,e){let r=this._index.evaluate(t,e),i=this._array.evaluate(t,e);if(r<0||r>=i.length)throw Error('"at" index out of bounds');if(r!==Math.floor(r))throw Error('"at" index must be an integer');return i[r]}}class nt{constructor(t){this._args=t,this.type=O}static parse(t,e){let r=t.slice(1).map(t=>Array.isArray(t)?It(t,e):t);return new nt(r)}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r&&r.evaluate?r.evaluate(t,e):r)),!r||r.length<2&&r.length%2==1?"":(t=>Array.from({length:t.length/2},(e,r)=>(t=>t)(t[2*r],t[2*r+1])))(r).join()}}class st{constructor(t,e){this._key=t,this._obj=e,this.type=O}static parse(t,e){let r,i;switch(t.length){case 2:return r=It(t[1],e),new st(r);case 3:return r=It(t[1],e),i=It(t[2],e),new st(r,i);default:throw Error('"get" expects 1 or 2 arguments')}}evaluate(t,e){let r=this._key.evaluate(t,e);return this._obj?this._obj.evaluate(t,e)[r]:t?.values[r]}}class ot{constructor(t,e){this._key=t,this._obj=e,this.type=k}static parse(t,e){let r,i;switch(t.length){case 2:return r=It(t[1],e),new ot(r);case 3:return r=It(t[1],e),i=It(t[2],e),new ot(r,i);default:throw Error('"has" expects 1 or 2 arguments')}}evaluate(t,e){let r=this._key.evaluate(t,e);return this._obj?r in this._obj.evaluate(t,e):!!t?.values[r]}}class lt{constructor(t,e){this._key=t,this._vals=e,this.type=k}static parse(t,e){if(3!==t.length)throw Error('"in" expects 2 arguments');return new lt(It(t[1],e),It(t[2],e))}evaluate(t,e){let r=this._key.evaluate(t,e);return this._vals.evaluate(t,e).includes(r)}}class ut{constructor(t,e,r){this._item=t,this._array=e,this._from=r,this.type=L}static parse(t,e){if(t.length<3||t.length>4)throw Error('"index-of" expects 3 or 4 arguments');let r=It(t[1],e),i=It(t[2],e);if(4===t.length){let a=It(t[3],e,L);return new ut(r,i,a)}return new ut(r,i)}evaluate(t,e){let r=this._item.evaluate(t,e),i=this._array.evaluate(t,e);if(this._from){let a=this._from.evaluate(t,e);if(a!==Math.floor(a))throw Error('"index-of" index must be an integer');return i.indexOf(r,a)}return i.indexOf(r)}}class ht{constructor(t){this._arg=t,this.type=L}static parse(t,e){if(2!==t.length)throw Error('"length" expects 2 arguments');let r=It(t[1],e);return new ht(r)}evaluate(t,e){let r=this._arg.evaluate(t,e);if("string"==typeof r||Array.isArray(r))return r.length;throw Error('"length" expects string or array')}}class ct{constructor(t,e,r,i){this.type=t,this._array=e,this._from=r,this._to=i}static parse(t,e){if(t.length<3||t.length>4)throw Error('"slice" expects 2 or 3 arguments');let r=It(t[1],e),i=It(t[2],e,L);if(i.type!==L)throw Error('"slice" index must return a number');if(4===t.length){let a=It(t[3],e,L);if(a.type!==L)throw Error('"slice" index must return a number');return new ct(r.type,r,i,a)}return new ct(r.type,r,i)}evaluate(t,e){let r=this._array.evaluate(t,e);if(!Array.isArray(r)&&"string"!=typeof r)throw Error('"slice" input must be an array or a string');let i=this._from.evaluate(t,e);if(i<0||i>=r.length)throw Error('"slice" index out of bounds');if(i!==Math.floor(i))throw Error('"slice" index must be an integer');if(this._to){let a=this._to.evaluate(t,e);if(a<0||a>=r.length)throw Error('"slice" index out of bounds');if(a!==Math.floor(a))throw Error('"slice" index must be an integer');return r.slice(i,a)}return r.slice(i)}}class pt{constructor(){this.type=k}static parse(t){if(1!==t.length)throw Error('"has-id" expects no arguments');return new pt}evaluate(t,e){return void 0!==t?.id}}class yt{constructor(t,e){this._args=t,this._calculate=e,this.type=L}static parse(t,e,r){let i=t.slice(1).map(t=>It(t,e));return new yt(i,r)}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r.evaluate(t,e))),this._calculate(r)}}class ft{constructor(t,e){this._args=t,this._calculate=e,this.type=L}static{this.ops={abs:t=>Math.abs(t[0]),acos:t=>Math.acos(t[0]),asin:t=>Math.asin(t[0]),atan:t=>Math.atan(t[0]),ceil:t=>Math.ceil(t[0]),cos:t=>Math.cos(t[0]),e:()=>Math.E,floor:t=>Math.floor(t[0]),ln:t=>Math.log(t[0]),ln2:()=>Math.LN2,log10:t=>Math.log(t[0])/Math.LN10,log2:t=>Math.log(t[0])/Math.LN2,max:t=>Math.max(...t),min:t=>Math.min(...t),pi:()=>Math.PI,round:t=>Math.round(t[0]),sin:t=>Math.sin(t[0]),sqrt:t=>Math.sqrt(t[0]),tan:t=>Math.tan(t[0])}}static parse(t,e){let r=t.slice(1).map(t=>It(t,e));return new ft(r,ft.ops[t[0]])}evaluate(t,e){let r;return this._args&&(r=this._args.map(r=>r.evaluate(t,e))),this._calculate(r)}}class mt{constructor(t){this._args=t,this.type=A}static parse(t,e){return new mt(t.slice(1).map(t=>It(t,e)))}evaluate(t,e){return this._args.map(r=>r.evaluate(t,e)).join("")}}class gt{constructor(t,e){this._arg=t,this._calculate=e,this.type=A}static{this.ops={downcase:t=>t.toLowerCase(),upcase:t=>t.toUpperCase()}}static parse(t,e){if(2!==t.length)throw Error(`${t[0]} expects 1 argument`);let r=It(t[1],e);return new gt(r,gt.ops[t[0]])}evaluate(t,e){return this._calculate(this._arg.evaluate(t,e))}}class dt{constructor(t){this._args=t,this.type=S}static parse(t,e){if(4!==t.length)throw Error('"rgb" expects 3 arguments');let r=t.slice(1).map(t=>It(t,e));return new dt(r)}evaluate(t,e){let r=this._validate(this._args[0].evaluate(t,e)),i=this._validate(this._args[1].evaluate(t,e)),a=this._validate(this._args[2].evaluate(t,e));return new T.A({r,g:i,b:a})}_validate(t){if("number"!=typeof t||t<0||t>255)throw Error(`${t}: invalid color component`);return Math.round(t)}}class bt{constructor(t){this._args=t,this.type=S}static parse(t,e){if(5!==t.length)throw Error('"rgba" expects 4 arguments');let r=t.slice(1).map(t=>It(t,e));return new bt(r)}evaluate(t,e){let r=this._validate(this._args[0].evaluate(t,e)),i=this._validate(this._args[1].evaluate(t,e)),a=this._validate(this._args[2].evaluate(t,e)),n=this._validateAlpha(this._args[3].evaluate(t,e));return new T.A({r,g:i,b:a,a:n})}_validate(t){if("number"!=typeof t||t<0||t>255)throw Error(`${t}: invalid color component`);return Math.round(t)}_validateAlpha(t){if("number"!=typeof t||t<0||t>1)throw Error(`${t}: invalid alpha color component`);return t}}class _t{constructor(t){this._color=t,this.type=N(L,4)}static parse(t,e){if(2!==t.length)throw Error('"to-rgba" expects 1 argument');let r=It(t[1],e);return new _t(r)}evaluate(t,e){return new T.A(this._color.evaluate(t,e)).toRgba()}}class vt{constructor(t,e){this.type=t,this._args=e}static parse(t,e){let r=t[0];if(t.length<2)throw Error(`${r} expects at least one argument`);let i,a=1;if("array"===r){if(t.length>2){switch(t[1]){case"string":i=A;break;case"number":i=L;break;case"boolean":i=k;break;default:throw Error('"array" type argument must be string, number or boolean')}a++}else i=O;let e;if(t.length>3){if(e=t[2],null!==e&&("number"!=typeof e||e<0||e!==Math.floor(e)))throw Error('"array" length argument must be a positive integer literal');a++}i=N(i,e)}else switch(r){case"string":i=A;break;case"number":i=L;break;case"boolean":i=k;break;case"object":i=M}let n=[];for(;a<t.length;a++){let r=It(t[a],e);n.push(r)}return new vt(i,n)}evaluate(t,e){let r;for(let i of this._args){let a=i.evaluate(t,e);if(r=U(a),B(r,this.type))return a}throw Error(`Expected ${z(this.type)} but got ${z(r)}`)}}class xt{static{this.types={"to-boolean":k,"to-color":S,"to-number":L,"to-string":A}}constructor(t,e){this.type=t,this._args=e}static parse(t,e){let r=t[0],i=xt.types[r];if(i===k||i===A){if(2!==t.length)throw Error(`${r} expects one argument`)}else if(t.length<2)throw Error(`${r} expects at least one argument`);let a=[];for(let r=1;r<t.length;r++){let i=It(t[r],e);a.push(i)}return new xt(i,a)}evaluate(t,e){if(this.type===k)return!!this._args[0].evaluate(t,e);if(this.type===A)return V(this._args[0].evaluate(t,e));if(this.type===L){for(let r of this._args){let i=Number(r.evaluate(t,e));if(!isNaN(i))return i}return null}if(this.type===S){for(let r of this._args)try{let i=xt.toColor(r.evaluate(t,e));if(i instanceof T.A)return i}catch{}return null}}static toBoolean(t){return!!t}static toString(t){return V(t)}static toNumber(t){let e=Number(t);if(isNaN(e))throw Error(`"${t}" is not a number`);return e}static toColor(t){if(t instanceof T.A)return t;if("string"==typeof t){let e=T.A.fromString(t);if(e)return e;throw Error(`"${t}" is not a color`)}if(Array.isArray(t))return T.A.fromArray(t);throw Error(`"${t}" is not a color`)}}class wt{constructor(t){this._val=t,this.type=U(t)}static parse(t){if(2!==t.length)throw Error('"literal" expects 1 argument');return new wt(t[1])}evaluate(t,e){return this._val}}class Tt{constructor(t){this._arg=t,this.type=A}static parse(t,e){if(2!==t.length)throw Error('"typeof" expects 1 argument');return new Tt(It(t[1],e))}evaluate(t,e){return z(U(this._arg.evaluate(t,e)))}}function It(t,e,r){let i=typeof t;if("string"===i||"boolean"===i||"number"===i||null===t){if(r)switch(r.kind){case"string":"string"!==i&&(t=xt.toString(t));break;case"number":"number"!==i&&(t=xt.toNumber(t));break;case"color":t=xt.toColor(t)}t=["literal",t]}if(!Array.isArray(t)||0===t.length)throw Error("Expression must be a non empty array");let a=t[0];if("string"!=typeof a)throw Error("First element of expression must be a string");let n=Et[a];if(void 0===n)throw Error(`Invalid expression operator "${a}"`);if(!n)throw Error(`Unimplemented expression operator "${a}"`);return n.parse(t,e,r)}const Et={array:vt,boolean:vt,collator:null,format:nt,image:null,literal:wt,number:vt,"number-format":null,object:vt,string:vt,"to-boolean":xt,"to-color":xt,"to-number":xt,"to-string":xt,typeof:Tt,accumulated:null,"feature-state":null,"geometry-type":C,id:$,"line-progress":null,properties:Y,at,get:st,has:ot,in:lt,"index-of":ut,length:ht,slice:ct,"!":H,"!=":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t!==e)}},"<":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t<e)}},"<=":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t<=e)}},"==":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t===e)}},">":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t>e)}},">=":class extends j{static parse(t,e){return j.parse(t,e,(t,e)=>t>=e)}},all:W,any:Z,case:X,coalesce:Q,match:J,within:null,interpolate:tt,"interpolate-hcl":tt,"interpolate-lab":tt,step:et,let:rt,var:it,concat:mt,downcase:gt,"is-supported-script":null,"resolved-locale":null,upcase:gt,rgb:dt,rgba:bt,"to-rgba":_t,"-":class extends yt{static parse(t,e){switch(t.length){case 2:return yt.parse(t,e,t=>-t[0]);case 3:return yt.parse(t,e,t=>t[0]-t[1]);default:throw Error('"-" expects 1 or 2 arguments')}}},"*":class extends yt{static parse(t,e){return yt.parse(t,e,t=>{let e=1;for(let r of t)e*=r;return e})}},"/":class extends yt{static parse(t,e){if(3===t.length)return yt.parse(t,e,t=>t[0]/t[1]);throw Error('"/" expects 2 arguments')}},"%":class extends yt{static parse(t,e){if(3===t.length)return yt.parse(t,e,t=>t[0]%t[1]);throw Error('"%" expects 2 arguments')}},"^":class extends yt{static parse(t,e){if(3===t.length)return yt.parse(t,e,t=>t[0]**t[1]);throw Error('"^" expects 1 or 2 arguments')}},"+":class extends yt{static parse(t,e){return yt.parse(t,e,t=>{let e=0;for(let r of t)e+=r;return e})}},abs:ft,acos:ft,asin:ft,atan:ft,ceil:ft,cos:ft,e:ft,floor:ft,ln:ft,ln2:ft,log10:ft,log2:ft,max:ft,min:ft,pi:ft,round:ft,sin:ft,sqrt:ft,tan:ft,zoom:q,"heatmap-density":null,"has-id":pt,none:K};class Pt{constructor(t){this._expression=t}filter(t,e){if(!this._expression)return!0;try{return this._expression.evaluate(t,e)}catch(t){return console.log(t.message),!0}}static createFilter(t){if(!t)return null;this.isLegacyFilter(t)&&(t=this.convertLegacyFilter(t));try{let e=It(t,null,k);return new Pt(e)}catch(t){return console.log(t.message),null}}static isLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;switch(t[0]){case"==":case"!=":case">":case"<":case">=":case"<=":return 3===t.length&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"in":return t.length>=3&&"string"==typeof t[1]&&!Array.isArray(t[2]);case"!in":case"none":case"!has":return!0;case"any":case"all":for(let e=1;e<t.length;e++)if(this.isLegacyFilter(t[e]))return!0;return!1;case"has":return 2===t.length&&("$id"===t[1]||"$type"===t[1]);default:return!1}}static convertLegacyFilter(t){if(!Array.isArray(t)||0===t.length)return!0;let e=t[0];if(1===t.length)return"any"!==e;switch(e){case"==":return Pt.convertComparison("==",t[1],t[2]);case"!=":return Pt.negate(Pt.convertComparison("==",t[1],t[2]));case">":case"<":case">=":case"<=":return Pt.convertComparison(e,t[1],t[2]);case"in":return Pt.convertIn(t[1],t.slice(2));case"!in":return Pt.negate(Pt.convertIn(t[1],t.slice(2)));case"any":case"all":case"none":return Pt.convertCombining(e,t.slice(1));case"has":return Pt.convertHas(t[1]);case"!has":return Pt.negate(Pt.convertHas(t[1]));default:throw Error("Unexpected legacy filter.")}}static convertComparison(t,e,r){switch(e){case"$type":return[t,["geometry-type"],r];case"$id":return[t,["id"],r];default:return[t,["get",e],r]}}static convertIn(t,e){switch(t){case"$type":return["in",["geometry-type"],["literal",e]];case"$id":return["in",["id"],["literal",e]];default:return["in",["get",t],["literal",e]]}}static convertHas(t){switch(t){case"$type":return!0;case"$id":return["has-id"];default:return["has",t]}}static convertCombining(t,e){return[t].concat(e.map(this.convertLegacyFilter))}static negate(t){return["!",t]}}class Dt{static{this.backgroundLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.fillLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.lineLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"line-cap":{type:"enum",values:["butt","round","square"],default:0},"line-join":{type:"enum",values:["bevel","round","miter"],default:2},"line-miter-limit":{type:"number",default:2},"line-round-limit":{type:"number",default:1.05}}}static{this.symbolLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0},"symbol-avoid-edges":{type:"boolean",default:!1},"symbol-placement":{type:"enum",values:["point","line","line-center"],default:0},"symbol-sort-key":{type:"number",default:-1},"symbol-spacing":{type:"number",minimum:1,default:250},"icon-allow-overlap":{type:"boolean",default:!1},"icon-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"icon-ignore-placement":{type:"boolean",default:!1},"icon-image":{type:"string"},"icon-keep-upright":{type:"boolean",default:!1},"icon-offset":{type:"array",value:"number",length:2,default:[0,0]},"icon-optional":{type:"boolean",default:!1},"icon-padding":{type:"number",minimum:0,default:2},"icon-rotate":{type:"number",default:0},"icon-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"icon-size":{type:"number",minimum:0,default:1},"text-allow-overlap":{type:"boolean",default:!1},"text-anchor":{type:"enum",values:["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"],default:0},"text-field":{type:"string"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"]},"text-ignore-placement":{type:"boolean",default:!1},"text-justify":{type:"enum",values:["auto","left","center","right"],default:2},"text-keep-upright":{type:"boolean",default:!0},"text-letter-spacing":{type:"number",default:0},"text-line-height":{type:"number",default:1.2},"text-max-angle":{type:"number",minimum:0,default:45},"text-max-width":{type:"number",minimum:0,default:10},"text-offset":{type:"array",value:"number",length:2,default:[0,0]},"text-optional":{type:"boolean",default:!1},"text-padding":{type:"number",minimum:0,default:2},"text-rotate":{type:"number",default:0},"text-rotation-alignment":{type:"enum",values:["map","viewport","auto"],default:2},"text-size":{type:"number",minimum:0,default:16},"text-transform":{type:"enum",values:["none","uppercase","lowercase"],default:0},"text-writing-mode":{type:"array",value:"enum",values:["horizontal","vertical"],default:[0]}}}static{this.circleLayoutDefinition={visibility:{type:"enum",values:["visible","none"],default:0}}}static{this.backgroundPaintDefinition={"background-color":{type:"color",default:[0,0,0,1]},"background-opacity":{type:"number",minimum:0,maximum:1,default:1},"background-pattern":{type:"string"}}}static{this.fillPaintDefinition={"fill-antialias":{type:"boolean",default:!0},"fill-color":{type:"color",default:[0,0,0,1]},"fill-opacity":{type:"number",minimum:0,maximum:1,default:1},"fill-outline-color":{type:"color",default:[0,0,0,0]},"fill-pattern":{type:"string"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0]},"fill-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.linePaintDefinition={"line-blur":{type:"number",minimum:0,default:0},"line-color":{type:"color",default:[0,0,0,1]},"line-dasharray":{type:"array",value:"number",default:[]},"line-gap-width":{type:"number",minimum:0,default:0},"line-offset":{type:"number",default:0},"line-opacity":{type:"number",minimum:0,maximum:1,default:1},"line-pattern":{type:"string"},"line-translate":{type:"array",value:"number",length:2,default:[0,0]},"line-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"line-width":{type:"number",minimum:0,default:1}}}static{this.symbolPaintDefinition={"icon-color":{type:"color",default:[0,0,0,1]},"icon-halo-blur":{type:"number",minimum:0,default:0},"icon-halo-color":{type:"color",default:[0,0,0,0]},"icon-halo-width":{type:"number",minimum:0,default:0},"icon-opacity":{type:"number",minimum:0,maximum:1,default:1},"icon-translate":{type:"array",value:"number",length:2,default:[0,0]},"icon-translate-anchor":{type:"enum",values:["map","viewport"],default:0},"text-color":{type:"color",default:[0,0,0,1]},"text-halo-blur":{type:"number",minimum:0,default:0},"text-halo-color":{type:"color",default:[0,0,0,0]},"text-halo-width":{type:"number",minimum:0,default:0},"text-opacity":{type:"number",minimum:0,maximum:1,default:1},"text-translate":{type:"array",value:"number",length:2,default:[0,0]},"text-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}static{this.rasterPaintDefinition={"raster-opacity":{type:"number",minimum:0,maximum:1,default:1},"raster-hue-rotate":{type:"number",default:0},"raster-brightness-min":{type:"number",minimum:0,maximum:1,default:0},"raster-brightness-max":{type:"number",minimum:0,maximum:1,default:1},"raster-saturation":{type:"number",minimum:-1,maximum:1,default:0},"raster-contrast":{type:"number",minimum:-1,maximum:1,default:0},"raster-fade-duration":{type:"number",minimum:0,default:300}}}static{this.circlePaintDefinition={"circle-blur":{type:"number",minimum:0,default:0},"circle-color":{type:"color",default:[0,0,0,1]},"circle-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-radius":{type:"number",minimum:0,default:5},"circle-stroke-color":{type:"color",default:[0,0,0,1]},"circle-stroke-opacity":{type:"number",minimum:0,maximum:1,default:1},"circle-stroke-width":{type:"number",minimum:0,default:0},"circle-translate":{type:"array",value:"number",length:2,default:[0,0]},"circle-translate-anchor":{type:"enum",values:["map","viewport"],default:0}}}}var Lt=r(40876);class At{constructor(t,e){let r;switch(this.isDataDriven=!1,this.interpolator=null,t.type){case"number":case"color":r=!0;break;case"array":r="number"===t.value;break;default:r=!1}if((null==e||""===e&&"color"===t.type)&&(e=t.default),Array.isArray(e)&&e.length>0&&Et[e[0]]){let r={number:L,color:S,string:A,boolean:k,enum:A};try{let i=It(e,null,"array"===t.type?N(r[t.value]||O,t.length):r[t.type]);this.getValue=this._buildExpression(i,t),this.isDataDriven=G(e),this.isDataDriven&&i instanceof tt&&i.input instanceof q&&(this.interpolator=i)}catch(e){console.log(e.message),this.getValue=this._buildSimple(t.default)}return}r&&"interval"===e.type&&(r=!1);let i=e?.stops&&e.stops.length>0;if(i)for(let r of e.stops)r[1]=this._validate(r[1],t);if(this.isDataDriven=!!e&&!!e.property,this.isDataDriven)if(void 0!==e.default&&(e.default=this._validate(e.default,t)),i)switch(e.type){case"identity":this.getValue=this._buildIdentity(e,t);break;case"categorical":this.getValue=this._buildCategorical(e,t);break;default:this.getValue=r?this._buildInterpolate(e,t):this._buildInterval(e,t)}else this.getValue=this._buildIdentity(e,t);else i?this.getValue=r?this._buildZoomInterpolate(e):this._buildZoomInterval(e):(e=this._validate(e,t),this.getValue=this._buildSimple(e))}_validate(t,e){if("number"===e.type){if(null!=e.minimum&&t<e.minimum)return e.minimum;if(null!=e.maximum&&t>e.maximum)return e.maximum}else"color"===e.type?t=At._parseColor(t):"enum"===e.type?"string"==typeof t&&(t=e.values.indexOf(t)):"array"===e.type&&"enum"===e.value?t=t.map(t=>"string"==typeof t?e.values.indexOf(t):t):"string"===e.type&&(t=V(t));return t}_buildSimple(t){return()=>t}_buildExpression(t,e){return(r,i)=>{try{let a=t.evaluate(i,r);return void 0===a?e.default:this._validate(a,e)}catch(t){return console.log(t.message),e.default}}}_buildIdentity(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),void 0!==a&&(a=this._validate(a,e)),a??(void 0===t.default?e.default:t.default)}}_buildCategorical(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),a=this._categorical(a,t.stops),void 0===a?void 0===t.default?e.default:t.default:a}}_buildInterval(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),"number"==typeof a?this._interval(a,t.stops):void 0===t.default?e.default:t.default}}_buildInterpolate(t,e){return(r,i)=>{let a;return i&&(a=i.values[t.property]),"number"==typeof a?this._interpolate(a,t.stops,t.base||1):void 0===t.default?e.default:t.default}}_buildZoomInterpolate(t){return e=>this._interpolate(e,t.stops,t.base||1)}_buildZoomInterval(t){return e=>this._interval(e,t.stops)}_categorical(t,e){let r=e.length;for(let i=0;i<r;i++)if(e[i][0]===t)return e[i][1]}_interval(t,e){let r=e.length,i=0;for(let a=0;a<r&&e[a][0]<=t;a++)i=a;return e[i][1]}_interpolate(t,e,r){let i,a,s=e.length;for(let r=0;r<s;r++){let n=e[r];if(!(n[0]<=t)){a=n;break}i=n}if(i&&a){let e=a[0]-i[0],s=t-i[0],o=1===r?s/e:(r**s-1)/(r**e-1);if(Array.isArray(i[1])){let t=i[1],e=a[1],r=[];for(let i=0;i<t.length;i++)r.push((0,n.GW)(t[i],e[i],o));return r}return(0,n.GW)(i[1],a[1],o)}return i?i[1]:a?a[1]:void 0}static _isEmpty(t){for(let e in t)if(t.hasOwnProperty(e))return!1;return!0}static _parseColor(t){return Array.isArray(t)?t:"string"==typeof t?(0,Lt.Vm)(t)??void 0:t instanceof T.A&&!this._isEmpty(t)?t.toUnitRGBA():void 0}}class kt{constructor(t,e,r,i,a=null){switch(this.type=t,this.typeName=e.type,this.id=e.id,this.source=e.source,this.sourceLayer=e["source-layer"]??e.source,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,this.filter=e.filter,this.layout=e.layout,this.paint=e.paint,this.z=r,this.uid=i,this.sourceType=a,t){case 0:this._layoutDefinition=Dt.backgroundLayoutDefinition,this._paintDefinition=Dt.backgroundPaintDefinition;break;case 1:this._layoutDefinition=Dt.fillLayoutDefinition,this._paintDefinition=Dt.fillPaintDefinition;break;case 2:this._layoutDefinition=Dt.lineLayoutDefinition,this._paintDefinition=Dt.linePaintDefinition;break;case 3:this._layoutDefinition=Dt.symbolLayoutDefinition,this._paintDefinition=Dt.symbolPaintDefinition;break;case 4:this._layoutDefinition=Dt.circleLayoutDefinition,this._paintDefinition=Dt.circlePaintDefinition}this._layoutProperties=this._parseLayout(this.layout),this._paintProperties=this._parsePaint(this.paint)}getFeatureFilter(){return void 0===this._featureFilter?this._featureFilter=Pt.createFilter(this.filter):this._featureFilter}getLayoutProperty(t){return this._layoutProperties[t]}getPaintProperty(t){return this._paintProperties[t]}getLayoutValue(t,e,r){let i,a=this._layoutProperties[t];return a&&(i=a.getValue(e,r)),void 0===i&&(i=this._layoutDefinition[t].default),i}getPaintValue(t,e,r){let i,a=this._paintProperties[t];return a&&(i=a.getValue(e,r)),void 0===i&&(i=this._paintDefinition[t].default),i}isPainterDataDriven(){let t=this._paintProperties;if(t)for(let e in t)if(t[e].isDataDriven)return!0;return!1}isIntersectingFeature(t,e,r,i,a,n,s,o){return!1}getFeatureInflatedBounds(t,e,r,i){return null}_parseLayout(t){let e={};for(let r in t){let i=this._layoutDefinition[r];i&&(e[r]=new At(i,t[r]))}return e}_parsePaint(t){let e={};for(let r in t){let i=this._paintDefinition[r];i&&(e[r]=new At(i,t[r]))}return e}computeAttributesKey(t,e,r,i){let a=0,n=0;for(let t of e){let e=3;if(t&&t!==i){let{isLayout:i,isOptional:a}=r[t],n=i?this.getLayoutProperty(t):this.getPaintProperty(t);e=n?.interpolator?2:n?.isDataDriven?1:a&&!n?3:0}n|=e<<a,a+=2}return n<<3|t}}class St extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a),this.backgroundMaterial=new f(this.computeAttributesKey(0,f.ATTRIBUTES,f.ATTRIBUTES_INFO))}}class Mt extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a);let n=this.getPaintProperty("fill-color"),s=this.getPaintProperty("fill-opacity"),o=this.getPaintProperty("fill-pattern");this.hasDataDrivenColor=n?.isDataDriven,this.hasDataDrivenOpacity=s?.isDataDriven,this.hasDataDrivenFill=this.hasDataDrivenColor||this.hasDataDrivenOpacity||o?.isDataDriven;let l=this.getPaintProperty("fill-outline-color");this.outlineUsesFillColor=!l,this.hasDataDrivenOutlineColor=l?.isDataDriven,this.hasDataDrivenOutline=l?l.isDataDriven:!!n&&n.isDataDriven,this.hasDataDrivenOutline=(l?this.hasDataDrivenOutlineColor:this.hasDataDrivenColor)||this.hasDataDrivenOpacity,this.fillMaterial=new g(this.computeAttributesKey(1,g.ATTRIBUTES,g.ATTRIBUTES_INFO)),this.outlineMaterial=new d(this.computeAttributesKey(2,this.outlineUsesFillColor?d.ATTRIBUTES_FILL:d.ATTRIBUTES_OUTLINE,this.outlineUsesFillColor?d.ATTRIBUTES_INFO_FILL:d.ATTRIBUTES_INFO_OUTLINE),this.outlineUsesFillColor)}getFeatureInflatedBounds(t,e,r,i){let a=Bt(t);if(!a)return null;let n=this.getPaintValue("fill-translate",e,t),s=i*Math.max(n[0],n[1]);return a[0]-=s,a[2]-=s,a[1]+=s,a[3]+=s,a}isIntersectingFeature(t,e,r,i,s,o,l,u){let h=r.getGeometry();if(!h)return!1;let c=[...h.map(t=>t.map(t=>[t.x,t.y]))],p=8/l.normalizationRatio,y=p/o,f=(0,n.yM)(this.getPaintValue("fill-translate",i,r),this.getPaintValue("fill-translate-anchor",i,r),s,y);if("point"===u){let[r,i]=t[0];return r=r/l.normalizationRatio+l.normalizationOffsetX,i=i/l.normalizationRatio+l.normalizationOffsetY,r-=p*f.x,i-=p*f.y,!!(0,a.s3)([r,i],c)||(0,a.VK)([r,i],c,e)}let m=[];for(let e of t){let[t,r]=e;t=t/l.normalizationRatio+l.normalizationOffsetX,r=r/l.normalizationRatio+l.normalizationOffsetY,t-=p*f.x,r-=p*f.y,m.push([t,r])}return(0,a.M5)(m,c)}}class Ot extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a);let n=this.getPaintProperty("line-pattern");if(this.lineMaterial=new b(this.computeAttributesKey(3,b.ATTRIBUTES,b.ATTRIBUTES_INFO,n?"line-dasharray":"")),this.hasDataDrivenLine=this.getPaintProperty("line-blur")?.isDataDriven||this.getPaintProperty("line-color")?.isDataDriven||this.getPaintProperty("line-gap-width")?.isDataDriven||this.getPaintProperty("line-offset")?.isDataDriven||this.getPaintProperty("line-opacity")?.isDataDriven||this.getPaintProperty("line-pattern")?.isDataDriven||this.getPaintProperty("line-dasharray")?.isDataDriven||this.getLayoutProperty("line-cap")?.isDataDriven||this.getPaintProperty("line-width")?.isDataDriven,this.canUseThinTessellation=!1,!this.hasDataDrivenLine){let t=this.getPaintProperty("line-width");if(!t||"number"==typeof t&&.5*t<1.05){let t=this.getPaintProperty("line-offset");(!t||"number"==typeof t&&0===t)&&(this.canUseThinTessellation=!0)}}}getDashKey(t,e){let r;switch(e){case 0:default:r="Butt";break;case 1:r="Round";break;case 2:r="Square"}return`dasharray-[${t.toString()}]-${r}`}getFeatureInflatedBounds(t,e,r,i){let a=Bt(t);if(!a)return null;let n=this.getPaintValue("line-translate",e,t),s=i*Math.max(n[0],n[1]);a[0]-=s,a[2]-=s,a[1]+=s,a[3]+=s;let o=i*Math.abs(this.getPaintValue("line-offset",e,t)||0),l=this.getPaintValue("line-width",e,t)/2*i;return a[0]-=o+l,a[1]-=o+l,a[2]+=o+l,a[3]+=o+l,a}isIntersectingFeature(t,e,r,i,s,o,l,u){let h=r.getGeometry();if(!h)return!1;let c=8/l.normalizationRatio,p=c/o,y=(0,n.yM)(this.getPaintValue("line-translate",i,r),this.getPaintValue("line-translate-anchor",i,r),s,p);if("point"===u){let[n,s]=t[0];n=n/l.normalizationRatio+l.normalizationOffsetX,s=s/l.normalizationRatio+l.normalizationOffsetY,n-=c*y.x,s-=c*y.y;let o=this.getPaintValue("line-width",i,r)/2*p+e,u=[...h.map(t=>t.map(t=>[t.x,t.y]))];return(0,a.VK)([n,s],u,o)}let f=[];for(let e of t){let[t,r]=e;t=t/l.normalizationRatio+l.normalizationOffsetX,r=r/l.normalizationRatio+l.normalizationOffsetY,t-=c*y.x,r-=c*y.y,f.push([t,r])}let m=p*this.getPaintValue("line-offset",i,r)||0;0!==m&&(h=(0,n.cP)(h,-m));let g=[...h.map(t=>t.map(t=>[t.x,t.y]))];return(0,a.M5)(f,g)}}class Nt extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a),this.iconMaterial=new x(this.computeAttributesKey(4,x.ATTRIBUTES,x.ATTRIBUTES_INFO)),this.textMaterial=new w(this.computeAttributesKey(6,w.ATTRIBUTES,w.ATTRIBUTES_INFO)),this.hasDataDrivenIcon=this.getPaintProperty("icon-color")?.isDataDriven||this.getPaintProperty("icon-halo-blur")?.isDataDriven||this.getPaintProperty("icon-halo-color")?.isDataDriven||this.getPaintProperty("icon-halo-width")?.isDataDriven||this.getPaintProperty("icon-opacity")?.isDataDriven||this.getLayoutProperty("icon-size")?.isDataDriven,this.hasDataDrivenText=this.getPaintProperty("text-color")?.isDataDriven||this.getPaintProperty("text-halo-blur")?.isDataDriven||this.getPaintProperty("text-halo-color")?.isDataDriven||this.getPaintProperty("text-halo-width")?.isDataDriven||this.getPaintProperty("text-opacity")?.isDataDriven||this.getLayoutProperty("text-size")?.isDataDriven}}class Rt extends kt{constructor(t,e,r,i,a=null){super(t,e,r,i,a),this.circleMaterial=new m(this.computeAttributesKey(5,m.ATTRIBUTES,m.ATTRIBUTES_INFO))}getFeatureInflatedBounds(t,e,r,i){let a=Bt(t);if(!a)return null;let n=this.getPaintValue("circle-translate",e,t),s=Math.max(n[0],n[1]);a[0]-=s,a[2]-=s,a[1]+=s,a[3]+=s;let o=8*(this.getPaintValue("circle-radius",e,t)+this.getPaintValue("circle-stroke-width",e,t))/2*i;return a[0]-=o,a[1]-=o,a[2]+=o,a[3]+=o,a}isIntersectingFeature(t,e,r,i,s,o,l,u){let h=r.getGeometry();if(!h)return!1;let c=8/l.normalizationRatio/o,p=(0,n.yM)(this.getPaintValue("circle-translate",i,r),this.getPaintValue("circle-translate-anchor",i,r),s,c),y=8*(this.getPaintValue("circle-radius",i,r)+this.getPaintValue("circle-stroke-width",i,r));if("point"===u){let r,i,[a,n]=t[0];a=a/l.normalizationRatio+l.normalizationOffsetX,n=n/l.normalizationRatio+l.normalizationOffsetY;for(let t of h)if(t)for(let s of t){r=s.x+p.x,i=s.y+p.y;let t=Math.sqrt((a-r)*(a-r)+(n-i)*(n-i))-e;if(t<=0||t<=y)return!0}}let f=t.map(t=>{let[e,r]=t;return e=e/l.normalizationRatio+l.normalizationOffsetX,r=r/l.normalizationRatio+l.normalizationOffsetY,[e,r]});for(let t of h)if(t)for(let e of t){let t=e.x+p.x,r=e.y+p.y,i=[[t-y,r-y],[t-y,r+y],[t+y,r+y],[t+y,r-y],[t-y,r-y]];if((0,a.M5)(f,[i]))return!0}return!1}}class zt{constructor(t,e,r){let i;this.allowOverlap=t.getLayoutValue("icon-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("icon-ignore-placement",e),this.keepUpright=t.getLayoutValue("icon-keep-upright",e),this.optional=t.getLayoutValue("icon-optional",e),this.rotationAlignment=t.getLayoutValue("icon-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=+!r),i=t.getLayoutProperty("icon-anchor"),i?.isDataDriven?this._anchorProp=i:this.anchor=t.getLayoutValue("icon-anchor",e),i=t.getLayoutProperty("icon-offset"),i?.isDataDriven?this._offsetProp=i:this.offset=t.getLayoutValue("icon-offset",e),i=t.getLayoutProperty("icon-padding"),i?.isDataDriven?this._paddingProp=i:this.padding=t.getLayoutValue("icon-padding",e),i=t.getLayoutProperty("icon-rotate"),i?.isDataDriven?this._rotateProp=i:this.rotate=t.getLayoutValue("icon-rotate",e),i=t.getLayoutProperty("icon-size"),i?.isDataDriven?this._sizeProp=i:this.size=t.getLayoutValue("icon-size",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e))}}class Ut{constructor(t,e,r){let i;this.allowOverlap=t.getLayoutValue("text-allow-overlap",e),this.ignorePlacement=t.getLayoutValue("text-ignore-placement",e),this.keepUpright=t.getLayoutValue("text-keep-upright",e),this.optional=t.getLayoutValue("text-optional",e),this.rotationAlignment=t.getLayoutValue("text-rotation-alignment",e),2===this.rotationAlignment&&(this.rotationAlignment=+!r),i=t.getLayoutProperty("text-anchor"),i?.isDataDriven?this._anchorProp=i:this.anchor=t.getLayoutValue("text-anchor",e),i=t.getLayoutProperty("text-justify"),i?.isDataDriven?this._justifyProp=i:this.justify=t.getLayoutValue("text-justify",e),i=t.getLayoutProperty("text-letter-spacing"),i?.isDataDriven?this._letterSpacingProp=i:this.letterSpacing=t.getLayoutValue("text-letter-spacing",e),i=t.getLayoutProperty("text-line-height"),i?.isDataDriven?this._lineHeightProp=i:this.lineHeight=t.getLayoutValue("text-line-height",e),i=t.getLayoutProperty("text-max-angle"),i?.isDataDriven?this._maxAngleProp=i:this.maxAngle=t.getLayoutValue("text-max-angle",e),i=t.getLayoutProperty("text-max-width"),i?.isDataDriven?this._maxWidthProp=i:this.maxWidth=t.getLayoutValue("text-max-width",e),i=t.getLayoutProperty("text-offset"),i?.isDataDriven?this._offsetProp=i:this.offset=t.getLayoutValue("text-offset",e),i=t.getLayoutProperty("text-padding"),i?.isDataDriven?this._paddingProp=i:this.padding=t.getLayoutValue("text-padding",e),i=t.getLayoutProperty("text-rotate"),i?.isDataDriven?this._rotateProp=i:this.rotate=t.getLayoutValue("text-rotate",e),i=t.getLayoutProperty("text-size"),i?.isDataDriven?this._sizeProp=i:this.size=t.getLayoutValue("text-size",e),i=t.getLayoutProperty("text-writing-mode"),i?.isDataDriven?this._writingModeProp=i:this.writingMode=t.getLayoutValue("text-writing-mode",e)}update(t,e){this._anchorProp&&(this.anchor=this._anchorProp.getValue(t,e)),this._justifyProp&&(this.justify=this._justifyProp.getValue(t,e)),this._letterSpacingProp&&(this.letterSpacing=this._letterSpacingProp.getValue(t,e)),this._lineHeightProp&&(this.lineHeight=this._lineHeightProp.getValue(t,e)),this._maxAngleProp&&(this.maxAngle=this._maxAngleProp.getValue(t,e)),this._maxWidthProp&&(this.maxWidth=this._maxWidthProp.getValue(t,e)),this._offsetProp&&(this.offset=this._offsetProp.getValue(t,e)),this._paddingProp&&(this.padding=this._paddingProp.getValue(t,e)),this._rotateProp&&(this.rotate=this._rotateProp.getValue(t,e)),this._sizeProp&&(this.size=this._sizeProp.getValue(t,e)),this._writingModeProp&&(this.writingMode=this._writingModeProp.getValue(t,e))}}function Bt(t){let e=t?.getGeometry();if(null==e)return null;let r=1/0,a=1/0,n=-1/0,s=-1/0;for(let t of e)if(t)for(let e of t)r=Math.min(r,e.x),a=Math.min(a,e.y),n=Math.max(n,e.x),s=Math.max(s,e.y);return(0,i.fA)(r,a,n,s)}},45013(t,e,r){r.d(e,{A:()=>n});var i=r(4718),a=r(4264);class n{constructor(t,e=!0){if(this.backgroundBucketIds=[],this._uidToLayer=new Map,this._layerByName={},this._runningId=0,this._style=e?(0,i.o8)(t):t,this._style.layers||(this._style.layers=[]),this.version=parseFloat(this._style.version),this.layers=this._style.layers.map((t,e,r)=>this._create(t,e,r)).filter(t=>!!t),this.layers)for(let t=0;t<this.layers.length;t++){let e=this.layers[t];this._layerByName[e.id]=e,this._uidToLayer.set(e.uid,e),0===e.type&&this.backgroundBucketIds.push(e.id)}this._identifyRefLayers()}getLayerStyleProperties(t,e){let r=this.getStyleLayerByUID(t),i=0!==r?.getLayoutValue("symbol-placement",e),a=r?.getLayoutValue("icon-rotation-alignment",e);2===a&&(a=+!i);let n=r?.getLayoutValue("text-rotation-alignment",e);2===n&&(n=+!i);let s=r?.getPaintValue("icon-translate",e),o=r?.getPaintValue("icon-translate-anchor",e),l=r?.getPaintValue("text-translate",e),u=r?.getPaintValue("text-translate-anchor",e);return{geometryType:null,iconAllowOverlap:r?.getLayoutValue("icon-allow-overlap",e),iconIgnorePlacement:r?.getLayoutValue("icon-ignore-placement",e),textAllowOverlap:r?.getLayoutValue("text-allow-overlap",e),textIgnorePlacement:r?.getLayoutValue("text-ignore-placement",e),iconRotationAlignment:a,textRotationAlignment:n,iconTranslateAnchor:o,iconTranslate:s,textTranslateAnchor:u,textTranslate:l}}isPainterDataDriven(t){let e=this._layerByName[t];return!!e&&e.isPainterDataDriven()}getStyleLayerId(t){return t>=this.layers.length?null:this.layers[t].id}getStyleLayerByUID(t){return this._uidToLayer.get(t)??null}getStyleLayerIndex(t){let e=this._layerByName[t];return e?this.layers.indexOf(e):-1}setStyleLayer(t,e){if(!t?.id)return;let r=this._style;null!=e&&e>=this.layers.length&&(e=this.layers.length-1);let i,a=!0,s=this._layerByName[t.id];if(s){let o=this.layers.indexOf(s);e||=o,e===o?(a=!1,i=n._recreateLayer(t,s,this._getSourceType(t.source)),this.layers[e]=i,r.layers[e]=t):(this.layers.splice(o,1),r.layers.splice(o,1),i=this._create(t,e,this.layers),this.layers.splice(e,0,i),r.layers.splice(e,0,t))}else i=this._create(t,e,this.layers),!e||e>=this.layers.length?(this.layers.push(i),r.layers.push(t)):(this.layers.splice(e,0,i),r.layers.splice(e,0,t));this._layerByName[t.id]=i,this._uidToLayer.set(i.uid,i),a&&this._recomputeZValues(),this._identifyRefLayers()}getStyleLayer(t){let e=this._layerByName[t];return e?{type:e.typeName,id:e.id,source:e.source,"source-layer":e.sourceLayer,minzoom:e.minzoom,maxzoom:e.maxzoom,filter:e.filter,layout:e.layout,paint:e.paint}:null}deleteStyleLayer(t){let e=this._layerByName[t];if(e){delete this._layerByName[t],this._uidToLayer.delete(e.uid);let r=this.layers.indexOf(e);this.layers.splice(r,1),this._style.layers.splice(r,1),this._recomputeZValues(),this._identifyRefLayers()}}getLayerById(t){return this._layerByName[t]}getLayoutProperties(t){let e=this._layerByName[t];return e?e.layout:null}getPaintProperties(t){let e=this._layerByName[t];return e?e.paint:null}setPaintProperties(t,e){let r=this._layerByName[t];if(!r)return;let i={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:r.layout,paint:e},a=n._recreateLayer(i,r,r.sourceType),s=this.layers.indexOf(r);this.layers[s]=a,this._style.layers[s].paint=e,this._layerByName[r.id]=a,this._uidToLayer.set(r.uid,a)}setLayoutProperties(t,e){let r=this._layerByName[t];if(!r)return;let i={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:e,paint:r.paint},a=n._recreateLayer(i,r,r.sourceType),s=this.layers.indexOf(r);this.layers[s]=a,this._style.layers[s].layout=e,this._layerByName[r.id]=a,this._uidToLayer.set(r.uid,a)}setStyleLayerVisibility(t,e){let r=this._layerByName[t];if(!r)return;let i=r.layout||{};i.visibility=e;let a={type:r.typeName,id:r.id,source:r.source,"source-layer":r.sourceLayer,minzoom:r.minzoom,maxzoom:r.maxzoom,filter:r.filter,layout:i,paint:r.paint},s=n._recreateLayer(a,r,r.sourceType),o=this.layers.indexOf(r);this.layers[o]=s,this._style.layers[o].layout=i,this._layerByName[r.id]=s,this._uidToLayer.set(r.uid,s)}getStyleLayerVisibility(t){let e="string"==typeof t?this._layerByName[t]:this._uidToLayer.get(t);if(!e)return!1;let r=e.getLayoutProperty("visibility");return!(r&&1===r.getValue())}_recomputeZValues(){let t=this.layers,e=1/(t.length+1);for(let r=0;r<t.length;r++)t[r].z=1-(1+r)*e}_identifyRefLayers(){let t=[],e=[],r=0;for(let i of this.layers){let a=i.layout;if(1===i.type){let e=i,n=i.source+"|"+i.sourceLayer;n+="|"+(a?.visibility??""),n+="|"+i.minzoom,n+="|"+i.maxzoom,n+="|"+JSON.stringify(i.filter),(e.hasDataDrivenFill||e.hasDataDrivenOutline)&&(n+="|"+r),t.push({key:n,layer:i})}else if(2===i.type){let t=i,n=i.paint,s=null!=n&&(null!=n["line-pattern"]||null!=n["line-dasharray"]),o=i.source+"|"+i.sourceLayer;o+="|"+(a?.visibility??""),o+="|"+i.minzoom,o+="|"+i.maxzoom,o+="|"+JSON.stringify(i.filter),o+="|"+(void 0===a?"":a["line-cap"]),o+="|"+(void 0===a?"":a["line-join"]),(t.hasDataDrivenLine||s)&&(o+="|"+r),e.push({key:o,layer:i})}++r}this._assignRefLayers(t),this._assignRefLayers(e)}_assignRefLayers(t){t.sort((t,e)=>t.key<e.key?-1:+(t.key>e.key));let e,r,i=t.length;for(let a=0;a<i;a++){let n=t[a];if(n.key===e)n.layer.refLayerId=r;else if(e=n.key,r=n.layer.id,1===n.layer.type){if(!n.layer.getPaintProperty("fill-outline-color"))for(let s=a+1;s<i;s++){let i=t[s];if(i.key!==e)break;if(i.layer.getPaintProperty("fill-outline-color")){t[a]=i,t[s]=n,r=i.layer.id;break}}}else if(2===n.layer.type){let s=n.layer;for(let o=a+1;o<i;o++){let i=t[o];if(i.key!==e)break;let l=i.layer;(s.canUseThinTessellation&&!l.canUseThinTessellation||!s.canUseThinTessellation&&(l.getPaintProperty("line-pattern")||l.getPaintProperty("line-dasharray")))&&(s=l,t[a]=i,t[o]=n,r=i.layer.id)}}}}_create(t,e,r){let i=1-(1+e)*(1/(r.length+1)),n=this._runningId++,s=this._getSourceType(t.source);switch(t.type){case"background":return new a.lf(0,t,i,n,s);case"fill":return new a.A4(1,t,i,n,s);case"line":return new a.tU(2,t,i,n,s);case"symbol":return new a.V1(3,t,i,n,s);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new a.L(4,t,i,n,s)}return null}_getSourceType(t){return this._style.sources?.[t]?.type??null}static _recreateLayer(t,e,r){switch(t.type){case"background":return new a.lf(0,t,e.z,e.uid,r);case"fill":return new a.A4(1,t,e.z,e.uid,r);case"line":return new a.tU(2,t,e.z,e.uid,r);case"symbol":return new a.V1(3,t,e.z,e.uid,r);case"raster":return console.warn(`Unsupported vector tile raster layer ${t.id}`),null;case"circle":return new a.L(4,t,e.z,e.uid,r)}return null}}},85079(t,e,r){r.d(e,{Sk:()=>s,Xk:()=>a,_u:()=>n});var i=r(21818);function a(t){let e=0;return(0,i.z)(new Map(t.map(({name:t,count:r})=>{let i=[t,e];return 16===r?e+=4:9===r?e+=3:++e,i})))}function n(t){let e=new Map,r=0;return t.forEach(t=>t.forEach(({name:t,count:i})=>{e.set(t,r),16===i?r+=4:9===i?r+=3:++r})),e}function s(t){return n(Array.from(t.values()).map(({layout:t})=>t))}},74038(t,e,r){r.d(e,{_:()=>i});class i{constructor(t,e,r,i,a,n=!1,s=0,o=!1){this.name=t,this.count=e,this.type=r,this.offset=i,this.stride=a,this.normalized=n,this.divisor=s,this.integer=o}}}}]);