@arcgis/core 4.33.0-next.20250226 → 4.33.0-next.20250228
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.
- package/WebLinkChart.js +1 -1
- package/applications/KnowledgeStudio/generalSharedKgUtils.d.ts +2 -0
- package/applications/KnowledgeStudio/generalSharedKgUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{3170552a6310725d7730.js → 05b7c739115be0490583.js} +1 -1
- package/assets/esri/core/workers/chunks/2c227d97d00b3849f441.js +1 -0
- package/assets/esri/core/workers/chunks/2ce80c764cca9e6a20cd.js +1 -0
- package/assets/esri/core/workers/chunks/{2716394f121804d93b4e.js → 4253438dd3045566892d.js} +1 -1
- package/assets/esri/core/workers/chunks/6f9bfa6ed34ef6efcc6f.js +1 -0
- package/assets/esri/core/workers/chunks/8abd2235aa702d8b239f.js +1 -0
- package/assets/esri/core/workers/chunks/a288c2474ef193f9fbd3.js +1 -0
- package/assets/esri/core/workers/chunks/{e118245566be994a53da.js → a901c445d36f1a9e7df8.js} +1 -1
- package/assets/esri/core/workers/chunks/a91f2d1deb950f46ad09.js +1 -0
- package/assets/esri/core/workers/chunks/ae25c6108918d37e61bf.js +1 -0
- package/assets/esri/core/workers/chunks/{feb656f172ec9fe64752.js → af005704f23088db3ded.js} +1 -1
- package/assets/esri/core/workers/chunks/b8416f2560710258c239.js +1 -0
- package/assets/esri/core/workers/chunks/{dea40706ca4e37d5c6e2.js → d4d011eea16a89a5aad9.js} +1 -1
- package/assets/esri/core/workers/chunks/f45ef721d21388846101.js +1 -0
- package/assets/esri/core/workers/chunks/{2d4bfd747580ed3b6f4d.js → fdab6921d007929ab288.js} +1 -1
- package/assets/esri/themes/base/widgets/_Sketch.scss +4 -4
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/chartUtilsAm5.js +1 -1
- package/core/sql/StandardizedFunctions.js +1 -1
- package/core/sql/WhereClause.js +1 -1
- package/core/sql/sqlCompareUtils.js +1 -1
- package/geometry/SpatialReference.js +1 -1
- package/interfaces.d.ts +17 -15
- package/intl/duration.js +1 -1
- package/intl/locale.js +1 -1
- package/intl/messages.js +1 -1
- package/layers/BingMapsLayer.js +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
- package/layers/mixins/SublayersOwner.js +1 -1
- package/layers/support/rasterDatasets/covJSONParser.js +1 -1
- package/package.json +1 -1
- package/support/popupUtils.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/animationUtils.js +1 -1
- package/symbols/support/previewSymbol2D.js +1 -1
- package/views/2d/engine/webgl/animations/utils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/GraphShaderModule.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedMarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPointShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/dotDensity/DotDensityPolygonShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BitmapShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/BlendShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/ComplexOutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/FillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GradientStrokeShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/GridShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapAccumulateShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/HeatmapResolveShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/LineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/MagnifierShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OpacityShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/OverlayShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/PatternOutlineFillShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TestShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/TexturedLineShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerLUTShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerShadedReliefShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/RasterColorizerStretchShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/AspectShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/BandArithmeticShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ColormapToRGBShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/CompositeBandShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ComputeChangeShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ContrastBrightnessShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ConvolutionShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/CurvatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ExtractBandShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/FocalStatisticsShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/GrayscaleShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/HillshadeShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/LocalShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/MaskShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/NDVIShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/RemapShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ReprojectShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/ShadedReliefShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/SlopeShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/processor/StretchShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/3d/environment/CloudsRenderer.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3D.js +1 -1
- package/views/3d/layers/support/FeatureTileFetcher3DContext.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/util/CloudsParallaxShading.glsl.js +11 -11
- package/views/3d/webgl-engine/core/shaderLibrary/util/LookupCubemapFromTextureArray.glsl.js +39 -0
- package/views/3d/webgl-engine/core/shaderModules/Texture2DArrayBindUniform.js +5 -0
- package/views/3d/webgl-engine/lib/ComponentUtils.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/View.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/ShaderBuilder.js +1 -1
- package/views/webgl/capabilities.js +1 -1
- package/webdoc/support/webdocSaveUtils.js +1 -1
- package/webdoc/support/writeUtils.js +1 -1
- package/widgets/Feature/FeatureRelationship.js +1 -1
- package/widgets/Feature/FeatureUtilityNetworkAssociationList.js +1 -1
- package/widgets/Feature/FeatureUtilityNetworkAssociations.js +1 -1
- package/widgets/Feature.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/FeatureFormUtilityNetworkAssociationList.js +1 -1
- package/widgets/FeatureForm/FeatureFormUtilityNetworkAssociations/UtilityNetworkAssociationItemList.js +1 -1
- package/widgets/FeatureTable.js +1 -1
- package/widgets/Features/FeaturesDrillIn.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageOverlays.js +1 -1
- package/widgets/OrientedImageryViewer/dataCaptureUtils.js +1 -1
- package/widgets/OrientedImageryViewer/symbols.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/Print/PrintViewModel.js +1 -1
- package/widgets/ScaleRangeSlider/scalePreviewUtils.js +1 -1
- package/widgets/support/SelectionToolbar/SelectionToolbarViewModel.js +1 -1
- package/widgets/support/SelectionToolbar.js +1 -1
- package/widgets/support/Selector2D/SelectionOperation.js +1 -1
- package/widgets/support/Selector2D/selectorUtils.js +1 -1
- package/widgets/support/UtilityNetworkAssociations/utilityNetworkUtils.js +1 -1
- package/widgets/support/chartUtilsAm5.js +1 -1
- package/assets/esri/core/workers/chunks/22e7db720724f2426d74.js +0 -1
- package/assets/esri/core/workers/chunks/2515ace848cf078c6263.js +0 -1
- package/assets/esri/core/workers/chunks/2c348d0e8131f08391cb.js +0 -1
- package/assets/esri/core/workers/chunks/380128e2cb74798478c1.js +0 -1
- package/assets/esri/core/workers/chunks/66338f008ff0992ffca2.js +0 -1
- package/assets/esri/core/workers/chunks/68ac336f7384bbca85ab.js +0 -1
- package/assets/esri/core/workers/chunks/84e50d3ff298b7b66070.js +0 -1
- package/assets/esri/core/workers/chunks/aa98a6c38e82d384403c.js +0 -1
- package/assets/esri/core/workers/chunks/d5ebe6b7cd9c8e40b386.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4996],{16930:(e,t,r)=>{r.d(t,{A:()=>d});var n,o=r(90237),i=r(69622),s=r(25482),a=r(4718),f=r(83047),u=r(56507),_=r(10107),c=r(40608),l=r(43937),P=r(21325);let p=class extends s.A{static{n=this}static{this.GCS_NAD_1927=null}static{this.WGS84=null}static{this.WebMercator=null}static{this.PlateCarree=null}static fromJSON(e){if(!e)return null;if(102100===e?.wkid)return n.WebMercator;if(4326===e?.wkid)return n.WGS84;const t=new n;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){if(e&&"object"==typeof e)return e;const t="string"==typeof e?"wkt":"wkid";return{[t]:e}}get isWGS84(){return(0,P.oT)(this)}get isWebMercator(){return(0,P.K8)(this)}get isGeographic(){return(0,P.EA)(this)}get isWrappable(){return(0,P.d9)(this)}get metersPerUnit(){return(0,f.GA)(this)}get unit(){return(0,f.Ij)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===n.WGS84)return new n(P.KK);if(this===n.WebMercator)return new n(P.ch);const e=new n;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,a.o8)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:n}=e.imageCoordinateSystem,o=this.imageCoordinateSystem;return null==t||n?JSON.stringify(o)===JSON.stringify(e.imageCoordinateSystem):r?o.id===t&&o.referenceServiceName===r:o.id===t}return(0,P.aI)(this,e)}toJSON(e){return this.write(void 0,e)}};(0,o._)([(0,_.MZ)({readOnly:!0})],p.prototype,"isWGS84",null),(0,o._)([(0,_.MZ)({readOnly:!0})],p.prototype,"isWebMercator",null),(0,o._)([(0,_.MZ)({readOnly:!0})],p.prototype,"isGeographic",null),(0,o._)([(0,_.MZ)({readOnly:!0})],p.prototype,"isWrappable",null),(0,o._)([(0,_.MZ)({type:u.jz,json:{write:!0}})],p.prototype,"latestWkid",void 0),(0,o._)([(0,_.MZ)({readOnly:!0})],p.prototype,"metersPerUnit",null),(0,o._)([(0,_.MZ)({readOnly:!0})],p.prototype,"unit",null),(0,o._)([(0,_.MZ)({type:u.jz,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],p.prototype,"wkid",void 0),(0,o._)([(0,_.MZ)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],p.prototype,"wkt",void 0),(0,o._)([(0,l.K)("wkt"),(0,l.K)("web-scene","wkt")],p.prototype,"writeWkt",null),(0,o._)([(0,_.MZ)({type:String,json:{write:!1}})],p.prototype,"wkt2",void 0),(0,o._)([(0,_.MZ)({type:u.jz,json:{write:!0}})],p.prototype,"vcsWkid",void 0),(0,o._)([(0,_.MZ)({type:u.jz,json:{write:!0}})],p.prototype,"latestVcsWkid",void 0),(0,o._)([(0,_.MZ)()],p.prototype,"imageCoordinateSystem",void 0),p=n=(0,o._)([(0,c.$)("esri.geometry.SpatialReference")],p),p.prototype.toJSON.isDefaultToJSON=!0,p.GCS_NAD_1927=i.A.freeze(new p({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'})),p.WGS84=i.A.freeze(new p(P.KK)),p.WebMercator=i.A.freeze(new p(P.ch)),p.PlateCarree=i.A.freeze(new p(P.tQ));const d=p},19936:(e,t,r)=>{var n;r.d(t,{Y:()=>n}),function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"}(n||(n={}))},21325:(e,t,r)=>{r.d(t,{B3:()=>E,EA:()=>d,K8:()=>T,KK:()=>G,KQ:()=>A,Mc:()=>f,Vp:()=>P,YX:()=>p,ZL:()=>O,aI:()=>l,ch:()=>N,d9:()=>U,fn:()=>R,jp:()=>g,oT:()=>S,q8:()=>y,r1:()=>M,tQ:()=>k,tl:()=>m,x1:()=>h});var n=r(799),o=(r(83290),r(19936)),i=r(22530);const s=[102100,102113,3857,3785,900913],a=[4326,...s,104905,104971],f=[-20037508.342788905,20037508.342788905],u=[-20037508.342787,20037508.342787],_={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:f,origin:u,dx:1e-5},c={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:f,origin:u,dx:1e-5},102100:_,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:f,origin:u,dx:1e-5},3857:_,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:_};function l(e,t){if(e===t)return!0;if(null==e||null==t)return!1;const r=e.wkid,n=t.wkid;if(null!=r||null!=n){if(r===n)return!0;if(T(e)&&T(t))return!0;const o=e.latestWkid;if(null!=o&&n===o)return!0;const i=t.latestWkid;return null!=i&&r===i}let o,i;return e.wkt2&&t.wkt2?(o=e.wkt2,i=t.wkt2):e.wkt&&t.wkt&&(o=e.wkt,i=t.wkt),!(!o||!i)&&o.toUpperCase()===i.toUpperCase()}function P(e){const t=e?.wkid;return null!=t&&t>=2e3&&c[t]||null}function p(e){if(!e)return;const{wkid:t,vcsWkid:r}=e;if(t)return r?JSON.stringify({wkid:t,vcsWkid:r}):String(t);const n=e.wkt||e.wkt2;return JSON.stringify(n?r?{wkt:n,vcsWkid:r}:{wkt:n}:{})}function d(e){if(!R(e))return!1;const{wkid:t}=e;if(t)return null==i.A[t];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function E(e){return!(y(e)||A(e))}function S(e){return 4326===e?.wkid}function g(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function h(e){return e?.wkid===o.Y.CGCS2000}function T(e){const t=e?.wkid;return null!=t&&t>=2e3&&s.includes(t)}function M(e){return 32662===e?.wkid}function m(e){return e===o.Y.GCSMARS2000||e===o.Y.GCSMARS2000_SPHERE}function y(e){return m(e?.wkid)}function O(e){return e===o.Y.GCSMOON2000}function A(e){return O(e?.wkid)}function U(e){const t=e?.wkid;return null!=t&&t>=2e3&&a.includes(t)}function R(e){if(null==e)return!1;const t=e.wkid;return null!=t&&t>=2e3||null!=e.wkt2||null!=e.wkt}const G={wkid:4326,wkt:(0,n.HC)(c[4326].wkTemplate,{Central_Meridian:"0.0"})},N={wkid:102100,latestWkid:3857},k={wkid:32662}},22530:(e,t,r)=>{let n;r.d(t,{A:()=>o});const o={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,10592:0,10594:0,10596:0,10598:0,10601:0,10603:0,10626:0,10632:0,10665:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1,103978:2,103979:0,103980:2,103981:0};for(n=2e3;n<=2045;n++)o[n]=0;for(n=2056;n<=2065;n++)o[n]=0;for(n=2067;n<=2135;n++)o[n]=0;for(n=2137;n<=2154;n++)o[n]=0;for(n=2161;n<=2170;n++)o[n]=0;for(n=2172;n<=2193;n++)o[n]=0;for(n=2195;n<=2198;n++)o[n]=0;for(n=2200;n<=2203;n++)o[n]=0;for(n=2205;n<=2217;n++)o[n]=0;for(n=2222;n<=2224;n++)o[n]=1;for(n=2225;n<=2250;n++)o[n]=2;for(n=2251;n<=2253;n++)o[n]=1;for(n=2257;n<=2264;n++)o[n]=2;for(n=2274;n<=2279;n++)o[n]=2;for(n=2280;n<=2282;n++)o[n]=1;for(n=2283;n<=2289;n++)o[n]=2;for(n=2290;n<=2292;n++)o[n]=0;for(n=2308;n<=2313;n++)o[n]=0;for(n=2315;n<=2491;n++)o[n]=0;for(n=2494;n<=2866;n++)o[n]=0;for(n=2867;n<=2869;n++)o[n]=1;for(n=2870;n<=2888;n++)o[n]=2;for(n=2891;n<=2895;n++)o[n]=2;for(n=2896;n<=2898;n++)o[n]=1;for(n=2902;n<=2908;n++)o[n]=2;for(n=2915;n<=2920;n++)o[n]=2;for(n=2921;n<=2923;n++)o[n]=1;for(n=2924;n<=2930;n++)o[n]=2;for(n=2931;n<=2962;n++)o[n]=0;for(n=2964;n<=2968;n++)o[n]=2;for(n=2969;n<=2973;n++)o[n]=0;for(n=2975;n<=2991;n++)o[n]=0;for(n=2995;n<=3051;n++)o[n]=0;for(n=3054;n<=3079;n++)o[n]=0;for(n=3081;n<=3088;n++)o[n]=0;for(n=3092;n<=3101;n++)o[n]=0;for(n=3106;n<=3138;n++)o[n]=0;for(n=3146;n<=3151;n++)o[n]=0;for(n=3153;n<=3166;n++)o[n]=0;for(n=3168;n<=3172;n++)o[n]=0;for(n=3174;n<=3203;n++)o[n]=0;for(n=3294;n<=3358;n++)o[n]=0;for(n=3367;n<=3403;n++)o[n]=0;for(n=3408;n<=3416;n++)o[n]=0;for(n=3417;n<=3438;n++)o[n]=2;for(n=3441;n<=3446;n++)o[n]=2;for(n=3447;n<=3450;n++)o[n]=0;for(n=3451;n<=3459;n++)o[n]=2;for(n=3460;n<=3478;n++)o[n]=0;for(n=3554;n<=3559;n++)o[n]=0;for(n=3560;n<=3570;n++)o[n]=2;for(n=3571;n<=3581;n++)o[n]=0;for(n=3594;n<=3597;n++)o[n]=0;for(n=3601;n<=3604;n++)o[n]=0;for(n=3637;n<=3639;n++)o[n]=0;for(n=3665;n<=3667;n++)o[n]=0;for(n=3693;n<=3695;n++)o[n]=0;for(n=3701;n<=3727;n++)o[n]=0;for(n=3728;n<=3739;n++)o[n]=2;for(n=3740;n<=3751;n++)o[n]=0;for(n=3753;n<=3760;n++)o[n]=2;for(n=3761;n<=3773;n++)o[n]=0;for(n=3775;n<=3777;n++)o[n]=0;for(n=3779;n<=3781;n++)o[n]=0;for(n=3783;n<=3785;n++)o[n]=0;for(n=3788;n<=3791;n++)o[n]=0;for(n=3797;n<=3802;n++)o[n]=0;for(n=3814;n<=3816;n++)o[n]=0;for(n=3825;n<=3829;n++)o[n]=0;for(n=3832;n<=3841;n++)o[n]=0;for(n=3844;n<=3852;n++)o[n]=0;for(n=3873;n<=3885;n++)o[n]=0;for(n=3890;n<=3893;n++)o[n]=0;for(n=3907;n<=3912;n++)o[n]=0;for(n=3942;n<=3950;n++)o[n]=0;for(n=3968;n<=3970;n++)o[n]=0;for(n=3973;n<=3976;n++)o[n]=0;for(n=3986;n<=3989;n++)o[n]=0;for(n=3994;n<=3997;n++)o[n]=0;for(n=4048;n<=4051;n++)o[n]=0;for(n=4056;n<=4063;n++)o[n]=0;for(n=4093;n<=4096;n++)o[n]=0;for(n=4390;n<=4398;n++)o[n]=0;for(n=4399;n<=4413;n++)o[n]=2;for(n=4418;n<=4433;n++)o[n]=2;for(n=4455;n<=4457;n++)o[n]=2;for(n=4484;n<=4489;n++)o[n]=0;for(n=4491;n<=4554;n++)o[n]=0;for(n=4568;n<=4589;n++)o[n]=0;for(n=4652;n<=4656;n++)o[n]=0;for(n=4766;n<=4800;n++)o[n]=0;for(n=5014;n<=5016;n++)o[n]=0;for(n=5069;n<=5072;n++)o[n]=0;for(n=5105;n<=5130;n++)o[n]=0;for(n=5167;n<=5188;n++)o[n]=0;for(n=5253;n<=5259;n++)o[n]=0;for(n=5269;n<=5275;n++)o[n]=0;for(n=5292;n<=5311;n++)o[n]=0;for(n=5329;n<=5331;n++)o[n]=0;for(n=5343;n<=5349;n++)o[n]=0;for(n=5355;n<=5357;n++)o[n]=0;for(n=5387;n<=5389;n++)o[n]=0;for(n=5459;n<=5463;n++)o[n]=0;for(n=5479;n<=5482;n++)o[n]=0;for(n=5518;n<=5520;n++)o[n]=0;for(n=5530;n<=5539;n++)o[n]=0;for(n=5550;n<=5552;n++)o[n]=0;for(n=5562;n<=5583;n++)o[n]=0;for(n=5623;n<=5625;n++)o[n]=2;for(n=5631;n<=5639;n++)o[n]=0;for(n=5649;n<=5653;n++)o[n]=0;for(n=5663;n<=5680;n++)o[n]=0;for(n=5682;n<=5685;n++)o[n]=0;for(n=5875;n<=5877;n++)o[n]=0;for(n=5896;n<=5899;n++)o[n]=0;for(n=5921;n<=5940;n++)o[n]=0;for(n=6050;n<=6125;n++)o[n]=0;for(n=6244;n<=6275;n++)o[n]=0;for(n=6328;n<=6348;n++)o[n]=0;for(n=6350;n<=6356;n++)o[n]=0;for(n=6366;n<=6372;n++)o[n]=0;for(n=6381;n<=6387;n++)o[n]=0;for(n=6393;n<=6404;n++)o[n]=0;for(n=6480;n<=6483;n++)o[n]=0;for(n=6511;n<=6514;n++)o[n]=0;for(n=6579;n<=6581;n++)o[n]=0;for(n=6619;n<=6624;n++)o[n]=0;for(n=6625;n<=6627;n++)o[n]=2;for(n=6628;n<=6632;n++)o[n]=0;for(n=6634;n<=6637;n++)o[n]=0;for(n=6669;n<=6692;n++)o[n]=0;for(n=6707;n<=6709;n++)o[n]=0;for(n=6720;n<=6723;n++)o[n]=0;for(n=6732;n<=6738;n++)o[n]=0;for(n=6931;n<=6933;n++)o[n]=0;for(n=6956;n<=6959;n++)o[n]=0;for(n=7005;n<=7007;n++)o[n]=0;for(n=7057;n<=7070;n++)o[n]=2;for(n=7074;n<=7082;n++)o[n]=0;for(n=7109;n<=7118;n++)o[n]=0;for(n=7119;n<=7127;n++)o[n]=1;for(n=7374;n<=7376;n++)o[n]=0;for(n=7528;n<=7586;n++)o[n]=0;for(n=7587;n<=7645;n++)o[n]=2;for(n=7692;n<=7696;n++)o[n]=0;for(n=7755;n<=7787;n++)o[n]=0;for(n=7791;n<=7795;n++)o[n]=0;for(n=7799;n<=7801;n++)o[n]=0;for(n=7803;n<=7805;n++)o[n]=0;for(n=7825;n<=7831;n++)o[n]=0;for(n=7845;n<=7859;n++)o[n]=0;for(n=8013;n<=8032;n++)o[n]=0;for(n=8065;n<=8068;n++)o[n]=1;for(n=8518;n<=8529;n++)o[n]=2;for(n=8533;n<=8536;n++)o[n]=2;for(n=8538;n<=8540;n++)o[n]=2;for(n=8677;n<=8679;n++)o[n]=0;for(n=8836;n<=8840;n++)o[n]=0;for(n=8857;n<=8859;n++)o[n]=0;for(n=8908;n<=8910;n++)o[n]=0;for(n=9154;n<=9159;n++)o[n]=0;for(n=9205;n<=9218;n++)o[n]=0;for(n=9271;n<=9273;n++)o[n]=0;for(n=9295;n<=9297;n++)o[n]=0;for(n=9356;n<=9360;n++)o[n]=0;for(n=9404;n<=9407;n++)o[n]=0;for(n=9476;n<=9482;n++)o[n]=0;for(n=9487;n<=9494;n++)o[n]=0;for(n=9697;n<=9699;n++)o[n]=0;for(n=9821;n<=9865;n++)o[n]=0;for(n=10285;n<=10291;n++)o[n]=0;for(n=10314;n<=10317;n++)o[n]=0;for(n=10448;n<=10465;n++)o[n]=0;for(n=10731;n<=10733;n++)o[n]=0;for(n=11114;n<=11118;n++)o[n]=0;for(n=20004;n<=20032;n++)o[n]=0;for(n=20047;n<=20049;n++)o[n]=0;for(n=20062;n<=20092;n++)o[n]=0;for(n=20135;n<=20138;n++)o[n]=0;for(n=20248;n<=20258;n++)o[n]=0;for(n=20348;n<=20358;n++)o[n]=0;for(n=20436;n<=20440;n++)o[n]=0;for(n=20822;n<=20824;n++)o[n]=0;for(n=20904;n<=20932;n++)o[n]=0;for(n=20934;n<=20936;n++)o[n]=0;for(n=21004;n<=21032;n++)o[n]=0;for(n=21035;n<=21037;n++)o[n]=0;for(n=21095;n<=21097;n++)o[n]=0;for(n=21148;n<=21150;n++)o[n]=0;for(n=21207;n<=21264;n++)o[n]=0;for(n=21307;n<=21364;n++)o[n]=0;for(n=21413;n<=21423;n++)o[n]=0;for(n=21453;n<=21463;n++)o[n]=0;for(n=21473;n<=21483;n++)o[n]=0;for(n=21780;n<=21782;n++)o[n]=0;for(n=21891;n<=21894;n++)o[n]=0;for(n=21896;n<=21899;n++)o[n]=0;for(n=22171;n<=22177;n++)o[n]=0;for(n=22181;n<=22187;n++)o[n]=0;for(n=22191;n<=22197;n++)o[n]=0;for(n=22207;n<=22222;n++)o[n]=0;for(n=22229;n<=22232;n++)o[n]=0;for(n=22234;n<=22236;n++)o[n]=0;for(n=22243;n<=22250;n++)o[n]=0;for(n=22262;n<=22265;n++)o[n]=0;for(n=22307;n<=22322;n++)o[n]=0;for(n=22348;n<=22357;n++)o[n]=0;for(n=22407;n<=22422;n++)o[n]=0;for(n=22462;n<=22465;n++)o[n]=0;for(n=22521;n<=22525;n++)o[n]=0;for(n=22607;n<=22622;n++)o[n]=0;for(n=22641;n<=22646;n++)o[n]=0;for(n=22648;n<=22657;n++)o[n]=0;for(n=22707;n<=22722;n++)o[n]=0;for(n=22762;n<=22765;n++)o[n]=0;for(n=22807;n<=22822;n++)o[n]=0;for(n=22991;n<=22994;n++)o[n]=0;for(n=23028;n<=23038;n++)o[n]=0;for(n=23301;n<=23333;n++)o[n]=2;for(n=23830;n<=23853;n++)o[n]=0;for(n=23866;n<=23872;n++)o[n]=0;for(n=23877;n<=23884;n++)o[n]=0;for(n=23886;n<=23894;n++)o[n]=0;for(n=23946;n<=23948;n++)o[n]=0;for(n=24311;n<=24313;n++)o[n]=0;for(n=24342;n<=24347;n++)o[n]=0;for(n=24370;n<=24374;n++)o[n]=10;for(n=24375;n<=24381;n++)o[n]=0;for(n=24718;n<=24721;n++)o[n]=0;for(n=24817;n<=24821;n++)o[n]=0;for(n=24877;n<=24882;n++)o[n]=0;for(n=24891;n<=24893;n++)o[n]=0;for(n=25391;n<=25395;n++)o[n]=0;for(n=25828;n<=25838;n++)o[n]=0;for(n=26191;n<=26195;n++)o[n]=0;for(n=26391;n<=26393;n++)o[n]=0;for(n=26701;n<=26722;n++)o[n]=0;for(n=26729;n<=26799;n++)o[n]=2;for(n=26801;n<=26803;n++)o[n]=2;for(n=26811;n<=26813;n++)o[n]=2;for(n=26847;n<=26870;n++)o[n]=2;for(n=26891;n<=26899;n++)o[n]=0;for(n=26901;n<=26923;n++)o[n]=0;for(n=26929;n<=26946;n++)o[n]=0;for(n=26948;n<=26998;n++)o[n]=0;for(n=27037;n<=27040;n++)o[n]=0;for(n=27205;n<=27232;n++)o[n]=0;for(n=27258;n<=27260;n++)o[n]=0;for(n=27391;n<=27398;n++)o[n]=0;for(n=27561;n<=27564;n++)o[n]=0;for(n=27571;n<=27574;n++)o[n]=0;for(n=27581;n<=27584;n++)o[n]=0;for(n=27591;n<=27594;n++)o[n]=0;for(n=27700;n<=27707;n++)o[n]=0;for(n=28191;n<=28193;n++)o[n]=0;for(n=28348;n<=28358;n++)o[n]=0;for(n=28402;n<=28432;n++)o[n]=0;for(n=28462;n<=28492;n++)o[n]=0;for(n=29118;n<=29122;n++)o[n]=0;for(n=29168;n<=29172;n++)o[n]=0;for(n=29177;n<=29185;n++)o[n]=0;for(n=29187;n<=29195;n++)o[n]=0;for(n=29900;n<=29903;n++)o[n]=0;for(n=30161;n<=30179;n++)o[n]=0;for(n=30491;n<=30494;n++)o[n]=0;for(n=30729;n<=30732;n++)o[n]=0;for(n=31251;n<=31259;n++)o[n]=0;for(n=31265;n<=31268;n++)o[n]=0;for(n=31275;n<=31279;n++)o[n]=0;for(n=31281;n<=31297;n++)o[n]=0;for(n=31461;n<=31469;n++)o[n]=0;for(n=31491;n<=31495;n++)o[n]=0;for(n=31917;n<=31922;n++)o[n]=0;for(n=31965;n<=32e3;n++)o[n]=0;for(n=32001;n<=32003;n++)o[n]=2;for(n=32005;n<=32031;n++)o[n]=2;for(n=32033;n<=32060;n++)o[n]=2;for(n=32064;n<=32067;n++)o[n]=2;for(n=32074;n<=32077;n++)o[n]=2;for(n=32081;n<=32086;n++)o[n]=0;for(n=32107;n<=32130;n++)o[n]=0;for(n=32133;n<=32159;n++)o[n]=0;for(n=32164;n<=32167;n++)o[n]=2;for(n=32180;n<=32199;n++)o[n]=0;for(n=32201;n<=32260;n++)o[n]=0;for(n=32301;n<=32360;n++)o[n]=0;for(n=32401;n<=32460;n++)o[n]=0;for(n=32501;n<=32560;n++)o[n]=0;for(n=32601;n<=32662;n++)o[n]=0;for(n=32664;n<=32667;n++)o[n]=2;for(n=32701;n<=32761;n++)o[n]=0;for(n=53001;n<=53004;n++)o[n]=0;for(n=53008;n<=53019;n++)o[n]=0;for(n=53021;n<=53032;n++)o[n]=0;for(n=53034;n<=53037;n++)o[n]=0;for(n=53042;n<=53046;n++)o[n]=0;for(n=53074;n<=53080;n++)o[n]=0;for(n=54001;n<=54004;n++)o[n]=0;for(n=54008;n<=54019;n++)o[n]=0;for(n=54021;n<=54032;n++)o[n]=0;for(n=54034;n<=54037;n++)o[n]=0;for(n=54042;n<=54046;n++)o[n]=0;for(n=54048;n<=54053;n++)o[n]=0;for(n=54074;n<=54080;n++)o[n]=0;for(n=54098;n<=54101;n++)o[n]=0;for(n=102001;n<=102040;n++)o[n]=0;for(n=102042;n<=102063;n++)o[n]=0;for(n=102065;n<=102067;n++)o[n]=0;for(n=102070;n<=102117;n++)o[n]=0;for(n=102122;n<=102216;n++)o[n]=0;for(n=102221;n<=102377;n++)o[n]=0;for(n=102382;n<=102388;n++)o[n]=0;for(n=102389;n<=102398;n++)o[n]=2;for(n=102399;n<=102444;n++)o[n]=0;for(n=102445;n<=102447;n++)o[n]=2;for(n=102448;n<=102458;n++)o[n]=0;for(n=102459;n<=102468;n++)o[n]=2;for(n=102469;n<=102499;n++)o[n]=0;for(n=102500;n<=102519;n++)o[n]=1;for(n=102520;n<=102524;n++)o[n]=0;for(n=102525;n<=102529;n++)o[n]=2;for(n=102530;n<=102588;n++)o[n]=0;for(n=102590;n<=102598;n++)o[n]=0;for(n=102601;n<=102603;n++)o[n]=0;for(n=102605;n<=102628;n++)o[n]=0;for(n=102629;n<=102646;n++)o[n]=2;for(n=102648;n<=102700;n++)o[n]=2;for(n=102701;n<=102703;n++)o[n]=0;for(n=102707;n<=102730;n++)o[n]=2;for(n=102733;n<=102758;n++)o[n]=2;for(n=102767;n<=102900;n++)o[n]=0;for(n=102901;n<=102933;n++)o[n]=2;for(n=102934;n<=102950;n++)o[n]=13;for(n=102951;n<=102963;n++)o[n]=0;for(n=102965;n<=102969;n++)o[n]=0;for(n=102971;n<=102973;n++)o[n]=0;for(n=102975;n<=102989;n++)o[n]=0;for(n=102990;n<=102992;n++)o[n]=1;for(n=102997;n<=103002;n++)o[n]=0;for(n=103003;n<=103008;n++)o[n]=2;for(n=103009;n<=103011;n++)o[n]=0;for(n=103012;n<=103014;n++)o[n]=2;for(n=103019;n<=103021;n++)o[n]=0;for(n=103022;n<=103024;n++)o[n]=2;for(n=103029;n<=103031;n++)o[n]=0;for(n=103032;n<=103034;n++)o[n]=2;for(n=103065;n<=103068;n++)o[n]=0;for(n=103074;n<=103076;n++)o[n]=0;for(n=103077;n<=103079;n++)o[n]=1;for(n=103080;n<=103082;n++)o[n]=0;for(n=103083;n<=103085;n++)o[n]=2;for(n=103090;n<=103093;n++)o[n]=0;for(n=103097;n<=103099;n++)o[n]=0;for(n=103100;n<=103102;n++)o[n]=2;for(n=103107;n<=103109;n++)o[n]=0;for(n=103110;n<=103112;n++)o[n]=2;for(n=103113;n<=103116;n++)o[n]=0;for(n=103117;n<=103120;n++)o[n]=2;for(n=103153;n<=103157;n++)o[n]=0;for(n=103158;n<=103162;n++)o[n]=2;for(n=103163;n<=103165;n++)o[n]=0;for(n=103166;n<=103168;n++)o[n]=1;for(n=103169;n<=103171;n++)o[n]=2;for(n=103186;n<=103188;n++)o[n]=0;for(n=103189;n<=103191;n++)o[n]=2;for(n=103192;n<=103195;n++)o[n]=0;for(n=103196;n<=103199;n++)o[n]=2;for(n=103200;n<=103224;n++)o[n]=0;for(n=103225;n<=103227;n++)o[n]=1;for(n=103232;n<=103237;n++)o[n]=0;for(n=103238;n<=103243;n++)o[n]=2;for(n=103244;n<=103246;n++)o[n]=0;for(n=103247;n<=103249;n++)o[n]=2;for(n=103254;n<=103256;n++)o[n]=0;for(n=103257;n<=103259;n++)o[n]=2;for(n=103264;n<=103266;n++)o[n]=0;for(n=103267;n<=103269;n++)o[n]=2;for(n=103300;n<=103375;n++)o[n]=0;for(n=103381;n<=103383;n++)o[n]=0;for(n=103384;n<=103386;n++)o[n]=1;for(n=103387;n<=103389;n++)o[n]=0;for(n=103390;n<=103392;n++)o[n]=2;for(n=103397;n<=103399;n++)o[n]=0;for(n=103400;n<=103471;n++)o[n]=2;for(n=103476;n<=103478;n++)o[n]=0;for(n=103479;n<=103481;n++)o[n]=2;for(n=103486;n<=103488;n++)o[n]=0;for(n=103489;n<=103491;n++)o[n]=2;for(n=103492;n<=103495;n++)o[n]=0;for(n=103496;n<=103499;n++)o[n]=2;for(n=103528;n<=103543;n++)o[n]=0;for(n=103544;n<=103548;n++)o[n]=2;for(n=103549;n<=103551;n++)o[n]=0;for(n=103552;n<=103554;n++)o[n]=1;for(n=103555;n<=103557;n++)o[n]=2;for(n=103558;n<=103560;n++)o[n]=0;for(n=103571;n<=103573;n++)o[n]=0;for(n=103574;n<=103576;n++)o[n]=2;for(n=103577;n<=103580;n++)o[n]=0;for(n=103581;n<=103583;n++)o[n]=2;for(n=103595;n<=103694;n++)o[n]=0;for(n=103696;n<=103699;n++)o[n]=0;for(n=103700;n<=103793;n++)o[n]=2;for(n=103794;n<=103890;n++)o[n]=0;for(n=103891;n<=103896;n++)o[n]=2;for(n=103900;n<=103971;n++)o[n]=2;for(n=103972;n<=103977;n++)o[n]=0;for(n=112e3;n<=112101;n++)o[n]=0},34727:(e,t,r)=>{r.d(t,{$8:()=>m,Cc:()=>s,Hx:()=>d,Io:()=>M,KJ:()=>u,Sp:()=>l,XM:()=>_,YN:()=>c,ZH:()=>p,cU:()=>o,gg:()=>P,hs:()=>a,kU:()=>f,or:()=>O,pF:()=>U,pq:()=>A,qE:()=>i});const n=new Float32Array(1);function o(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function i(e,t,r){return Math.min(Math.max(e,t),r)}function s(e,t,r){return e+(t-e)*r}function a(e,t,r,n,o){return s(n,o,(e-t)/(r-t))}function f(e){return e*Math.PI/180}function u(e){return 180*e/Math.PI}function _(e){return Math.acos(i(e,-1,1))}function c(e){return Math.asin(i(e,-1,1))}function l(e,t,r=1e-6){return e===t||!(!Number.isFinite(e)||!Number.isFinite(t))&&(e>t?e-t:t-e)<=r}function P(e,t,r=1e-6){return!l(e,t,r)&&e>t}function p(e,t,r=1e-6){return!l(e,t,r)&&e<t}function d(e,t,r=1e-6){return l(e,t,r)||e>t}const E=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function S(e){return E.setFloat64(0,e),E.getBigInt64(0)}const g=BigInt("1000000"),h=T(1);function T(e){const t=S(e=Math.abs(e)),r=function(e){return E.setBigInt64(0,e),E.getFloat64(0)}(t<=g?g:t-g);return Math.abs(e-r)}function M(e,t,r=h){if(e===t)return!0;if(!Number.isFinite(e)||!Number.isFinite(t))return!1;if(null!=r&&T(Math.min(Math.abs(e),Math.abs(t)))<r)return Math.abs(e-t)<=r;const n=S(e),o=S(t);return n<0==o<0&&!((n<o?o-n:n-o)>g)}function m(e){return y(Math.max(-A,Math.min(e,A)))}function y(e){return n[0]=e,n[0]}function O(e){const t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],n=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(l(t,1)&&l(r,1)&&l(n,1))}const A=y(34028234663852886e22);function U(e,t,r){if(void 0===r||0==+r)return Math[e](t);if(t=+t,r=+r,isNaN(t)||"number"!=typeof r||r%1!=0)return NaN;let n=t.toString().split("e");return n=(t=Math[e](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"),+(n[0]+"e"+(n[1]?+n[1]+r:r))}},43937:(e,t,r)=>{r.d(t,{K:()=>o});var n=r(10107);function o(e,t,r){let o,i;return void 0===t?(i=e,o=[void 0]):"string"!=typeof t?(i=e,o=[void 0],r=t):(i=t,o=Array.isArray(e)?e:[e]),(e,t)=>{const s=e.constructor.prototype;for(const a of o){const o=(0,n.rM)(e,a,i);o.write&&"object"==typeof o.write||(o.write={}),r&&(o.write.target=r),o.write.writer=s[t]}}}},66552:(e,t,r)=>{r.d(t,{J:()=>o,O:()=>s});var n=r(93637);class o{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){const t={};for(const r in e)t[e[r]]=r;return t}(e),this.apiValues=i(this._apiToJSON),this.jsonValues=i(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{const o=this.toJSON(e);void 0!==o&&(0,n.sM)(r,o,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?null:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function i(e){const t=[];for(const r in e)t.push(r);return t.sort(),t}function s(){return function(e,t){return new o(e,{ignoreUnknown:!0,...t})}}},73941:(e,t,r)=>{r.d(t,{FY:()=>a,LJ:()=>f,Ro:()=>u,fv:()=>s,jA:()=>p,tO:()=>l,xP:()=>d,y7:()=>P});var n=r(79258),o=r(21325);function i(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const s=i(n.$O),a=i(n.sH),f=i(n.Sw),u={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${n.$O.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`},_=a.wkt.toUpperCase(),c=f.wkt.toUpperCase();function l(e){if(null!=e&&(0,o.fn)(e)){const t=e.wkid,r=e.wkt2??e.wkt;if((0,o.tl)(t))return n.sH;const i=r?.toUpperCase();if(r&&i===_)return n.sH;if((0,o.ZL)(t)||i&&i===c)return n.Sw}return n.$O}function P(e){return(0,o.tl)(e)?n.sH:(0,o.ZL)(e)?n.Sw:n.$O}function p(e){return(0,o.aI)(e,s)}function d(e){return p(e)||(0,o.aI)(e,a)||(0,o.aI)(e,f)}},79258:(e,t,r)=>{r.d(t,{$O:()=>o,Sw:()=>s,sH:()=>i});class n{constructor(e,t,r,n,o,i){this.semiMajorAxis=e,this.flattening=t,this.outerAtmosphereRimWidth=r,this.atmosphereHeight=n,this.scaleHeight=o;const s=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*s,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=i||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const o=new n(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),i=new n(3396190,1/169.8944472236118,23e4,6e4,.111),s=new n(1737400,0,0,0,0)},83047:(e,t,r)=>{r.d(t,{Ao:()=>k,B5:()=>b,G9:()=>R,GA:()=>N,Ij:()=>I,KX:()=>w,LA:()=>U,PQ:()=>y,Sk:()=>j,UW:()=>O,b$:()=>v,dk:()=>Y,dy:()=>f,k1:()=>G,oU:()=>m,vl:()=>A,x1:()=>F,yD:()=>P}),r(44208);var n=r(66552),o=r(73941),i=r(79258),s=r(21325),a=r(22530);const f=39.37,u=i.$O.radius*Math.PI/200,_=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,c=a.A,l=/UNIT\[([^\]]+)]/i,P=new Set([4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104025,104026,104139,104140]),p=(0,n.O)()({millimeter:"millimeters",centimeter:"centimeters",meter:"meters",meter_german:"german-meters",kilometer:"kilometers",decimeter:"decimeters",micrometer:"micrometers",nanometer:"nanometers","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",fathom:"fathoms",nautical_mile:"nautical-miles",chain_us:"us-chains",link_us:"us-links",mile_us:"us-miles",yard_clarke:"clarke-yards",chain_clarke:"clarke-chains",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",link_sears:"sears-links",yard_benoit_1895_a:"benoit-1895-a-yards",foot_benoit_1895_a:"benoit-1895-a-feet",chain_benoit_1895_a:"benoit-1895-a-chains",link_benoit_1895_a:"benoit-1895-a-links",yard_benoit_1895_b:"benoit-1895-b-yards",foot_benoit_1895_b:"benoit-1895-b-feet",chain_benoit_1895_b:"benoit-1895-b-chains",link_benoit_1895_b:"benoit-1895-b-links",foot_1865:"1865-feet",foot_indian:"indian-feet",foot_indian_1937:"indian-1937-feet",foot_indian_1962:"indian-1962-feet",foot_indian_1975:"indian-1975-feet",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",yard_indian_1962:"indian-1962-yards",yard_indian_1975:"indian-1975-yards",statute_mile:"statute-miles",foot_gold_coast:"gold-coast-feet",foot_british_1936:"british-1936-feet",yard:"yards",chain:"chains",link:"links",yard_sears_1922_truncated:"sears-1922-truncated-yards",foot_sears_1922_truncated:"sears-1922-truncated-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains",link_sears_1922_truncated:"sears-1922-truncated-links",yard_us:"us-yards",inch:"inches",inch_us:"us-inches",rod:"rods",rod_us:"us-rods",nautical_mile_us:"us-nautical-miles",nautical_mile_uk:"uk-nautical-miles",smoot:"smoots",vara_tx:"tx-vara",point:"points"}),d=e=>e*e,E=e=>e*e*e,S={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},meters:{inBaseUnits:1},feet:{inBaseUnits:.3048},"us-feet":{inBaseUnits:.3048006096012192},"clarke-feet":{inBaseUnits:.3047972654},fathoms:{inBaseUnits:1.8288},"nautical-miles":{inBaseUnits:1852},"german-meters":{inBaseUnits:1.0000135965},"us-chains":{inBaseUnits:20.11684023368047},"us-links":{inBaseUnits:.2011684023368047},"us-miles":{inBaseUnits:1609.347218694438},kilometers:{inBaseUnits:1e3},"clarke-yards":{inBaseUnits:.9143917962},"clarke-chains":{inBaseUnits:20.1166195164},"clarke-links":{inBaseUnits:.201166195164},"sears-yards":{inBaseUnits:.9143984146160287},"sears-feet":{inBaseUnits:.3047994715386762},"sears-chains":{inBaseUnits:20.11676512155263},"sears-links":{inBaseUnits:.2011676512155263},"benoit-1895-a-yards":{inBaseUnits:.9143992},"benoit-1895-a-feet":{inBaseUnits:.3047997333333333},"benoit-1895-a-chains":{inBaseUnits:20.1167824},"benoit-1895-a-links":{inBaseUnits:.201167824},"benoit-1895-b-yards":{inBaseUnits:.9143992042898124},"benoit-1895-b-feet":{inBaseUnits:.3047997347632708},"benoit-1895-b-chains":{inBaseUnits:20.11678249437587},"benoit-1895-b-links":{inBaseUnits:.2011678249437587},"1865-feet":{inBaseUnits:.3048008333333334},"indian-feet":{inBaseUnits:.3047995102481469},"indian-1937-feet":{inBaseUnits:.30479841},"indian-1962-feet":{inBaseUnits:.3047996},"indian-1975-feet":{inBaseUnits:.3047995},"indian-yards":{inBaseUnits:.9143985307444408},"indian-1937-yards":{inBaseUnits:.91439523},"indian-1962-yards":{inBaseUnits:.9143988},"indian-1975-yards":{inBaseUnits:.9143985},miles:{inBaseUnits:1609.344},"statute-miles":{inBaseUnits:1609.344},"gold-coast-feet":{inBaseUnits:.3047997101815088},"british-1936-feet":{inBaseUnits:.3048007491},yards:{inBaseUnits:.9144},chains:{inBaseUnits:20.1168},links:{inBaseUnits:.201168},"sears-1922-truncated-yards":{inBaseUnits:.914398},"sears-1922-truncated-feet":{inBaseUnits:.3047993333333334},"sears-1922-truncated-chains":{inBaseUnits:20.116756},"sears-1922-truncated-links":{inBaseUnits:.20116756},"us-yards":{inBaseUnits:.9144018288036576},decimeters:{inBaseUnits:.1},inches:{inBaseUnits:.0254},"us-inches":{inBaseUnits:.0254000508001016},rods:{inBaseUnits:5.0292},"us-rods":{inBaseUnits:5.029210058420118},"us-nautical-miles":{inBaseUnits:1853.248},"uk-nautical-miles":{inBaseUnits:1853.184},smoots:{inBaseUnits:1.7018},"tx-vara":{inBaseUnits:.8466683600033867},points:{inBaseUnits:.0003527777777777778},micrometers:{inBaseUnits:1e-6},nanometers:{inBaseUnits:1e-9},"50-kilometers":{inBaseUnits:5e4},"150-kilometers":{inBaseUnits:15e4}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:d(.001)},"square-centimeters":{inBaseUnits:d(.01)},"square-decimeters":{inBaseUnits:d(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:d(1e3)},"square-inches":{inBaseUnits:d(.0254)},"square-feet":{inBaseUnits:d(.3048)},"square-yards":{inBaseUnits:d(.9144)},"square-miles":{inBaseUnits:d(1609.344)},"square-nautical-miles":{inBaseUnits:d(1852)},"square-us-feet":{inBaseUnits:d(1200/3937)},acres:{inBaseUnits:.0015625*d(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*E(.001)},"cubic-centimeters":{inBaseUnits:1e3*E(.01)},"cubic-decimeters":{inBaseUnits:1e3*E(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*E(1e3)},"cubic-inches":{inBaseUnits:1e3*E(.0254)},"cubic-feet":{inBaseUnits:1e3*E(.3048)},"cubic-yards":{inBaseUnits:1e3*E(.9144)},"cubic-miles":{inBaseUnits:1e3*E(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},g=(()=>{const e={};for(const t in S)for(const r in S[t].units)e[r]=t;return e})(),h=new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);function T(e){const t=g[e];if(!t)throw new Error("unknown type");return t}function M(e,t=null){return t=t||T(e),S[t].baseUnit===e}function m(e,t,r){if(t===r)return e;const n=T(t);if(n!==T(r))throw new Error("incompatible units");const o=M(t,n)?e:function(e,t,r){return e*S[r].units[t].inBaseUnits}(e,t,n);return M(r,n)?o:function(e,t,r){return e/S[r].units[t].inBaseUnits}(o,r,n)}function y(e,t,r,n=!1){if(!n&&(0,s.EA)(t))throw new Error("Unable to convert from an angular unit to a linear unit.");const o=I(t);return o!==r&&(e=o?m(e,o,r):m(e*=N(t),"meters",r)),e}function O(e,t,r,n=!1){if(!n&&(0,s.EA)(r))throw new Error("Unable to convert from a linear unit to an angular unit.");const o=I(r);return t!==o&&(e=o?m(e,t,o):m(e,t,"meters")/N(r)),e}function A(e,t,r){return m(e,t,"meters")/(r*Math.PI/180)}function U(e){return p.fromJSON(e.toLowerCase())||null}function R(e){if(null!=e&&!(0,s.B3)(e))return 1;const t=N(e);return t>1e5?1:t}function G(e){return N(e)>=(0,o.tO)(e).metersPerDegree?"meters":I(e)}function N(e,t=i.$O.metersPerDegree){return k(e,!0)??t}function k(e,t=!1){const r=e?.wkid??null,n=e?.wkt2??e?.wkt??null;let o=null;if(r){if((0,s.tl)(r))return i.sH.metersPerDegree;if((0,s.ZL)(r))return i.Sw.metersPerDegree;o=c.values[c[r]],!o&&t&&P.has(r)&&(o=u)}else n&&(F(n)?o=C(_.exec(n),o):B(n)&&(o=C(l.exec(n),o)));return o}function w(e){return(0,s.EA)(e)?1:N(e)}function C(e,t){return e?.[1]?D(e[1]):t}function D(e){return parseFloat(e.split(",")[1])}function I(e){const t=e?.wkid??null,r=e?.wkt2??e?.wkt??null;let n=null;if(t)n=c.units[c[t]];else if(r){const e=F(r)?_:B(r)?l:null;if(e){const t=e.exec(r);t?.[1]&&(n=function(e){const t=/[\\"']{1}([^\\"']+)/.exec(e);let r=t?.[1];if(!r||!U(r)){const t=D(e);r=null;const n=c.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<W){r=c.units[e];break}}return r}(t[1]))}}return null!=n?U(n):null}function b(e){const t=I(e);return null==t?null:h.get(t)}function B(e){return/^GEOCCS/i.test(e)}function F(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}const W=1e-7,Y=(0,n.O)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),j=(0,n.O)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),v=(0,n.O)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},83290:(e,t,r)=>{r.d(t,{P:()=>P,a:()=>_,g:()=>u,h:()=>S,i:()=>a,j:()=>O,l:()=>f,p:()=>w});var n=r(2741),o=r(44208);let i,s=null;function a(){return!!s}function f(){return i||(i=r.e(6187).then(r.bind(r,46187)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,n.s)(`esri/geometry/support/${e}`)}))).then((e=>{U(e)})),i)}var u,_,c;!function(e){function t(e,t,r){s.ensureCache.prepare();const n=N(r),o=r===n,i=s.ensureFloat64(n),a=s._pe_geog_to_proj(s.getPointer(e),t,i);return a&&k(r,t,i,o),a}function r(e,t,r){return n(e,t,r,0)}function n(e,t,r,n){s.ensureCache.prepare();const o=N(r),i=r===o,a=s.ensureFloat64(o),f=s._pe_proj_to_geog_center(s.getPointer(e),t,a,n);return f&&k(r,t,a,i),f}e.geogToProj=t,e.projGeog=function(e,n,o,i){switch(i){case _.PE_TRANSFORM_P_TO_G:return r(e,n,o);case _.PE_TRANSFORM_G_TO_P:return t(e,n,o)}return 0},e.projToGeog=r,e.projToGeogCenter=n}(u||(u={})),(c=_||(_={})).init=function(){c.PE_BUFFER_MAX=s.PeDefs.prototype.PE_BUFFER_MAX,c.PE_NAME_MAX=s.PeDefs.prototype.PE_NAME_MAX,c.PE_MGRS_MAX=s.PeDefs.prototype.PE_MGRS_MAX,c.PE_USNG_MAX=s.PeDefs.prototype.PE_USNG_MAX,c.PE_DD_MAX=s.PeDefs.prototype.PE_DD_MAX,c.PE_DDM_MAX=s.PeDefs.prototype.PE_DDM_MAX,c.PE_DMS_MAX=s.PeDefs.prototype.PE_DMS_MAX,c.PE_UTM_MAX=s.PeDefs.prototype.PE_UTM_MAX,c.PE_PARM_MAX=s.PeDefs.prototype.PE_PARM_MAX,c.PE_TYPE_NONE=s.PeDefs.prototype.PE_TYPE_NONE,c.PE_TYPE_GEOGCS=s.PeDefs.prototype.PE_TYPE_GEOGCS,c.PE_TYPE_PROJCS=s.PeDefs.prototype.PE_TYPE_PROJCS,c.PE_TYPE_GEOGTRAN=s.PeDefs.prototype.PE_TYPE_GEOGTRAN,c.PE_TYPE_COORDSYS=s.PeDefs.prototype.PE_TYPE_COORDSYS,c.PE_TYPE_UNIT=s.PeDefs.prototype.PE_TYPE_UNIT,c.PE_TYPE_LINUNIT=s.PeDefs.prototype.PE_TYPE_LINUNIT,c.PE_STR_OPTS_NONE=s.PeDefs.prototype.PE_STR_OPTS_NONE,c.PE_STR_AUTH_NONE=s.PeDefs.prototype.PE_STR_AUTH_NONE,c.PE_STR_AUTH_TOP=s.PeDefs.prototype.PE_STR_AUTH_TOP,c.PE_STR_NAME_CANON=s.PeDefs.prototype.PE_STR_NAME_CANON,c.PE_STR_FMT_WKT=s.PeDefs.prototype.PE_STR_FMT_WKT,c.PE_STR_FMT_WKT2=s.PeDefs.prototype.PE_STR_FMT_WKT2,c.PE_PARM_X0=s.PeDefs.prototype.PE_PARM_X0,c.PE_PARM_ND=s.PeDefs.prototype.PE_PARM_ND,c.PE_TRANSFORM_1_TO_2=s.PeDefs.prototype.PE_TRANSFORM_1_TO_2,c.PE_TRANSFORM_2_TO_1=s.PeDefs.prototype.PE_TRANSFORM_2_TO_1,c.PE_TRANSFORM_P_TO_G=s.PeDefs.prototype.PE_TRANSFORM_P_TO_G,c.PE_TRANSFORM_G_TO_P=s.PeDefs.prototype.PE_TRANSFORM_G_TO_P,c.PE_HORIZON_RECT=s.PeDefs.prototype.PE_HORIZON_RECT,c.PE_HORIZON_POLY=s.PeDefs.prototype.PE_HORIZON_POLY,c.PE_HORIZON_LINE=s.PeDefs.prototype.PE_HORIZON_LINE,c.PE_HORIZON_DELTA=s.PeDefs.prototype.PE_HORIZON_DELTA};let l=null;var P;!function(e){const t={},r={},n=e=>{const t=e.getType();switch(t){case _.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case _.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case _.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:t&_.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}return e};function o(e,r){let o=null,i=t[e];if(i||(i={},t[e]=i),i.hasOwnProperty(String(r))&&(o=i[r],s.compare(o,s.NULL)&&(o=null)),!o){const t=s.PeFactory.prototype.factoryByType(e,r);s.compare(t,s.NULL)||(o=n(t),i[r]=o)}return o}e.initialize=function(){s.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return o(_.PE_TYPE_COORDSYS,e)},e.factoryByType=o,e.fromString=function(e,t){let o=null,i=r[e];if(i||(i={},r[e]=i),i.hasOwnProperty(t)&&(o=i[t],s.compare(o,s.NULL)&&(o=null)),!o){const r=s.PeFactory.prototype.fromString(e,t);s.compare(r,s.NULL)||(o=n(r),i[t]=o)}return o},e.geogcs=function(e){return o(_.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return o(_.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return s.PeFactory.prototype.getCode(e)},e.projcs=function(e){return o(_.PE_TYPE_PROJCS,e)},e.unit=function(e){return o(_.PE_TYPE_UNIT,e)}}(P||(P={}));let p=null;var d,E,S,g,h,T,M,m,y,O,A;function U(e){function t(e,t,r){e[t]=r(e[t])}s=e,_.init(),d.init(),M.init(),y.init(),O.init(),l=class extends s.PeDouble{constructor(e=NaN){super(e)}destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}},p=class extends s.PeGCSExtent{destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}};const r=[s.PeAngunit,s.PeDatum,s.PeGeogcs,s.PeGeogtran,s.PeObject,s.PeParameter,s.PePrimem,s.PeProjcs,s.PeSpheroid,s.PeUnit];for(const e of r)t(e.prototype,"getName",(e=>function(){return e.call(this,new Array(_.PE_NAME_MAX))}));for(const e of[s.PeGeogtran,s.PeProjcs])t(e.prototype,"getParameters",(e=>function(){const t=new Array(_.PE_PARM_MAX);let r=e.call(this);for(let e=0;e<t.length;e++){const n=s.getValue(r,"*");t[e]=n?s.wrapPointer(n,s.PeParameter):null,r+=Int32Array.BYTES_PER_ELEMENT}return t}));t(s.PeHorizon.prototype,"getCoord",(e=>function(t=!1){const r=this.getSize();if(!r)return null;const n=[];return k(n,r,e.call(this),t),n})),t(s.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const t=s._pe_getPeGTlistExtendedGTsSize();return function(){let r=null;const n=e.call(this);if(!s.compare(n,s.NULL)){r=[n];const e=this.getSteps();if(e>1){const o=s.getPointer(n);for(let n=1;n<e;n++)r.push(s.wrapPointer(o+t*n,s.PeGTlistExtendedGTs))}}return r}}));const n=s._pe_getPeHorizonSize(),o=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let r=null;const o=e.call(this);if(!s.compare(o,s.NULL)){r=[o];const e=o.getNump();if(e>1){const t=s.getPointer(o);for(let o=1;o<e;o++)r.push(s.wrapPointer(t+n*o,s.PeHorizon))}}return t.set(e,r),r};t(s.PeProjcs.prototype,"horizonGcsGenerate",o),t(s.PeProjcs.prototype,"horizonPcsGenerate",o),s.PeObject.prototype.toString=function(e=_.PE_STR_OPTS_NONE){s.ensureCache.prepare();const t=s.getPointer(this),r=s.ensureInt8(new Array(_.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(t,e,r))},s.PeGeogcs.prototype.destroy=function(){this.Delete(),R(this),this.ptr=0},s.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},s.PeProjcs.prototype.destroy=function(){this.Delete(),R(this),this.ptr=0},s.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function R(e){if(!e)return;const t=s.getClass(e);if(!t)return;const r=s.getCache(t);if(!r)return;const n=s.getPointer(e);n&&delete r[n]}function G(e,t){const r=[],n=new Array(t);for(let t=0;t<e;t++)r.push(s.ensureInt8(n));return r}function N(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function k(e,t,r,n=!1){if(n)for(let n=0;n<2*t;n++)e[n]=s.getValue(r+n*Float64Array.BYTES_PER_ELEMENT,"double");else{const n=0===e.length;for(let o=0;o<t;o++)n&&(e[o]=new Array(2)),e[o][0]=s.getValue(r,"double"),e[o][1]=s.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let t;e.init=function(){e.PE_GTLIST_OPTS_COMMON=s.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=s._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,r,n,o,i,a){let f=null;const u=new s.PeInteger(a);try{const _=s.PeGTlistExtended.prototype.getGTlist(e,r,n,o,i,u);if((a=u.val)&&(f=[_],a>1)){const e=s.getPointer(_);for(let r=1;r<a;r++)f.push(s.wrapPointer(e+t*r,s.PeGTlistExtendedEntry))}}finally{s.destroy(u)}return f}}(d||(d={})),function(e){e.destroy=function(e){if(e?.length){for(const t of e)R(t),t.getEntries().forEach((e=>{R(e);const t=e.getGeogtran();R(t),t.getParameters().forEach(R),[t.getGeogcs1(),t.getGeogcs2()].forEach((e=>{R(e);const t=e.getDatum();R(t),R(t.getSpheroid()),R(e.getPrimem()),R(e.getUnit())}))}));s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(E||(E={})),function(e){e.geogToGeog=function(e,t,r,n,o){s.ensureCache.prepare();const i=N(r),a=r===i,f=s.ensureFloat64(i);let u=0;n&&(u=s.ensureFloat64(n));const _=s._pe_geog_to_geog(s.getPointer(e),t,f,u,o);return _&&k(r,t,f,a),_}}(S||(S={})),function(e){e.geodesicCoordinate=function(e,t,r,n,o,i,a,f){s.PeLineType.prototype.geodesic_coordinate(e,t,r,n,o,i,a,f)},e.geodeticCoordinate=function(e,t,r,n,o,i,a,f,u){s.PeLineType.prototype.geodetic_coordinate(e,t,r,n,o,i,a,f,u)},e.geodeticDistance=function(e,t,r,n,o,i,a,f,u,_){s.PeLineType.prototype.geodetic_distance(e,t,r,n,o,i,a,f,u,_)},e.greatEllipticDistance=function(e,t,r,n,o,i,a,f,u){s.PeLineType.prototype.great_elliptic_distance(e,t,r,n,o,i,a,f,u)}}(g||(g={})),function(e){e.phiToEta=function(e,t){return s.PeMath.prototype.phi_to_eta(e,t)},e.etaToPhi=function(e,t){return s.PeMath.prototype.eta_to_phi(e,t)},e.phiToPhig=function(e,t){return s.PeMath.prototype.phi_to_phig(e,t)},e.q=function(e,t,r){return s.PeMath.prototype.q(e,t,r)},e.q90=function(e,t){return s.PeMath.prototype.q90(e,t)}}(h||(h={})),function(e){const t=(e,t,r,n,o,i)=>{let a,f;switch(s.ensureCache.prepare(),e){case"dd":a=s._pe_geog_to_dd,f=_.PE_DD_MAX;break;case"ddm":a=s._pe_geog_to_ddm,f=_.PE_DDM_MAX;break;case"dms":a=s._pe_geog_to_dms,f=_.PE_DMS_MAX}let u=0;t&&(u=s.getPointer(t));const c=N(n),l=s.ensureFloat64(c),P=G(r,f),p=a(u,r,l,o,s.ensureInt32(P));if(p)for(let e=0;e<r;e++)i[e]=s.UTF8ToString(P[e]);return p},r=(e,t,r,n,o)=>{let i;switch(s.ensureCache.prepare(),e){case"dd":i=s._pe_dd_to_geog;break;case"ddm":i=s._pe_ddm_to_geog;break;case"dms":i=s._pe_dms_to_geog}let a=0;t&&(a=s.getPointer(t));const f=n.map((e=>s.ensureString(e))),u=s.ensureInt32(f),_=s.ensureFloat64(new Array(2*r)),c=i(a,r,u,_);return c&&k(o,r,_),c};e.geogToDms=function(e,r,n,o,i){return t("dms",e,r,n,o,i)},e.dmsToGeog=function(e,t,n,o){return r("dms",e,t,n,o)},e.geogToDdm=function(e,r,n,o,i){return t("ddm",e,r,n,o,i)},e.ddmToGeog=function(e,t,n,o){return r("ddm",e,t,n,o)},e.geogToDd=function(e,r,n,o,i){return t("dd",e,r,n,o,i)},e.ddToGeog=function(e,t,n,o){return r("dd",e,t,n,o)}}(T||(T={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=s.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=s.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,t,r,n,o,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=N(r),c=s.ensureFloat64(u),l=G(t,_.PE_MGRS_MAX),P=s.ensureInt32(l),p=s._pe_geog_to_mgrs_extended(f,t,c,n,o,i,P);if(p)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(l[e]);return p},e.mgrsToGeogExtended=function(e,t,r,n,o){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=r.map((e=>s.ensureString(e))),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*t)),_=s._pe_mgrs_to_geog_extended(i,t,f,n,u);return _&&k(o,t,u),_}}(M||(M={})),function(e){e.geogToUsng=function(e,t,r,n,o,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=N(r),c=s.ensureFloat64(u),l=G(t,_.PE_MGRS_MAX),P=s.ensureInt32(l),p=s._pe_geog_to_usng(f,t,c,n,o,i,P);if(p)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(l[e]);return p},e.usngToGeog=function(e,t,r,n){s.ensureCache.prepare();let o=0;e&&(o=s.getPointer(e));const i=r.map((e=>s.ensureString(e))),a=s.ensureInt32(i),f=s.ensureFloat64(new Array(2*t)),u=s._pe_usng_to_geog(o,t,a,f);return u&&k(n,t,f),u}}(m||(m={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=s.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=s.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=s.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,t,r,n,o){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=N(r),f=s.ensureFloat64(a),u=G(t,_.PE_UTM_MAX),c=s.ensureInt32(u),l=s._pe_geog_to_utm(i,t,f,n,c);if(l)for(let e=0;e<t;e++)o[e]=s.UTF8ToString(u[e]);return l},e.utmToGeog=function(e,t,r,n,o){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=r.map((e=>s.ensureString(e))),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*t)),_=s._pe_utm_to_geog(i,t,f,n,u);return _&&k(o,t,u),_}}(y||(y={})),function(e){const t=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=s.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=s.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(r,n=e.PE_PCSINFO_OPTION_DOMAIN){let o=null,i=null;return t.has(r)&&(i=t.get(r),i[n]&&(o=i[n])),o||(o=s.PePCSInfo.prototype.generate(r,n),i||(i=[],t.set(r,i)),i[n]=o),o}}(O||(O={})),function(e){e.versionString=function(){return s.PeVersion.prototype.version_string()}}(A||(A={}));const w=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return u},get PeDefs(){return _},get PeDouble(){return l},get PeFactory(){return P},get PeGCSExtent(){return p},get PeGTTransformations(){return S},get PeGTlistExtended(){return d},get PeGTlistExtendedEntry(){return E},get PeLineType(){return g},get PeMath(){return h},get PeNotationDms(){return T},get PeNotationMgrs(){return M},get PeNotationUsng(){return m},get PeNotationUtm(){return y},get PePCSInfo(){return O},get PeVersion(){return A},_init:U,get _pe(){return s},isLoaded:a,isSupported:function(){return!!(0,o.A)("esri-wasm")},load:f},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4996],{16930:(e,t,r)=>{r.d(t,{A:()=>d});var n,o=r(90237),i=r(69622),s=r(25482),a=r(4718),f=r(83047),u=r(56507),_=r(10107),c=r(40608),l=r(43937),P=r(21325);let p=class extends s.A{static{n=this}static{this.GCS_NAD_1927=null}static{this.WGS84=null}static{this.WebMercator=null}static{this.PlateCarree=null}static fromJSON(e){if(!e)return null;if(102100===e?.wkid)return n.WebMercator;if(4326===e?.wkid)return n.WGS84;const t=new n;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){if(e&&"object"==typeof e)return e;const t="string"==typeof e?"wkt":"wkid";return{[t]:e}}get isWGS84(){return(0,P.oT)(this)}get isWebMercator(){return(0,P.K8)(this)}get isGeographic(){return(0,P.EA)(this)}get isWrappable(){return(0,P.d9)(this)}get metersPerUnit(){return(0,f.GA)(this)}get unit(){return(0,f.Ij)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===n.WGS84)return new n(P.KK);if(this===n.WebMercator)return new n(P.ch);const e=new n;return null!=this.wkid?(e.wkid=this.wkid,null!=this.latestWkid&&(e.latestWkid=this.latestWkid),null!=this.vcsWkid&&(e.vcsWkid=this.vcsWkid),null!=this.latestVcsWkid&&(e.latestVcsWkid=this.latestVcsWkid)):(null!=this.wkt&&(e.wkt=this.wkt),null!=this.wkt2&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=(0,a.o8)(this.imageCoordinateSystem)),e}equals(e){if(null==e)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(null==this.imageCoordinateSystem||null==e.imageCoordinateSystem)return!1;const{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:n}=e.imageCoordinateSystem,o=this.imageCoordinateSystem;return null==t||n?JSON.stringify(o)===JSON.stringify(e.imageCoordinateSystem):r?o.id===t&&o.referenceServiceName===r:o.id===t}return(0,P.aI)(this,e)}toJSON(e){return this.write(void 0,e)}};(0,o._)([(0,_.MZ)({readOnly:!0})],p.prototype,"isWGS84",null),(0,o._)([(0,_.MZ)({readOnly:!0})],p.prototype,"isWebMercator",null),(0,o._)([(0,_.MZ)({readOnly:!0})],p.prototype,"isGeographic",null),(0,o._)([(0,_.MZ)({readOnly:!0})],p.prototype,"isWrappable",null),(0,o._)([(0,_.MZ)({type:u.jz,json:{write:!0}})],p.prototype,"latestWkid",void 0),(0,o._)([(0,_.MZ)({readOnly:!0})],p.prototype,"metersPerUnit",null),(0,o._)([(0,_.MZ)({readOnly:!0})],p.prototype,"unit",null),(0,o._)([(0,_.MZ)({type:u.jz,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],p.prototype,"wkid",void 0),(0,o._)([(0,_.MZ)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],p.prototype,"wkt",void 0),(0,o._)([(0,l.K)("wkt"),(0,l.K)("web-scene","wkt")],p.prototype,"writeWkt",null),(0,o._)([(0,_.MZ)({type:String,json:{write:!1}})],p.prototype,"wkt2",void 0),(0,o._)([(0,_.MZ)({type:u.jz,json:{write:!0}})],p.prototype,"vcsWkid",void 0),(0,o._)([(0,_.MZ)({type:u.jz,json:{write:!0}})],p.prototype,"latestVcsWkid",void 0),(0,o._)([(0,_.MZ)()],p.prototype,"imageCoordinateSystem",void 0),p=n=(0,o._)([(0,c.$)("esri.geometry.SpatialReference")],p);const d=p;p.prototype.toJSON.isDefaultToJSON=!0,p.GCS_NAD_1927=i.A.freeze(new p({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'})),p.WGS84=i.A.freeze(new p(P.KK)),p.WebMercator=i.A.freeze(new p(P.ch)),p.PlateCarree=i.A.freeze(new p(P.tQ))},19936:(e,t,r)=>{var n;r.d(t,{Y:()=>n}),function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"}(n||(n={}))},21325:(e,t,r)=>{r.d(t,{B3:()=>E,EA:()=>d,K8:()=>T,KK:()=>G,KQ:()=>A,Mc:()=>f,Vp:()=>P,YX:()=>p,ZL:()=>O,aI:()=>l,ch:()=>N,d9:()=>U,fn:()=>R,jp:()=>g,oT:()=>S,q8:()=>y,r1:()=>M,tQ:()=>k,tl:()=>m,x1:()=>h});var n=r(799),o=(r(83290),r(19936)),i=r(22530);const s=[102100,102113,3857,3785,900913],a=[4326,...s,104905,104971],f=[-20037508.342788905,20037508.342788905],u=[-20037508.342787,20037508.342787],_={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:f,origin:u,dx:1e-5},c={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:f,origin:u,dx:1e-5},102100:_,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:f,origin:u,dx:1e-5},3857:_,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:_};function l(e,t){if(e===t)return!0;if(null==e||null==t)return!1;const r=e.wkid,n=t.wkid;if(null!=r||null!=n){if(r===n)return!0;if(T(e)&&T(t))return!0;const o=e.latestWkid;if(null!=o&&n===o)return!0;const i=t.latestWkid;return null!=i&&r===i}let o,i;return e.wkt2&&t.wkt2?(o=e.wkt2,i=t.wkt2):e.wkt&&t.wkt&&(o=e.wkt,i=t.wkt),!(!o||!i)&&o.toUpperCase()===i.toUpperCase()}function P(e){const t=e?.wkid;return null!=t&&t>=2e3&&c[t]||null}function p(e){if(!e)return;const{wkid:t,vcsWkid:r}=e;if(t)return r?JSON.stringify({wkid:t,vcsWkid:r}):String(t);const n=e.wkt||e.wkt2;return JSON.stringify(n?r?{wkt:n,vcsWkid:r}:{wkt:n}:{})}function d(e){if(!R(e))return!1;const{wkid:t}=e;if(t)return null==i.A[t];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function E(e){return!(y(e)||A(e))}function S(e){return 4326===e?.wkid}function g(e){return/^\s*(?:GEOD|GEODETIC|GEOG|GEOGRAPHIC|PROJ|PROJECTED|VERT|VERTICAL|ENG|ENGINEERING|PARAMETRIC|TIME|DERIVEDPROJ|COMPOUND|BOUND)CRS/i.test(e)}function h(e){return e?.wkid===o.Y.CGCS2000}function T(e){const t=e?.wkid;return null!=t&&t>=2e3&&s.includes(t)}function M(e){return 32662===e?.wkid}function m(e){return e===o.Y.GCSMARS2000||e===o.Y.GCSMARS2000_SPHERE}function y(e){return m(e?.wkid)}function O(e){return e===o.Y.GCSMOON2000}function A(e){return O(e?.wkid)}function U(e){const t=e?.wkid;return null!=t&&t>=2e3&&a.includes(t)}function R(e){if(null==e)return!1;const t=e.wkid;return null!=t&&t>=2e3||null!=e.wkt2||null!=e.wkt}const G={wkid:4326,wkt:(0,n.HC)(c[4326].wkTemplate,{Central_Meridian:"0.0"})},N={wkid:102100,latestWkid:3857},k={wkid:32662}},22530:(e,t,r)=>{let n;r.d(t,{A:()=>o});const o={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,10592:0,10594:0,10596:0,10598:0,10601:0,10603:0,10626:0,10632:0,10665:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1,103978:2,103979:0,103980:2,103981:0};for(n=2e3;n<=2045;n++)o[n]=0;for(n=2056;n<=2065;n++)o[n]=0;for(n=2067;n<=2135;n++)o[n]=0;for(n=2137;n<=2154;n++)o[n]=0;for(n=2161;n<=2170;n++)o[n]=0;for(n=2172;n<=2193;n++)o[n]=0;for(n=2195;n<=2198;n++)o[n]=0;for(n=2200;n<=2203;n++)o[n]=0;for(n=2205;n<=2217;n++)o[n]=0;for(n=2222;n<=2224;n++)o[n]=1;for(n=2225;n<=2250;n++)o[n]=2;for(n=2251;n<=2253;n++)o[n]=1;for(n=2257;n<=2264;n++)o[n]=2;for(n=2274;n<=2279;n++)o[n]=2;for(n=2280;n<=2282;n++)o[n]=1;for(n=2283;n<=2289;n++)o[n]=2;for(n=2290;n<=2292;n++)o[n]=0;for(n=2308;n<=2313;n++)o[n]=0;for(n=2315;n<=2491;n++)o[n]=0;for(n=2494;n<=2866;n++)o[n]=0;for(n=2867;n<=2869;n++)o[n]=1;for(n=2870;n<=2888;n++)o[n]=2;for(n=2891;n<=2895;n++)o[n]=2;for(n=2896;n<=2898;n++)o[n]=1;for(n=2902;n<=2908;n++)o[n]=2;for(n=2915;n<=2920;n++)o[n]=2;for(n=2921;n<=2923;n++)o[n]=1;for(n=2924;n<=2930;n++)o[n]=2;for(n=2931;n<=2962;n++)o[n]=0;for(n=2964;n<=2968;n++)o[n]=2;for(n=2969;n<=2973;n++)o[n]=0;for(n=2975;n<=2991;n++)o[n]=0;for(n=2995;n<=3051;n++)o[n]=0;for(n=3054;n<=3079;n++)o[n]=0;for(n=3081;n<=3088;n++)o[n]=0;for(n=3092;n<=3101;n++)o[n]=0;for(n=3106;n<=3138;n++)o[n]=0;for(n=3146;n<=3151;n++)o[n]=0;for(n=3153;n<=3166;n++)o[n]=0;for(n=3168;n<=3172;n++)o[n]=0;for(n=3174;n<=3203;n++)o[n]=0;for(n=3294;n<=3358;n++)o[n]=0;for(n=3367;n<=3403;n++)o[n]=0;for(n=3408;n<=3416;n++)o[n]=0;for(n=3417;n<=3438;n++)o[n]=2;for(n=3441;n<=3446;n++)o[n]=2;for(n=3447;n<=3450;n++)o[n]=0;for(n=3451;n<=3459;n++)o[n]=2;for(n=3460;n<=3478;n++)o[n]=0;for(n=3554;n<=3559;n++)o[n]=0;for(n=3560;n<=3570;n++)o[n]=2;for(n=3571;n<=3581;n++)o[n]=0;for(n=3594;n<=3597;n++)o[n]=0;for(n=3601;n<=3604;n++)o[n]=0;for(n=3637;n<=3639;n++)o[n]=0;for(n=3665;n<=3667;n++)o[n]=0;for(n=3693;n<=3695;n++)o[n]=0;for(n=3701;n<=3727;n++)o[n]=0;for(n=3728;n<=3739;n++)o[n]=2;for(n=3740;n<=3751;n++)o[n]=0;for(n=3753;n<=3760;n++)o[n]=2;for(n=3761;n<=3773;n++)o[n]=0;for(n=3775;n<=3777;n++)o[n]=0;for(n=3779;n<=3781;n++)o[n]=0;for(n=3783;n<=3785;n++)o[n]=0;for(n=3788;n<=3791;n++)o[n]=0;for(n=3797;n<=3802;n++)o[n]=0;for(n=3814;n<=3816;n++)o[n]=0;for(n=3825;n<=3829;n++)o[n]=0;for(n=3832;n<=3841;n++)o[n]=0;for(n=3844;n<=3852;n++)o[n]=0;for(n=3873;n<=3885;n++)o[n]=0;for(n=3890;n<=3893;n++)o[n]=0;for(n=3907;n<=3912;n++)o[n]=0;for(n=3942;n<=3950;n++)o[n]=0;for(n=3968;n<=3970;n++)o[n]=0;for(n=3973;n<=3976;n++)o[n]=0;for(n=3986;n<=3989;n++)o[n]=0;for(n=3994;n<=3997;n++)o[n]=0;for(n=4048;n<=4051;n++)o[n]=0;for(n=4056;n<=4063;n++)o[n]=0;for(n=4093;n<=4096;n++)o[n]=0;for(n=4390;n<=4398;n++)o[n]=0;for(n=4399;n<=4413;n++)o[n]=2;for(n=4418;n<=4433;n++)o[n]=2;for(n=4455;n<=4457;n++)o[n]=2;for(n=4484;n<=4489;n++)o[n]=0;for(n=4491;n<=4554;n++)o[n]=0;for(n=4568;n<=4589;n++)o[n]=0;for(n=4652;n<=4656;n++)o[n]=0;for(n=4766;n<=4800;n++)o[n]=0;for(n=5014;n<=5016;n++)o[n]=0;for(n=5069;n<=5072;n++)o[n]=0;for(n=5105;n<=5130;n++)o[n]=0;for(n=5167;n<=5188;n++)o[n]=0;for(n=5253;n<=5259;n++)o[n]=0;for(n=5269;n<=5275;n++)o[n]=0;for(n=5292;n<=5311;n++)o[n]=0;for(n=5329;n<=5331;n++)o[n]=0;for(n=5343;n<=5349;n++)o[n]=0;for(n=5355;n<=5357;n++)o[n]=0;for(n=5387;n<=5389;n++)o[n]=0;for(n=5459;n<=5463;n++)o[n]=0;for(n=5479;n<=5482;n++)o[n]=0;for(n=5518;n<=5520;n++)o[n]=0;for(n=5530;n<=5539;n++)o[n]=0;for(n=5550;n<=5552;n++)o[n]=0;for(n=5562;n<=5583;n++)o[n]=0;for(n=5623;n<=5625;n++)o[n]=2;for(n=5631;n<=5639;n++)o[n]=0;for(n=5649;n<=5653;n++)o[n]=0;for(n=5663;n<=5680;n++)o[n]=0;for(n=5682;n<=5685;n++)o[n]=0;for(n=5875;n<=5877;n++)o[n]=0;for(n=5896;n<=5899;n++)o[n]=0;for(n=5921;n<=5940;n++)o[n]=0;for(n=6050;n<=6125;n++)o[n]=0;for(n=6244;n<=6275;n++)o[n]=0;for(n=6328;n<=6348;n++)o[n]=0;for(n=6350;n<=6356;n++)o[n]=0;for(n=6366;n<=6372;n++)o[n]=0;for(n=6381;n<=6387;n++)o[n]=0;for(n=6393;n<=6404;n++)o[n]=0;for(n=6480;n<=6483;n++)o[n]=0;for(n=6511;n<=6514;n++)o[n]=0;for(n=6579;n<=6581;n++)o[n]=0;for(n=6619;n<=6624;n++)o[n]=0;for(n=6625;n<=6627;n++)o[n]=2;for(n=6628;n<=6632;n++)o[n]=0;for(n=6634;n<=6637;n++)o[n]=0;for(n=6669;n<=6692;n++)o[n]=0;for(n=6707;n<=6709;n++)o[n]=0;for(n=6720;n<=6723;n++)o[n]=0;for(n=6732;n<=6738;n++)o[n]=0;for(n=6931;n<=6933;n++)o[n]=0;for(n=6956;n<=6959;n++)o[n]=0;for(n=7005;n<=7007;n++)o[n]=0;for(n=7057;n<=7070;n++)o[n]=2;for(n=7074;n<=7082;n++)o[n]=0;for(n=7109;n<=7118;n++)o[n]=0;for(n=7119;n<=7127;n++)o[n]=1;for(n=7374;n<=7376;n++)o[n]=0;for(n=7528;n<=7586;n++)o[n]=0;for(n=7587;n<=7645;n++)o[n]=2;for(n=7692;n<=7696;n++)o[n]=0;for(n=7755;n<=7787;n++)o[n]=0;for(n=7791;n<=7795;n++)o[n]=0;for(n=7799;n<=7801;n++)o[n]=0;for(n=7803;n<=7805;n++)o[n]=0;for(n=7825;n<=7831;n++)o[n]=0;for(n=7845;n<=7859;n++)o[n]=0;for(n=8013;n<=8032;n++)o[n]=0;for(n=8065;n<=8068;n++)o[n]=1;for(n=8518;n<=8529;n++)o[n]=2;for(n=8533;n<=8536;n++)o[n]=2;for(n=8538;n<=8540;n++)o[n]=2;for(n=8677;n<=8679;n++)o[n]=0;for(n=8836;n<=8840;n++)o[n]=0;for(n=8857;n<=8859;n++)o[n]=0;for(n=8908;n<=8910;n++)o[n]=0;for(n=9154;n<=9159;n++)o[n]=0;for(n=9205;n<=9218;n++)o[n]=0;for(n=9271;n<=9273;n++)o[n]=0;for(n=9295;n<=9297;n++)o[n]=0;for(n=9356;n<=9360;n++)o[n]=0;for(n=9404;n<=9407;n++)o[n]=0;for(n=9476;n<=9482;n++)o[n]=0;for(n=9487;n<=9494;n++)o[n]=0;for(n=9697;n<=9699;n++)o[n]=0;for(n=9821;n<=9865;n++)o[n]=0;for(n=10285;n<=10291;n++)o[n]=0;for(n=10314;n<=10317;n++)o[n]=0;for(n=10448;n<=10465;n++)o[n]=0;for(n=10731;n<=10733;n++)o[n]=0;for(n=11114;n<=11118;n++)o[n]=0;for(n=20004;n<=20032;n++)o[n]=0;for(n=20047;n<=20049;n++)o[n]=0;for(n=20062;n<=20092;n++)o[n]=0;for(n=20135;n<=20138;n++)o[n]=0;for(n=20248;n<=20258;n++)o[n]=0;for(n=20348;n<=20358;n++)o[n]=0;for(n=20436;n<=20440;n++)o[n]=0;for(n=20822;n<=20824;n++)o[n]=0;for(n=20904;n<=20932;n++)o[n]=0;for(n=20934;n<=20936;n++)o[n]=0;for(n=21004;n<=21032;n++)o[n]=0;for(n=21035;n<=21037;n++)o[n]=0;for(n=21095;n<=21097;n++)o[n]=0;for(n=21148;n<=21150;n++)o[n]=0;for(n=21207;n<=21264;n++)o[n]=0;for(n=21307;n<=21364;n++)o[n]=0;for(n=21413;n<=21423;n++)o[n]=0;for(n=21453;n<=21463;n++)o[n]=0;for(n=21473;n<=21483;n++)o[n]=0;for(n=21780;n<=21782;n++)o[n]=0;for(n=21891;n<=21894;n++)o[n]=0;for(n=21896;n<=21899;n++)o[n]=0;for(n=22171;n<=22177;n++)o[n]=0;for(n=22181;n<=22187;n++)o[n]=0;for(n=22191;n<=22197;n++)o[n]=0;for(n=22207;n<=22222;n++)o[n]=0;for(n=22229;n<=22232;n++)o[n]=0;for(n=22234;n<=22236;n++)o[n]=0;for(n=22243;n<=22250;n++)o[n]=0;for(n=22262;n<=22265;n++)o[n]=0;for(n=22307;n<=22322;n++)o[n]=0;for(n=22348;n<=22357;n++)o[n]=0;for(n=22407;n<=22422;n++)o[n]=0;for(n=22462;n<=22465;n++)o[n]=0;for(n=22521;n<=22525;n++)o[n]=0;for(n=22607;n<=22622;n++)o[n]=0;for(n=22641;n<=22646;n++)o[n]=0;for(n=22648;n<=22657;n++)o[n]=0;for(n=22707;n<=22722;n++)o[n]=0;for(n=22762;n<=22765;n++)o[n]=0;for(n=22807;n<=22822;n++)o[n]=0;for(n=22991;n<=22994;n++)o[n]=0;for(n=23028;n<=23038;n++)o[n]=0;for(n=23301;n<=23333;n++)o[n]=2;for(n=23830;n<=23853;n++)o[n]=0;for(n=23866;n<=23872;n++)o[n]=0;for(n=23877;n<=23884;n++)o[n]=0;for(n=23886;n<=23894;n++)o[n]=0;for(n=23946;n<=23948;n++)o[n]=0;for(n=24311;n<=24313;n++)o[n]=0;for(n=24342;n<=24347;n++)o[n]=0;for(n=24370;n<=24374;n++)o[n]=10;for(n=24375;n<=24381;n++)o[n]=0;for(n=24718;n<=24721;n++)o[n]=0;for(n=24817;n<=24821;n++)o[n]=0;for(n=24877;n<=24882;n++)o[n]=0;for(n=24891;n<=24893;n++)o[n]=0;for(n=25391;n<=25395;n++)o[n]=0;for(n=25828;n<=25838;n++)o[n]=0;for(n=26191;n<=26195;n++)o[n]=0;for(n=26391;n<=26393;n++)o[n]=0;for(n=26701;n<=26722;n++)o[n]=0;for(n=26729;n<=26799;n++)o[n]=2;for(n=26801;n<=26803;n++)o[n]=2;for(n=26811;n<=26813;n++)o[n]=2;for(n=26847;n<=26870;n++)o[n]=2;for(n=26891;n<=26899;n++)o[n]=0;for(n=26901;n<=26923;n++)o[n]=0;for(n=26929;n<=26946;n++)o[n]=0;for(n=26948;n<=26998;n++)o[n]=0;for(n=27037;n<=27040;n++)o[n]=0;for(n=27205;n<=27232;n++)o[n]=0;for(n=27258;n<=27260;n++)o[n]=0;for(n=27391;n<=27398;n++)o[n]=0;for(n=27561;n<=27564;n++)o[n]=0;for(n=27571;n<=27574;n++)o[n]=0;for(n=27581;n<=27584;n++)o[n]=0;for(n=27591;n<=27594;n++)o[n]=0;for(n=27700;n<=27707;n++)o[n]=0;for(n=28191;n<=28193;n++)o[n]=0;for(n=28348;n<=28358;n++)o[n]=0;for(n=28402;n<=28432;n++)o[n]=0;for(n=28462;n<=28492;n++)o[n]=0;for(n=29118;n<=29122;n++)o[n]=0;for(n=29168;n<=29172;n++)o[n]=0;for(n=29177;n<=29185;n++)o[n]=0;for(n=29187;n<=29195;n++)o[n]=0;for(n=29900;n<=29903;n++)o[n]=0;for(n=30161;n<=30179;n++)o[n]=0;for(n=30491;n<=30494;n++)o[n]=0;for(n=30729;n<=30732;n++)o[n]=0;for(n=31251;n<=31259;n++)o[n]=0;for(n=31265;n<=31268;n++)o[n]=0;for(n=31275;n<=31279;n++)o[n]=0;for(n=31281;n<=31297;n++)o[n]=0;for(n=31461;n<=31469;n++)o[n]=0;for(n=31491;n<=31495;n++)o[n]=0;for(n=31917;n<=31922;n++)o[n]=0;for(n=31965;n<=32e3;n++)o[n]=0;for(n=32001;n<=32003;n++)o[n]=2;for(n=32005;n<=32031;n++)o[n]=2;for(n=32033;n<=32060;n++)o[n]=2;for(n=32064;n<=32067;n++)o[n]=2;for(n=32074;n<=32077;n++)o[n]=2;for(n=32081;n<=32086;n++)o[n]=0;for(n=32107;n<=32130;n++)o[n]=0;for(n=32133;n<=32159;n++)o[n]=0;for(n=32164;n<=32167;n++)o[n]=2;for(n=32180;n<=32199;n++)o[n]=0;for(n=32201;n<=32260;n++)o[n]=0;for(n=32301;n<=32360;n++)o[n]=0;for(n=32401;n<=32460;n++)o[n]=0;for(n=32501;n<=32560;n++)o[n]=0;for(n=32601;n<=32662;n++)o[n]=0;for(n=32664;n<=32667;n++)o[n]=2;for(n=32701;n<=32761;n++)o[n]=0;for(n=53001;n<=53004;n++)o[n]=0;for(n=53008;n<=53019;n++)o[n]=0;for(n=53021;n<=53032;n++)o[n]=0;for(n=53034;n<=53037;n++)o[n]=0;for(n=53042;n<=53046;n++)o[n]=0;for(n=53074;n<=53080;n++)o[n]=0;for(n=54001;n<=54004;n++)o[n]=0;for(n=54008;n<=54019;n++)o[n]=0;for(n=54021;n<=54032;n++)o[n]=0;for(n=54034;n<=54037;n++)o[n]=0;for(n=54042;n<=54046;n++)o[n]=0;for(n=54048;n<=54053;n++)o[n]=0;for(n=54074;n<=54080;n++)o[n]=0;for(n=54098;n<=54101;n++)o[n]=0;for(n=102001;n<=102040;n++)o[n]=0;for(n=102042;n<=102063;n++)o[n]=0;for(n=102065;n<=102067;n++)o[n]=0;for(n=102070;n<=102117;n++)o[n]=0;for(n=102122;n<=102216;n++)o[n]=0;for(n=102221;n<=102377;n++)o[n]=0;for(n=102382;n<=102388;n++)o[n]=0;for(n=102389;n<=102398;n++)o[n]=2;for(n=102399;n<=102444;n++)o[n]=0;for(n=102445;n<=102447;n++)o[n]=2;for(n=102448;n<=102458;n++)o[n]=0;for(n=102459;n<=102468;n++)o[n]=2;for(n=102469;n<=102499;n++)o[n]=0;for(n=102500;n<=102519;n++)o[n]=1;for(n=102520;n<=102524;n++)o[n]=0;for(n=102525;n<=102529;n++)o[n]=2;for(n=102530;n<=102588;n++)o[n]=0;for(n=102590;n<=102598;n++)o[n]=0;for(n=102601;n<=102603;n++)o[n]=0;for(n=102605;n<=102628;n++)o[n]=0;for(n=102629;n<=102646;n++)o[n]=2;for(n=102648;n<=102700;n++)o[n]=2;for(n=102701;n<=102703;n++)o[n]=0;for(n=102707;n<=102730;n++)o[n]=2;for(n=102733;n<=102758;n++)o[n]=2;for(n=102767;n<=102900;n++)o[n]=0;for(n=102901;n<=102933;n++)o[n]=2;for(n=102934;n<=102950;n++)o[n]=13;for(n=102951;n<=102963;n++)o[n]=0;for(n=102965;n<=102969;n++)o[n]=0;for(n=102971;n<=102973;n++)o[n]=0;for(n=102975;n<=102989;n++)o[n]=0;for(n=102990;n<=102992;n++)o[n]=1;for(n=102997;n<=103002;n++)o[n]=0;for(n=103003;n<=103008;n++)o[n]=2;for(n=103009;n<=103011;n++)o[n]=0;for(n=103012;n<=103014;n++)o[n]=2;for(n=103019;n<=103021;n++)o[n]=0;for(n=103022;n<=103024;n++)o[n]=2;for(n=103029;n<=103031;n++)o[n]=0;for(n=103032;n<=103034;n++)o[n]=2;for(n=103065;n<=103068;n++)o[n]=0;for(n=103074;n<=103076;n++)o[n]=0;for(n=103077;n<=103079;n++)o[n]=1;for(n=103080;n<=103082;n++)o[n]=0;for(n=103083;n<=103085;n++)o[n]=2;for(n=103090;n<=103093;n++)o[n]=0;for(n=103097;n<=103099;n++)o[n]=0;for(n=103100;n<=103102;n++)o[n]=2;for(n=103107;n<=103109;n++)o[n]=0;for(n=103110;n<=103112;n++)o[n]=2;for(n=103113;n<=103116;n++)o[n]=0;for(n=103117;n<=103120;n++)o[n]=2;for(n=103153;n<=103157;n++)o[n]=0;for(n=103158;n<=103162;n++)o[n]=2;for(n=103163;n<=103165;n++)o[n]=0;for(n=103166;n<=103168;n++)o[n]=1;for(n=103169;n<=103171;n++)o[n]=2;for(n=103186;n<=103188;n++)o[n]=0;for(n=103189;n<=103191;n++)o[n]=2;for(n=103192;n<=103195;n++)o[n]=0;for(n=103196;n<=103199;n++)o[n]=2;for(n=103200;n<=103224;n++)o[n]=0;for(n=103225;n<=103227;n++)o[n]=1;for(n=103232;n<=103237;n++)o[n]=0;for(n=103238;n<=103243;n++)o[n]=2;for(n=103244;n<=103246;n++)o[n]=0;for(n=103247;n<=103249;n++)o[n]=2;for(n=103254;n<=103256;n++)o[n]=0;for(n=103257;n<=103259;n++)o[n]=2;for(n=103264;n<=103266;n++)o[n]=0;for(n=103267;n<=103269;n++)o[n]=2;for(n=103300;n<=103375;n++)o[n]=0;for(n=103381;n<=103383;n++)o[n]=0;for(n=103384;n<=103386;n++)o[n]=1;for(n=103387;n<=103389;n++)o[n]=0;for(n=103390;n<=103392;n++)o[n]=2;for(n=103397;n<=103399;n++)o[n]=0;for(n=103400;n<=103471;n++)o[n]=2;for(n=103476;n<=103478;n++)o[n]=0;for(n=103479;n<=103481;n++)o[n]=2;for(n=103486;n<=103488;n++)o[n]=0;for(n=103489;n<=103491;n++)o[n]=2;for(n=103492;n<=103495;n++)o[n]=0;for(n=103496;n<=103499;n++)o[n]=2;for(n=103528;n<=103543;n++)o[n]=0;for(n=103544;n<=103548;n++)o[n]=2;for(n=103549;n<=103551;n++)o[n]=0;for(n=103552;n<=103554;n++)o[n]=1;for(n=103555;n<=103557;n++)o[n]=2;for(n=103558;n<=103560;n++)o[n]=0;for(n=103571;n<=103573;n++)o[n]=0;for(n=103574;n<=103576;n++)o[n]=2;for(n=103577;n<=103580;n++)o[n]=0;for(n=103581;n<=103583;n++)o[n]=2;for(n=103595;n<=103694;n++)o[n]=0;for(n=103696;n<=103699;n++)o[n]=0;for(n=103700;n<=103793;n++)o[n]=2;for(n=103794;n<=103890;n++)o[n]=0;for(n=103891;n<=103896;n++)o[n]=2;for(n=103900;n<=103971;n++)o[n]=2;for(n=103972;n<=103977;n++)o[n]=0;for(n=112e3;n<=112101;n++)o[n]=0},34727:(e,t,r)=>{r.d(t,{$8:()=>m,Cc:()=>s,Hx:()=>d,Io:()=>M,KJ:()=>u,Sp:()=>l,XM:()=>_,YN:()=>c,ZH:()=>p,cU:()=>o,gg:()=>P,hs:()=>a,kU:()=>f,or:()=>O,pF:()=>U,pq:()=>A,qE:()=>i});const n=new Float32Array(1);function o(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function i(e,t,r){return Math.min(Math.max(e,t),r)}function s(e,t,r){return e+(t-e)*r}function a(e,t,r,n,o){return s(n,o,(e-t)/(r-t))}function f(e){return e*Math.PI/180}function u(e){return 180*e/Math.PI}function _(e){return Math.acos(i(e,-1,1))}function c(e){return Math.asin(i(e,-1,1))}function l(e,t,r=1e-6){return e===t||!(!Number.isFinite(e)||!Number.isFinite(t))&&(e>t?e-t:t-e)<=r}function P(e,t,r=1e-6){return!l(e,t,r)&&e>t}function p(e,t,r=1e-6){return!l(e,t,r)&&e<t}function d(e,t,r=1e-6){return l(e,t,r)||e>t}const E=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));function S(e){return E.setFloat64(0,e),E.getBigInt64(0)}const g=BigInt("1000000"),h=T(1);function T(e){const t=S(e=Math.abs(e)),r=function(e){return E.setBigInt64(0,e),E.getFloat64(0)}(t<=g?g:t-g);return Math.abs(e-r)}function M(e,t,r=h){if(e===t)return!0;if(!Number.isFinite(e)||!Number.isFinite(t))return!1;if(null!=r&&T(Math.min(Math.abs(e),Math.abs(t)))<r)return Math.abs(e-t)<=r;const n=S(e),o=S(t);return n<0==o<0&&!((n<o?o-n:n-o)>g)}function m(e){return y(Math.max(-A,Math.min(e,A)))}function y(e){return n[0]=e,n[0]}function O(e){const t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],r=e[3]*e[3]+e[4]*e[4]+e[5]*e[5],n=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(l(t,1)&&l(r,1)&&l(n,1))}const A=y(34028234663852886e22);function U(e,t,r){if(void 0===r||0==+r)return Math[e](t);if(t=+t,r=+r,isNaN(t)||"number"!=typeof r||r%1!=0)return NaN;let n=t.toString().split("e");return n=(t=Math[e](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"),+(n[0]+"e"+(n[1]?+n[1]+r:r))}},43937:(e,t,r)=>{r.d(t,{K:()=>o});var n=r(10107);function o(e,t,r){let o,i;return void 0===t?(i=e,o=[void 0]):"string"!=typeof t?(i=e,o=[void 0],r=t):(i=t,o=Array.isArray(e)?e:[e]),(e,t)=>{const s=e.constructor.prototype;for(const a of o){const o=(0,n.rM)(e,a,i);o.write&&"object"==typeof o.write||(o.write={}),r&&(o.write.target=r),o.write.writer=s[t]}}}},66552:(e,t,r)=>{r.d(t,{J:()=>o,O:()=>s});var n=r(93637);class o{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=function(e){const t={};for(const r in e)t[e[r]]=r;return t}(e),this.apiValues=i(this._apiToJSON),this.jsonValues=i(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{const o=this.toJSON(e);void 0!==o&&(0,n.sM)(r,o,t)},this.write.isJSONMapWriter=!0}toJSON(e){if(null==e)return null;if(this._apiToJSON.hasOwnProperty(e)){const t=this._apiToJSON[e];return this._options.useNumericKeys?+t:t}return this._options.ignoreUnknown?null:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}function i(e){const t=[];for(const r in e)t.push(r);return t.sort(),t}function s(){return function(e,t){return new o(e,{ignoreUnknown:!0,...t})}}},73941:(e,t,r)=>{r.d(t,{FY:()=>a,LJ:()=>f,Ro:()=>u,fv:()=>s,jA:()=>p,tO:()=>l,xP:()=>d,y7:()=>P});var n=r(79258),o=r(21325);function i(e){return{wkt:`GEOCCS["Spherical geocentric",\n DATUM["Not specified",\n SPHEROID["Sphere",${e.radius},0]],\n PRIMEM["Greenwich",0.0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",EAST],\n AXIS["Geocentric Z",NORTH]\n ]`}}const s=i(n.$O),a=i(n.sH),f=i(n.Sw),u={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${n.$O.radius},298.257223563,\n AUTHORITY["EPSG","7030"]],\n AUTHORITY["EPSG","6326"]],\n PRIMEM["Greenwich",0,\n AUTHORITY["EPSG","8901"]],\n UNIT["m",1.0,\n AUTHORITY["EPSG","9001"]],\n AXIS["Geocentric X",OTHER],\n AXIS["Geocentric Y",OTHER],\n AXIS["Geocentric Z",NORTH],\n AUTHORITY["EPSG","4978"]\n]`},_=a.wkt.toUpperCase(),c=f.wkt.toUpperCase();function l(e){if(null!=e&&(0,o.fn)(e)){const t=e.wkid,r=e.wkt2??e.wkt;if((0,o.tl)(t))return n.sH;const i=r?.toUpperCase();if(r&&i===_)return n.sH;if((0,o.ZL)(t)||i&&i===c)return n.Sw}return n.$O}function P(e){return(0,o.tl)(e)?n.sH:(0,o.ZL)(e)?n.Sw:n.$O}function p(e){return(0,o.aI)(e,s)}function d(e){return p(e)||(0,o.aI)(e,a)||(0,o.aI)(e,f)}},79258:(e,t,r)=>{r.d(t,{$O:()=>o,Sw:()=>s,sH:()=>i});class n{constructor(e,t,r,n,o,i){this.semiMajorAxis=e,this.flattening=t,this.outerAtmosphereRimWidth=r,this.atmosphereHeight=n,this.scaleHeight=o;const s=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*s,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=i||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const o=new n(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),i=new n(3396190,1/169.8944472236118,23e4,6e4,.111),s=new n(1737400,0,0,0,0)},83047:(e,t,r)=>{r.d(t,{Ao:()=>k,B5:()=>b,G9:()=>R,GA:()=>N,Ij:()=>I,KX:()=>w,LA:()=>U,PQ:()=>y,Sk:()=>j,UW:()=>O,b$:()=>v,dk:()=>Y,dy:()=>f,k1:()=>G,oU:()=>m,vl:()=>A,x1:()=>F,yD:()=>P}),r(44208);var n=r(66552),o=r(73941),i=r(79258),s=r(21325),a=r(22530);const f=39.37,u=i.$O.radius*Math.PI/200,_=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,c=a.A,l=/UNIT\[([^\]]+)]/i,P=new Set([4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104025,104026,104139,104140]),p=(0,n.O)()({millimeter:"millimeters",centimeter:"centimeters",meter:"meters",meter_german:"german-meters",kilometer:"kilometers",decimeter:"decimeters",micrometer:"micrometers",nanometer:"nanometers","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",fathom:"fathoms",nautical_mile:"nautical-miles",chain_us:"us-chains",link_us:"us-links",mile_us:"us-miles",yard_clarke:"clarke-yards",chain_clarke:"clarke-chains",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",link_sears:"sears-links",yard_benoit_1895_a:"benoit-1895-a-yards",foot_benoit_1895_a:"benoit-1895-a-feet",chain_benoit_1895_a:"benoit-1895-a-chains",link_benoit_1895_a:"benoit-1895-a-links",yard_benoit_1895_b:"benoit-1895-b-yards",foot_benoit_1895_b:"benoit-1895-b-feet",chain_benoit_1895_b:"benoit-1895-b-chains",link_benoit_1895_b:"benoit-1895-b-links",foot_1865:"1865-feet",foot_indian:"indian-feet",foot_indian_1937:"indian-1937-feet",foot_indian_1962:"indian-1962-feet",foot_indian_1975:"indian-1975-feet",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",yard_indian_1962:"indian-1962-yards",yard_indian_1975:"indian-1975-yards",statute_mile:"statute-miles",foot_gold_coast:"gold-coast-feet",foot_british_1936:"british-1936-feet",yard:"yards",chain:"chains",link:"links",yard_sears_1922_truncated:"sears-1922-truncated-yards",foot_sears_1922_truncated:"sears-1922-truncated-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains",link_sears_1922_truncated:"sears-1922-truncated-links",yard_us:"us-yards",inch:"inches",inch_us:"us-inches",rod:"rods",rod_us:"us-rods",nautical_mile_us:"us-nautical-miles",nautical_mile_uk:"uk-nautical-miles",smoot:"smoots",vara_tx:"tx-vara",point:"points"}),d=e=>e*e,E=e=>e*e*e,S={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},meters:{inBaseUnits:1},feet:{inBaseUnits:.3048},"us-feet":{inBaseUnits:.3048006096012192},"clarke-feet":{inBaseUnits:.3047972654},fathoms:{inBaseUnits:1.8288},"nautical-miles":{inBaseUnits:1852},"german-meters":{inBaseUnits:1.0000135965},"us-chains":{inBaseUnits:20.11684023368047},"us-links":{inBaseUnits:.2011684023368047},"us-miles":{inBaseUnits:1609.347218694438},kilometers:{inBaseUnits:1e3},"clarke-yards":{inBaseUnits:.9143917962},"clarke-chains":{inBaseUnits:20.1166195164},"clarke-links":{inBaseUnits:.201166195164},"sears-yards":{inBaseUnits:.9143984146160287},"sears-feet":{inBaseUnits:.3047994715386762},"sears-chains":{inBaseUnits:20.11676512155263},"sears-links":{inBaseUnits:.2011676512155263},"benoit-1895-a-yards":{inBaseUnits:.9143992},"benoit-1895-a-feet":{inBaseUnits:.3047997333333333},"benoit-1895-a-chains":{inBaseUnits:20.1167824},"benoit-1895-a-links":{inBaseUnits:.201167824},"benoit-1895-b-yards":{inBaseUnits:.9143992042898124},"benoit-1895-b-feet":{inBaseUnits:.3047997347632708},"benoit-1895-b-chains":{inBaseUnits:20.11678249437587},"benoit-1895-b-links":{inBaseUnits:.2011678249437587},"1865-feet":{inBaseUnits:.3048008333333334},"indian-feet":{inBaseUnits:.3047995102481469},"indian-1937-feet":{inBaseUnits:.30479841},"indian-1962-feet":{inBaseUnits:.3047996},"indian-1975-feet":{inBaseUnits:.3047995},"indian-yards":{inBaseUnits:.9143985307444408},"indian-1937-yards":{inBaseUnits:.91439523},"indian-1962-yards":{inBaseUnits:.9143988},"indian-1975-yards":{inBaseUnits:.9143985},miles:{inBaseUnits:1609.344},"statute-miles":{inBaseUnits:1609.344},"gold-coast-feet":{inBaseUnits:.3047997101815088},"british-1936-feet":{inBaseUnits:.3048007491},yards:{inBaseUnits:.9144},chains:{inBaseUnits:20.1168},links:{inBaseUnits:.201168},"sears-1922-truncated-yards":{inBaseUnits:.914398},"sears-1922-truncated-feet":{inBaseUnits:.3047993333333334},"sears-1922-truncated-chains":{inBaseUnits:20.116756},"sears-1922-truncated-links":{inBaseUnits:.20116756},"us-yards":{inBaseUnits:.9144018288036576},decimeters:{inBaseUnits:.1},inches:{inBaseUnits:.0254},"us-inches":{inBaseUnits:.0254000508001016},rods:{inBaseUnits:5.0292},"us-rods":{inBaseUnits:5.029210058420118},"us-nautical-miles":{inBaseUnits:1853.248},"uk-nautical-miles":{inBaseUnits:1853.184},smoots:{inBaseUnits:1.7018},"tx-vara":{inBaseUnits:.8466683600033867},points:{inBaseUnits:.0003527777777777778},micrometers:{inBaseUnits:1e-6},nanometers:{inBaseUnits:1e-9},"50-kilometers":{inBaseUnits:5e4},"150-kilometers":{inBaseUnits:15e4}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:d(.001)},"square-centimeters":{inBaseUnits:d(.01)},"square-decimeters":{inBaseUnits:d(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:d(1e3)},"square-inches":{inBaseUnits:d(.0254)},"square-feet":{inBaseUnits:d(.3048)},"square-yards":{inBaseUnits:d(.9144)},"square-miles":{inBaseUnits:d(1609.344)},"square-nautical-miles":{inBaseUnits:d(1852)},"square-us-feet":{inBaseUnits:d(1200/3937)},acres:{inBaseUnits:.0015625*d(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*E(.001)},"cubic-centimeters":{inBaseUnits:1e3*E(.01)},"cubic-decimeters":{inBaseUnits:1e3*E(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*E(1e3)},"cubic-inches":{inBaseUnits:1e3*E(.0254)},"cubic-feet":{inBaseUnits:1e3*E(.3048)},"cubic-yards":{inBaseUnits:1e3*E(.9144)},"cubic-miles":{inBaseUnits:1e3*E(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},g=(()=>{const e={};for(const t in S)for(const r in S[t].units)e[r]=t;return e})(),h=new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);function T(e){const t=g[e];if(!t)throw new Error("unknown type");return t}function M(e,t=null){return t=t||T(e),S[t].baseUnit===e}function m(e,t,r){if(t===r)return e;const n=T(t);if(n!==T(r))throw new Error("incompatible units");const o=M(t,n)?e:function(e,t,r){return e*S[r].units[t].inBaseUnits}(e,t,n);return M(r,n)?o:function(e,t,r){return e/S[r].units[t].inBaseUnits}(o,r,n)}function y(e,t,r,n=!1){if(!n&&(0,s.EA)(t))throw new Error("Unable to convert from an angular unit to a linear unit.");const o=I(t);return o!==r&&(e=o?m(e,o,r):m(e*=N(t),"meters",r)),e}function O(e,t,r,n=!1){if(!n&&(0,s.EA)(r))throw new Error("Unable to convert from a linear unit to an angular unit.");const o=I(r);return t!==o&&(e=o?m(e,t,o):m(e,t,"meters")/N(r)),e}function A(e,t,r){return m(e,t,"meters")/(r*Math.PI/180)}function U(e){return p.fromJSON(e.toLowerCase())||null}function R(e){if(null!=e&&!(0,s.B3)(e))return 1;const t=N(e);return t>1e5?1:t}function G(e){return N(e)>=(0,o.tO)(e).metersPerDegree?"meters":I(e)}function N(e,t=i.$O.metersPerDegree){return k(e,!0)??t}function k(e,t=!1){const r=e?.wkid??null,n=e?.wkt2??e?.wkt??null;let o=null;if(r){if((0,s.tl)(r))return i.sH.metersPerDegree;if((0,s.ZL)(r))return i.Sw.metersPerDegree;o=c.values[c[r]],!o&&t&&P.has(r)&&(o=u)}else n&&(F(n)?o=C(_.exec(n),o):B(n)&&(o=C(l.exec(n),o)));return o}function w(e){return(0,s.EA)(e)?1:N(e)}function C(e,t){return e?.[1]?D(e[1]):t}function D(e){return parseFloat(e.split(",")[1])}function I(e){const t=e?.wkid??null,r=e?.wkt2??e?.wkt??null;let n=null;if(t)n=c.units[c[t]];else if(r){const e=F(r)?_:B(r)?l:null;if(e){const t=e.exec(r);t?.[1]&&(n=function(e){const t=/[\\"']{1}([^\\"']+)/.exec(e);let r=t?.[1];if(!r||!U(r)){const t=D(e);r=null;const n=c.values;for(let e=0;e<n.length;++e)if(Math.abs(t-n[e])<W){r=c.units[e];break}}return r}(t[1]))}}return null!=n?U(n):null}function b(e){const t=I(e);return null==t?null:h.get(t)}function B(e){return/^GEOCCS/i.test(e)}function F(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}const W=1e-7,Y=(0,n.O)()({esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"}),j=(0,n.O)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),v=(0,n.O)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},83290:(e,t,r)=>{r.d(t,{P:()=>P,a:()=>_,g:()=>u,h:()=>S,i:()=>a,j:()=>O,l:()=>f,p:()=>w});var n=r(2741),o=r(44208);let i,s=null;function a(){return!!s}function f(){return i||(i=r.e(6187).then(r.bind(r,46187)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,n.s)(`esri/geometry/support/${e}`)}))).then((e=>{U(e)})),i)}var u,_,c;!function(e){function t(e,t,r){s.ensureCache.prepare();const n=N(r),o=r===n,i=s.ensureFloat64(n),a=s._pe_geog_to_proj(s.getPointer(e),t,i);return a&&k(r,t,i,o),a}function r(e,t,r){return n(e,t,r,0)}function n(e,t,r,n){s.ensureCache.prepare();const o=N(r),i=r===o,a=s.ensureFloat64(o),f=s._pe_proj_to_geog_center(s.getPointer(e),t,a,n);return f&&k(r,t,a,i),f}e.geogToProj=t,e.projGeog=function(e,n,o,i){switch(i){case _.PE_TRANSFORM_P_TO_G:return r(e,n,o);case _.PE_TRANSFORM_G_TO_P:return t(e,n,o)}return 0},e.projToGeog=r,e.projToGeogCenter=n}(u||(u={})),(c=_||(_={})).init=function(){c.PE_BUFFER_MAX=s.PeDefs.prototype.PE_BUFFER_MAX,c.PE_NAME_MAX=s.PeDefs.prototype.PE_NAME_MAX,c.PE_MGRS_MAX=s.PeDefs.prototype.PE_MGRS_MAX,c.PE_USNG_MAX=s.PeDefs.prototype.PE_USNG_MAX,c.PE_DD_MAX=s.PeDefs.prototype.PE_DD_MAX,c.PE_DDM_MAX=s.PeDefs.prototype.PE_DDM_MAX,c.PE_DMS_MAX=s.PeDefs.prototype.PE_DMS_MAX,c.PE_UTM_MAX=s.PeDefs.prototype.PE_UTM_MAX,c.PE_PARM_MAX=s.PeDefs.prototype.PE_PARM_MAX,c.PE_TYPE_NONE=s.PeDefs.prototype.PE_TYPE_NONE,c.PE_TYPE_GEOGCS=s.PeDefs.prototype.PE_TYPE_GEOGCS,c.PE_TYPE_PROJCS=s.PeDefs.prototype.PE_TYPE_PROJCS,c.PE_TYPE_GEOGTRAN=s.PeDefs.prototype.PE_TYPE_GEOGTRAN,c.PE_TYPE_COORDSYS=s.PeDefs.prototype.PE_TYPE_COORDSYS,c.PE_TYPE_UNIT=s.PeDefs.prototype.PE_TYPE_UNIT,c.PE_TYPE_LINUNIT=s.PeDefs.prototype.PE_TYPE_LINUNIT,c.PE_STR_OPTS_NONE=s.PeDefs.prototype.PE_STR_OPTS_NONE,c.PE_STR_AUTH_NONE=s.PeDefs.prototype.PE_STR_AUTH_NONE,c.PE_STR_AUTH_TOP=s.PeDefs.prototype.PE_STR_AUTH_TOP,c.PE_STR_NAME_CANON=s.PeDefs.prototype.PE_STR_NAME_CANON,c.PE_STR_FMT_WKT=s.PeDefs.prototype.PE_STR_FMT_WKT,c.PE_STR_FMT_WKT2=s.PeDefs.prototype.PE_STR_FMT_WKT2,c.PE_PARM_X0=s.PeDefs.prototype.PE_PARM_X0,c.PE_PARM_ND=s.PeDefs.prototype.PE_PARM_ND,c.PE_TRANSFORM_1_TO_2=s.PeDefs.prototype.PE_TRANSFORM_1_TO_2,c.PE_TRANSFORM_2_TO_1=s.PeDefs.prototype.PE_TRANSFORM_2_TO_1,c.PE_TRANSFORM_P_TO_G=s.PeDefs.prototype.PE_TRANSFORM_P_TO_G,c.PE_TRANSFORM_G_TO_P=s.PeDefs.prototype.PE_TRANSFORM_G_TO_P,c.PE_HORIZON_RECT=s.PeDefs.prototype.PE_HORIZON_RECT,c.PE_HORIZON_POLY=s.PeDefs.prototype.PE_HORIZON_POLY,c.PE_HORIZON_LINE=s.PeDefs.prototype.PE_HORIZON_LINE,c.PE_HORIZON_DELTA=s.PeDefs.prototype.PE_HORIZON_DELTA};let l=null;var P;!function(e){const t={},r={},n=e=>{const t=e.getType();switch(t){case _.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case _.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case _.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:t&_.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}return e};function o(e,r){let o=null,i=t[e];if(i||(i={},t[e]=i),i.hasOwnProperty(String(r))&&(o=i[r],s.compare(o,s.NULL)&&(o=null)),!o){const t=s.PeFactory.prototype.factoryByType(e,r);s.compare(t,s.NULL)||(o=n(t),i[r]=o)}return o}e.initialize=function(){s.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return o(_.PE_TYPE_COORDSYS,e)},e.factoryByType=o,e.fromString=function(e,t){let o=null,i=r[e];if(i||(i={},r[e]=i),i.hasOwnProperty(t)&&(o=i[t],s.compare(o,s.NULL)&&(o=null)),!o){const r=s.PeFactory.prototype.fromString(e,t);s.compare(r,s.NULL)||(o=n(r),i[t]=o)}return o},e.geogcs=function(e){return o(_.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return o(_.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return s.PeFactory.prototype.getCode(e)},e.projcs=function(e){return o(_.PE_TYPE_PROJCS,e)},e.unit=function(e){return o(_.PE_TYPE_UNIT,e)}}(P||(P={}));let p=null;var d,E,S,g,h,T,M,m,y,O,A;function U(e){function t(e,t,r){e[t]=r(e[t])}s=e,_.init(),d.init(),M.init(),y.init(),O.init(),l=class extends s.PeDouble{constructor(e=NaN){super(e)}destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}},p=class extends s.PeGCSExtent{destroy(){s.destroy(this)}[Symbol.dispose](){this.destroy()}};const r=[s.PeAngunit,s.PeDatum,s.PeGeogcs,s.PeGeogtran,s.PeObject,s.PeParameter,s.PePrimem,s.PeProjcs,s.PeSpheroid,s.PeUnit];for(const e of r)t(e.prototype,"getName",(e=>function(){return e.call(this,new Array(_.PE_NAME_MAX))}));for(const e of[s.PeGeogtran,s.PeProjcs])t(e.prototype,"getParameters",(e=>function(){const t=new Array(_.PE_PARM_MAX);let r=e.call(this);for(let e=0;e<t.length;e++){const n=s.getValue(r,"*");t[e]=n?s.wrapPointer(n,s.PeParameter):null,r+=Int32Array.BYTES_PER_ELEMENT}return t}));t(s.PeHorizon.prototype,"getCoord",(e=>function(t=!1){const r=this.getSize();if(!r)return null;const n=[];return k(n,r,e.call(this),t),n})),t(s.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const t=s._pe_getPeGTlistExtendedGTsSize();return function(){let r=null;const n=e.call(this);if(!s.compare(n,s.NULL)){r=[n];const e=this.getSteps();if(e>1){const o=s.getPointer(n);for(let n=1;n<e;n++)r.push(s.wrapPointer(o+t*n,s.PeGTlistExtendedGTs))}}return r}}));const n=s._pe_getPeHorizonSize(),o=e=>function(){let t=this._cache;if(t||(t=new Map,this._cache=t),t.has(e))return t.get(e);let r=null;const o=e.call(this);if(!s.compare(o,s.NULL)){r=[o];const e=o.getNump();if(e>1){const t=s.getPointer(o);for(let o=1;o<e;o++)r.push(s.wrapPointer(t+n*o,s.PeHorizon))}}return t.set(e,r),r};t(s.PeProjcs.prototype,"horizonGcsGenerate",o),t(s.PeProjcs.prototype,"horizonPcsGenerate",o),s.PeObject.prototype.toString=function(e=_.PE_STR_OPTS_NONE){s.ensureCache.prepare();const t=s.getPointer(this),r=s.ensureInt8(new Array(_.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(t,e,r))},s.PeGeogcs.prototype.destroy=function(){this.Delete(),R(this),this.ptr=0},s.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},s.PeProjcs.prototype.destroy=function(){this.Delete(),R(this),this.ptr=0},s.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function R(e){if(!e)return;const t=s.getClass(e);if(!t)return;const r=s.getCache(t);if(!r)return;const n=s.getPointer(e);n&&delete r[n]}function G(e,t){const r=[],n=new Array(t);for(let t=0;t<e;t++)r.push(s.ensureInt8(n));return r}function N(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function k(e,t,r,n=!1){if(n)for(let n=0;n<2*t;n++)e[n]=s.getValue(r+n*Float64Array.BYTES_PER_ELEMENT,"double");else{const n=0===e.length;for(let o=0;o<t;o++)n&&(e[o]=new Array(2)),e[o][0]=s.getValue(r,"double"),e[o][1]=s.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}!function(e){let t;e.init=function(){e.PE_GTLIST_OPTS_COMMON=s.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=s._pe_getPeGTlistExtendedEntrySize()},e.getGTlist=function(e,r,n,o,i,a){let f=null;const u=new s.PeInteger(a);try{const _=s.PeGTlistExtended.prototype.getGTlist(e,r,n,o,i,u);if((a=u.val)&&(f=[_],a>1)){const e=s.getPointer(_);for(let r=1;r<a;r++)f.push(s.wrapPointer(e+t*r,s.PeGTlistExtendedEntry))}}finally{s.destroy(u)}return f}}(d||(d={})),function(e){e.destroy=function(e){if(e?.length){for(const t of e)R(t),t.getEntries().forEach((e=>{R(e);const t=e.getGeogtran();R(t),t.getParameters().forEach(R),[t.getGeogcs1(),t.getGeogcs2()].forEach((e=>{R(e);const t=e.getDatum();R(t),R(t.getSpheroid()),R(e.getPrimem()),R(e.getUnit())}))}));s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(E||(E={})),function(e){e.geogToGeog=function(e,t,r,n,o){s.ensureCache.prepare();const i=N(r),a=r===i,f=s.ensureFloat64(i);let u=0;n&&(u=s.ensureFloat64(n));const _=s._pe_geog_to_geog(s.getPointer(e),t,f,u,o);return _&&k(r,t,f,a),_}}(S||(S={})),function(e){e.geodesicCoordinate=function(e,t,r,n,o,i,a,f){s.PeLineType.prototype.geodesic_coordinate(e,t,r,n,o,i,a,f)},e.geodeticCoordinate=function(e,t,r,n,o,i,a,f,u){s.PeLineType.prototype.geodetic_coordinate(e,t,r,n,o,i,a,f,u)},e.geodeticDistance=function(e,t,r,n,o,i,a,f,u,_){s.PeLineType.prototype.geodetic_distance(e,t,r,n,o,i,a,f,u,_)},e.greatEllipticDistance=function(e,t,r,n,o,i,a,f,u){s.PeLineType.prototype.great_elliptic_distance(e,t,r,n,o,i,a,f,u)}}(g||(g={})),function(e){e.phiToEta=function(e,t){return s.PeMath.prototype.phi_to_eta(e,t)},e.etaToPhi=function(e,t){return s.PeMath.prototype.eta_to_phi(e,t)},e.phiToPhig=function(e,t){return s.PeMath.prototype.phi_to_phig(e,t)},e.q=function(e,t,r){return s.PeMath.prototype.q(e,t,r)},e.q90=function(e,t){return s.PeMath.prototype.q90(e,t)}}(h||(h={})),function(e){const t=(e,t,r,n,o,i)=>{let a,f;switch(s.ensureCache.prepare(),e){case"dd":a=s._pe_geog_to_dd,f=_.PE_DD_MAX;break;case"ddm":a=s._pe_geog_to_ddm,f=_.PE_DDM_MAX;break;case"dms":a=s._pe_geog_to_dms,f=_.PE_DMS_MAX}let u=0;t&&(u=s.getPointer(t));const c=N(n),l=s.ensureFloat64(c),P=G(r,f),p=a(u,r,l,o,s.ensureInt32(P));if(p)for(let e=0;e<r;e++)i[e]=s.UTF8ToString(P[e]);return p},r=(e,t,r,n,o)=>{let i;switch(s.ensureCache.prepare(),e){case"dd":i=s._pe_dd_to_geog;break;case"ddm":i=s._pe_ddm_to_geog;break;case"dms":i=s._pe_dms_to_geog}let a=0;t&&(a=s.getPointer(t));const f=n.map((e=>s.ensureString(e))),u=s.ensureInt32(f),_=s.ensureFloat64(new Array(2*r)),c=i(a,r,u,_);return c&&k(o,r,_),c};e.geogToDms=function(e,r,n,o,i){return t("dms",e,r,n,o,i)},e.dmsToGeog=function(e,t,n,o){return r("dms",e,t,n,o)},e.geogToDdm=function(e,r,n,o,i){return t("ddm",e,r,n,o,i)},e.ddmToGeog=function(e,t,n,o){return r("ddm",e,t,n,o)},e.geogToDd=function(e,r,n,o,i){return t("dd",e,r,n,o,i)},e.ddToGeog=function(e,t,n,o){return r("dd",e,t,n,o)}}(T||(T={})),function(e){e.init=function(){e.PE_MGRS_STYLE_NEW=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=s.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=s.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=s.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES},e.geogToMgrsExtended=function(e,t,r,n,o,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=N(r),c=s.ensureFloat64(u),l=G(t,_.PE_MGRS_MAX),P=s.ensureInt32(l),p=s._pe_geog_to_mgrs_extended(f,t,c,n,o,i,P);if(p)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(l[e]);return p},e.mgrsToGeogExtended=function(e,t,r,n,o){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=r.map((e=>s.ensureString(e))),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*t)),_=s._pe_mgrs_to_geog_extended(i,t,f,n,u);return _&&k(o,t,u),_}}(M||(M={})),function(e){e.geogToUsng=function(e,t,r,n,o,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=N(r),c=s.ensureFloat64(u),l=G(t,_.PE_MGRS_MAX),P=s.ensureInt32(l),p=s._pe_geog_to_usng(f,t,c,n,o,i,P);if(p)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(l[e]);return p},e.usngToGeog=function(e,t,r,n){s.ensureCache.prepare();let o=0;e&&(o=s.getPointer(e));const i=r.map((e=>s.ensureString(e))),a=s.ensureInt32(i),f=s.ensureFloat64(new Array(2*t)),u=s._pe_usng_to_geog(o,t,a,f);return u&&k(n,t,f),u}}(m||(m={})),function(e){e.init=function(){e.PE_UTM_OPTS_NONE=s.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=s.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=s.PeNotationUtm.prototype.PE_UTM_OPTS_NS},e.geogToUtm=function(e,t,r,n,o){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=N(r),f=s.ensureFloat64(a),u=G(t,_.PE_UTM_MAX),c=s.ensureInt32(u),l=s._pe_geog_to_utm(i,t,f,n,c);if(l)for(let e=0;e<t;e++)o[e]=s.UTF8ToString(u[e]);return l},e.utmToGeog=function(e,t,r,n,o){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=r.map((e=>s.ensureString(e))),f=s.ensureInt32(a),u=s.ensureFloat64(new Array(2*t)),_=s._pe_utm_to_geog(i,t,f,n,u);return _&&k(o,t,u),_}}(y||(y={})),function(e){const t=new Map;e.init=function(){e.PE_PCSINFO_OPTION_NONE=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=s.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=s.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=s.PePCSInfo.prototype.PE_POLE_POINT},e.generate=function(r,n=e.PE_PCSINFO_OPTION_DOMAIN){let o=null,i=null;return t.has(r)&&(i=t.get(r),i[n]&&(o=i[n])),o||(o=s.PePCSInfo.prototype.generate(r,n),i||(i=[],t.set(r,i)),i[n]=o),o}}(O||(O={})),function(e){e.versionString=function(){return s.PeVersion.prototype.version_string()}}(A||(A={}));const w=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return u},get PeDefs(){return _},get PeDouble(){return l},get PeFactory(){return P},get PeGCSExtent(){return p},get PeGTTransformations(){return S},get PeGTlistExtended(){return d},get PeGTlistExtendedEntry(){return E},get PeLineType(){return g},get PeMath(){return h},get PeNotationDms(){return T},get PeNotationMgrs(){return M},get PeNotationUsng(){return m},get PeNotationUtm(){return y},get PePCSInfo(){return O},get PeVersion(){return A},_init:U,get _pe(){return s},isLoaded:a,isSupported:function(){return!!(0,o.A)("esri-wasm")},load:f},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8417],{7562:(e,t,r)=>{r.d(t,{A:()=>p});var i,a=r(90237),n=r(66552),o=r(25482),s=r(4718),l=r(10107),d=(r(44208),r(53966),r(40608)),u=r(43937);const c=new n.J({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});let m=i=class extends o.A{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){"percentile-continuous"!==this.statisticType&&"percentile-discrete"!==this.statisticType||(t.statisticParameters=(0,s.o8)(e))}clone(){return new i({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:(0,s.o8)(this.statisticParameters)})}};(0,a._)([(0,l.MZ)({type:Number,json:{write:!0}})],m.prototype,"maxPointCount",void 0),(0,a._)([(0,l.MZ)({type:Number,json:{write:!0}})],m.prototype,"maxRecordCount",void 0),(0,a._)([(0,l.MZ)({type:Number,json:{write:!0}})],m.prototype,"maxVertexCount",void 0),(0,a._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"onStatisticField",void 0),(0,a._)([(0,l.MZ)({type:String,json:{write:!0}})],m.prototype,"outStatisticFieldName",void 0),(0,a._)([(0,l.MZ)({type:String,json:{read:{source:"statisticType",reader:c.read},write:{target:"statisticType",writer:c.write}}})],m.prototype,"statisticType",void 0),(0,a._)([(0,l.MZ)({type:Object})],m.prototype,"statisticParameters",void 0),(0,a._)([(0,u.K)("statisticParameters")],m.prototype,"writeStatisticParameters",null),m=i=(0,a._)([(0,d.$)("esri.rest.support.StatisticDefinition")],m);const p=m},10838:(e,t,r)=>{r.d(t,{ao:()=>m,ud:()=>p,xO:()=>y});var i=r(49186),a=r(36563),n=r(74887),o=r(73444);const s={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};function l(e){if(function(e){return e in s}(e)){const t=s[e];return!0===t?e:t}return null}const d=[],u=new Map;function c(e){for(const t of u.keys())h(e.pattern,t)&&u.delete(t)}function m(e){return d.includes(e)||(c(e),d.unshift(e)),(0,a.hA)((()=>{const t=d.indexOf(e);t>-1&&(d.splice(t,1),c(e))}))}async function p(e){const t=(0,o.JK)();u.has(e)||u.set(e,async function(e,t){const r=[];for(const i of d)if(h(i.pattern,e))try{return await i.fetchMessageBundle(e,t)}catch(e){r.push(e)}if(r.length)throw new i.A("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r});throw new i.A("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}(e,t));const r=u.get(e);return r&&await g.add(r),r}function y(e){const t=(0,o.ZS)(e);return t?l(e)??l(t.language):null}function h(e,t){return"string"==typeof e?t.startsWith(e):e.test(t)}(0,o.Ml)((()=>{u.clear()}));const g=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.then((()=>this._decrease()),(()=>this._decrease())),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=(0,n.Tw)())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&0===this._numLoading&&(this._dfd.resolve(),this._dfd=null)}}},20437:(e,t,r)=>{r.d(t,{A:()=>g});var i,a=r(90237),n=r(66552),o=r(25482),s=r(10107),l=r(56507),d=(r(44208),r(87811),r(93223)),u=r(36005),c=r(40608),m=r(80451),p=r(98453);const y=new n.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let h=class extends o.A{static{i=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?y.fromJSON(r.fieldValueType):null}clone(){return new i({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"alias",void 0),(0,a._)([(0,s.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],h.prototype,"defaultValue",void 0),(0,a._)([(0,s.MZ)()],h.prototype,"description",void 0),(0,a._)([(0,u.w)("description")],h.prototype,"readDescription",null),(0,a._)([(0,s.MZ)({types:m.gK,json:{read:{reader:m.rS},write:!0}})],h.prototype,"domain",void 0),(0,a._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"editable",void 0),(0,a._)([(0,s.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],h.prototype,"length",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],h.prototype,"name",void 0),(0,a._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"nullable",void 0),(0,a._)([(0,d.e)(p.m)],h.prototype,"type",void 0),(0,a._)([(0,s.MZ)()],h.prototype,"valueType",void 0),(0,a._)([(0,u.w)("valueType",["description"])],h.prototype,"readValueType",null),(0,a._)([(0,s.MZ)({type:Boolean,json:{read:!1}})],h.prototype,"visible",void 0),h=i=(0,a._)([(0,c.$)("esri.layers.support.Field")],h);const g=h},27348:(e,t,r)=>{r.d(t,{A:()=>p});var i,a=r(90237),n=r(66552),o=r(25482),s=r(4718),l=r(10107),d=(r(44208),r(53966),r(40608)),u=r(5443);const c=new n.J({upperLeft:"upper-left",lowerLeft:"lower-left"});let m=i=class extends o.A{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new i((0,s.o8)({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};(0,a._)([(0,l.MZ)({type:u.A,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],m.prototype,"extent",void 0),(0,a._)([(0,l.MZ)({type:["view","edit"],json:{write:!0}})],m.prototype,"mode",void 0),(0,a._)([(0,l.MZ)({type:String,json:{read:c.read,write:c.write}})],m.prototype,"originPosition",void 0),(0,a._)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],m.prototype,"tolerance",void 0),m=i=(0,a._)([(0,d.$)("esri.rest.support.QuantizationParameters")],m);const p=m},27733:(e,t,r)=>{r.d(t,{L:()=>R});var i,a=r(90237),n=r(66552),o=r(25482),s=r(10107),l=r(79901),d=r(93223),u=r(36005),c=r(40608),m=r(56507),p=r(90360),y=r(20437),h=r(49053),g=(r(44208),r(53966),r(87811),r(16930)),T=r(50498);let S=i=class extends o.A{constructor(e){super(e),this.type="query-table"}clone(){const{workspaceId:e,query:t,oidFields:r,spatialReference:a,geometryType:n}=this,o={workspaceId:e,query:t,oidFields:r,spatialReference:a?.clone()??void 0,geometryType:n};return new i(o)}};var f;(0,a._)([(0,d.e)({queryTable:"query-table"}),(0,s.MZ)({json:{write:{isRequired:!0}}})],S.prototype,"type",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],S.prototype,"workspaceId",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],S.prototype,"query",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],S.prototype,"oidFields",void 0),(0,a._)([(0,s.MZ)({type:g.A,json:{write:!0}})],S.prototype,"spatialReference",void 0),(0,a._)([(0,d.e)(T.gy)],S.prototype,"geometryType",void 0),S=i=(0,a._)([(0,c.$)("esri.layers.support.source.QueryTableDataSource")],S);let w=f=class extends o.A{constructor(e){super(e),this.type="raster"}clone(){const{workspaceId:e,dataSourceName:t}=this;return new f({workspaceId:e,dataSourceName:t})}};var v;(0,a._)([(0,d.e)({raster:"raster"}),(0,s.MZ)({json:{write:{isRequired:!0}}})],w.prototype,"type",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],w.prototype,"dataSourceName",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],w.prototype,"workspaceId",void 0),w=f=(0,a._)([(0,c.$)("esri.layers.support.source.RasterDataSource")],w);let A=v=class extends o.A{constructor(e){super(e),this.type="table"}clone(){const{workspaceId:e,gdbVersion:t,dataSourceName:r}=this;return new v({workspaceId:e,gdbVersion:t,dataSourceName:r})}};var M,b;(0,a._)([(0,d.e)({table:"table"}),(0,s.MZ)({json:{write:{isRequired:!0}}})],A.prototype,"type",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"workspaceId",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"gdbVersion",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],A.prototype,"dataSourceName",void 0),A=v=(0,a._)([(0,c.$)("esri.layers.support.source.TableDataSource")],A);const _=(0,n.O)()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let Z=M=class extends o.A{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,r){return C()(e,t,r)}castLeftTableSource(e){return(0,m.aq)(k(),e)}readRightTableSource(e,t,r){return C()(e,t,r)}castRightTableSource(e){return(0,m.aq)(k(),e)}clone(){const{leftTableKey:e,rightTableKey:t,leftTableSource:r,rightTableSource:i,joinType:a}=this,n={leftTableKey:e,rightTableKey:t,leftTableSource:r?.clone()??void 0,rightTableSource:i?.clone()??void 0,joinType:a};return new M(n)}};(0,a._)([(0,d.e)({joinTable:"join-table"}),(0,s.MZ)({json:{write:{isRequired:!0}}})],Z.prototype,"type",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],Z.prototype,"leftTableKey",void 0),(0,a._)([(0,s.MZ)({type:String,json:{write:!0}})],Z.prototype,"rightTableKey",void 0),(0,a._)([(0,s.MZ)({json:{write:!0}})],Z.prototype,"leftTableSource",void 0),(0,a._)([(0,u.w)("leftTableSource")],Z.prototype,"readLeftTableSource",null),(0,a._)([(0,l.w)("leftTableSource")],Z.prototype,"castLeftTableSource",null),(0,a._)([(0,s.MZ)({json:{write:!0}})],Z.prototype,"rightTableSource",void 0),(0,a._)([(0,u.w)("rightTableSource")],Z.prototype,"readRightTableSource",null),(0,a._)([(0,l.w)("rightTableSource")],Z.prototype,"castRightTableSource",null),(0,a._)([(0,d.e)(_)],Z.prototype,"joinType",void 0),Z=M=(0,a._)([(0,c.$)("esri.layers.support.source.JoinTableDataSource")],Z);let j=null;function C(){return j||(j=(0,p.C)({types:k()})),j}let E=null;function k(){return E||(E={key:"type",base:null,typeMap:{"data-layer":R,"map-layer":h.f}}),E}const x={key:"type",base:null,typeMap:{"join-table":Z,"query-table":S,raster:w,table:A}};let R=class extends o.A{static{b=this}constructor(e){super(e),this.type="data-layer"}clone(){const{fields:e,dataSource:t}=this;return new b({fields:e,dataSource:t})}};(0,a._)([(0,d.e)({dataLayer:"data-layer"}),(0,s.MZ)({json:{write:{isRequired:!0}}})],R.prototype,"type",void 0),(0,a._)([(0,s.MZ)({type:[y.A],json:{write:!0}})],R.prototype,"fields",void 0),(0,a._)([(0,s.MZ)({types:x,json:{write:!0}})],R.prototype,"dataSource",void 0),R=b=(0,a._)([(0,c.$)("esri.layers.support.source.DataLayerSource")],R),R.from=(0,m.dp)(R)},39357:(e,t,r)=>{r.d(t,{H:()=>l});var i,a=r(90237),n=r(25482),o=r(10107),s=(r(44208),r(53966),r(87811),r(40608));let l=i=class extends n.A{constructor(e){super(e),this.name=null,this.code=null}clone(){return new i({name:this.name,code:this.code})}};(0,a._)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,a._)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=i=(0,a._)([(0,s.$)("esri.layers.support.CodedValue")],l)},40876:(e,t,r)=>{r.d(t,{TS:()=>n,Tf:()=>u,V6:()=>a,c4:()=>o,qh:()=>d,z$:()=>l});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(e){return!!i[e]||!!i[e.toLowerCase()]}function n(e){return i[e]??i[e.toLowerCase()]}function o(e){return[...n(e)]}function s(e,t,r){r<0&&++r,r>1&&--r;const i=6*r;return i<1?e+(t-e)*i:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}function l(e,t,r,i=1){const a=(e%360+360)%360/360,n=r<=.5?r*(t+1):r+t-r*t,o=2*r-n;return[Math.round(255*s(o,n,a+1/3)),Math.round(255*s(o,n,a)),Math.round(255*s(o,n,a-1/3)),i]}function d(e){const t=e.length>5,r=t?8:4,i=(1<<r)-1,a=t?1:17,n=t?9===e.length:5===e.length;let o=Number("0x"+e.slice(1));if(isNaN(o))return null;const s=[0,0,0,1];let l;return n&&(l=o&i,o>>=r,s[3]=a*l/255),l=o&i,o>>=r,s[2]=a*l,l=o&i,o>>=r,s[1]=a*l,l=o&i,o>>=r,s[0]=a*l,s}const u=2.2},49053:(e,t,r)=>{r.d(t,{f:()=>u});var i,a=r(90237),n=r(25482),o=r(10107),s=r(56507),l=(r(44208),r(87811),r(93223)),d=r(40608);let u=i=class extends n.A{constructor(e){super(e),this.type="map-layer"}clone(){const{mapLayerId:e,gdbVersion:t}=this;return new i({mapLayerId:e,gdbVersion:t})}};(0,a._)([(0,l.e)({mapLayer:"map-layer"}),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),(0,a._)([(0,o.MZ)({type:s.jz,json:{write:{isRequired:!0}}})],u.prototype,"mapLayerId",void 0),(0,a._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"gdbVersion",void 0),u=i=(0,a._)([(0,d.$)("esri.layers.support.source.MapLayerSource")],u)},50498:(e,t,r)=>{r.d(t,{Ye:()=>c,gy:()=>u,yR:()=>m});var i=r(66552),a=r(5443),n=r(91075),o=r(48526),s=r(86738),l=r(39829),d=r(82799);const u=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),c=(0,i.O)()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"}),m={base:n.A,key:"type",typeMap:{extent:a.A,multipoint:o.A,point:s.A,polyline:d.A,polygon:l.A}}},53177:(e,t,r)=>{r.d(t,{A:()=>m});var i,a=r(90237),n=r(4718),o=r(10107),s=(r(44208),r(53966),r(93223)),l=r(40608),d=r(39357),u=r(76357);let c=class extends u.A{static{i=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some((e=>(String(e.code)===r&&(t=e.name),!!t)))}return t}clone(){return new i({codedValues:(0,n.o8)(this.codedValues),name:this.name})}};(0,a._)([(0,o.MZ)({type:[d.H],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,a._)([(0,s.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=i=(0,a._)([(0,l.$)("esri.layers.support.CodedValueDomain")],c);const m=c},56400:(e,t,r)=>{r.d(t,{ZS:()=>c,hv:()=>m,wr:()=>p,qU:()=>n,N5:()=>l,P6:()=>u,L5:()=>o,n$:()=>s});const i=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]]);var a=r(96285);const n="system",o="unknown",s="UTC",l=Intl.DateTimeFormat().resolvedOptions().timeZone,d="shortOffset";function u(e,t=!1){return{json:{read:{source:e,reader:(t,r)=>r[e]?c(r[e]):null},write:!!t&&{allowNull:!0,writer(t,r){r[e]=t?function(e){return{timeZoneIANA:e}}(t):null}}}}}function c(e,t=n){return e?function(e){return"timeZoneIANA"in e}(e)?e.timeZoneIANA:function(e,t=n){if(!e||!i.has(e.timeZone))return t;const r=i.get(e.timeZone);return function(e){return e.startsWith("UTC")}(e.timeZone)||e.respectsDaylightSaving?r:function(e){const t=a.c9.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return 0===r?"Etc/UTC":`Etc/GMT${a.mQ.instance(-r).formatOffset(0,"narrow")}`}(r)}(e,t):t}function m(e,t,r,i,a){if(t&&"date"===a)return{timeZone:s,timeZoneName:void 0};const n=i.timeStyle||i.hour,l=r===o;return{timeZone:l?"timestamp-offset"===a?void 0:e??s:r,timeZoneName:l&&n?d:void 0}}function p(e){const t=new Set(["etc/utc","etc/gmt","gmt"]),r=new Set(Intl.supportedValuesOf("timeZone").map((e=>e.toLowerCase())));return e===n||e===o||t.has(e.toLowerCase())||r.has(e.toLowerCase())}},58174:(e,t,r)=>{r.d(t,{x:()=>i});const i=new(r(66552).J)({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"})},61956:(e,t,r)=>{r.d(t,{A:()=>C});var i=r(90237),a=r(66552),n=r(25482),o=r(4718),s=r(10107),l=r(79901),d=r(93223),u=r(40608),c=r(43937),m=r(56507),p=r(86738),y=r(16930),h=r(65864),g=r(50498),T=r(27733),S=r(69540);r(44208),r(53966),r(87811);let f=class extends(S.A.ClonableMixin(n.A)){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};(0,i._)([(0,s.MZ)({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.onFields&&this.onFields.length>0}}}}})],f.prototype,"onFields",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"operator",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"searchTerm",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],f.prototype,"searchType",void 0),f=(0,i._)([(0,u.$)("esri.rest.support.FullTextSearch")],f);const w=f;var v,A=r(27348),M=r(58174),b=r(7562),_=r(79677);const Z=new a.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let j=class extends n.A{static{v=this}static from(e){return(0,m.PZ)(v,e)}constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.where=null}castDatumTransformation(e){return"number"==typeof e||"object"==typeof e?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){const r={};for(const t in e){const i=e[t];Array.isArray(i)?r[t]=i.map((e=>e instanceof Date?e.getTime():e)):i instanceof Date?r[t]=i.getTime():r[t]=i}t.parameterValues=r}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new v((0,o.o8)({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:null!=this.historicMoment?new Date(this.historicMoment.getTime()):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}static{this.MAX_MAX_RECORD_COUNT_FACTOR=5}};(0,i._)([(0,s.MZ)({json:{write:!0}})],j.prototype,"aggregateIds",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],j.prototype,"cacheHint",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"compactGeometryEnabled",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],j.prototype,"datumTransformation",void 0),(0,i._)([(0,l.w)("datumTransformation")],j.prototype,"castDatumTransformation",null),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"defaultSpatialReferenceEnabled",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{write:!0}})],j.prototype,"distance",void 0),(0,i._)([(0,s.MZ)({type:T.L,json:{write:!0}})],j.prototype,"dynamicDataSource",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],j.prototype,"formatOf3DObjects",void 0),(0,i._)([(0,s.MZ)({type:[w],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.fullText&&this.fullText.length>0}}}}})],j.prototype,"fullText",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],j.prototype,"gdbVersion",void 0),(0,i._)([(0,s.MZ)({types:g.yR,json:{read:h.rS,write:!0}})],j.prototype,"geometry",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{write:!0}})],j.prototype,"geometryPrecision",void 0),(0,i._)([(0,s.MZ)({type:[String],json:{write:!0}})],j.prototype,"groupByFieldsForStatistics",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],j.prototype,"having",void 0),(0,i._)([(0,s.MZ)({type:Date})],j.prototype,"historicMoment",void 0),(0,i._)([(0,c.K)("historicMoment")],j.prototype,"writeHistoricMoment",null),(0,i._)([(0,s.MZ)({type:Number,json:{write:!0}})],j.prototype,"maxAllowableOffset",void 0),(0,i._)([(0,s.MZ)({type:Number,cast:e=>e<1?1:e>j.MAX_MAX_RECORD_COUNT_FACTOR?j.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],j.prototype,"maxRecordCountFactor",void 0),(0,i._)([(0,s.MZ)({type:["xyFootprint"],json:{write:!0}})],j.prototype,"multipatchOption",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],j.prototype,"num",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],j.prototype,"objectIds",void 0),(0,i._)([(0,s.MZ)({type:[String],json:{write:!0}})],j.prototype,"orderByFields",void 0),(0,i._)([(0,s.MZ)({type:[String],json:{write:!0}})],j.prototype,"outFields",void 0),(0,i._)([(0,s.MZ)({type:y.A,json:{name:"outSR",write:!0}})],j.prototype,"outSpatialReference",void 0),(0,i._)([(0,s.MZ)({type:[b.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],j.prototype,"outStatistics",void 0),(0,i._)([(0,s.MZ)({json:{write:!0}})],j.prototype,"parameterValues",void 0),(0,i._)([(0,c.K)("parameterValues")],j.prototype,"writeParameterValues",null),(0,i._)([(0,s.MZ)({type:p.A,json:{write:!0}})],j.prototype,"pixelSize",void 0),(0,i._)([(0,s.MZ)({type:A.A,json:{write:!0}})],j.prototype,"quantizationParameters",void 0),(0,i._)([(0,s.MZ)({type:[Object],json:{write:!0}})],j.prototype,"rangeValues",void 0),(0,i._)([(0,s.MZ)({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],j.prototype,"relationParameter",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],j.prototype,"resultType",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"returnCentroid",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"returnDistinctValues",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!0,write:!0}})],j.prototype,"returnExceededLimitFeatures",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],j.prototype,"returnGeometry",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"returnQueryGeometry",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"returnM",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],j.prototype,"returnZ",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{write:!0}})],j.prototype,"returnTrueCurves",void 0),(0,i._)([(0,s.MZ)({type:y.A,json:{write:!0}})],j.prototype,"sourceSpatialReference",void 0),(0,i._)([(0,d.e)(M.x,{ignoreUnknown:!1,name:"spatialRel"})],j.prototype,"spatialRelationship",void 0),(0,i._)([(0,s.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],j.prototype,"start",void 0),(0,i._)([(0,c.K)("start"),(0,c.K)("num")],j.prototype,"writeStart",null),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],j.prototype,"sqlFormat",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:!0}})],j.prototype,"text",void 0),(0,i._)([(0,s.MZ)({type:_.A,json:{write:!0}})],j.prototype,"timeExtent",void 0),(0,i._)([(0,s.MZ)({type:Boolean,json:{default:!1,write:!0}})],j.prototype,"timeReferenceUnknownClient",void 0),(0,i._)([(0,d.e)(Z,{ignoreUnknown:!1}),(0,s.MZ)({json:{write:{overridePolicy(e){return{enabled:!!e&&null!=this.distance}}}}})],j.prototype,"units",void 0),(0,i._)([(0,s.MZ)({type:String,json:{write:{overridePolicy(e){return{enabled:null!=e||null!=this.start&&this.start>0}}}}})],j.prototype,"where",void 0),(0,i._)([(0,c.K)("where")],j.prototype,"writeWhere",null),j=v=(0,i._)([(0,u.$)("esri.rest.support.Query")],j);const C=j},65864:(e,t,r)=>{r.d(t,{$B:()=>h,Bi:()=>p,Rg:()=>m,U9:()=>u,ZC:()=>d,fT:()=>c,rS:()=>y,xD:()=>T});var i=r(5443),a=r(91075),n=r(48526),o=r(86738),s=r(39829),l=r(82799);function d(e){return void 0!==e.xmin&&void 0!==e.ymin&&void 0!==e.xmax&&void 0!==e.ymax}function u(e){return void 0!==e.points}function c(e){return void 0!==e.x&&void 0!==e.y}function m(e){return void 0!==e.paths||void 0!==e.curvePaths}function p(e){return void 0!==e.rings||void 0!==e.curveRings}function y(e){return null==e?null:e instanceof a.A?e:c(e)?o.A.fromJSON(e):m(e)?l.A.fromJSON(e):p(e)?s.A.fromJSON(e):u(e)?n.A.fromJSON(e):d(e)?i.A.fromJSON(e):null}function h(e){return e?c(e)?"esriGeometryPoint":m(e)?"esriGeometryPolyline":p(e)?"esriGeometryPolygon":d(e)?"esriGeometryEnvelope":u(e)?"esriGeometryMultipoint":null:null}const g={esriGeometryPoint:o.A,esriGeometryPolyline:l.A,esriGeometryPolygon:s.A,esriGeometryEnvelope:i.A,esriGeometryMultipoint:n.A,esriGeometryMultiPatch:s.A};function T(e){return e&&g[e]||null}},69540:(e,t,r)=>{r.d(t,{A:()=>m});var i=r(90237),a=r(69622),n=(r(44208),r(4718)),o=(r(53966),r(97768)),s=r(35666),l=r(88620),d=r(40608);const u=e=>{let t=class extends e{clone(){const e=(0,l.oY)(this);(0,o.Lw)(e,"unable to clone instance of non-accessor class");const t=e.metadata,r=e.store,i={},a=new Map;for(const e in t){const o=t[e],l=r?.originOf(e),d=o.clonable;if(o.readOnly||!1===d||l!==s.Gr.USER&&l!==s.Gr.DEFAULTS&&l!==s.Gr.WEB_MAP&&l!==s.Gr.WEB_SCENE)continue;const u=this[e];let c=null;c="function"==typeof d?d(u):"reference"===d?u:(0,n.TU)(u),null!=u&&null==c||(l===s.Gr.DEFAULTS?a.set(e,c):i[e]=c)}const d=new(0,Object.getPrototypeOf(this).constructor)(i);if(a.size){const e=(0,l.oY)(d)?.store;if(e)for(const[t,r]of a)e.set(t,r,s.Gr.DEFAULTS)}return d}};return t=(0,i._)([(0,d.$)("esri.core.Clonable")],t),t};let c=class extends(u(a.A)){};c=(0,i._)([(0,d.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=u;const m=c},73444:(e,t,r)=>{r.d(t,{JK:()=>l,Ml:()=>y,ZS:()=>u,oQ:()=>m});var i=r(36563);let a;const n=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,o=globalThis.document?.documentElement;function s(){const e=o?.getAttribute("lang"),t=globalThis.navigator?.language;return n??e??t??"en"}function l(){return void 0===a&&(a=s()),a}const d=/^(?<language>[a-z]{2,3})(?:-[a-z]{3})?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(e=l()){return d.exec(e)?.groups}const c=[];function m(e){return c.push(e),(0,i.hA)((()=>c.splice(c.indexOf(e),1)))}const p=[];function y(e){return p.push(e),(0,i.hA)((()=>p.splice(p.indexOf(e),1)))}function h(){const e=s();a!==e&&([...p].forEach((t=>t(e))),a=e,[...c].forEach((t=>t(e))))}globalThis.addEventListener?.("languagechange",h),o&&new MutationObserver((()=>{h()})).observe(o,{attributeFilter:["lang"]})},76357:(e,t,r)=>{r.d(t,{A:()=>c});var i=r(90237),a=r(66552),n=r(25482),o=r(10107),s=(r(44208),r(53966),r(87811),r(93223)),l=r(40608);const d=new a.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let u=class extends n.A{constructor(e){super(e),this.name=null,this.type=null}};(0,i._)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"name",void 0),(0,i._)([(0,s.e)(d),(0,o.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),u=(0,i._)([(0,l.$)("esri.layers.support.Domain")],u);const c=u},79677:(e,t,r)=>{r.d(t,{A:()=>p});var i,a=r(90237),n=r(25482),o=r(88930),s=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),d=r(40608),u=r(43937),c=r(56400);let m=class extends n.A{static{i=this}static get allTime(){return y}static get empty(){return h}static fromArray(e){return new i({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(i.allTime)}get isEmpty(){return this.equals(i.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new i({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,i=e.start?.getTime()??e.start,a=e.end?.getTime()??e.end;return t===i&&r===a}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,e,t));let a=this.end;if(a){const r=(0,o.lL)(a,e,t);a=a.getTime()===r.getTime()?r:(0,o.S1)(r,1,e,t)}return new i({start:r,end:a})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return i.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,a=e.start?.getTime()??-1/0,n=e.end?.getTime()??1/0;let o,s;return a>=t&&a<=r?o=a:t>=a&&t<=n&&(o=t),r>=a&&r<=n?s=r:n>=t&&n<=r&&(s=n),null==o||null==s||isNaN(o)||isNaN(s)?i.empty:new i({start:o===-1/0?null:new Date(o),end:s===1/0?null:new Date(s)})}offset(e,t,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const a=new i,{start:n,end:s}=this;return null!=n&&(a.start=(0,o.S1)(n,e,t,r)),null!=s&&(a.end=(0,o.S1)(s,e,t,r)),a}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return y.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new i({start:t,end:r})}};(0,a._)([(0,s.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"end",void 0),(0,a._)([(0,l.w)("end")],m.prototype,"readEnd",null),(0,a._)([(0,u.K)("end")],m.prototype,"writeEnd",null),(0,a._)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isAllTime",null),(0,a._)([(0,s.MZ)({readOnly:!0,json:{read:!1}})],m.prototype,"isEmpty",null),(0,a._)([(0,s.MZ)({type:Date,json:{write:{allowNull:!0}}})],m.prototype,"start",void 0),(0,a._)([(0,l.w)("start")],m.prototype,"readStart",null),(0,a._)([(0,u.K)("start")],m.prototype,"writeStart",null),m=i=(0,a._)([(0,d.$)("esri.time.TimeExtent")],m);const p=m,y=new m,h=new m({start:void 0,end:void 0})},80451:(e,t,r)=>{r.d(t,{rS:()=>g,gK:()=>h}),r(44208);var i,a=r(53177),n=r(76357),o=r(90237),s=(r(53966),r(87811),r(49186),r(93223)),l=r(40608);let d=class extends n.A{static{i=this}constructor(e){super(e),this.type="inherited"}clone(){return new i}};(0,o._)([(0,s.e)({inherited:"inherited"})],d.prototype,"type",void 0),d=i=(0,o._)([(0,l.$)("esri.layers.support.InheritedDomain")],d);const u=d;var c,m=r(10107);let p=class extends n.A{static{c=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new c({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,m.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],p.prototype,"maxValue",void 0),(0,o._)([(0,m.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],p.prototype,"minValue",void 0),(0,o._)([(0,s.e)({range:"range"})],p.prototype,"type",void 0),p=c=(0,o._)([(0,l.$)("esri.layers.support.RangeDomain")],p);const y=p,h={key:"type",base:n.A,typeMap:{range:y,"coded-value":a.A,inherited:u}};function g(e){if(!e?.type)return null;switch(e.type){case"range":return y.fromJSON(e);case"codedValue":return a.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},88930:(e,t,r)=>{r.d(t,{S1:()=>s,lL:()=>d,mi:()=>l,t:()=>u,vf:()=>o});var i=r(97770),a=r(56400),n=r(96285);const o={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function s(e,t,r,o=a.qU){const s=new n.oh((0,i.wj)(o)),l=n.c9.fromJSDate(e,{zone:s}),d="decades"===r||"centuries"===r?"year":c(r);return"decades"===r&&(t*=10),"centuries"===r&&(t*=100),l.plus({[d]:t}).toJSDate()}function l(e,t,r="milliseconds"){const i=e.getTime(),a=u(t,r,"milliseconds");return new Date(i+a)}function d(e,t,r=a.qU){const o=new n.oh((0,i.wj)(r)),s=n.c9.fromJSDate(e,{zone:o});if("decades"===t||"centuries"===t){const e=s.startOf("year"),{year:r}=e,i=r-r%("decades"===t?10:100);return e.set({year:i}).toJSDate()}const l=c(t);return s.startOf(l).toJSDate()}function u(e,t,r){return 0===e?0:e*o[t]/o[r]}function c(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}},91829:(e,t,r)=>{function i(){return[0,0,0,0]}function a(e,t,r,i){return[e,t,r,i]}function n(e,t,r,i){return[e,t,r,i]}function o(e,t=[0,0,0,0]){const r=Math.min(4,e.length);for(let i=0;i<r;++i)t[i]=e[i];return t}function s(){return a(1,1,1,1)}function l(){return a(1,0,0,0)}function d(){return a(0,1,0,0)}function u(){return a(0,0,1,0)}function c(){return a(0,0,0,1)}r.d(t,{CN:()=>n,Un:()=>p,ci:()=>o,fA:()=>a,uY:()=>m,vt:()=>i});const m=[0,0,0,0],p=s(),y=l(),h=d(),g=u(),T=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_W:T,UNIT_X:y,UNIT_Y:h,UNIT_Z:g,ZEROS:m,clone:function(e){return[e[0],e[1],e[2],e[3]]},create:i,freeze:n,fromArray:o,fromValues:a,ones:s,unitW:c,unitX:l,unitY:d,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},93223:(e,t,r)=>{r.d(t,{e:()=>n});var i=r(66552),a=r(10107);function n(e,t={}){const r=e instanceof i.J?e:new i.J(e,t),{alwaysWriteDefaults:n,default:o,ignoreUnknown:s=!0,name:l,nonNullable:d,readOnly:u=!1}=t;return(0,a.MZ)({type:s?r.apiValues:String,json:{type:r.jsonValues,default:o,name:l,read:!u&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:n}},nonNullable:d,readOnly:u})}},95488:(e,t,r)=>{r.d(t,{I:()=>a});var i=r(11406);class a extends i.T{notify(){const e=this._observers;if(e&&e.length>0){const t=e.slice();for(const e of t)e.onInvalidated(),e.onCommitted()}}}},97770:(e,t,r)=>{r.d(t,{Ey:()=>C,F8:()=>j,J2:()=>b,Yq:()=>_,_v:()=>w,iS:()=>Z,wj:()=>E});var i=r(66552),a=r(73444),n=r(56400),o=r(96285);const s={year:void 0,month:void 0,day:void 0,weekday:void 0},l={hour:void 0,minute:void 0,second:void 0},d={timeZone:n.n$},u={year:"numeric",month:"numeric",day:"numeric"},c={year:"numeric",month:"long",day:"numeric"},m={year:"numeric",month:"short",day:"numeric"},p={year:"numeric",month:"long",weekday:"long",day:"numeric"},y={hour:"numeric",minute:"numeric"},h={...y,second:"numeric"},g={hourCycle:"h23"},T={...y,...g},S={...h,...g},f={"short-date":u,"short-date-short-time":{...u,...y},"short-date-short-time-24":{...u,...T},"short-date-long-time":{...u,...h},"short-date-long-time-24":{...u,...S},"short-date-le":u,"short-date-le-short-time":{...u,...y},"short-date-le-short-time-24":{...u,...T},"short-date-le-long-time":{...u,...h},"short-date-le-long-time-24":{...u,...S},"long-month-day-year":c,"long-month-day-year-short-time":{...c,...y},"long-month-day-year-short-time-24":{...c,...T},"long-month-day-year-long-time":{...c,...h},"long-month-day-year-long-time-24":{...c,...S},"day-short-month-year":m,"day-short-month-year-short-time":{...m,...y},"day-short-month-year-short-time-24":{...m,...T},"day-short-month-year-long-time":{...m,...h},"day-short-month-year-long-time-24":{...m,...S},"long-date":p,"long-date-short-time":{...p,...y},"long-date-short-time-24":{...p,...T},"long-date-long-time":{...p,...h},"long-date-long-time-24":{...p,...S},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":y,"long-time":h},w=(0,i.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),v={ar:"ar-u-nu-latn-ca-gregory"};let A=new WeakMap;const M=f["short-date-short-time"];function b(e){return f[e]}function _(e,t=M){return function(e){let t=A.get(e);if(!t){const r=(0,a.JK)(),i=v[r]||r,o=E(e.timeZone??n.qU),s={...e,timeZone:o};t=new Intl.DateTimeFormat(i,s),A.set(e,t)}return t}(t).format(e)}function Z(e,t=M){return _(new Date(e),{...t,...d,...l})}function j(e,t=M){return _(new Date(`1970-01-01T${e}Z`),{...t,...d,...s})}function C(e,t=M){if(t.timeZone)return _(new Date(e),t);const r=o.c9.fromISO(e,{setZone:!0}),i=(0,a.JK)(),s=v[i]??i,l=0===r.offset?n.n$:t.timeZone,d={...t,timeZone:l};return r.toLocaleString(d,{locale:s})}function E(e){switch(e){case n.qU:return n.N5;case n.L5:return n.n$;default:return e}}(0,a.Ml)((()=>{A=new WeakMap}))},98453:(e,t,r)=>{r.d(t,{m:()=>i});const i=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3804],{4172:(e,t,r)=>{r.d(t,{g:()=>f});var s=r(49186),i=(r(44208),r(53966)),n=r(97768),a=r(74887),o=r(44794);(r(36708),r(35982)).B;new Set;var c=r(94656),l=r(63907),h=r(36421),u=r(67171);function _(e){(null!=e.width&&e.width<0||null!=e.height&&e.height<0||null!=e.depth&&e.depth<0)&&i.A.getLogger("esri/views/webgl/textureUtils").error("Negative dimension parameters are not allowed!")}function d(e){return null!=e&&"type"in e&&"compressed"===e.type}function m(e){return null!=e&&!d(e)&&!function(e){return null!=e&&"byteLength"in e}(e)}function p(e){return e===l.Ap.TEXTURE_3D||e===l.Ap.TEXTURE_2D_ARRAY}function A(e,t,r,s=1){let i=Math.max(t,r);return e===l.Ap.TEXTURE_3D&&(i=Math.max(i,s)),Math.floor(Math.log2(i))+1}function E(e){if(null!=e.internalFormat)return e.internalFormat===l.Ab.DEPTH_STENCIL?l.Ab.DEPTH24_STENCIL8:e.internalFormat;switch(e.dataType){case l.ld.FLOAT:switch(e.pixelFormat){case l.Ab.RGBA:return l.H0.RGBA32F;case l.Ab.RGB:return l.H0.RGB32F;default:throw new s.A("Unable to derive format")}case l.ld.UNSIGNED_BYTE:switch(e.pixelFormat){case l.Ab.RGBA:return l.H0.RGBA8;case l.Ab.RGB:return l.H0.RGB8}}return e.internalFormat=e.pixelFormat===l.Ab.DEPTH_STENCIL?l.Ab.DEPTH24_STENCIL8:e.pixelFormat}class g extends u.R{constructor(e,t){switch(super(),this.context=e,Object.assign(this,t),this.internalFormat){case l.H0.R16F:case l.H0.R16I:case l.H0.R16UI:case l.H0.R32F:case l.H0.R32I:case l.H0.R32UI:case l.H0.R8_SNORM:case l.H0.R8:case l.H0.R8I:case l.H0.R8UI:this.pixelFormat=l.Ab.RED}}static validate(e,t){return new g(e,t)}}const T=()=>i.A.getLogger("esri/views/webgl/Texture");let f=class e{static{this.TEXTURE_UNIT_FOR_UPDATES=0}constructor(e,t=null,r=null){if(this.type=h.p.Texture,this._glName=null,this._samplingModeDirty=!1,this._wrapModeDirty=!1,this._wasImmutablyAllocated=!1,this._compressionAbortController=(0,o.v)(null),"context"in e)this._descriptor=e,r=t;else{const r=g.validate(e,t);if(!r)throw new s.A("Texture descriptor invalid");this._descriptor=r}this._descriptor.target===l.Ap.TEXTURE_CUBE_MAP?this._setDataCubeMap(r):this.setData(r)}get glName(){return this._glName}get descriptor(){return this._descriptor}get usedMemory(){return(0,u.e)(this._descriptor)}get cachedMemory(){return this.usedMemory}get isDirty(){return this._samplingModeDirty||this._wrapModeDirty}get isCompressing(){return null!==this._compressionAbortController.value}dispose(){this.abortCompression(),this._descriptor.context.gl&&this._glName&&(this._descriptor.context.instanceCounter.decrement(l.vt.Texture,this),this._descriptor.context.unbindTexture(this),this._descriptor.context.gl.deleteTexture(this._glName),this._glName=null)}release(){this.dispose()}resize(e,t){const r=this._descriptor;if(r.width!==e||r.height!==t){if(this._wasImmutablyAllocated)throw new s.A("Immutable textures can't be resized!");r.width=e,r.height=t,this._descriptor.target===l.Ap.TEXTURE_CUBE_MAP?this._setDataCubeMap(null):this.setData(null)}}enableCompression(e){this._descriptor.shouldCompress=e}setData(e){this.abortCompression(),!d(e)&&this._descriptor.internalFormat&&this._descriptor.internalFormat in l.CQ&&(this._descriptor.internalFormat=void 0),this._setData(e)}updateData(t,r,i,n,a,o,c=0){o||T().error("An attempt to use uninitialized data!"),this._glName||T().error("An attempt to update uninitialized texture!");const l=this._descriptor;l.internalFormat=E(l);const{context:h,pixelFormat:u,dataType:_,target:p,isImmutable:A}=l;if(A&&!this._wasImmutablyAllocated)throw new s.A("Cannot update immutable texture before allocation!");const g=h.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES,!0);(r<0||i<0||r+n>l.width||i+a>l.height)&&T().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();const{gl:f}=h;c&&(n&&a||T().warn("Must pass width and height if `UNPACK_SKIP_ROWS` is used"),f.pixelStorei(f.UNPACK_SKIP_ROWS,c)),m(o)?f.texSubImage2D(p,t,r,i,n,a,u,_,o):d(o)?f.compressedTexSubImage2D(p,t,r,i,n,a,l.internalFormat,o.levels[t]):f.texSubImage2D(p,t,r,i,n,a,u,_,o),c&&f.pixelStorei(f.UNPACK_SKIP_ROWS,0),h.bindTexture(g,e.TEXTURE_UNIT_FOR_UPDATES)}updateData3D(t,r,i,n,a,o,c,l){l||T().error("An attempt to use uninitialized data!"),this._glName||T().error("An attempt to update an uninitialized texture!");const h=this._descriptor;h.internalFormat=E(h);const{context:u,pixelFormat:_,dataType:m,isImmutable:A,target:g}=h;if(A&&!this._wasImmutablyAllocated)throw new s.A("Cannot update immutable texture before allocation!");p(g)||T().warn("Attempting to set 3D texture data on a non-3D texture");const f=u.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);u.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),(r<0||i<0||n<0||r+a>h.width||i+o>h.height||n+c>h.depth)&&T().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();const{gl:R}=u;if(d(l))l=l.levels[t],R.compressedTexSubImage3D(g,t,r,i,n,a,o,c,h.internalFormat,l);else{const e=l;R.texSubImage3D(g,t,r,i,n,a,o,c,_,m,e)}u.bindTexture(f,e.TEXTURE_UNIT_FOR_UPDATES)}generateMipmap(){const t=this._descriptor;if(0===t.width||0===t.height)return;if(!t.hasMipmap){if(this._wasImmutablyAllocated)throw new s.A("Cannot add mipmaps to immutable texture after allocation");t.hasMipmap=!0,this._samplingModeDirty=!0,_(t)}t.samplingMode===l.Cj.LINEAR?(this._samplingModeDirty=!0,t.samplingMode=l.Cj.LINEAR_MIPMAP_NEAREST):t.samplingMode===l.Cj.NEAREST&&(this._samplingModeDirty=!0,t.samplingMode=l.Cj.NEAREST_MIPMAP_NEAREST);const r=this._descriptor.context.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);this._descriptor.context.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),this._descriptor.context.gl.generateMipmap(t.target),this._descriptor.context.bindTexture(r,e.TEXTURE_UNIT_FOR_UPDATES)}clearMipmap(){const e=this._descriptor;if(e.hasMipmap){if(this._wasImmutablyAllocated)throw new s.A("Cannot delete mipmaps to immutable texture after allocation");e.hasMipmap=!1,this._samplingModeDirty=!0,_(e)}e.samplingMode===l.Cj.LINEAR_MIPMAP_NEAREST?(this._samplingModeDirty=!0,e.samplingMode=l.Cj.LINEAR):e.samplingMode===l.Cj.NEAREST_MIPMAP_NEAREST&&(this._samplingModeDirty=!0,e.samplingMode=l.Cj.NEAREST)}setSamplingMode(e){e!==this._descriptor.samplingMode&&(this._descriptor.samplingMode=e,this._samplingModeDirty=!0)}setWrapMode(e){e!==this._descriptor.wrapMode&&(this._descriptor.wrapMode=e,_(this._descriptor),this._wrapModeDirty=!0)}applyChanges(){this._samplingModeDirty&&(this._applySamplingMode(),this._samplingModeDirty=!1),this._wrapModeDirty&&(this._applyWrapMode(),this._wrapModeDirty=!1)}abortCompression(){this.isCompressing&&(this._compressionAbortController.value=(0,n.DC)(this._compressionAbortController.value))}_setData(t,r){const i=this._descriptor,n=i.context?.gl;if(!n)return;(0,c.Y2)(n),this._glName||(this._glName=n.createTexture(),i.context.instanceCounter.increment(l.vt.Texture,this)),_(i);const a=i.context.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);i.context.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),this._configurePixelStorage(),(0,c.Y2)(n);const o=r??i.target,h=p(o);if(m(t))this._setDataFromTexImageSource(t,o);else{const{width:e,height:r,depth:a}=i;if(null==e||null==r)throw new s.A("Width and height must be specified!");if(h&&null==a)throw new s.A("Depth must be specified!");if(i.internalFormat=E(i),i.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(o,i.internalFormat,i.hasMipmap,e,r,a),d(t)){if(!(i.internalFormat in l.CQ))throw new s.A("Attempting to use compressed data with an uncompressed format!");this._setDataFromCompressedSource(t,i.internalFormat,o)}else this._texImage(o,0,i.internalFormat,e,r,a,t),(0,c.Y2)(n),i.hasMipmap&&this.generateMipmap()}this._applySamplingMode(),this._applyWrapMode(),this._applyAnisotropicFilteringParameters(),(0,c.Y2)(n),i.context.bindTexture(a,e.TEXTURE_UNIT_FOR_UPDATES)}_setDataCubeMap(e=null){for(let t=l.Ap.TEXTURE_CUBE_MAP_POSITIVE_X;t<=l.Ap.TEXTURE_CUBE_MAP_NEGATIVE_Z;t++)this._setData(e,t)}_configurePixelStorage(){const e=this._descriptor.context.gl,{unpackAlignment:t,flipped:r,preMultiplyAlpha:s}=this._descriptor;e.pixelStorei(e.UNPACK_ALIGNMENT,t),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,r?1:0),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,s?1:0)}_setDataFromTexImageSource(e,t){const{gl:r}=this._descriptor.context,s=this._descriptor;s.internalFormat=E(s);const i=p(t),{width:n,height:a,depth:o}=function(e){let t="width"in e?e.width:e.codedWidth,r="height"in e?e.height:e.codedHeight;return e instanceof HTMLVideoElement&&(t=e.videoWidth,r=e.videoHeight),{width:t,height:r,depth:1}}(e);s.width&&s.height,s.width||(s.width=n),s.height||(s.height=a),i&&s.depth,i&&(s.depth=o),s.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(t,s.internalFormat,s.hasMipmap,n,a,o),this._texImage(t,0,s.internalFormat,n,a,o,e),(0,c.Y2)(r),s.hasMipmap&&(this.generateMipmap(),(0,c.Y2)(r))}_setDataFromCompressedSource(e,t,r){const s=this._descriptor,{width:i,height:n,depth:a}=s,o=e.levels,c=A(r,i,n,a),l=Math.min(c,o.length)-1;this._descriptor.context.gl.texParameteri(s.target,s.context.gl.TEXTURE_MAX_LEVEL,l),this._forEachMipmapLevel(((e,s,i,n)=>{const a=o[Math.min(e,o.length-1)];this._compressedTexImage(r,e,t,s,i,n,a)}),l)}_texStorage(e,t,r,i,n,a){const{gl:o}=this._descriptor.context;if(!(t in l.H0))throw new s.A("Immutable textures must have a sized internal format");if(!this._descriptor.isImmutable)return;const c=r?A(e,i,n,a):1;if(p(e)){if(null==a)throw new s.A("Missing depth dimension for 3D texture upload");o.texStorage3D(e,c,t,i,n,a)}else o.texStorage2D(e,c,t,i,n);this._wasImmutablyAllocated=!0}_texImage(e,t,r,i,n,a,o){const c=this._descriptor.context.gl,l=p(e),{isImmutable:h,pixelFormat:u,dataType:_}=this._descriptor;if(h){if(null!=o){const r=o;if(l){if(null==a)throw new s.A("Missing depth dimension for 3D texture upload");c.texSubImage3D(e,t,0,0,0,i,n,a,u,_,r)}else c.texSubImage2D(e,t,0,0,i,n,u,_,r)}}else{const h=o;if(l){if(null==a)throw new s.A("Missing depth dimension for 3D texture upload");c.texImage3D(e,t,r,i,n,a,0,u,_,h)}else c.texImage2D(e,t,r,i,n,0,u,_,h)}}_compressedTexImage(e,t,r,i,n,a,o){const c=this._descriptor.context.gl,l=p(e);if(this._descriptor.isImmutable){if(null!=o)if(l){if(null==a)throw new s.A("Missing depth dimension for 3D texture upload");c.compressedTexSubImage3D(e,t,0,0,0,i,n,a,r,o)}else c.compressedTexSubImage2D(e,t,0,0,i,n,r,o)}else if(l){if(null==a)throw new s.A("Missing depth dimension for 3D texture upload");c.compressedTexImage3D(e,t,r,i,n,a,0,o)}else c.compressedTexImage2D(e,t,r,i,n,0,o)}async compressOnWorker(e){const t=this._descriptor.context?.gl.getExtension("WEBGL_compressed_texture_etc"),r=this._descriptor.context?.gl.getExtension("WEBGL_compressed_texture_s3tc"),s=null;if(s&&(t||r)){const i=new AbortController;this._compressionAbortController.value=i;const n={data:await createImageBitmap(e),flipped:this.descriptor.flipped,width:e.width,height:e.height,hasMipmap:this._descriptor.hasMipmap,hasETC:!!t,hasS3TC:!!r};s.invoke(n,this._compressionAbortController.value.signal).then((e=>{e&&this.isCompressing&&this.glName&&(this._descriptor.internalFormat=e.internalFormat,this._setData(e.compressedTexture)),i===this._compressionAbortController.value&&(this._compressionAbortController.value=null)})).catch((e=>{(0,a.zf)(e)||i!==this._compressionAbortController.value||(this._compressionAbortController.value=null)}))}}_forEachMipmapLevel(e,t=1/0){let{width:r,height:i,depth:n,hasMipmap:a,target:o}=this._descriptor;const c=o===l.Ap.TEXTURE_3D;if(null==r||null==i||c&&null==n)throw new s.A("Missing texture dimensions for mipmap calculation");for(let s=0;e(s,r,i,n),a&&(1!==r||1!==i||c&&1!==n)&&!(s>=t);++s)r=Math.max(1,r>>1),i=Math.max(1,i>>1),c&&(n=Math.max(1,n>>1))}_applySamplingMode(){const e=this._descriptor,t=e.context?.gl;let r=e.samplingMode,s=e.samplingMode;r===l.Cj.LINEAR_MIPMAP_NEAREST||r===l.Cj.LINEAR_MIPMAP_LINEAR?(r=l.Cj.LINEAR,e.hasMipmap||(s=l.Cj.LINEAR)):r!==l.Cj.NEAREST_MIPMAP_NEAREST&&r!==l.Cj.NEAREST_MIPMAP_LINEAR||(r=l.Cj.NEAREST,e.hasMipmap||(s=l.Cj.NEAREST)),t.texParameteri(e.target,t.TEXTURE_MAG_FILTER,r),t.texParameteri(e.target,t.TEXTURE_MIN_FILTER,s)}_applyWrapMode(){const e=this._descriptor,t=e.context?.gl;"number"==typeof e.wrapMode?(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode)):(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode.s),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode.t))}_applyAnisotropicFilteringParameters(){const e=this._descriptor,t=e.context.capabilities.textureFilterAnisotropic;t&&e.context.gl.texParameterf(e.target,t.TEXTURE_MAX_ANISOTROPY,e.maxAnisotropy??1)}}},14113:(e,t,r)=>{r.d(t,{N5:()=>c});var s=r(49186),i=(r(44208),r(53966)),n=r(69270);const a=()=>i.A.getLogger("esri.views.3d.webgl-engine.core.shaderModules.shaderBuilder");class o{constructor(){this._includedModules=new Map}include(e,t){this._includedModules.has(e)?this._includedModules.get(e):(this._includedModules.set(e,t),e(this.builder,t))}}class c extends o{constructor(){super(...arguments),this.vertex=new _,this.fragment=new _,this.attributes=new d,this.varyings=new m,this.extensions=new p,this.outputs=new A}get fragmentUniforms(){return this.fragment.uniforms.entries}get builder(){return this}generate(e,t=!1){const r=this.extensions.generateSource(e),s=this.attributes.generateSource(e),i=this.varyings.generateSource(e),n="vertex"===e?this.vertex:this.fragment,a=n.uniforms.generateSource(),o=n.code.generateSource(),c=n.main.generateSource(t),l="vertex"===e?T:g,h=n.constants.generateSource(),u=this.outputs.generateSource(e);return`#version 300 es\n${r.join("\n")}\n${l}\n${h.join("\n")}\n${a.join("\n")}\n${s.join("\n")}\n${i.join("\n")}\n${u.join("\n")}\n${o.join("\n")}\n${c.join("\n")}`}generateBind(e){const t=new Map;this.vertex.uniforms.entries.forEach((e=>{const r=e.bind[n.c.Bind];r&&t.set(e.name,r)})),this.fragment.uniforms.entries.forEach((e=>{const r=e.bind[n.c.Bind];r&&t.set(e.name,r)}));const r=Array.from(t.values()),s=r.length;return t=>{for(let i=0;i<s;++i)r[i](e,t)}}generateBindPass(e){const t=new Map;this.vertex.uniforms.entries.forEach((e=>{const r=e.bind[n.c.Pass];r&&t.set(e.name,r)})),this.fragment.uniforms.entries.forEach((e=>{const r=e.bind[n.c.Pass];r&&t.set(e.name,r)}));const r=Array.from(t.values()),s=r.length;return(t,i)=>{for(let n=0;n<s;++n)r[n](e,t,i)}}generateBindDraw(e){const t=new Map;this.vertex.uniforms.entries.forEach((e=>{const r=e.bind[n.c.Draw];r&&t.set(e.name,r)})),this.fragment.uniforms.entries.forEach((e=>{const r=e.bind[n.c.Draw];r&&t.set(e.name,r)}));const r=Array.from(t.values()),s=r.length;return(t,i,n)=>{for(let a=0;a<s;++a)r[a](e,n,t,i)}}}class l{constructor(e){this._stage=e,this._entries=new Map}add(...e){for(const t of e)this._add(t);return this._stage}get(e){return this._entries.get(e)}_add(e){if(null!=e){if(this._entries.has(e.name)&&!this._entries.get(e.name).equals(e))throw new s.A(`Duplicate uniform name ${e.name} for different uniform type`);this._entries.set(e.name,e)}else a().error(`Trying to add null Uniform from ${(new Error).stack}.`)}generateSource(){return Array.from(this._entries.values()).map((e=>null!=e.arraySize?`uniform ${e.type} ${e.name}[${e.arraySize}];`:`uniform ${e.type} ${e.name};`))}get entries(){return Array.from(this._entries.values())}}class h{constructor(e){this._stage=e,this._bodies=new Array}add(e){return this._bodies.push(e),this._stage}generateSource(e){if(this._bodies.length>0)return[`void main() {\n ${this._bodies.join("\n")||""} \n}`];if(e)throw new s.A("Shader does not contain main function body.");return[]}}class u{constructor(e){this._stage=e,this._entries=new Array}add(e){return this._entries.push(e),this._stage}generateSource(){return this._entries}}class _ extends o{constructor(){super(...arguments),this.uniforms=new l(this),this.main=new h(this),this.code=new u(this),this.constants=new E(this)}get builder(){return this}}class d{constructor(){this._entries=new Array}add(e,t){this._entries.push([e,t])}generateSource(e){return"fragment"===e?[]:this._entries.map((e=>`in ${e[1]} ${e[0]};`))}}class m{constructor(){this._entries=new Map}add(e,t,r){this._entries.has(e)?a().warn(`Ignoring duplicate varying ${t} ${e}`):this._entries.set(e,{type:t,invariant:r?.invariant??!1})}generateSource(e){const t=new Array;return this._entries.forEach(((r,s)=>t.push((r.invariant&&"vertex"===e?"invariant ":"")+("vertex"===e?"out":"in")+` ${r.type} ${s};`))),t}}class p{constructor(){this._entries=new Set}add(e){this._entries.add(e)}generateSource(e){const t="vertex"===e?p.ALLOWLIST_VERTEX:p.ALLOWLIST_FRAGMENT;return Array.from(this._entries).filter((e=>t.includes(e))).map((e=>`#extension ${e} : enable`))}static{this.ALLOWLIST_FRAGMENT=["GL_EXT_shader_texture_lod","GL_OES_standard_derivatives"]}static{this.ALLOWLIST_VERTEX=[]}}class A{constructor(){this._entries=new Map}add(e,t,r=0){const s=this._entries.get(r);s?.name!==e||s?.type!==t?this._entries.set(r,{name:e,type:t}):a().warn(`Fragment shader output location ${r} occupied`)}static{this.DEFAULT_TYPE="vec4"}static{this.DEFAULT_NAME="fragColor"}generateSource(e){if("vertex"===e)return[];0===this._entries.size&&this._entries.set(0,{name:A.DEFAULT_NAME,type:A.DEFAULT_TYPE});const t=new Array;return this._entries.forEach(((e,r)=>t.push(`layout(location = ${r}) out ${e.type} ${e.name};`))),t}}class E{constructor(e){this._stage=e,this._entries=new Set}add(e,t,r){let s="ERROR_CONSTRUCTOR_STRING";switch(t){case"float":s=E._numberToFloatStr(r);break;case"int":s=E._numberToIntStr(r);break;case"bool":s=r.toString();break;case"vec2":s=`vec2(${E._numberToFloatStr(r[0])}, ${E._numberToFloatStr(r[1])})`;break;case"vec3":s=`vec3(${E._numberToFloatStr(r[0])}, ${E._numberToFloatStr(r[1])}, ${E._numberToFloatStr(r[2])})`;break;case"vec4":s=`vec4(${E._numberToFloatStr(r[0])}, ${E._numberToFloatStr(r[1])}, ${E._numberToFloatStr(r[2])}, ${E._numberToFloatStr(r[3])})`;break;case"ivec2":s=`ivec2(${E._numberToIntStr(r[0])}, ${E._numberToIntStr(r[1])})`;break;case"ivec3":s=`ivec3(${E._numberToIntStr(r[0])}, ${E._numberToIntStr(r[1])}, ${E._numberToIntStr(r[2])})`;break;case"ivec4":s=`ivec4(${E._numberToIntStr(r[0])}, ${E._numberToIntStr(r[1])}, ${E._numberToIntStr(r[2])}, ${E._numberToIntStr(r[3])})`;break;case"mat2":case"mat3":case"mat4":s=`${t}(${Array.prototype.map.call(r,(e=>E._numberToFloatStr(e))).join(", ")})`}return this._entries.add(`const ${t} ${e} = ${s};`),this._stage}static _numberToIntStr(e){return e.toFixed(0)}static _numberToFloatStr(e){return Number.isInteger(e)?e.toFixed(1):e.toString()}generateSource(){return Array.from(this._entries)}}const g="#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n precision highp int;\n precision highp sampler2D;\n#else\n precision mediump float;\n precision mediump int;\n precision mediump sampler2D;\n#endif",T="precision highp float;\n precision highp sampler2D;\n \n invariant gl_Position;\n "},35982:(e,t,r)=>{r.d(t,{B:()=>c});var s=r(4576),i=r(36563),n=r(53966),a=r(74887),o=r(29953);class c{constructor(e,t,r,s,i={}){this._mainMethod=t,this._transferLists=r,this._listeners=[],this._promise=(0,o.ho)(e,{...i,schedule:s}).then((e=>{if(void 0===this._thread){this._thread=e,this._promise=null,i.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()})),this._promise.catch((t=>n.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`)))}on(e,t){const r={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(r),this._connectListener(r),(0,i.hA)((()=>{r.removed=!0,(0,s.TF)(this._listeners,r),this._thread&&null!=r.threadHandle&&r.threadHandle.remove()}))}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null,this._listeners.length=0,this._transferLists={}}invoke(e,t){return this.invokeMethod(this._mainMethod,e,t)}invokeMethod(e,t,r){if(this._thread){const s=this._transferLists[e],i=s?s(t):[];return this._thread.invoke(e,t,{transferList:i,signal:r})}return this._promise?this._promise.then((()=>((0,a.Te)(r),this.invokeMethod(e,t,r)))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then((()=>{})):this._promise?this._promise.then((()=>this.broadcast(e,t))):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then((t=>{e.removed||(e.threadHandle=t)}))}}},36421:(e,t,r)=>{var s;r.d(t,{p:()=>s}),function(e){e[e.Texture=0]="Texture",e[e.RenderBuffer=1]="RenderBuffer"}(s||(s={}))},42293:(e,t,r)=>{r.d(t,{Hi:()=>c,IB:()=>l,yu:()=>o}),r(44208);var s=r(94656),i=r(63907),n=r(62298);function a(e){const t=e.gl;switch(t.getError()){case t.NO_ERROR:return null;case t.INVALID_ENUM:return"An unacceptable value has been specified for an enumerated argument";case t.INVALID_VALUE:return"An unacceptable value has been specified for an argument";case t.INVALID_OPERATION:return"The specified command is not allowed for the current state";case t.INVALID_FRAMEBUFFER_OPERATION:return"The currently bound framebuffer is not framebuffer complete";case t.OUT_OF_MEMORY:return"Not enough memory is left to execute the command";case t.CONTEXT_LOST_WEBGL:return"WebGL context is lost"}return"Unknown error"}function o(e,t,r,i,o=0){const c=e.gl;e.bindBuffer(r);for(const r of i){const i=t.get(r.name);if(null==i){console.warn(`There is no location for vertex attribute '${r.name}' defined.`);continue}const l=o*r.stride;if(r.count<=4)c.vertexAttribPointer(i,r.count,r.type,r.normalized,r.stride,r.offset+l),c.enableVertexAttribArray(i),r.divisor>0&&e.gl.vertexAttribDivisor(i,r.divisor);else if(9===r.count)for(let t=0;t<3;t++)c.vertexAttribPointer(i+t,3,r.type,r.normalized,r.stride,r.offset+12*t+l),c.enableVertexAttribArray(i+t),r.divisor>0&&e.gl.vertexAttribDivisor(i+t,r.divisor);else if(16===r.count)for(let t=0;t<4;t++)c.vertexAttribPointer(i+t,4,r.type,r.normalized,r.stride,r.offset+16*t+l),c.enableVertexAttribArray(i+t),r.divisor>0&&e.gl?.vertexAttribDivisor(i+t,r.divisor);else console.error("Unsupported vertex attribute element count: "+r.count);if((0,s.en)()){const t=a(e),s=(0,n._)(r.type),i=r.offset,o=Math.round(s/i)!==s/i?`. Offset not a multiple of stride. DataType requires ${s} bytes, but descriptor has an offset of ${i}`:"";t&&console.error(`Unable to bind vertex attribute "${r.name}" with baseInstanceOffset ${l}${o}:`,t,r)}}}function c(e,t,r,s){const n=e.gl;e.bindBuffer(r);for(const r of s){const s=t.get(r.name);if(r.count<=4)n.disableVertexAttribArray(s),r.divisor&&r.divisor>0&&e.gl?.vertexAttribDivisor(s,0);else if(9===r.count)for(let t=0;t<3;t++)n.disableVertexAttribArray(s+t),r.divisor&&r.divisor>0&&e.gl?.vertexAttribDivisor(s+t,0);else if(16===r.count)for(let t=0;t<4;t++)n.disableVertexAttribArray(s+t),r.divisor&&r.divisor>0&&e.gl?.vertexAttribDivisor(s+t,0);else console.error("Unsupported vertex attribute element count: "+r.count)}e.unbindBuffer(i.NZ.ARRAY_BUFFER)}function l(e){switch(e){case i.Ab.ALPHA:case i.Ab.LUMINANCE:case i.Ab.RED:case i.Ab.RED_INTEGER:case i.H0.R8:case i.H0.R8I:case i.H0.R8UI:case i.H0.R8_SNORM:case i.yQ.STENCIL_INDEX8:return 1;case i.Ab.LUMINANCE_ALPHA:case i.Ab.RG:case i.Ab.RG_INTEGER:case i.H0.RGBA4:case i.H0.R16F:case i.H0.R16I:case i.H0.R16UI:case i.H0.RG8:case i.H0.RG8I:case i.H0.RG8UI:case i.H0.RG8_SNORM:case i.H0.RGB565:case i.H0.RGB5_A1:case i.yQ.DEPTH_COMPONENT16:return 2;case i.Ab.DEPTH_COMPONENT:case i.Ab.RGB:case i.Ab.RGB_INTEGER:case i.H0.RGB8:case i.H0.RGB8I:case i.H0.RGB8UI:case i.H0.RGB8_SNORM:case i.H0.SRGB8:case i.yQ.DEPTH_COMPONENT24:return 3;case i.Ab.DEPTH_STENCIL:case i.Ab.DEPTH24_STENCIL8:case i.Ab.RGBA:case i.Ab.RGBA_INTEGER:case i.H0.RGBA8:case i.H0.R32F:case i.H0.R11F_G11F_B10F:case i.H0.RG16F:case i.H0.R32I:case i.H0.R32UI:case i.H0.RG16I:case i.H0.RG16UI:case i.H0.RGBA8I:case i.H0.RGBA8UI:case i.H0.RGBA8_SNORM:case i.H0.SRGB8_ALPHA8:case i.H0.RGB9_E5:case i.H0.RGB10_A2UI:case i.H0.RGB10_A2:case i.yQ.DEPTH_STENCIL:case i.yQ.DEPTH_COMPONENT32F:case i.yQ.DEPTH24_STENCIL8:return 4;case i.yQ.DEPTH32F_STENCIL8:return 5;case i.H0.RGB16F:case i.H0.RGB16I:case i.H0.RGB16UI:return 6;case i.H0.RG32F:case i.H0.RG32I:case i.H0.RG32UI:case i.H0.RGBA16F:case i.H0.RGBA16I:case i.H0.RGBA16UI:return 8;case i.H0.RGB32F:case i.H0.RGB32I:case i.H0.RGB32UI:return 12;case i.H0.RGBA32F:case i.H0.RGBA32I:case i.H0.RGBA32UI:return 16;case i.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT:case i.CQ.COMPRESSED_RGBA_S3TC_DXT1_EXT:return.5;case i.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT:case i.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT:return 1;case i.CQ.COMPRESSED_R11_EAC:case i.CQ.COMPRESSED_SIGNED_R11_EAC:case i.CQ.COMPRESSED_RGB8_ETC2:case i.CQ.COMPRESSED_SRGB8_ETC2:case i.CQ.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:case i.CQ.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:return.5;case i.CQ.COMPRESSED_RG11_EAC:case i.CQ.COMPRESSED_SIGNED_RG11_EAC:case i.CQ.COMPRESSED_RGBA8_ETC2_EAC:case i.CQ.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:return 1}return 0}},62298:(e,t,r)=>{r.d(t,{_:()=>i});var s=r(63907);function i(e){switch(e){case s.pe.BYTE:case s.pe.UNSIGNED_BYTE:return 1;case s.pe.SHORT:case s.pe.UNSIGNED_SHORT:case s.pe.HALF_FLOAT:return 2;case s.pe.FLOAT:case s.pe.INT:case s.pe.UNSIGNED_INT:return 4}}},67171:(e,t,r)=>{r.d(t,{R:()=>n,e:()=>a});var s=r(63907),i=r(42293);class n{constructor(e=0,t=e){this.width=e,this.height=t,this.target=s.Ap.TEXTURE_2D,this.pixelFormat=s.Ab.RGBA,this.dataType=s.ld.UNSIGNED_BYTE,this.samplingMode=s.Cj.LINEAR,this.wrapMode=s.pF.REPEAT,this.maxAnisotropy=1,this.flipped=!1,this.hasMipmap=!1,this.isOpaque=!1,this.unpackAlignment=4,this.preMultiplyAlpha=!1,this.shouldCompress=!1,this.depth=1,this.isImmutable=!1}}function a(e){return e.width<=0||e.height<=0?0:Math.round(e.width*e.height*e.depth*(e.hasMipmap?4/3:1)*(null==e.internalFormat?4:(0,i.IB)(e.internalFormat))*(e.target===s.Ap.TEXTURE_CUBE_MAP?6:1))}},94656:(e,t,r)=>{r.d(t,{Xc:()=>l,Y2:()=>h,en:()=>c});var s=r(49186),i=r(44208),n=r(53966);const a=()=>n.A.getLogger("esri.views.webgl.checkWebGLError"),o=!!(0,i.A)("enable-feature:webgl-debug");function c(){return o}function l(){return o}function h(e){if(c()){const t=e.getError();if(t){const r=function(e,t){switch(t){case e.INVALID_ENUM:return"Invalid Enum. An unacceptable value has been specified for an enumerated argument.";case e.INVALID_VALUE:return"Invalid Value. A numeric argument is out of range.";case e.INVALID_OPERATION:return"Invalid Operation. The specified command is not allowed for the current state.";case e.INVALID_FRAMEBUFFER_OPERATION:return"Invalid Framebuffer operation. The currently bound framebuffer is not framebuffer complete when trying to render to or to read from it.";case e.OUT_OF_MEMORY:return"Out of memory. Not enough memory is left to execute the command.";case e.CONTEXT_LOST_WEBGL:return"WebGL context has been lost";default:return"Unknown error"}}(e,t),i=(new Error).stack;a().error(new s.A("webgl-error","WebGL error occurred",{message:r,stack:i}))}}}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3804],{4172:(e,t,r)=>{r.d(t,{g:()=>f});var s=r(49186),i=(r(44208),r(53966)),n=r(97768),a=r(74887),o=r(44794);(r(36708),r(35982)).B;new Set;var c=r(94656),l=r(63907),h=r(36421),u=r(67171);function _(e){(null!=e.width&&e.width<0||null!=e.height&&e.height<0||null!=e.depth&&e.depth<0)&&i.A.getLogger("esri/views/webgl/textureUtils").error("Negative dimension parameters are not allowed!")}function d(e){return null!=e&&"type"in e&&"compressed"===e.type}function m(e){return null!=e&&!d(e)&&!function(e){return null!=e&&"byteLength"in e}(e)}function p(e){return e===l.Ap.TEXTURE_3D||e===l.Ap.TEXTURE_2D_ARRAY}function A(e,t,r,s=1){let i=Math.max(t,r);return e===l.Ap.TEXTURE_3D&&(i=Math.max(i,s)),Math.floor(Math.log2(i))+1}function E(e){if(null!=e.internalFormat)return e.internalFormat===l.Ab.DEPTH_STENCIL?l.Ab.DEPTH24_STENCIL8:e.internalFormat;switch(e.dataType){case l.ld.FLOAT:switch(e.pixelFormat){case l.Ab.RGBA:return l.H0.RGBA32F;case l.Ab.RGB:return l.H0.RGB32F;default:throw new s.A("Unable to derive format")}case l.ld.UNSIGNED_BYTE:switch(e.pixelFormat){case l.Ab.RGBA:return l.H0.RGBA8;case l.Ab.RGB:return l.H0.RGB8}}return e.internalFormat=e.pixelFormat===l.Ab.DEPTH_STENCIL?l.Ab.DEPTH24_STENCIL8:e.pixelFormat}class g extends u.R{constructor(e,t){switch(super(),this.context=e,Object.assign(this,t),this.internalFormat){case l.H0.R16F:case l.H0.R16I:case l.H0.R16UI:case l.H0.R32F:case l.H0.R32I:case l.H0.R32UI:case l.H0.R8_SNORM:case l.H0.R8:case l.H0.R8I:case l.H0.R8UI:this.pixelFormat=l.Ab.RED}}static validate(e,t){return new g(e,t)}}const T=()=>i.A.getLogger("esri/views/webgl/Texture");let f=class e{static{this.TEXTURE_UNIT_FOR_UPDATES=0}constructor(e,t=null,r=null){if(this.type=h.p.Texture,this._glName=null,this._samplingModeDirty=!1,this._wrapModeDirty=!1,this._wasImmutablyAllocated=!1,this._compressionAbortController=(0,o.v)(null),"context"in e)this._descriptor=e,r=t;else{const r=g.validate(e,t);if(!r)throw new s.A("Texture descriptor invalid");this._descriptor=r}this._descriptor.target===l.Ap.TEXTURE_CUBE_MAP?this._setDataCubeMap(r):this.setData(r)}get glName(){return this._glName}get descriptor(){return this._descriptor}get usedMemory(){return(0,u.e)(this._descriptor)}get cachedMemory(){return this.usedMemory}get isDirty(){return this._samplingModeDirty||this._wrapModeDirty}get isCompressing(){return null!==this._compressionAbortController.value}dispose(){this.abortCompression(),this._descriptor.context.gl&&this._glName&&(this._descriptor.context.instanceCounter.decrement(l.vt.Texture,this),this._descriptor.context.unbindTexture(this),this._descriptor.context.gl.deleteTexture(this._glName),this._glName=null)}release(){this.dispose()}resize(e,t){const r=this._descriptor;if(r.width!==e||r.height!==t){if(this._wasImmutablyAllocated)throw new s.A("Immutable textures can't be resized!");r.width=e,r.height=t,this._descriptor.target===l.Ap.TEXTURE_CUBE_MAP?this._setDataCubeMap(null):this.setData(null)}}enableCompression(e){this._descriptor.shouldCompress=e}setData(e){this.abortCompression(),!d(e)&&this._descriptor.internalFormat&&this._descriptor.internalFormat in l.CQ&&(this._descriptor.internalFormat=void 0),this._setData(e)}updateData(t,r,i,n,a,o,c=0){o||T().error("An attempt to use uninitialized data!"),this._glName||T().error("An attempt to update uninitialized texture!");const l=this._descriptor;l.internalFormat=E(l);const{context:h,pixelFormat:u,dataType:_,target:p,isImmutable:A}=l;if(A&&!this._wasImmutablyAllocated)throw new s.A("Cannot update immutable texture before allocation!");const g=h.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES,!0);(r<0||i<0||r+n>l.width||i+a>l.height)&&T().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();const{gl:f}=h;c&&(n&&a||T().warn("Must pass width and height if `UNPACK_SKIP_ROWS` is used"),f.pixelStorei(f.UNPACK_SKIP_ROWS,c)),m(o)?f.texSubImage2D(p,t,r,i,n,a,u,_,o):d(o)?f.compressedTexSubImage2D(p,t,r,i,n,a,l.internalFormat,o.levels[t]):f.texSubImage2D(p,t,r,i,n,a,u,_,o),c&&f.pixelStorei(f.UNPACK_SKIP_ROWS,0),h.bindTexture(g,e.TEXTURE_UNIT_FOR_UPDATES)}updateData3D(t,r,i,n,a,o,c,l){l||T().error("An attempt to use uninitialized data!"),this._glName||T().error("An attempt to update an uninitialized texture!");const h=this._descriptor;h.internalFormat=E(h);const{context:u,pixelFormat:_,dataType:m,isImmutable:A,target:g}=h;if(A&&!this._wasImmutablyAllocated)throw new s.A("Cannot update immutable texture before allocation!");p(g)||T().warn("Attempting to set 3D texture data on a non-3D texture");const f=u.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);u.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),(r<0||i<0||n<0||r+a>h.width||i+o>h.height||n+c>h.depth)&&T().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();const{gl:R}=u;if(d(l))l=l.levels[t],R.compressedTexSubImage3D(g,t,r,i,n,a,o,c,h.internalFormat,l);else{const e=l;R.texSubImage3D(g,t,r,i,n,a,o,c,_,m,e)}u.bindTexture(f,e.TEXTURE_UNIT_FOR_UPDATES)}generateMipmap(){const t=this._descriptor;if(0===t.width||0===t.height)return;if(!t.hasMipmap){if(this._wasImmutablyAllocated)throw new s.A("Cannot add mipmaps to immutable texture after allocation");t.hasMipmap=!0,this._samplingModeDirty=!0,_(t)}t.samplingMode===l.Cj.LINEAR?(this._samplingModeDirty=!0,t.samplingMode=l.Cj.LINEAR_MIPMAP_NEAREST):t.samplingMode===l.Cj.NEAREST&&(this._samplingModeDirty=!0,t.samplingMode=l.Cj.NEAREST_MIPMAP_NEAREST);const r=this._descriptor.context.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);this._descriptor.context.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),this._descriptor.context.gl.generateMipmap(t.target),this._descriptor.context.bindTexture(r,e.TEXTURE_UNIT_FOR_UPDATES)}clearMipmap(){const e=this._descriptor;if(e.hasMipmap){if(this._wasImmutablyAllocated)throw new s.A("Cannot delete mipmaps to immutable texture after allocation");e.hasMipmap=!1,this._samplingModeDirty=!0,_(e)}e.samplingMode===l.Cj.LINEAR_MIPMAP_NEAREST?(this._samplingModeDirty=!0,e.samplingMode=l.Cj.LINEAR):e.samplingMode===l.Cj.NEAREST_MIPMAP_NEAREST&&(this._samplingModeDirty=!0,e.samplingMode=l.Cj.NEAREST)}setSamplingMode(e){e!==this._descriptor.samplingMode&&(this._descriptor.samplingMode=e,this._samplingModeDirty=!0)}setWrapMode(e){e!==this._descriptor.wrapMode&&(this._descriptor.wrapMode=e,_(this._descriptor),this._wrapModeDirty=!0)}applyChanges(){this._samplingModeDirty&&(this._applySamplingMode(),this._samplingModeDirty=!1),this._wrapModeDirty&&(this._applyWrapMode(),this._wrapModeDirty=!1)}abortCompression(){this.isCompressing&&(this._compressionAbortController.value=(0,n.DC)(this._compressionAbortController.value))}_setData(t,r){const i=this._descriptor,n=i.context?.gl;if(!n)return;(0,c.Y2)(n),this._glName||(this._glName=n.createTexture(),i.context.instanceCounter.increment(l.vt.Texture,this)),_(i);const a=i.context.bindTexture(this,e.TEXTURE_UNIT_FOR_UPDATES);i.context.setActiveTexture(e.TEXTURE_UNIT_FOR_UPDATES),this._configurePixelStorage(),(0,c.Y2)(n);const o=r??i.target,h=p(o);if(m(t))this._setDataFromTexImageSource(t,o);else{const{width:e,height:r,depth:a}=i;if(null==e||null==r)throw new s.A("Width and height must be specified!");if(h&&null==a)throw new s.A("Depth must be specified!");if(i.internalFormat=E(i),i.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(o,i.internalFormat,i.hasMipmap,e,r,a),d(t)){if(!(i.internalFormat in l.CQ))throw new s.A("Attempting to use compressed data with an uncompressed format!");this._setDataFromCompressedSource(t,i.internalFormat,o)}else this._texImage(o,0,i.internalFormat,e,r,a,t),(0,c.Y2)(n),i.hasMipmap&&this.generateMipmap()}this._applySamplingMode(),this._applyWrapMode(),this._applyAnisotropicFilteringParameters(),(0,c.Y2)(n),i.context.bindTexture(a,e.TEXTURE_UNIT_FOR_UPDATES)}_setDataCubeMap(e=null){for(let t=l.Ap.TEXTURE_CUBE_MAP_POSITIVE_X;t<=l.Ap.TEXTURE_CUBE_MAP_NEGATIVE_Z;t++)this._setData(e,t)}_configurePixelStorage(){const e=this._descriptor.context.gl,{unpackAlignment:t,flipped:r,preMultiplyAlpha:s}=this._descriptor;e.pixelStorei(e.UNPACK_ALIGNMENT,t),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,r?1:0),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,s?1:0)}_setDataFromTexImageSource(e,t){const{gl:r}=this._descriptor.context,s=this._descriptor;s.internalFormat=E(s);const i=p(t),{width:n,height:a,depth:o}=function(e){let t="width"in e?e.width:e.codedWidth,r="height"in e?e.height:e.codedHeight;return e instanceof HTMLVideoElement&&(t=e.videoWidth,r=e.videoHeight),{width:t,height:r,depth:1}}(e);s.width&&s.height,s.width||(s.width=n),s.height||(s.height=a),i&&s.depth,i&&(s.depth=o),s.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(t,s.internalFormat,s.hasMipmap,n,a,o),this._texImage(t,0,s.internalFormat,n,a,o,e),(0,c.Y2)(r),s.hasMipmap&&(this.generateMipmap(),(0,c.Y2)(r))}_setDataFromCompressedSource(e,t,r){const s=this._descriptor,{width:i,height:n,depth:a}=s,o=e.levels,c=A(r,i,n,a),l=Math.min(c,o.length)-1;this._descriptor.context.gl.texParameteri(s.target,s.context.gl.TEXTURE_MAX_LEVEL,l),this._forEachMipmapLevel(((e,s,i,n)=>{const a=o[Math.min(e,o.length-1)];this._compressedTexImage(r,e,t,s,i,n,a)}),l)}_texStorage(e,t,r,i,n,a){const{gl:o}=this._descriptor.context;if(!(t in l.H0))throw new s.A("Immutable textures must have a sized internal format");if(!this._descriptor.isImmutable)return;const c=r?A(e,i,n,a):1;if(p(e)){if(null==a)throw new s.A("Missing depth dimension for 3D texture upload");o.texStorage3D(e,c,t,i,n,a)}else o.texStorage2D(e,c,t,i,n);this._wasImmutablyAllocated=!0}_texImage(e,t,r,i,n,a,o){const c=this._descriptor.context.gl,l=p(e),{isImmutable:h,pixelFormat:u,dataType:_}=this._descriptor;if(h){if(null!=o){const r=o;if(l){if(null==a)throw new s.A("Missing depth dimension for 3D texture upload");c.texSubImage3D(e,t,0,0,0,i,n,a,u,_,r)}else c.texSubImage2D(e,t,0,0,i,n,u,_,r)}}else{const h=o;if(l){if(null==a)throw new s.A("Missing depth dimension for 3D texture upload");c.texImage3D(e,t,r,i,n,a,0,u,_,h)}else c.texImage2D(e,t,r,i,n,0,u,_,h)}}_compressedTexImage(e,t,r,i,n,a,o){const c=this._descriptor.context.gl,l=p(e);if(this._descriptor.isImmutable){if(null!=o)if(l){if(null==a)throw new s.A("Missing depth dimension for 3D texture upload");c.compressedTexSubImage3D(e,t,0,0,0,i,n,a,r,o)}else c.compressedTexSubImage2D(e,t,0,0,i,n,r,o)}else if(l){if(null==a)throw new s.A("Missing depth dimension for 3D texture upload");c.compressedTexImage3D(e,t,r,i,n,a,0,o)}else c.compressedTexImage2D(e,t,r,i,n,0,o)}async compressOnWorker(e){const t=this._descriptor.context?.gl.getExtension("WEBGL_compressed_texture_etc"),r=this._descriptor.context?.gl.getExtension("WEBGL_compressed_texture_s3tc"),s=null;if(s&&(t||r)){const i=new AbortController;this._compressionAbortController.value=i;const n={data:await createImageBitmap(e),flipped:this.descriptor.flipped,width:e.width,height:e.height,hasMipmap:this._descriptor.hasMipmap,hasETC:!!t,hasS3TC:!!r};s.invoke(n,this._compressionAbortController.value.signal).then((e=>{e&&this.isCompressing&&this.glName&&(this._descriptor.internalFormat=e.internalFormat,this._setData(e.compressedTexture)),i===this._compressionAbortController.value&&(this._compressionAbortController.value=null)})).catch((e=>{(0,a.zf)(e)||i!==this._compressionAbortController.value||(this._compressionAbortController.value=null)}))}}_forEachMipmapLevel(e,t=1/0){let{width:r,height:i,depth:n,hasMipmap:a,target:o}=this._descriptor;const c=o===l.Ap.TEXTURE_3D;if(null==r||null==i||c&&null==n)throw new s.A("Missing texture dimensions for mipmap calculation");for(let s=0;e(s,r,i,n),a&&(1!==r||1!==i||c&&1!==n)&&!(s>=t);++s)r=Math.max(1,r>>1),i=Math.max(1,i>>1),c&&(n=Math.max(1,n>>1))}_applySamplingMode(){const e=this._descriptor,t=e.context?.gl;let r=e.samplingMode,s=e.samplingMode;r===l.Cj.LINEAR_MIPMAP_NEAREST||r===l.Cj.LINEAR_MIPMAP_LINEAR?(r=l.Cj.LINEAR,e.hasMipmap||(s=l.Cj.LINEAR)):r!==l.Cj.NEAREST_MIPMAP_NEAREST&&r!==l.Cj.NEAREST_MIPMAP_LINEAR||(r=l.Cj.NEAREST,e.hasMipmap||(s=l.Cj.NEAREST)),t.texParameteri(e.target,t.TEXTURE_MAG_FILTER,r),t.texParameteri(e.target,t.TEXTURE_MIN_FILTER,s)}_applyWrapMode(){const e=this._descriptor,t=e.context?.gl;"number"==typeof e.wrapMode?(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode)):(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode.s),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode.t))}_applyAnisotropicFilteringParameters(){const e=this._descriptor,t=e.context.capabilities.textureFilterAnisotropic;t&&e.context.gl.texParameterf(e.target,t.TEXTURE_MAX_ANISOTROPY,e.maxAnisotropy??1)}}},14113:(e,t,r)=>{r.d(t,{N5:()=>c});var s=r(49186),i=(r(44208),r(53966)),n=r(69270);const a=()=>i.A.getLogger("esri.views.3d.webgl-engine.core.shaderModules.shaderBuilder");class o{constructor(){this._includedModules=new Map}include(e,t){this._includedModules.has(e)?this._includedModules.get(e):(this._includedModules.set(e,t),e(this.builder,t))}}class c extends o{constructor(){super(...arguments),this.vertex=new _,this.fragment=new _,this.attributes=new d,this.varyings=new m,this.extensions=new p,this.outputs=new A}get fragmentUniforms(){return this.fragment.uniforms.entries}get builder(){return this}generate(e,t=!1){const r=this.extensions.generateSource(e),s=this.attributes.generateSource(e),i=this.varyings.generateSource(e),n="vertex"===e?this.vertex:this.fragment,a=n.uniforms.generateSource(),o=n.code.generateSource(),c=n.main.generateSource(t),l="vertex"===e?T:g,h=n.constants.generateSource(),u=this.outputs.generateSource(e);return`#version 300 es\n${r.join("\n")}\n${l}\n${h.join("\n")}\n${a.join("\n")}\n${s.join("\n")}\n${i.join("\n")}\n${u.join("\n")}\n${o.join("\n")}\n${c.join("\n")}`}generateBind(e){const t=new Map;this.vertex.uniforms.entries.forEach((e=>{const r=e.bind[n.c.Bind];r&&t.set(e.name,r)})),this.fragment.uniforms.entries.forEach((e=>{const r=e.bind[n.c.Bind];r&&t.set(e.name,r)}));const r=Array.from(t.values()),s=r.length;return t=>{for(let i=0;i<s;++i)r[i](e,t)}}generateBindPass(e){const t=new Map;this.vertex.uniforms.entries.forEach((e=>{const r=e.bind[n.c.Pass];r&&t.set(e.name,r)})),this.fragment.uniforms.entries.forEach((e=>{const r=e.bind[n.c.Pass];r&&t.set(e.name,r)}));const r=Array.from(t.values()),s=r.length;return(t,i)=>{for(let n=0;n<s;++n)r[n](e,t,i)}}generateBindDraw(e){const t=new Map;this.vertex.uniforms.entries.forEach((e=>{const r=e.bind[n.c.Draw];r&&t.set(e.name,r)})),this.fragment.uniforms.entries.forEach((e=>{const r=e.bind[n.c.Draw];r&&t.set(e.name,r)}));const r=Array.from(t.values()),s=r.length;return(t,i,n)=>{for(let a=0;a<s;++a)r[a](e,n,t,i)}}}class l{constructor(e){this._stage=e,this._entries=new Map}add(...e){for(const t of e)this._add(t);return this._stage}get(e){return this._entries.get(e)}_add(e){if(null!=e){if(this._entries.has(e.name)&&!this._entries.get(e.name).equals(e))throw new s.A(`Duplicate uniform name ${e.name} for different uniform type`);this._entries.set(e.name,e)}else a().error(`Trying to add null Uniform from ${(new Error).stack}.`)}generateSource(){return Array.from(this._entries.values()).map((e=>null!=e.arraySize?`uniform ${e.type} ${e.name}[${e.arraySize}];`:`uniform ${e.type} ${e.name};`))}get entries(){return Array.from(this._entries.values())}}class h{constructor(e){this._stage=e,this._bodies=new Array}add(e){return this._bodies.push(e),this._stage}generateSource(e){if(this._bodies.length>0)return[`void main() {\n ${this._bodies.join("\n")||""} \n}`];if(e)throw new s.A("Shader does not contain main function body.");return[]}}class u{constructor(e){this._stage=e,this._entries=new Array}add(e){return this._entries.push(e),this._stage}generateSource(){return this._entries}}class _ extends o{constructor(){super(...arguments),this.uniforms=new l(this),this.main=new h(this),this.code=new u(this),this.constants=new E(this)}get builder(){return this}}class d{constructor(){this._entries=new Array}add(e,t){this._entries.push([e,t])}generateSource(e){return"fragment"===e?[]:this._entries.map((e=>`in ${e[1]} ${e[0]};`))}}class m{constructor(){this._entries=new Map}add(e,t,r){this._entries.has(e)?a().warn(`Ignoring duplicate varying ${t} ${e}`):this._entries.set(e,{type:t,invariant:r?.invariant??!1})}generateSource(e){const t=new Array;return this._entries.forEach(((r,s)=>t.push((r.invariant&&"vertex"===e?"invariant ":"")+("vertex"===e?"out":"in")+` ${r.type} ${s};`))),t}}class p{constructor(){this._entries=new Set}add(e){this._entries.add(e)}generateSource(e){const t="vertex"===e?p.ALLOWLIST_VERTEX:p.ALLOWLIST_FRAGMENT;return Array.from(this._entries).filter((e=>t.includes(e))).map((e=>`#extension ${e} : enable`))}static{this.ALLOWLIST_FRAGMENT=["GL_EXT_shader_texture_lod","GL_OES_standard_derivatives"]}static{this.ALLOWLIST_VERTEX=[]}}class A{constructor(){this._entries=new Map}add(e,t,r=0){const s=this._entries.get(r);s?.name!==e||s?.type!==t?this._entries.set(r,{name:e,type:t}):a().warn(`Fragment shader output location ${r} occupied`)}static{this.DEFAULT_TYPE="vec4"}static{this.DEFAULT_NAME="fragColor"}generateSource(e){if("vertex"===e)return[];0===this._entries.size&&this._entries.set(0,{name:A.DEFAULT_NAME,type:A.DEFAULT_TYPE});const t=new Array;return this._entries.forEach(((e,r)=>t.push(`layout(location = ${r}) out ${e.type} ${e.name};`))),t}}class E{constructor(e){this._stage=e,this._entries=new Set}add(e,t,r){let s="ERROR_CONSTRUCTOR_STRING";switch(t){case"float":s=E._numberToFloatStr(r);break;case"int":s=E._numberToIntStr(r);break;case"bool":s=r.toString();break;case"vec2":s=`vec2(${E._numberToFloatStr(r[0])}, ${E._numberToFloatStr(r[1])})`;break;case"vec3":s=`vec3(${E._numberToFloatStr(r[0])}, ${E._numberToFloatStr(r[1])}, ${E._numberToFloatStr(r[2])})`;break;case"vec4":s=`vec4(${E._numberToFloatStr(r[0])}, ${E._numberToFloatStr(r[1])}, ${E._numberToFloatStr(r[2])}, ${E._numberToFloatStr(r[3])})`;break;case"ivec2":s=`ivec2(${E._numberToIntStr(r[0])}, ${E._numberToIntStr(r[1])})`;break;case"ivec3":s=`ivec3(${E._numberToIntStr(r[0])}, ${E._numberToIntStr(r[1])}, ${E._numberToIntStr(r[2])})`;break;case"ivec4":s=`ivec4(${E._numberToIntStr(r[0])}, ${E._numberToIntStr(r[1])}, ${E._numberToIntStr(r[2])}, ${E._numberToIntStr(r[3])})`;break;case"mat2":case"mat3":case"mat4":s=`${t}(${Array.prototype.map.call(r,(e=>E._numberToFloatStr(e))).join(", ")})`}return this._entries.add(`const ${t} ${e} = ${s};`),this._stage}static _numberToIntStr(e){return e.toFixed(0)}static _numberToFloatStr(e){return Number.isInteger(e)?e.toFixed(1):e.toString()}generateSource(){return Array.from(this._entries)}}const g="#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp float;\n precision highp int;\n precision highp sampler2D;\n precision highp sampler2DArray;\n#else\n precision mediump float;\n precision mediump int;\n precision mediump sampler2D;\n precision mediump sampler2DArray;\n#endif",T="precision highp float;\n precision highp sampler2D;\n precision highp sampler2DArray;\n \n invariant gl_Position;\n "},35982:(e,t,r)=>{r.d(t,{B:()=>c});var s=r(4576),i=r(36563),n=r(53966),a=r(74887),o=r(29953);class c{constructor(e,t,r,s,i={}){this._mainMethod=t,this._transferLists=r,this._listeners=[],this._promise=(0,o.ho)(e,{...i,schedule:s}).then((e=>{if(void 0===this._thread){this._thread=e,this._promise=null,i.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()})),this._promise.catch((t=>n.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`)))}on(e,t){const r={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(r),this._connectListener(r),(0,i.hA)((()=>{r.removed=!0,(0,s.TF)(this._listeners,r),this._thread&&null!=r.threadHandle&&r.threadHandle.remove()}))}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null,this._listeners.length=0,this._transferLists={}}invoke(e,t){return this.invokeMethod(this._mainMethod,e,t)}invokeMethod(e,t,r){if(this._thread){const s=this._transferLists[e],i=s?s(t):[];return this._thread.invoke(e,t,{transferList:i,signal:r})}return this._promise?this._promise.then((()=>((0,a.Te)(r),this.invokeMethod(e,t,r)))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then((()=>{})):this._promise?this._promise.then((()=>this.broadcast(e,t))):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then((t=>{e.removed||(e.threadHandle=t)}))}}},36421:(e,t,r)=>{var s;r.d(t,{p:()=>s}),function(e){e[e.Texture=0]="Texture",e[e.RenderBuffer=1]="RenderBuffer"}(s||(s={}))},42293:(e,t,r)=>{r.d(t,{Hi:()=>c,IB:()=>l,yu:()=>o}),r(44208);var s=r(94656),i=r(63907),n=r(62298);function a(e){const t=e.gl;switch(t.getError()){case t.NO_ERROR:return null;case t.INVALID_ENUM:return"An unacceptable value has been specified for an enumerated argument";case t.INVALID_VALUE:return"An unacceptable value has been specified for an argument";case t.INVALID_OPERATION:return"The specified command is not allowed for the current state";case t.INVALID_FRAMEBUFFER_OPERATION:return"The currently bound framebuffer is not framebuffer complete";case t.OUT_OF_MEMORY:return"Not enough memory is left to execute the command";case t.CONTEXT_LOST_WEBGL:return"WebGL context is lost"}return"Unknown error"}function o(e,t,r,i,o=0){const c=e.gl;e.bindBuffer(r);for(const r of i){const i=t.get(r.name);if(null==i){console.warn(`There is no location for vertex attribute '${r.name}' defined.`);continue}const l=o*r.stride;if(r.count<=4)c.vertexAttribPointer(i,r.count,r.type,r.normalized,r.stride,r.offset+l),c.enableVertexAttribArray(i),r.divisor>0&&e.gl.vertexAttribDivisor(i,r.divisor);else if(9===r.count)for(let t=0;t<3;t++)c.vertexAttribPointer(i+t,3,r.type,r.normalized,r.stride,r.offset+12*t+l),c.enableVertexAttribArray(i+t),r.divisor>0&&e.gl.vertexAttribDivisor(i+t,r.divisor);else if(16===r.count)for(let t=0;t<4;t++)c.vertexAttribPointer(i+t,4,r.type,r.normalized,r.stride,r.offset+16*t+l),c.enableVertexAttribArray(i+t),r.divisor>0&&e.gl?.vertexAttribDivisor(i+t,r.divisor);else console.error("Unsupported vertex attribute element count: "+r.count);if((0,s.en)()){const t=a(e),s=(0,n._)(r.type),i=r.offset,o=Math.round(s/i)!==s/i?`. Offset not a multiple of stride. DataType requires ${s} bytes, but descriptor has an offset of ${i}`:"";t&&console.error(`Unable to bind vertex attribute "${r.name}" with baseInstanceOffset ${l}${o}:`,t,r)}}}function c(e,t,r,s){const n=e.gl;e.bindBuffer(r);for(const r of s){const s=t.get(r.name);if(r.count<=4)n.disableVertexAttribArray(s),r.divisor&&r.divisor>0&&e.gl?.vertexAttribDivisor(s,0);else if(9===r.count)for(let t=0;t<3;t++)n.disableVertexAttribArray(s+t),r.divisor&&r.divisor>0&&e.gl?.vertexAttribDivisor(s+t,0);else if(16===r.count)for(let t=0;t<4;t++)n.disableVertexAttribArray(s+t),r.divisor&&r.divisor>0&&e.gl?.vertexAttribDivisor(s+t,0);else console.error("Unsupported vertex attribute element count: "+r.count)}e.unbindBuffer(i.NZ.ARRAY_BUFFER)}function l(e){switch(e){case i.Ab.ALPHA:case i.Ab.LUMINANCE:case i.Ab.RED:case i.Ab.RED_INTEGER:case i.H0.R8:case i.H0.R8I:case i.H0.R8UI:case i.H0.R8_SNORM:case i.yQ.STENCIL_INDEX8:return 1;case i.Ab.LUMINANCE_ALPHA:case i.Ab.RG:case i.Ab.RG_INTEGER:case i.H0.RGBA4:case i.H0.R16F:case i.H0.R16I:case i.H0.R16UI:case i.H0.RG8:case i.H0.RG8I:case i.H0.RG8UI:case i.H0.RG8_SNORM:case i.H0.RGB565:case i.H0.RGB5_A1:case i.yQ.DEPTH_COMPONENT16:return 2;case i.Ab.DEPTH_COMPONENT:case i.Ab.RGB:case i.Ab.RGB_INTEGER:case i.H0.RGB8:case i.H0.RGB8I:case i.H0.RGB8UI:case i.H0.RGB8_SNORM:case i.H0.SRGB8:case i.yQ.DEPTH_COMPONENT24:return 3;case i.Ab.DEPTH_STENCIL:case i.Ab.DEPTH24_STENCIL8:case i.Ab.RGBA:case i.Ab.RGBA_INTEGER:case i.H0.RGBA8:case i.H0.R32F:case i.H0.R11F_G11F_B10F:case i.H0.RG16F:case i.H0.R32I:case i.H0.R32UI:case i.H0.RG16I:case i.H0.RG16UI:case i.H0.RGBA8I:case i.H0.RGBA8UI:case i.H0.RGBA8_SNORM:case i.H0.SRGB8_ALPHA8:case i.H0.RGB9_E5:case i.H0.RGB10_A2UI:case i.H0.RGB10_A2:case i.yQ.DEPTH_STENCIL:case i.yQ.DEPTH_COMPONENT32F:case i.yQ.DEPTH24_STENCIL8:return 4;case i.yQ.DEPTH32F_STENCIL8:return 5;case i.H0.RGB16F:case i.H0.RGB16I:case i.H0.RGB16UI:return 6;case i.H0.RG32F:case i.H0.RG32I:case i.H0.RG32UI:case i.H0.RGBA16F:case i.H0.RGBA16I:case i.H0.RGBA16UI:return 8;case i.H0.RGB32F:case i.H0.RGB32I:case i.H0.RGB32UI:return 12;case i.H0.RGBA32F:case i.H0.RGBA32I:case i.H0.RGBA32UI:return 16;case i.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT:case i.CQ.COMPRESSED_RGBA_S3TC_DXT1_EXT:return.5;case i.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT:case i.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT:return 1;case i.CQ.COMPRESSED_R11_EAC:case i.CQ.COMPRESSED_SIGNED_R11_EAC:case i.CQ.COMPRESSED_RGB8_ETC2:case i.CQ.COMPRESSED_SRGB8_ETC2:case i.CQ.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:case i.CQ.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:return.5;case i.CQ.COMPRESSED_RG11_EAC:case i.CQ.COMPRESSED_SIGNED_RG11_EAC:case i.CQ.COMPRESSED_RGBA8_ETC2_EAC:case i.CQ.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:return 1}return 0}},62298:(e,t,r)=>{r.d(t,{_:()=>i});var s=r(63907);function i(e){switch(e){case s.pe.BYTE:case s.pe.UNSIGNED_BYTE:return 1;case s.pe.SHORT:case s.pe.UNSIGNED_SHORT:case s.pe.HALF_FLOAT:return 2;case s.pe.FLOAT:case s.pe.INT:case s.pe.UNSIGNED_INT:return 4}}},67171:(e,t,r)=>{r.d(t,{R:()=>n,e:()=>a});var s=r(63907),i=r(42293);class n{constructor(e=0,t=e){this.width=e,this.height=t,this.target=s.Ap.TEXTURE_2D,this.pixelFormat=s.Ab.RGBA,this.dataType=s.ld.UNSIGNED_BYTE,this.samplingMode=s.Cj.LINEAR,this.wrapMode=s.pF.REPEAT,this.maxAnisotropy=1,this.flipped=!1,this.hasMipmap=!1,this.isOpaque=!1,this.unpackAlignment=4,this.preMultiplyAlpha=!1,this.shouldCompress=!1,this.depth=1,this.isImmutable=!1}}function a(e){return e.width<=0||e.height<=0?0:Math.round(e.width*e.height*e.depth*(e.hasMipmap?4/3:1)*(null==e.internalFormat?4:(0,i.IB)(e.internalFormat))*(e.target===s.Ap.TEXTURE_CUBE_MAP?6:1))}},94656:(e,t,r)=>{r.d(t,{Xc:()=>l,Y2:()=>h,en:()=>c});var s=r(49186),i=r(44208),n=r(53966);const a=()=>n.A.getLogger("esri.views.webgl.checkWebGLError"),o=!!(0,i.A)("enable-feature:webgl-debug");function c(){return o}function l(){return o}function h(e){if(c()){const t=e.getError();if(t){const r=function(e,t){switch(t){case e.INVALID_ENUM:return"Invalid Enum. An unacceptable value has been specified for an enumerated argument.";case e.INVALID_VALUE:return"Invalid Value. A numeric argument is out of range.";case e.INVALID_OPERATION:return"Invalid Operation. The specified command is not allowed for the current state.";case e.INVALID_FRAMEBUFFER_OPERATION:return"Invalid Framebuffer operation. The currently bound framebuffer is not framebuffer complete when trying to render to or to read from it.";case e.OUT_OF_MEMORY:return"Out of memory. Not enough memory is left to execute the command.";case e.CONTEXT_LOST_WEBGL:return"WebGL context has been lost";default:return"Unknown error"}}(e,t),i=(new Error).stack;a().error(new s.A("webgl-error","WebGL error occurred",{message:r,stack:i}))}}}}}]);
|