@arcgis/core 4.30.0-next.20240213 → 4.30.0-next.20240214

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/TimeExtent.js +1 -1
  2. package/assets/esri/core/workers/RemoteClient.js +1 -1
  3. package/assets/esri/core/workers/chunks/051c00021039f20ad935.js +1 -0
  4. package/assets/esri/core/workers/chunks/08ba549f9c4afc42a21c.js +1 -0
  5. package/assets/esri/core/workers/chunks/{a384f29cb3256401962a.js → 1629a8c2085dce59cd1b.js} +1 -1
  6. package/assets/esri/core/workers/chunks/18512caeeb03b9759ab1.js +1 -0
  7. package/assets/esri/core/workers/chunks/{cc1c958aad790a44048b.js → 1ca28af7c516d8283bb0.js} +1 -1
  8. package/assets/esri/core/workers/chunks/1f8a0fb32b96e50f5909.js +1 -0
  9. package/assets/esri/core/workers/chunks/25f7e92cb4934c4930be.js +1 -0
  10. package/assets/esri/core/workers/chunks/2649166d1a462c7f8338.js +1 -0
  11. package/assets/esri/core/workers/chunks/51e4f771bfe352967c97.js +1 -0
  12. package/assets/esri/core/workers/chunks/5467bacd2771e6b1cdfa.js +1 -0
  13. package/assets/esri/core/workers/chunks/5638d95e600ff271c5b1.js +1 -0
  14. package/assets/esri/core/workers/chunks/58f088b08e12c5435dbc.js +1 -0
  15. package/assets/esri/core/workers/chunks/5aef1e898618f8dda2c9.js +1 -0
  16. package/assets/esri/core/workers/chunks/656ec8a14df0e4b68433.js +1 -0
  17. package/assets/esri/core/workers/chunks/66f21348fb68c83b9dc3.js +1108 -0
  18. package/assets/esri/core/workers/chunks/{eb2d6f1ee63b40ae0736.js → 774b655498289b1b36bb.js} +1 -1
  19. package/assets/esri/core/workers/chunks/9310f1de92d9b82dc803.js +1 -0
  20. package/assets/esri/core/workers/chunks/{f03d62ab7806b68d0b62.js → 9fbf61675e2a5374f754.js} +1 -1
  21. package/assets/esri/core/workers/chunks/a0b017a34cafd08ce945.js +1 -0
  22. package/assets/esri/core/workers/chunks/a28711db61c1df2d7bac.js +1 -0
  23. package/assets/esri/core/workers/chunks/aa9b46bcb75c96731de3.js +1 -0
  24. package/assets/esri/core/workers/chunks/c83da4659646ce3f5b50.js +1 -0
  25. package/assets/esri/core/workers/chunks/{05ebb9cec0e1826b283f.js → cafcc53175f9d4c5de2f.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{1c6914ded7db720f7bf7.js → daf6eab5dd198ca9a67b.js} +1 -1
  27. package/assets/esri/core/workers/chunks/e03edeaf3af46495449e.js +1 -0
  28. package/assets/esri/core/workers/chunks/e0c9f29eedfa71554445.js +1 -0
  29. package/assets/esri/core/workers/chunks/e123017c670f22266768.js +1 -0
  30. package/assets/esri/core/workers/chunks/eba3a6f0a66b51b8ec12.js +1 -0
  31. package/assets/esri/core/workers/chunks/ebb294c82207f3ff9f04.js +1 -0
  32. package/assets/esri/core/workers/chunks/{e4da908079417cc2f495.js → ee0c77889059815a31b2.js} +1 -1
  33. package/assets/esri/core/workers/chunks/f36e55302b45e2936a5b.js +1 -0
  34. package/assets/esri/core/workers/chunks/f85e67d4a18603ccaaed.js +1 -0
  35. package/assets/esri/core/workers/chunks/f90bbebd2dc07a77ce09.js +1 -0
  36. package/chunks/vec32.js +1 -1
  37. package/interfaces.d.ts +131 -66
  38. package/layers/WFSLayer.js +1 -1
  39. package/layers/buildingSublayers/BuildingComponentSublayer.js +1 -1
  40. package/layers/graphics/sources/FeatureLayerSource.js +1 -1
  41. package/layers/mixins/ArcGISImageService.js +1 -1
  42. package/package.json +1 -1
  43. package/portal/Portal.js +1 -1
  44. package/portal/PortalGroup.js +1 -1
  45. package/portal/PortalUser.js +1 -1
  46. package/portal/support/geometryServiceUtils.js +1 -1
  47. package/rest/knowledgeGraph/wasmInterface/wasmToUpdateResponseFactories.js +1 -1
  48. package/rest/networks/support/Association.js +1 -1
  49. package/rest/places.js +1 -1
  50. package/rest/query/operations/pbfJSONFeatureSet.js +1 -1
  51. package/rest/support/ImageSampleParameters.js +1 -1
  52. package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
  53. package/smartMapping/support/adapters/SceneLayerAdapter.js +1 -1
  54. package/support/elevationInfoUtils.js +1 -1
  55. package/support/revision.js +1 -1
  56. package/symbols/cim/cimAnalyzer.js +1 -1
  57. package/symbols/cim/defaultCIMValues.js +1 -1
  58. package/symbols/cim/utils.js +1 -1
  59. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
  60. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
  61. package/views/3d/interactive/measurementTools/directLineMeasurement3D/DirectLineMeasurement3DView.js +1 -1
  62. package/views/3d/layers/BuildingComponentSublayerView3D.js +1 -1
  63. package/views/3d/layers/IntegratedMeshLayerView3D.js +1 -1
  64. package/views/3d/layers/SceneLayerView3D.js +1 -1
  65. package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
  66. package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
  67. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  68. package/views/3d/state/helpers/SceneIntersectionHelper.js +1 -1
  69. package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
  70. package/views/3d/terrain/OverlayRenderer.js +1 -1
  71. package/views/3d/webgl/RenderNode.js +1 -1
  72. package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
  73. package/views/3d/webgl-engine/core/FBOCache.js +1 -1
  74. package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +9 -7
  75. package/views/3d/webgl-engine/core/shaderLibrary/shading/ScreenSpaceConstants.js +5 -0
  76. package/views/3d/webgl-engine/core/shaderLibrary/shading/Water.glsl.js +8 -8
  77. package/views/3d/webgl-engine/effects/debug/RenderNodeVisualizerNode.js +1 -1
  78. package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
  79. package/views/3d/webgl-engine/effects/smaa/SMAA.js +1 -1
  80. package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
  81. package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
  82. package/views/draw/drawSurfaces.js +1 -1
  83. package/views/layers/ImageryTileLayerView.js +1 -1
  84. package/webdoc/support/webdocLoadUtils.js +1 -1
  85. package/webdoc/support/webdocSaveUtils.js +1 -1
  86. package/widgets/Editor.js +1 -1
  87. package/widgets/FeatureForm.js +1 -1
  88. package/widgets/Print/PrintViewModel.js +1 -1
  89. package/widgets/Search/support/locatorUtils.js +1 -1
  90. package/widgets/Sketch/SketchViewModel.js +1 -1
  91. package/assets/esri/core/workers/chunks/00b9e92f8df245a83921.js +0 -1
  92. package/assets/esri/core/workers/chunks/02ee044597c89c86b934.js +0 -1
  93. package/assets/esri/core/workers/chunks/143ccb14c9e915dd1412.js +0 -1
  94. package/assets/esri/core/workers/chunks/24649b410b757599a549.js +0 -1
  95. package/assets/esri/core/workers/chunks/2519b207894132d5ea91.js +0 -1
  96. package/assets/esri/core/workers/chunks/30f9b2a3417cbcfeecca.js +0 -1
  97. package/assets/esri/core/workers/chunks/42ab9c282bb267c3db03.js +0 -1
  98. package/assets/esri/core/workers/chunks/49afeac45250b15b5f36.js +0 -1
  99. package/assets/esri/core/workers/chunks/50bb67f2eeace5d50673.js +0 -1
  100. package/assets/esri/core/workers/chunks/50cdc59426ba859027e2.js +0 -1
  101. package/assets/esri/core/workers/chunks/58c5861d060c808813a1.js +0 -1
  102. package/assets/esri/core/workers/chunks/5dbb3ef6fdd25ac632ad.js +0 -1
  103. package/assets/esri/core/workers/chunks/61c4bb58ef9f2d99c75e.js +0 -1
  104. package/assets/esri/core/workers/chunks/6e50220f8e2d392e2855.js +0 -1
  105. package/assets/esri/core/workers/chunks/6fd8047741a0df006ddd.js +0 -1
  106. package/assets/esri/core/workers/chunks/7709248f59520aee6f51.js +0 -1
  107. package/assets/esri/core/workers/chunks/8852a64918caf80fc414.js +0 -1
  108. package/assets/esri/core/workers/chunks/94dfb80ab23dda92918b.js +0 -1
  109. package/assets/esri/core/workers/chunks/9ebbc75ba5c623a322aa.js +0 -1
  110. package/assets/esri/core/workers/chunks/a74c59cf5d1c4e63a4e1.js +0 -1
  111. package/assets/esri/core/workers/chunks/be562536212360943388.js +0 -1
  112. package/assets/esri/core/workers/chunks/d06d36815c2121484a13.js +0 -1
  113. package/assets/esri/core/workers/chunks/d5f06a7b0ea7951c8dd0.js +0 -1
  114. package/assets/esri/core/workers/chunks/de6d54df7ae32694fd70.js +0 -1
  115. package/assets/esri/core/workers/chunks/f13c4b9692dad5802a32.js +0 -1106
  116. package/assets/esri/core/workers/chunks/f1e8f7d1a98b9e207b1b.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1964],{24832:(e,t,r)=>{r.d(t,{O:()=>a});var o=r(6220),n=(r(2600),r(20744)),i=r(66360),s=r(28176);function a(e){if(!o.default.assetsPath)throw i.c.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.c("assets:path-not-set","config.assetsPath is not set");return(0,s.kn)(o.default.assetsPath,e)}},40800:(e,t,r)=>{r.d(t,{P:()=>l,a:()=>c,g:()=>u,h:()=>h,i:()=>a,j:()=>T,l:()=>f,p:()=>R});var o=r(24832),n=r(9456);let i,s=null;function a(){return!!s}function f(){return i||(i=r.e(6908).then(r.bind(r,96908)).then((e=>e.p)).then((({default:e})=>e({locateFile:e=>(0,o.O)(`esri/geometry/support/${e}`)}))).then((e=>{y(e)})),i)}var u,c,l,_;!function(e){function t(e,t,r){s.ensureCache.prepare();const o=A(r),n=r===o,i=s.ensureFloat64(o),a=s._pe_geog_to_proj(s.getPointer(e),t,i);return a&&C(r,t,i,n),a}function r(e,t,r){return o(e,t,r,0)}function o(e,t,r,o){s.ensureCache.prepare();const n=A(r),i=r===n,a=s.ensureFloat64(n),f=s._pe_proj_to_geog_center(s.getPointer(e),t,a,o);return f&&C(r,t,a,i),f}e.geogToProj=t,e.projGeog=function(e,o,n,i){switch(i){case c.PE_TRANSFORM_P_TO_G:return r(e,o,n);case c.PE_TRANSFORM_G_TO_P:return t(e,o,n)}return 0},e.projToGeog=r,e.projToGeogCenter=o}(u||(u={})),(_=c||(c={})).init=function(){_.PE_BUFFER_MAX=s.PeDefs.prototype.PE_BUFFER_MAX,_.PE_NAME_MAX=s.PeDefs.prototype.PE_NAME_MAX,_.PE_MGRS_MAX=s.PeDefs.prototype.PE_MGRS_MAX,_.PE_USNG_MAX=s.PeDefs.prototype.PE_USNG_MAX,_.PE_DD_MAX=s.PeDefs.prototype.PE_DD_MAX,_.PE_DDM_MAX=s.PeDefs.prototype.PE_DDM_MAX,_.PE_DMS_MAX=s.PeDefs.prototype.PE_DMS_MAX,_.PE_UTM_MAX=s.PeDefs.prototype.PE_UTM_MAX,_.PE_PARM_MAX=s.PeDefs.prototype.PE_PARM_MAX,_.PE_TYPE_NONE=s.PeDefs.prototype.PE_TYPE_NONE,_.PE_TYPE_GEOGCS=s.PeDefs.prototype.PE_TYPE_GEOGCS,_.PE_TYPE_PROJCS=s.PeDefs.prototype.PE_TYPE_PROJCS,_.PE_TYPE_GEOGTRAN=s.PeDefs.prototype.PE_TYPE_GEOGTRAN,_.PE_TYPE_COORDSYS=s.PeDefs.prototype.PE_TYPE_COORDSYS,_.PE_TYPE_UNIT=s.PeDefs.prototype.PE_TYPE_UNIT,_.PE_TYPE_LINUNIT=s.PeDefs.prototype.PE_TYPE_LINUNIT,_.PE_STR_OPTS_NONE=s.PeDefs.prototype.PE_STR_OPTS_NONE,_.PE_STR_AUTH_NONE=s.PeDefs.prototype.PE_STR_AUTH_NONE,_.PE_STR_AUTH_TOP=s.PeDefs.prototype.PE_STR_AUTH_TOP,_.PE_STR_NAME_CANON=s.PeDefs.prototype.PE_STR_NAME_CANON,_.PE_STR_FMT_WKT=s.PeDefs.prototype.PE_STR_FMT_WKT,_.PE_STR_FMT_WKT2=s.PeDefs.prototype.PE_STR_FMT_WKT2,_.PE_PARM_X0=s.PeDefs.prototype.PE_PARM_X0,_.PE_PARM_ND=s.PeDefs.prototype.PE_PARM_ND,_.PE_TRANSFORM_1_TO_2=s.PeDefs.prototype.PE_TRANSFORM_1_TO_2,_.PE_TRANSFORM_2_TO_1=s.PeDefs.prototype.PE_TRANSFORM_2_TO_1,_.PE_TRANSFORM_P_TO_G=s.PeDefs.prototype.PE_TRANSFORM_P_TO_G,_.PE_TRANSFORM_G_TO_P=s.PeDefs.prototype.PE_TRANSFORM_G_TO_P,_.PE_HORIZON_RECT=s.PeDefs.prototype.PE_HORIZON_RECT,_.PE_HORIZON_POLY=s.PeDefs.prototype.PE_HORIZON_POLY,_.PE_HORIZON_LINE=s.PeDefs.prototype.PE_HORIZON_LINE,_.PE_HORIZON_DELTA=s.PeDefs.prototype.PE_HORIZON_DELTA},function(e){const t={},r={},o=e=>{if(e){const t=e.getType();switch(t){case c.PE_TYPE_GEOGCS:e=s.castObject(e,s.PeGeogcs);break;case c.PE_TYPE_PROJCS:e=s.castObject(e,s.PeProjcs);break;case c.PE_TYPE_GEOGTRAN:e=s.castObject(e,s.PeGeogtran);break;default:t&c.PE_TYPE_UNIT&&(e=s.castObject(e,s.PeUnit))}}return e};function n(e,r){let n=null,i=t[e];if(i||(i={},t[e]=i),i.hasOwnProperty(String(r)))n=i[r];else{const t=s.PeFactory.prototype.factoryByType(e,r);s.compare(t,s.NULL)||(n=t,i[r]=n)}return n=o(n),n}e.initialize=function(){s.PeFactory.prototype.initialize(null)},e.coordsys=function(e){return n(c.PE_TYPE_COORDSYS,e)},e.factoryByType=n,e.fromString=function(e,t){let n=null,i=r[e];if(i||(i={},r[e]=i),i.hasOwnProperty(t))n=i[t];else{const r=s.PeFactory.prototype.fromString(e,t);s.compare(r,s.NULL)||(n=r,i[t]=n)}return n=o(n),n},e.geogcs=function(e){return n(c.PE_TYPE_GEOGCS,e)},e.geogtran=function(e){return n(c.PE_TYPE_GEOGTRAN,e)},e.getCode=function(e){return s.PeFactory.prototype.getCode(e)},e.projcs=function(e){return n(c.PE_TYPE_PROJCS,e)},e.unit=function(e){return n(c.PE_TYPE_UNIT,e)}}(l||(l={}));let d=null;var p,P,h,E,g,m,S,T,M;function y(e){function t(e,t,r){e[t]=r(e[t])}s=e,c.init(),p.init(),g.init(),S.init(),T.init(),d=class extends s.PeGCSExtent{destroy(){s.destroy(this)}};const r=[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(c.PE_NAME_MAX))}));for(const e of[s.PeGeogtran,s.PeProjcs])t(e.prototype,"getParameters",(e=>function(){const t=new Array(c.PE_PARM_MAX);let r=e.call(this);for(let e=0;e<t.length;e++){const o=s.getValue(r,"*");t[e]=o?s.wrapPointer(o,s.PeParameter):null,r+=Int32Array.BYTES_PER_ELEMENT}return t}));t(s.PeHorizon.prototype,"getCoord",(e=>function(){const t=this.getSize();if(!t)return null;const r=[];return C(r,t,e.call(this)),r})),t(s.PeGTlistExtendedEntry.prototype,"getEntries",(e=>{const t=s._pe_getPeGTlistExtendedGTsSize();return function(){let r=null;const o=e.call(this);if(!s.compare(o,s.NULL)){r=[o];const e=this.getSteps();if(e>1){const n=s.getPointer(o);for(let o=1;o<e;o++)r.push(s.wrapPointer(n+t*o,s.PeGTlistExtendedGTs))}}return r}}));const o=s._pe_getPeHorizonSize(),n=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 n=e.call(this);if(!s.compare(n,s.NULL)){r=[n];const e=n.getNump();if(e>1){const t=s.getPointer(n);for(let n=1;n<e;n++)r.push(s.wrapPointer(t+o*n,s.PeHorizon))}}return t.set(e,r),r};t(s.PeProjcs.prototype,"horizonGcsGenerate",n),t(s.PeProjcs.prototype,"horizonPcsGenerate",n),s.PeObject.prototype.toString=function(e=c.PE_STR_OPTS_NONE){s.ensureCache.prepare();const t=s.getPointer(this),r=s.ensureInt8(new Array(c.PE_BUFFER_MAX));return s.UTF8ToString(s._pe_object_to_string_ext(t,e,r))}}function O(e){if(!e)return;const t=s.getClass(e);if(!t)return;const r=s.getCache(t);if(!r)return;const o=s.getPointer(e);o&&delete r[o]}function w(e,t){const r=[],o=new Array(t);for(let t=0;t<e;t++)r.push(s.ensureInt8(o));return r}function A(e){let t;return Array.isArray(e[0])?(t=[],e.forEach((e=>{t.push(e[0],e[1])}))):t=e,t}function C(e,t,r,o=!1){if(o)for(let o=0;o<2*t;o++)e[o]=s.getValue(r+o*Float64Array.BYTES_PER_ELEMENT,"double");else{const o=0===e.length;for(let n=0;n<t;n++)o&&(e[n]=new Array(2)),e[n][0]=s.getValue(r,"double"),e[n][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,o,n,i,a){let f=null;const u=new s.PeInteger(a);try{const c=s.PeGTlistExtended.prototype.getGTlist(e,r,o,n,i,u);if((a=u.val)&&(f=[c],a>1)){const e=s.getPointer(c);for(let r=1;r<a;r++)f.push(s.wrapPointer(e+t*r,s.PeGTlistExtendedEntry))}}finally{s.destroy(u)}return f}}(p||(p={})),function(e){e.destroy=function(e){if(e?.length){for(const t of e)O(t),t.getEntries().forEach((e=>{O(e);const t=e.getGeogtran();O(t),t.getParameters().forEach(O),[t.getGeogcs1(),t.getGeogcs2()].forEach((e=>{O(e);const t=e.getDatum();O(t),O(t.getSpheroid()),O(e.getPrimem()),O(e.getUnit())}))}));s.PeGTlistExtendedEntry.prototype.Delete(e[0])}}}(P||(P={})),function(e){e.geogToGeog=function(e,t,r,o,n){s.ensureCache.prepare();const i=A(r),a=r===i,f=s.ensureFloat64(i);let u=0;o&&(u=s.ensureFloat64(o));const c=s._pe_geog_to_geog(s.getPointer(e),t,f,u,n);return c&&C(r,t,f,a),c}}(h||(h={})),function(e){const t=(e,t,r,o,n,i)=>{let a,f;switch(s.ensureCache.prepare(),e){case"dd":a=s._pe_geog_to_dd,f=c.PE_DD_MAX;break;case"ddm":a=s._pe_geog_to_ddm,f=c.PE_DDM_MAX;break;case"dms":a=s._pe_geog_to_dms,f=c.PE_DMS_MAX}let u=0;t&&(u=s.getPointer(t));const l=A(o),_=s.ensureFloat64(l),d=w(r,f),p=a(u,r,_,n,s.ensureInt32(d));if(p)for(let e=0;e<r;e++)i[e]=s.UTF8ToString(d[e]);return p},r=(e,t,r,o,n)=>{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=o.map((e=>s.ensureString(e))),u=s.ensureInt32(f),c=s.ensureFloat64(new Array(2*r)),l=i(a,r,u,c);return l&&C(n,r,c),l};e.geogToDms=function(e,r,o,n,i){return t("dms",e,r,o,n,i)},e.dmsToGeog=function(e,t,o,n){return r("dms",e,t,o,n)},e.geogToDdm=function(e,r,o,n,i){return t("ddm",e,r,o,n,i)},e.ddmToGeog=function(e,t,o,n){return r("ddm",e,t,o,n)},e.geogToDd=function(e,r,o,n,i){return t("dd",e,r,o,n,i)},e.ddToGeog=function(e,t,o,n){return r("dd",e,t,o,n)}}(E||(E={})),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,o,n,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=A(r),l=s.ensureFloat64(u),_=w(t,c.PE_MGRS_MAX),d=s.ensureInt32(_),p=s._pe_geog_to_mgrs_extended(f,t,l,o,n,i,d);if(p)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(_[e]);return p},e.mgrsToGeogExtended=function(e,t,r,o,n){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)),c=s._pe_mgrs_to_geog_extended(i,t,f,o,u);return c&&C(n,t,u),c}}(g||(g={})),function(e){e.geogToUsng=function(e,t,r,o,n,i,a){s.ensureCache.prepare();let f=0;e&&(f=s.getPointer(e));const u=A(r),l=s.ensureFloat64(u),_=w(t,c.PE_MGRS_MAX),d=s.ensureInt32(_),p=s._pe_geog_to_usng(f,t,l,o,n,i,d);if(p)for(let e=0;e<t;e++)a[e]=s.UTF8ToString(_[e]);return p},e.usngToGeog=function(e,t,r,o){s.ensureCache.prepare();let n=0;e&&(n=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(n,t,a,f);return u&&C(o,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,o,n){s.ensureCache.prepare();let i=0;e&&(i=s.getPointer(e));const a=A(r),f=s.ensureFloat64(a),u=w(t,c.PE_UTM_MAX),l=s.ensureInt32(u),_=s._pe_geog_to_utm(i,t,f,o,l);if(_)for(let e=0;e<t;e++)n[e]=s.UTF8ToString(u[e]);return _},e.utmToGeog=function(e,t,r,o,n){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)),c=s._pe_utm_to_geog(i,t,f,o,u);return c&&C(n,t,u),c}}(S||(S={})),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,o=e.PE_PCSINFO_OPTION_DOMAIN){let n=null,i=null;return t.has(r)&&(i=t.get(r),i[o]&&(n=i[o])),n||(n=s.PePCSInfo.prototype.generate(r,o),i||(i=[],t.set(r,i)),i[o]=n),n}}(T||(T={})),function(e){e.versionString=function(){return s.PeVersion.prototype.version_string()}}(M||(M={}));const R=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return u},get PeDefs(){return c},get PeFactory(){return l},get PeGCSExtent(){return d},get PeGTTransformations(){return h},get PeGTlistExtended(){return p},get PeGTlistExtendedEntry(){return P},get PeNotationDms(){return E},get PeNotationMgrs(){return g},get PeNotationUsng(){return m},get PeNotationUtm(){return S},get PePCSInfo(){return T},get PeVersion(){return M},_init:y,get _pe(){return s},isLoaded:a,isSupported:function(){return!!(0,n.c)("esri-wasm")},load:f},Symbol.toStringTag,{value:"Module"}))},98472:(e,t,r)=>{r.d(t,{A:()=>c,B:()=>P,C:()=>v,D:()=>k,G:()=>l,a:()=>m,b:()=>y,c:()=>s,e:()=>w,f:()=>u,g:()=>f,h:()=>G,i:()=>h,j:()=>M,k:()=>O,l:()=>i,m:()=>I,n:()=>T,o:()=>S,p:()=>g,q:()=>E,r:()=>C,s:()=>a,t:()=>A,u:()=>_,v:()=>q,w:()=>x,x:()=>p,y:()=>U,z:()=>d});var o=r(62484),n=r(47364);function i(e){const t=e[0],r=e[1],o=e[2];return Math.sqrt(t*t+r*r+o*o)}function s(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(e,t,r,o){return e[0]=t,e[1]=r,e[2]=o,e}function f(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function u(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function c(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function l(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function _(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function d(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function p(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function P(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function h(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function E(e,t,r,o){return e[0]=t[0]+r[0]*o,e[1]=t[1]+r[1]*o,e[2]=t[2]+r[2]*o,e}function g(e,t){const r=t[0]-e[0],o=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(r*r+o*o+n*n)}function m(e,t){const r=t[0]-e[0],o=t[1]-e[1],n=t[2]-e[2];return r*r+o*o+n*n}function S(e){const t=e[0],r=e[1],o=e[2];return t*t+r*r+o*o}function T(e,t){const r=t[0],o=t[1],n=t[2];let i=r*r+o*o+n*n;return i>0&&(i=1/Math.sqrt(i),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i),e}function M(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function y(e,t,r){const o=t[0],n=t[1],i=t[2],s=r[0],a=r[1],f=r[2];return e[0]=n*f-i*a,e[1]=i*s-o*f,e[2]=o*a-n*s,e}function O(e,t,r,o){const n=t[0],i=t[1],s=t[2];return e[0]=n+o*(r[0]-n),e[1]=i+o*(r[1]-i),e[2]=s+o*(r[2]-s),e}function w(e,t,r){const o=t[0],n=t[1],i=t[2];return e[0]=r[0]*o+r[4]*n+r[8]*i+r[12],e[1]=r[1]*o+r[5]*n+r[9]*i+r[13],e[2]=r[2]*o+r[6]*n+r[10]*i+r[14],e}function A(e,t,r){const o=t[0],n=t[1],i=t[2];return e[0]=o*r[0]+n*r[3]+i*r[6],e[1]=o*r[1]+n*r[4]+i*r[7],e[2]=o*r[2]+n*r[5]+i*r[8],e}function C(e,t,r){const o=r[0],n=r[1],i=r[2],s=r[3],a=t[0],f=t[1],u=t[2],c=n*u-i*f,l=i*a-o*u,_=o*f-n*a,d=n*_-i*l,p=i*c-o*_,P=o*l-n*c,h=2*s;return e[0]=a+c*h+2*d,e[1]=f+l*h+2*p,e[2]=u+_*h+2*P,e}const R=(0,o.Su)(),N=(0,o.Su)();function G(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function k(e,t,r){const o=r[0]-t[0],n=r[1]-t[1],i=r[2]-t[2];let s=o*o+n*n+i*i;return s>0?(s=1/Math.sqrt(s),e[0]=o*s,e[1]=n*s,e[2]=i*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}const U=u,b=c,D=l,I=g,q=m,v=i,x=S;Object.freeze(Object.defineProperty({__proto__:null,abs:_,add:f,angle:function(e,t){T(R,e),T(N,t);const r=M(R,N);return r>1?0:r<-1?Math.PI:Math.acos(r)},bezier:function(e,t,r,o,n,i){const s=1-i,a=s*s,f=i*i,u=a*s,c=3*i*a,l=3*f*s,_=f*i;return e[0]=t[0]*u+r[0]*c+o[0]*l+n[0]*_,e[1]=t[1]*u+r[1]*c+o[1]*l+n[1]*_,e[2]=t[2]*u+r[2]*c+o[2]*l+n[2]*_,e},ceil:function(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e},copy:s,cross:y,direction:k,dist:I,distance:g,div:D,divide:l,dot:M,equals:function(e,t){if(e===t)return!0;const r=e[0],o=e[1],i=e[2],s=t[0],a=t[1],f=t[2],u=(0,n.Au)();return Math.abs(r-s)<=u*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-a)<=u*Math.max(1,Math.abs(o),Math.abs(a))&&Math.abs(i-f)<=u*Math.max(1,Math.abs(i),Math.abs(f))},exactEquals:G,floor:function(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e},hermite:function(e,t,r,o,n,i){const s=i*i,a=s*(2*i-3)+1,f=s*(i-2)+i,u=s*(i-1),c=s*(3-2*i);return e[0]=t[0]*a+r[0]*f+o[0]*u+n[0]*c,e[1]=t[1]*a+r[1]*f+o[1]*u+n[1]*c,e[2]=t[2]*a+r[2]*f+o[2]*u+n[2]*c,e},inverse:function(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e},len:v,length:i,lerp:O,max:P,min:p,mul:b,multiply:c,negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e},normalize:T,random:function(e,t){t=t||1;const r=n.QR,o=2*r()*Math.PI,i=2*r()-1,s=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(o)*s,e[1]=Math.sin(o)*s,e[2]=i*t,e},rotateX:function(e,t,r,o){const n=[],i=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],i[0]=n[0],i[1]=n[1]*Math.cos(o)-n[2]*Math.sin(o),i[2]=n[1]*Math.sin(o)+n[2]*Math.cos(o),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateY:function(e,t,r,o){const n=[],i=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],i[0]=n[2]*Math.sin(o)+n[0]*Math.cos(o),i[1]=n[1],i[2]=n[2]*Math.cos(o)-n[0]*Math.sin(o),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},rotateZ:function(e,t,r,o){const n=[],i=[];return n[0]=t[0]-r[0],n[1]=t[1]-r[1],n[2]=t[2]-r[2],i[0]=n[0]*Math.cos(o)-n[1]*Math.sin(o),i[1]=n[0]*Math.sin(o)+n[1]*Math.cos(o),i[2]=n[2],e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e},round:function(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e},scale:h,scaleAndAdd:E,set:a,sign:d,sqrDist:q,sqrLen:x,squaredDistance:m,squaredLength:S,str:function(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"},sub:U,subtract:u,transformMat3:A,transformMat4:w,transformQuat:C},Symbol.toStringTag,{value:"Module"}))},18996:(e,t,r)=>{r.d(t,{G:()=>n});var o=r(1580);function n(e,t,r){let n,i;return void 0===t?(i=e,n=[void 0]):"string"!=typeof t?(i=e,n=[void 0],r=t):(i=t,n=Array.isArray(e)?e:[e]),(e,t)=>{const s=e.constructor.prototype;for(const a of n){const n=(0,o.aq)(e,a,i);n.write&&"object"==typeof n.write||(n.write={}),r&&(n.write.target=r),n.write.writer=s[t]}}}},14628:(e,t,r)=>{r.d(t,{O:()=>n,w:()=>i});var o=r(58820);class n{constructor(e,t={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=t,this.apiValues=[],this.jsonValues=[],this._apiToJSON=this._invertMap(e),this.apiValues=this._getKeysSorted(this._apiToJSON),this.jsonValues=this._getKeysSorted(this._jsonToAPI),this.read=e=>this.fromJSON(e),this.write=(e,t,r)=>{const n=this.toJSON(e);void 0!==n&&(0,o.qQ)(r,n,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?void 0:e}fromJSON(e){return null!=e&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}_invertMap(e){const t={};for(const r in e)t[e[r]]=r;return t}_getKeysSorted(e){const t=[];for(const r in e)t.push(r);return t.sort(),t}}function i(){return function(e,t){return new n(e,{ignoreUnknown:!0,...t})}}},62484:(e,t,r)=>{function o(){return[0,0,0]}function n(e){return[e[0],e[1],e[2]]}function i(e,t,r){return[e,t,r]}function s(e,t=[0,0,0]){const r=Math.min(3,e.length);for(let o=0;o<r;++o)t[o]=e[o];return t}function a(){return i(1,1,1)}function f(){return i(1,0,0)}function u(){return i(0,1,0)}function c(){return i(0,0,1)}r.d(t,{IR:()=>p,Qw:()=>_,Su:()=>o,UV:()=>d,WK:()=>i,cX:()=>l,ct:()=>n,eu:()=>s,wx:()=>P});const l=[0,0,0],_=a(),d=f(),p=u(),P=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:_,UNIT_X:d,UNIT_Y:p,UNIT_Z:P,ZEROS:l,clone:n,create:o,createView:function(e,t){return new Float64Array(e,t,3)},fromArray:s,fromValues:i,ones:a,unitX:f,unitY:u,unitZ:c,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"}))},47364:(e,t,r)=>{r.d(t,{Af:()=>f,Au:()=>n,QR:()=>i,Yf:()=>u});let o=1e-6;function n(){return o}const i=Math.random,s=Math.PI/180,a=180/Math.PI;function f(e){return e*s}function u(e){return e*a}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:i,equals:function(e,t){return Math.abs(e-t)<=o*Math.max(1,Math.abs(e),Math.abs(t))},getEpsilon:n,setEpsilon:function(e){o=e},toDegree:u,toRadian:f},Symbol.toStringTag,{value:"Module"}))},53648:(e,t,r)=>{r.d(t,{Cq:()=>a,EF:()=>u,Iv:()=>g,SE:()=>S,UB:()=>c,Uj:()=>l,aU:()=>f,gJ:()=>h,gP:()=>d,ig:()=>m,qk:()=>s,sj:()=>_,w7:()=>i});var o=r(98472);const n=new Float32Array(1);function i(e){--e;for(let t=1;t<32;t<<=1)e|=e>>t;return e+1}function s(e,t,r){return Math.min(Math.max(e,t),r)}function a(e,t,r){return e+(t-e)*r}function f(e,t,r,o,n){return a(o,n,(e-t)/(r-t))}function u(e){return e*Math.PI/180}function c(e){return 180*e/Math.PI}function l(e){return Math.acos(s(e,-1,1))}function _(e){return Math.asin(s(e,-1,1))}function d(e,t,r=1e-6){return e===t||!(!Number.isFinite(e)||!Number.isFinite(t))&&(e>t?e-t:t-e)<=r}const p=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));const P=BigInt("1000000");function h(e){return E(Math.max(-S,Math.min(e,S)))}function E(e){return n[0]=e,n[0]}function g(e,t){const r=(0,o.l)(e),n=_(e[2]/r),i=Math.atan2(e[1]/r,e[0]/r);return(0,o.s)(t,r,n,i),t}function m(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],o=e[6]*e[6]+e[7]*e[7]+e[8]*e[8];return!(d(t,1)&&d(r,1)&&d(o,1))}!function(e){const t=function(e){return p.setFloat64(0,e),p.getBigInt64(0)}(e=Math.abs(e)),r=function(e){return p.setBigInt64(0,e),p.getFloat64(0)}(t<=P?P:t-P);Math.abs(e-r)}(1);const S=E(34028234663852886e22)},24296:(e,t,r)=>{r.d(t,{Co:()=>f,M9:()=>M,PE:()=>G,_2:()=>w,aq:()=>q,ck:()=>T,eg:()=>C,gl:()=>O,gz:()=>I,iy:()=>D,k8:()=>A,oG:()=>y}),r(9456);var o=r(14628),n=r(22080),i=r(67932),s=r(60544),a=r(13364);const f=39.37,u=i.ug.radius*Math.PI/200,c=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,l=a.c,_=/UNIT\[([^\]]+)]/i,d=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),p=(0,o.w)()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),P=e=>e*e,h=e=>e*e*e,E={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:P(.001)},"square-centimeters":{inBaseUnits:P(.01)},"square-decimeters":{inBaseUnits:P(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:P(1e3)},"square-inches":{inBaseUnits:P(.0254)},"square-feet":{inBaseUnits:P(.3048)},"square-yards":{inBaseUnits:P(.9144)},"square-miles":{inBaseUnits:P(1609.344)},"square-us-feet":{inBaseUnits:P(1200/3937)},acres:{inBaseUnits:.0015625*P(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*h(.001)},"cubic-centimeters":{inBaseUnits:1e3*h(.01)},"cubic-decimeters":{inBaseUnits:1e3*h(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*h(1e3)},"cubic-inches":{inBaseUnits:1e3*h(.0254)},"cubic-feet":{inBaseUnits:1e3*h(.3048)},"cubic-yards":{inBaseUnits:1e3*h(.9144)},"cubic-miles":{inBaseUnits:1e3*h(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},g=(()=>{const e={};for(const t in E)for(const r in E[t].units)e[r]=t;return e})();function m(e){const t=g[e];if(!t)throw new Error("unknown type");return t}function S(e,t=null){return t=t||m(e),E[t].baseUnit===e}function T(e,t,r){if(t===r)return e;const o=m(t);if(o!==m(r))throw new Error("incompatible units");const n=S(t,o)?e:function(e,t,r){return e*E[r].units[t].inBaseUnits}(e,t,o);return S(r,o)?n:function(e,t,r){return e/E[r].units[t].inBaseUnits}(n,r,o)}function M(e,t,r){return T(e,t,"meters")/(r*Math.PI/180)}function y(e){return p.fromJSON(e.toLowerCase())||null}function O(e){if(null!=e&&!(0,s.ag)(e))return 1;const t=A(e);return t>1e5?1:t}function w(e){return A(e)>=(0,n.e0)(e).metersPerDegree?"meters":G(e)}function A(e,t=i.ug.metersPerDegree){return function(e,t=!1){const r=e?.wkid??null,o=e?.wkt2??e?.wkt??null;let n=null;if(r){if((0,s.cJ)(r))return i.Eb.metersPerDegree;if((0,s.C_)(r))return i.qv.metersPerDegree;n=l.values[l[r]],!n&&t&&d.has(r)&&(n=u)}else o&&(U(o)?n=R(c.exec(o),n):k(o)&&(n=R(_.exec(o),n)));return n}(e,!0)??t}function C(e){return(0,s.Eb)(e)?1:A(e)}function R(e,t){return e?.[1]?N(e[1]):t}function N(e){return parseFloat(e.split(",")[1])}function G(e){const t=e?.wkid??null,r=e?.wkt2??e?.wkt??null;let o=null;if(t)o=l.units[l[t]];else if(r){const e=U(r)?c:k(r)?_:null;if(e){const t=e.exec(r);t?.[1]&&(o=function(e){const t=/[\\"']{1}([^\\"']+)/.exec(e);let r=t?.[1];if(!r||!l.units.includes(r)){const t=N(e);r=null;const o=l.values;for(let e=0;e<o.length;++e)if(Math.abs(t-o[e])<b){r=l.units[e];break}}return r}(t[1]))}}return null!=o?y(o):null}function k(e){return/^GEOCCS/i.test(e)}function U(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}new Map([["meters","square-meters"],["feet","square-feet"],["us-feet","square-us-feet"]]);const b=1e-7,D=(0,o.w)()({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"}),I=(0,o.w)()({esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"}),q=(0,o.w)()({esriDUDecimalDegrees:"degrees",esriDURadians:"radians"})},56156:(e,t,r)=>{r.d(t,{c:()=>p});var o,n=r(41948),i=r(40504),s=r(62088),a=r(24296),f=r(53368),u=r(1580),c=r(12552),l=r(18996),_=r(60544);let d=o=class extends i.am{static fromJSON(e){if(!e)return null;if(e.wkid){if(102100===e.wkid)return o.WebMercator;if(4326===e.wkid)return o.WGS84}const t=new o;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){return e&&"object"==typeof e?e:{["string"==typeof e?"wkt":"wkid"]:e}}get isWGS84(){return(0,_.__)(this)}get isWebMercator(){return(0,_.kn)(this)}get isGeographic(){return(0,_.Eb)(this)}get isWrappable(){return(0,_.G4)(this)}get metersPerUnit(){return(0,a.k8)(this)}get unit(){return(0,a.PE)(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===o.WGS84)return new o(_.UH);if(this===o.WebMercator)return new o(_.QN);const e=new o;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,s.ct)(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:o}=e.imageCoordinateSystem,n=this.imageCoordinateSystem;return null==t||o?JSON.stringify(n)===JSON.stringify(e.imageCoordinateSystem):r?n.id===t&&n.referenceServiceName===r:n.id===t}return(0,_.yK)(this,e)}toJSON(e){return this.write(void 0,e)}};d.GCS_NAD_1927=null,d.WGS84=null,d.WebMercator=null,d.PlateCarree=null,(0,n._)([(0,u.qq)({readOnly:!0})],d.prototype,"isWGS84",null),(0,n._)([(0,u.qq)({readOnly:!0})],d.prototype,"isWebMercator",null),(0,n._)([(0,u.qq)({readOnly:!0})],d.prototype,"isGeographic",null),(0,n._)([(0,u.qq)({readOnly:!0})],d.prototype,"isWrappable",null),(0,n._)([(0,u.qq)({type:f.Ab,json:{write:!0}})],d.prototype,"latestWkid",void 0),(0,n._)([(0,u.qq)({readOnly:!0})],d.prototype,"metersPerUnit",null),(0,n._)([(0,u.qq)({readOnly:!0})],d.prototype,"unit",null),(0,n._)([(0,u.qq)({type:f.Ab,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkt}}}}}}})],d.prototype,"wkid",void 0),(0,n._)([(0,u.qq)({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:null==this.wkid}}}}}}})],d.prototype,"wkt",void 0),(0,n._)([(0,l.G)("wkt"),(0,l.G)("web-scene","wkt")],d.prototype,"writeWkt",null),(0,n._)([(0,u.qq)({type:String,json:{write:!1}})],d.prototype,"wkt2",void 0),(0,n._)([(0,u.qq)({type:f.Ab,json:{write:!0}})],d.prototype,"vcsWkid",void 0),(0,n._)([(0,u.qq)({type:f.Ab,json:{write:!0}})],d.prototype,"latestVcsWkid",void 0),(0,n._)([(0,u.qq)()],d.prototype,"imageCoordinateSystem",void 0),d=o=(0,n._)([(0,c.c)("esri.geometry.SpatialReference")],d),d.prototype.toJSON.isDefaultToJSON=!0,d.GCS_NAD_1927=new d({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]]'}),d.WGS84=new d(_.UH),d.WebMercator=new d(_.QN),d.PlateCarree=new d(_.oI),Object.freeze&&(Object.freeze(d.GCS_NAD_1927),Object.freeze(d.WGS84),Object.freeze(d.WebMercator),Object.freeze(d.PlateCarree));const p=d},22080:(e,t,r)=>{r.d(t,{IP:()=>a,MJ:()=>u,Om:()=>f,_:()=>s,aI:()=>p,e0:()=>_,i8:()=>P,sz:()=>d});var o=r(67932),n=r(60544);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(o.ug),a=i(o.Eb),f=i(o.qv),u={wkt:`GEOCCS["WGS 84",\n DATUM["WGS_1984",\n SPHEROID["WGS 84",${o.ug.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]`},c=a.wkt.toUpperCase(),l=f.wkt.toUpperCase();function _(e){if(null!=e&&(0,n.U3)(e)){const t=e.wkid,r=e.wkt2??e.wkt;if((0,n.cJ)(t))return o.Eb;const i=r?.toUpperCase();if(r&&i===c)return o.Eb;if((0,n.C_)(t)||i&&i===l)return o.qv}return o.ug}function d(e){return(0,n.cJ)(e)?o.Eb:(0,n.C_)(e)?o.qv:o.ug}function p(e){return(0,n.yK)(e,s)}function P(e){return p(e)||(0,n.yK)(e,a)||(0,n.yK)(e,f)}},67932:(e,t,r)=>{r.d(t,{Eb:()=>i,qv:()=>s,ug:()=>n});class o{constructor(e,t,r,o){this.semiMajorAxis=e,this.flattening=t,this.outerAtmosphereRimWidth=r;const n=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*n,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=o||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}}const n=new o(6378137,1/298.257223563,3e5,.006694379990137799),i=new o(3396190,1/169.8944472236118,23e4),s=new o(1737400,0,0)},28496:(e,t,r)=>{var o;r.d(t,{i:()=>o}),function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"}(o||(o={}))},13364:(e,t,r)=>{let o;r.d(t,{c:()=>n});const n={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,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,27700: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};for(o=2e3;o<=2045;o++)n[o]=0;for(o=2056;o<=2065;o++)n[o]=0;for(o=2067;o<=2135;o++)n[o]=0;for(o=2137;o<=2154;o++)n[o]=0;for(o=2161;o<=2170;o++)n[o]=0;for(o=2172;o<=2193;o++)n[o]=0;for(o=2195;o<=2198;o++)n[o]=0;for(o=2200;o<=2203;o++)n[o]=0;for(o=2205;o<=2217;o++)n[o]=0;for(o=2222;o<=2224;o++)n[o]=1;for(o=2225;o<=2250;o++)n[o]=2;for(o=2251;o<=2253;o++)n[o]=1;for(o=2257;o<=2264;o++)n[o]=2;for(o=2274;o<=2279;o++)n[o]=2;for(o=2280;o<=2282;o++)n[o]=1;for(o=2283;o<=2289;o++)n[o]=2;for(o=2290;o<=2292;o++)n[o]=0;for(o=2308;o<=2313;o++)n[o]=0;for(o=2315;o<=2491;o++)n[o]=0;for(o=2494;o<=2866;o++)n[o]=0;for(o=2867;o<=2869;o++)n[o]=1;for(o=2870;o<=2888;o++)n[o]=2;for(o=2891;o<=2895;o++)n[o]=2;for(o=2896;o<=2898;o++)n[o]=1;for(o=2902;o<=2908;o++)n[o]=2;for(o=2915;o<=2920;o++)n[o]=2;for(o=2921;o<=2923;o++)n[o]=1;for(o=2924;o<=2930;o++)n[o]=2;for(o=2931;o<=2962;o++)n[o]=0;for(o=2964;o<=2968;o++)n[o]=2;for(o=2969;o<=2973;o++)n[o]=0;for(o=2975;o<=2991;o++)n[o]=0;for(o=2995;o<=3051;o++)n[o]=0;for(o=3054;o<=3079;o++)n[o]=0;for(o=3081;o<=3088;o++)n[o]=0;for(o=3092;o<=3101;o++)n[o]=0;for(o=3106;o<=3138;o++)n[o]=0;for(o=3146;o<=3151;o++)n[o]=0;for(o=3153;o<=3166;o++)n[o]=0;for(o=3168;o<=3172;o++)n[o]=0;for(o=3174;o<=3203;o++)n[o]=0;for(o=3294;o<=3358;o++)n[o]=0;for(o=3367;o<=3403;o++)n[o]=0;for(o=3408;o<=3416;o++)n[o]=0;for(o=3417;o<=3438;o++)n[o]=2;for(o=3441;o<=3446;o++)n[o]=2;for(o=3447;o<=3450;o++)n[o]=0;for(o=3451;o<=3459;o++)n[o]=2;for(o=3460;o<=3478;o++)n[o]=0;for(o=3554;o<=3559;o++)n[o]=0;for(o=3560;o<=3570;o++)n[o]=2;for(o=3571;o<=3581;o++)n[o]=0;for(o=3594;o<=3597;o++)n[o]=0;for(o=3601;o<=3604;o++)n[o]=0;for(o=3637;o<=3639;o++)n[o]=0;for(o=3665;o<=3667;o++)n[o]=0;for(o=3693;o<=3695;o++)n[o]=0;for(o=3701;o<=3727;o++)n[o]=0;for(o=3728;o<=3739;o++)n[o]=2;for(o=3740;o<=3751;o++)n[o]=0;for(o=3753;o<=3760;o++)n[o]=2;for(o=3761;o<=3773;o++)n[o]=0;for(o=3775;o<=3777;o++)n[o]=0;for(o=3779;o<=3781;o++)n[o]=0;for(o=3783;o<=3785;o++)n[o]=0;for(o=3788;o<=3791;o++)n[o]=0;for(o=3797;o<=3802;o++)n[o]=0;for(o=3814;o<=3816;o++)n[o]=0;for(o=3825;o<=3829;o++)n[o]=0;for(o=3832;o<=3841;o++)n[o]=0;for(o=3844;o<=3852;o++)n[o]=0;for(o=3873;o<=3885;o++)n[o]=0;for(o=3890;o<=3893;o++)n[o]=0;for(o=3907;o<=3912;o++)n[o]=0;for(o=3942;o<=3950;o++)n[o]=0;for(o=3968;o<=3970;o++)n[o]=0;for(o=3973;o<=3976;o++)n[o]=0;for(o=3986;o<=3989;o++)n[o]=0;for(o=3994;o<=3997;o++)n[o]=0;for(o=4048;o<=4051;o++)n[o]=0;for(o=4056;o<=4063;o++)n[o]=0;for(o=4093;o<=4096;o++)n[o]=0;for(o=4390;o<=4398;o++)n[o]=0;for(o=4399;o<=4413;o++)n[o]=2;for(o=4418;o<=4433;o++)n[o]=2;for(o=4455;o<=4457;o++)n[o]=2;for(o=4484;o<=4489;o++)n[o]=0;for(o=4491;o<=4554;o++)n[o]=0;for(o=4568;o<=4589;o++)n[o]=0;for(o=4652;o<=4656;o++)n[o]=0;for(o=4766;o<=4800;o++)n[o]=0;for(o=5014;o<=5016;o++)n[o]=0;for(o=5069;o<=5072;o++)n[o]=0;for(o=5105;o<=5130;o++)n[o]=0;for(o=5167;o<=5188;o++)n[o]=0;for(o=5253;o<=5259;o++)n[o]=0;for(o=5269;o<=5275;o++)n[o]=0;for(o=5292;o<=5311;o++)n[o]=0;for(o=5329;o<=5331;o++)n[o]=0;for(o=5343;o<=5349;o++)n[o]=0;for(o=5355;o<=5357;o++)n[o]=0;for(o=5387;o<=5389;o++)n[o]=0;for(o=5459;o<=5463;o++)n[o]=0;for(o=5479;o<=5482;o++)n[o]=0;for(o=5518;o<=5520;o++)n[o]=0;for(o=5530;o<=5539;o++)n[o]=0;for(o=5550;o<=5552;o++)n[o]=0;for(o=5562;o<=5583;o++)n[o]=0;for(o=5623;o<=5625;o++)n[o]=2;for(o=5631;o<=5639;o++)n[o]=0;for(o=5649;o<=5653;o++)n[o]=0;for(o=5663;o<=5680;o++)n[o]=0;for(o=5682;o<=5685;o++)n[o]=0;for(o=5875;o<=5877;o++)n[o]=0;for(o=5896;o<=5899;o++)n[o]=0;for(o=5921;o<=5940;o++)n[o]=0;for(o=6050;o<=6125;o++)n[o]=0;for(o=6244;o<=6275;o++)n[o]=0;for(o=6328;o<=6348;o++)n[o]=0;for(o=6350;o<=6356;o++)n[o]=0;for(o=6366;o<=6372;o++)n[o]=0;for(o=6381;o<=6387;o++)n[o]=0;for(o=6393;o<=6404;o++)n[o]=0;for(o=6480;o<=6483;o++)n[o]=0;for(o=6511;o<=6514;o++)n[o]=0;for(o=6579;o<=6581;o++)n[o]=0;for(o=6619;o<=6624;o++)n[o]=0;for(o=6625;o<=6627;o++)n[o]=2;for(o=6628;o<=6632;o++)n[o]=0;for(o=6634;o<=6637;o++)n[o]=0;for(o=6669;o<=6692;o++)n[o]=0;for(o=6707;o<=6709;o++)n[o]=0;for(o=6720;o<=6723;o++)n[o]=0;for(o=6732;o<=6738;o++)n[o]=0;for(o=6931;o<=6933;o++)n[o]=0;for(o=6956;o<=6959;o++)n[o]=0;for(o=7005;o<=7007;o++)n[o]=0;for(o=7057;o<=7070;o++)n[o]=2;for(o=7074;o<=7082;o++)n[o]=0;for(o=7109;o<=7118;o++)n[o]=0;for(o=7119;o<=7127;o++)n[o]=1;for(o=7374;o<=7376;o++)n[o]=0;for(o=7528;o<=7586;o++)n[o]=0;for(o=7587;o<=7645;o++)n[o]=2;for(o=7692;o<=7696;o++)n[o]=0;for(o=7755;o<=7787;o++)n[o]=0;for(o=7791;o<=7795;o++)n[o]=0;for(o=7799;o<=7801;o++)n[o]=0;for(o=7803;o<=7805;o++)n[o]=0;for(o=7825;o<=7831;o++)n[o]=0;for(o=7845;o<=7859;o++)n[o]=0;for(o=8013;o<=8032;o++)n[o]=0;for(o=8065;o<=8068;o++)n[o]=1;for(o=8518;o<=8529;o++)n[o]=2;for(o=8533;o<=8536;o++)n[o]=2;for(o=8538;o<=8540;o++)n[o]=2;for(o=8677;o<=8679;o++)n[o]=0;for(o=8836;o<=8840;o++)n[o]=0;for(o=8857;o<=8859;o++)n[o]=0;for(o=8908;o<=8910;o++)n[o]=0;for(o=9154;o<=9159;o++)n[o]=0;for(o=9205;o<=9218;o++)n[o]=0;for(o=9271;o<=9273;o++)n[o]=0;for(o=9295;o<=9297;o++)n[o]=0;for(o=9356;o<=9360;o++)n[o]=0;for(o=9404;o<=9407;o++)n[o]=0;for(o=9476;o<=9482;o++)n[o]=0;for(o=9487;o<=9494;o++)n[o]=0;for(o=9697;o<=9699;o++)n[o]=0;for(o=9821;o<=9865;o++)n[o]=0;for(o=10285;o<=10291;o++)n[o]=0;for(o=10314;o<=10317;o++)n[o]=0;for(o=10448;o<=10465;o++)n[o]=0;for(o=11114;o<=11118;o++)n[o]=0;for(o=20004;o<=20032;o++)n[o]=0;for(o=20047;o<=20049;o++)n[o]=0;for(o=20062;o<=20092;o++)n[o]=0;for(o=20135;o<=20138;o++)n[o]=0;for(o=20248;o<=20258;o++)n[o]=0;for(o=20348;o<=20358;o++)n[o]=0;for(o=20436;o<=20440;o++)n[o]=0;for(o=20822;o<=20824;o++)n[o]=0;for(o=20904;o<=20932;o++)n[o]=0;for(o=20934;o<=20936;o++)n[o]=0;for(o=21004;o<=21032;o++)n[o]=0;for(o=21035;o<=21037;o++)n[o]=0;for(o=21095;o<=21097;o++)n[o]=0;for(o=21148;o<=21150;o++)n[o]=0;for(o=21207;o<=21264;o++)n[o]=0;for(o=21307;o<=21364;o++)n[o]=0;for(o=21413;o<=21423;o++)n[o]=0;for(o=21453;o<=21463;o++)n[o]=0;for(o=21473;o<=21483;o++)n[o]=0;for(o=21780;o<=21782;o++)n[o]=0;for(o=21891;o<=21894;o++)n[o]=0;for(o=21896;o<=21899;o++)n[o]=0;for(o=22171;o<=22177;o++)n[o]=0;for(o=22181;o<=22187;o++)n[o]=0;for(o=22191;o<=22197;o++)n[o]=0;for(o=22207;o<=22222;o++)n[o]=0;for(o=22229;o<=22232;o++)n[o]=0;for(o=22234;o<=22236;o++)n[o]=0;for(o=22243;o<=22250;o++)n[o]=0;for(o=22262;o<=22265;o++)n[o]=0;for(o=22307;o<=22322;o++)n[o]=0;for(o=22348;o<=22357;o++)n[o]=0;for(o=22407;o<=22422;o++)n[o]=0;for(o=22462;o<=22465;o++)n[o]=0;for(o=22521;o<=22525;o++)n[o]=0;for(o=22607;o<=22622;o++)n[o]=0;for(o=22641;o<=22646;o++)n[o]=0;for(o=22648;o<=22657;o++)n[o]=0;for(o=22707;o<=22722;o++)n[o]=0;for(o=22762;o<=22765;o++)n[o]=0;for(o=22807;o<=22822;o++)n[o]=0;for(o=22991;o<=22994;o++)n[o]=0;for(o=23028;o<=23038;o++)n[o]=0;for(o=23301;o<=23333;o++)n[o]=2;for(o=23830;o<=23853;o++)n[o]=0;for(o=23866;o<=23872;o++)n[o]=0;for(o=23877;o<=23884;o++)n[o]=0;for(o=23886;o<=23894;o++)n[o]=0;for(o=23946;o<=23948;o++)n[o]=0;for(o=24311;o<=24313;o++)n[o]=0;for(o=24342;o<=24347;o++)n[o]=0;for(o=24370;o<=24374;o++)n[o]=10;for(o=24375;o<=24381;o++)n[o]=0;for(o=24718;o<=24721;o++)n[o]=0;for(o=24817;o<=24821;o++)n[o]=0;for(o=24877;o<=24882;o++)n[o]=0;for(o=24891;o<=24893;o++)n[o]=0;for(o=25391;o<=25395;o++)n[o]=0;for(o=25828;o<=25838;o++)n[o]=0;for(o=26191;o<=26195;o++)n[o]=0;for(o=26391;o<=26393;o++)n[o]=0;for(o=26701;o<=26722;o++)n[o]=0;for(o=26729;o<=26799;o++)n[o]=2;for(o=26801;o<=26803;o++)n[o]=2;for(o=26811;o<=26813;o++)n[o]=2;for(o=26847;o<=26870;o++)n[o]=2;for(o=26891;o<=26899;o++)n[o]=0;for(o=26901;o<=26923;o++)n[o]=0;for(o=26929;o<=26946;o++)n[o]=0;for(o=26948;o<=26998;o++)n[o]=0;for(o=27037;o<=27040;o++)n[o]=0;for(o=27205;o<=27232;o++)n[o]=0;for(o=27258;o<=27260;o++)n[o]=0;for(o=27391;o<=27398;o++)n[o]=0;for(o=27561;o<=27564;o++)n[o]=0;for(o=27571;o<=27574;o++)n[o]=0;for(o=27581;o<=27584;o++)n[o]=0;for(o=27591;o<=27594;o++)n[o]=0;for(o=28191;o<=28193;o++)n[o]=0;for(o=28348;o<=28358;o++)n[o]=0;for(o=28402;o<=28432;o++)n[o]=0;for(o=28462;o<=28492;o++)n[o]=0;for(o=29118;o<=29122;o++)n[o]=0;for(o=29168;o<=29172;o++)n[o]=0;for(o=29177;o<=29185;o++)n[o]=0;for(o=29187;o<=29195;o++)n[o]=0;for(o=29900;o<=29903;o++)n[o]=0;for(o=30161;o<=30179;o++)n[o]=0;for(o=30491;o<=30494;o++)n[o]=0;for(o=30729;o<=30732;o++)n[o]=0;for(o=31251;o<=31259;o++)n[o]=0;for(o=31265;o<=31268;o++)n[o]=0;for(o=31275;o<=31279;o++)n[o]=0;for(o=31281;o<=31297;o++)n[o]=0;for(o=31461;o<=31469;o++)n[o]=0;for(o=31491;o<=31495;o++)n[o]=0;for(o=31917;o<=31922;o++)n[o]=0;for(o=31965;o<=32e3;o++)n[o]=0;for(o=32001;o<=32003;o++)n[o]=2;for(o=32005;o<=32031;o++)n[o]=2;for(o=32033;o<=32060;o++)n[o]=2;for(o=32064;o<=32067;o++)n[o]=2;for(o=32074;o<=32077;o++)n[o]=2;for(o=32081;o<=32086;o++)n[o]=0;for(o=32107;o<=32130;o++)n[o]=0;for(o=32133;o<=32159;o++)n[o]=0;for(o=32164;o<=32167;o++)n[o]=2;for(o=32180;o<=32199;o++)n[o]=0;for(o=32201;o<=32260;o++)n[o]=0;for(o=32301;o<=32360;o++)n[o]=0;for(o=32401;o<=32460;o++)n[o]=0;for(o=32501;o<=32560;o++)n[o]=0;for(o=32601;o<=32662;o++)n[o]=0;for(o=32664;o<=32667;o++)n[o]=2;for(o=32701;o<=32761;o++)n[o]=0;for(o=53001;o<=53004;o++)n[o]=0;for(o=53008;o<=53019;o++)n[o]=0;for(o=53021;o<=53032;o++)n[o]=0;for(o=53034;o<=53037;o++)n[o]=0;for(o=53042;o<=53046;o++)n[o]=0;for(o=53074;o<=53080;o++)n[o]=0;for(o=54001;o<=54004;o++)n[o]=0;for(o=54008;o<=54019;o++)n[o]=0;for(o=54021;o<=54032;o++)n[o]=0;for(o=54034;o<=54037;o++)n[o]=0;for(o=54042;o<=54046;o++)n[o]=0;for(o=54048;o<=54053;o++)n[o]=0;for(o=54074;o<=54080;o++)n[o]=0;for(o=54098;o<=54101;o++)n[o]=0;for(o=102001;o<=102040;o++)n[o]=0;for(o=102042;o<=102063;o++)n[o]=0;for(o=102065;o<=102067;o++)n[o]=0;for(o=102070;o<=102117;o++)n[o]=0;for(o=102122;o<=102216;o++)n[o]=0;for(o=102221;o<=102377;o++)n[o]=0;for(o=102382;o<=102388;o++)n[o]=0;for(o=102389;o<=102398;o++)n[o]=2;for(o=102399;o<=102444;o++)n[o]=0;for(o=102445;o<=102447;o++)n[o]=2;for(o=102448;o<=102458;o++)n[o]=0;for(o=102459;o<=102468;o++)n[o]=2;for(o=102469;o<=102499;o++)n[o]=0;for(o=102500;o<=102519;o++)n[o]=1;for(o=102520;o<=102524;o++)n[o]=0;for(o=102525;o<=102529;o++)n[o]=2;for(o=102530;o<=102588;o++)n[o]=0;for(o=102590;o<=102598;o++)n[o]=0;for(o=102601;o<=102603;o++)n[o]=0;for(o=102605;o<=102628;o++)n[o]=0;for(o=102629;o<=102646;o++)n[o]=2;for(o=102648;o<=102700;o++)n[o]=2;for(o=102701;o<=102703;o++)n[o]=0;for(o=102707;o<=102730;o++)n[o]=2;for(o=102733;o<=102758;o++)n[o]=2;for(o=102767;o<=102900;o++)n[o]=0;for(o=102901;o<=102933;o++)n[o]=2;for(o=102934;o<=102950;o++)n[o]=13;for(o=102951;o<=102955;o++)n[o]=0;for(o=102961;o<=102963;o++)n[o]=0;for(o=102965;o<=102969;o++)n[o]=0;for(o=102971;o<=102973;o++)n[o]=0;for(o=102975;o<=102989;o++)n[o]=0;for(o=102990;o<=102992;o++)n[o]=1;for(o=102997;o<=103002;o++)n[o]=0;for(o=103003;o<=103008;o++)n[o]=2;for(o=103009;o<=103011;o++)n[o]=0;for(o=103012;o<=103014;o++)n[o]=2;for(o=103019;o<=103021;o++)n[o]=0;for(o=103022;o<=103024;o++)n[o]=2;for(o=103029;o<=103031;o++)n[o]=0;for(o=103032;o<=103034;o++)n[o]=2;for(o=103065;o<=103068;o++)n[o]=0;for(o=103074;o<=103076;o++)n[o]=0;for(o=103077;o<=103079;o++)n[o]=1;for(o=103080;o<=103082;o++)n[o]=0;for(o=103083;o<=103085;o++)n[o]=2;for(o=103090;o<=103093;o++)n[o]=0;for(o=103097;o<=103099;o++)n[o]=0;for(o=103100;o<=103102;o++)n[o]=2;for(o=103107;o<=103109;o++)n[o]=0;for(o=103110;o<=103112;o++)n[o]=2;for(o=103113;o<=103116;o++)n[o]=0;for(o=103117;o<=103120;o++)n[o]=2;for(o=103153;o<=103157;o++)n[o]=0;for(o=103158;o<=103162;o++)n[o]=2;for(o=103163;o<=103165;o++)n[o]=0;for(o=103166;o<=103168;o++)n[o]=1;for(o=103169;o<=103171;o++)n[o]=2;for(o=103186;o<=103188;o++)n[o]=0;for(o=103189;o<=103191;o++)n[o]=2;for(o=103192;o<=103195;o++)n[o]=0;for(o=103196;o<=103199;o++)n[o]=2;for(o=103200;o<=103224;o++)n[o]=0;for(o=103225;o<=103227;o++)n[o]=1;for(o=103232;o<=103237;o++)n[o]=0;for(o=103238;o<=103243;o++)n[o]=2;for(o=103244;o<=103246;o++)n[o]=0;for(o=103247;o<=103249;o++)n[o]=2;for(o=103254;o<=103256;o++)n[o]=0;for(o=103257;o<=103259;o++)n[o]=2;for(o=103264;o<=103266;o++)n[o]=0;for(o=103267;o<=103269;o++)n[o]=2;for(o=103300;o<=103375;o++)n[o]=0;for(o=103381;o<=103383;o++)n[o]=0;for(o=103384;o<=103386;o++)n[o]=1;for(o=103387;o<=103389;o++)n[o]=0;for(o=103390;o<=103392;o++)n[o]=2;for(o=103397;o<=103399;o++)n[o]=0;for(o=103400;o<=103471;o++)n[o]=2;for(o=103476;o<=103478;o++)n[o]=0;for(o=103479;o<=103481;o++)n[o]=2;for(o=103486;o<=103488;o++)n[o]=0;for(o=103489;o<=103491;o++)n[o]=2;for(o=103492;o<=103495;o++)n[o]=0;for(o=103496;o<=103499;o++)n[o]=2;for(o=103528;o<=103543;o++)n[o]=0;for(o=103544;o<=103548;o++)n[o]=2;for(o=103549;o<=103551;o++)n[o]=0;for(o=103552;o<=103554;o++)n[o]=1;for(o=103555;o<=103557;o++)n[o]=2;for(o=103558;o<=103560;o++)n[o]=0;for(o=103571;o<=103573;o++)n[o]=0;for(o=103574;o<=103576;o++)n[o]=2;for(o=103577;o<=103580;o++)n[o]=0;for(o=103581;o<=103583;o++)n[o]=2;for(o=103595;o<=103694;o++)n[o]=0;for(o=103696;o<=103699;o++)n[o]=0;for(o=103700;o<=103793;o++)n[o]=2;for(o=103794;o<=103890;o++)n[o]=0;for(o=103891;o<=103896;o++)n[o]=2;for(o=103900;o<=103971;o++)n[o]=2;for(o=103972;o<=103977;o++)n[o]=0;for(o=112e3;o<=112101;o++)n[o]=0},60544:(e,t,r)=>{r.d(t,{C_:()=>O,Eb:()=>P,G4:()=>A,GK:()=>T,If:()=>g,Nq:()=>d,QN:()=>N,U3:()=>C,UB:()=>w,UH:()=>R,Ub:()=>m,__:()=>E,ag:()=>h,cJ:()=>M,kn:()=>S,oI:()=>G,qg:()=>y,um:()=>p,yK:()=>_});var o=r(88264),n=(r(40800),r(28496)),i=r(13364);const s=[102100,102113,3857,3785],a=[4326,...s,104905,104971],f='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]]',u=[-20037508.342788905,20037508.342788905],c=[-20037508.342787,20037508.342787],l={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:u,origin:c,dx:1e-5},102100:{wkTemplate:f,valid:u,origin:c,dx:1e-5},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:u,origin:c,dx:1e-5},3857:{wkTemplate:f,valid:u,origin:c,dx:1e-5},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}};function _(e,t){if(e===t)return!0;if(null==e||null==t)return!1;const r=e.wkid,o=t.wkid;if(null!=r||null!=o){if(r===o)return!0;if(S(e)&&S(t))return!0;const n=e.latestWkid;if(null!=n&&o===n)return!0;const i=t.latestWkid;return null!=i&&r===i}let n,i;return e.wkt2&&t.wkt2?(n=e.wkt2,i=t.wkt2):e.wkt&&t.wkt&&(n=e.wkt,i=t.wkt),!(!n||!i)&&n.toUpperCase()===i.toUpperCase()}function d(e){const t=e?.wkid;return null!=t&&t>=2e3&&l[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 o=e.wkt||e.wkt2;return JSON.stringify(o?r?{wkt:o,vcsWkid:r}:{wkt:o}:{})}function P(e){if(!C(e))return!1;const{wkid:t}=e;if(t)return null==i.c[t];const r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function h(e){return!(y(e)||w(e))}function E(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 m(e){return e?.wkid===n.i.CGCS2000}function S(e){const t=e?.wkid;return null!=t&&t>=2e3&&s.includes(t)}function T(e){return 32662===e?.wkid}function M(e){return e===n.i.GCSMARS2000||e===n.i.GCSMARS2000_SPHERE}function y(e){return M(e?.wkid)}function O(e){return e===n.i.GCSMOON2000}function w(e){return O(e?.wkid)}function A(e){const t=e?.wkid;return null!=t&&t>=2e3&&a.includes(t)}function C(e){if(null==e)return!1;const t=e.wkid;return null!=t&&t>=2e3||null!=e.wkt2||null!=e.wkt}const R={wkid:4326,wkt:(0,o.qq)(l[4326].wkTemplate,{Central_Meridian:"0.0"})},N={wkid:102100,latestWkid:3857},G={wkid:32662}},2600:(e,t,r)=>{r.d(t,{c:()=>d});var o=r(6220),n=r(47620),i=r(20744),s=r(9456),a=r(62088),f=r(10860),u=r(28176),c=r(5604),l=r(20572),_=r(49628);async function d(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=(0,u.a4)(t.query.toString().replaceAll("+"," ")));const a=(0,u.o9)(e),c=(0,u.ue)(e);c||a||(e=(0,u.k7)(e));const d={url:e,requestOptions:{...t}};let E=(0,u.OO)(e);if(E){const e=await async function(e,t){if(null!=e.responseData)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,o;try{o=await e.before(t)}catch(e){r=y("request:interceptor",e,t)}if((o instanceof Error||o instanceof i.c)&&(r=y("request:interceptor",o,t)),r)throw e.error&&e.error(r),r;return o}}(E,d);if(null!=e)return{data:e,getAllHeaders:S,getHeader:S,httpStatus:200,requestOptions:d.requestOptions,url:d.url};E.after||E.error||(E=null)}if(e=d.url,"image"===(t=d.requestOptions).responseType&&((0,s.c)("host-webworker")||(0,s.c)("host-node")))throw y("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),d);if("head"===t.method){if(t.body)throw y("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),d);if(a||c)throw y("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),d)}if(await async function(){(0,s.c)("host-webworker")&&!p&&(p=await r.e(5469).then(r.bind(r,75469)))}(),p)return p.execute(e,t);const g=new AbortController;(0,f.wD)(t,(()=>g.abort()));const m={controller:g,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:E,params:d,redoRequest:!1,useIdentity:P.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},T=await async function(e){let t,r;await async function(e){const t=e.params.url,r=e.params.requestOptions,i=e.controller.signal,s=r.body;let a=null,u=null;if(h&&"HTMLFormElement"in globalThis&&(s instanceof FormData?a=s:s instanceof HTMLFormElement&&(a=new FormData(s))),"string"==typeof s&&(u=s),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",priority:P.priority,redirect:"follow",signal:i},(a||u)&&(e.fetchOptions.body=a||u),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||a?.get("token")),!e.hasToken&&o.default.apiKey&&(0,l.s)(t)&&(r.query||(r.query={}),r.query.token=o.default.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!w(t)&&!(0,f.wv)(i)){let o;"immediate"===r.authMode?(await O(),o=await n.id.getCredential(t,{signal:i}),e.credential=o):"no-prompt"===r.authMode?(await O(),o=await n.id.getCredential(t,{prompt:!1,signal:i}).catch((()=>{})),e.credential=o):n.id&&(o=n.id.findCredential(t)),o&&(e.credentialToken=o.token,e.useSSL=!!o.ssl)}}(e);try{do{[t,r]=await A(e)}while(!await R(e,t,r))}catch(r){const o=y("request:server",r,e.params,t);throw o.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(o),o}const i=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(i)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!(0,u.Yf)(i)){const e=(0,u.iK)(i,!0);e&&P.trustedServers.push(e)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&(0,_.Ko)(r.authorizedCrossOriginNoCorsDomains)}const s=e.credential;if(s&&n.id){const e=n.id.findServerInfo(s.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=n.id.findCredential(t,s.userId);e&&-1===n.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):S,getHeader:t?e=>t.headers.get(e):S,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(m);return E?.after?.(T),T}let p;const P=o.default.request,h="FormData"in globalThis,E=new Set([499,498,403,401]),g=new Set(["COM_0056","COM_0057","SB_0008"]),m=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],S=()=>null,T=Symbol();function M(e){const t=(0,u.iK)(e);return!t||t.endsWith(".arcgis.com")||d._corsServers.includes(t)||(0,u.Yf)(t)}function y(e,t,r,o){let n="Error";const s={url:r.url,requestOptions:r.requestOptions,getAllHeaders:S,getHeader:S,ssl:!1};if(t instanceof i.c)return t.details?(t.details=(0,a.ct)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=s,t;if(t){const e=o&&(()=>Array.from(o.headers)),r=o&&(e=>o.headers.get(e)),i=o?.status,a=t.message;a&&(n=a),e&&r&&(s.getAllHeaders=e,s.getHeader=r),s.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||i||0,s.subCode=t.subcode,s.messageCode=t.messageCode,"string"==typeof t.details?s.messages=[t.details]:s.messages=t.details,s.raw=T in t?t[T]:t}return(0,f.mA)(t)?(0,f.Uh)():new i.c(e,n,s)}async function O(){n.id||await Promise.all([r.e(9452),r.e(6712),r.e(7744),r.e(7144)]).then(r.bind(r,57592))}function w(e){return m.some((t=>t.test(e)))}async function A(e){let t=e.params.url;const r=e.params.requestOptions,o=e.fetchOptions??{},i=(0,u.ue)(t)||(0,u.o9)(t),a=r.responseType||"json",l=i?0:null!=r.timeout?r.timeout:P.timeout;let p=!1;if(!i){e.useSSL&&(t=(0,u.ms)(t));let i={...r.query};e.credentialToken&&(i.token=e.credentialToken);let a=(0,u.GK)(i);(0,s.c)("esri-url-encodes-apostrophe")&&(a=a.replaceAll("'","%27"));const f=t.length+1+a.length;let l;p="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||f>P.maxUrlLength;const d=r.useProxy||!!(0,u.Gq)(t);if(d){const e=(0,u.CI)(t);l=e.path,!p&&l.length+1+f>P.maxUrlLength&&(p=!0),e.query&&(i={...e.query,...i})}if("HEAD"===o.method&&(p||d)){if(p){if(f>P.maxUrlLength)throw y("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw y("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(d)throw y("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(p?(o.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,u.UP)(t,i):(o.body=(0,u.GK)(i),o.headers||(o.headers={}),o.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.UP)(t,i),d&&(e.useProxy=!0,t=`${l}?${t}`),i.token&&h&&o.body instanceof FormData&&!(0,c.C)(t)&&o.body.set("token",i.token),r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,u.OS)(t,(0,u.k3)()))if((0,u.Yf)(t))e.withCredentials=!0;else if(n.id){const r=n.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(o.credentials="include",(0,_.yK)(t)&&await(0,_.y4)(p?(0,u.UP)(t,i):t))}let E,g,m=0,S=!1;l>0&&(m=setTimeout((()=>{S=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)g=o,g.url=t;else if("image"!==r.responseType||"default"!==o.cache||"GET"!==o.method||p||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!i&&!e.useProxy&&P.proxyUrl&&!M(t)){if(d._beforeFetch&&await d._beforeFetch(t,o),E=await fetch(t,o),d._afterFetch&&await d._afterFetch(E),e.useProxy||function(e){const t=(0,u.iK)(e);t&&!d._corsServers.includes(t)&&d._corsServers.push(t)}(t),"native"===r.responseType)g=E;else if("HEAD"!==o.method)if(E.ok){switch(a){case"array-buffer":g=await E.arrayBuffer();break;case"blob":case"image":g=await E.blob();break;default:g=await E.text()}if(m&&(clearTimeout(m),m=0),"json"===a||"xml"===a||"document"===a)if(g)switch(a){case"json":g=JSON.parse(g);break;case"xml":g=C(g,"application/xml");break;case"document":g=C(g,"text/html")}else g=null;if(g){if("array-buffer"===a||"blob"===a){const e=E.headers.get("Content-Type");if(e&&/application\/json|text\/plain/i.test(e)&&g["blob"===a?"size":"byteLength"]<=750)try{const e=await new Response(g).json();e.error&&(g=e)}catch{}}"image"===a&&g instanceof Blob&&(g=await N(URL.createObjectURL(g),e,!0))}}else{g=await E.text();try{g=JSON.parse(g)}catch{}}}else g=await N(t,e)}catch(o){if("AbortError"===o.name){if(S)throw(0,_.ol)();throw(0,f.Uh)("Request canceled")}if(!(!E&&o instanceof TypeError&&P.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||M(t))throw o;e.redoRequest=!0,(0,u.e8)({proxyUrl:P.proxyUrl,urlPrefix:(0,u.iK)(t)??""})}finally{m&&clearTimeout(m)}return[E,g]}function C(e,t){let r;try{r=(new DOMParser).parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function R(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const o=e.params.requestOptions;if(!t||"native"===o.responseType||"native-request-init"===o.responseType)return!0;let i,s;if(r&&(r.error?i=r.error:"error"===r.status&&Array.isArray(r.messages)&&(i={...r},i[T]=r,i.details=r.messages)),!i&&!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[T]=r,i;let a,f=null;i&&(s=Number(i.code),f=i.hasOwnProperty("subcode")?Number(i.subcode):null,a=i.messageCode,a=a?.toUpperCase());const u=o.authMode;if(403===s&&(4===f||i.message?.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===s)&&void 0!==s&&E.has(s)&&!w(e.params.url)&&(403!==s||(!a||!g.has(a))&&(null==f||2===f&&e.credentialToken))){await O();try{const t=await n.id.getCredential(e.params.url,{error:y("request:server",i,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=void 0,e.credentialToken=void 0,!1;i=t}}if(i)throw i;return!0}function N(e,t,r=!1){const o=t.controller.signal,n=new Image;return t.withCredentials?n.crossOrigin="use-credentials":n.crossOrigin="anonymous",n.alt="",n.fetchPriority=P.priority,n.src=e,(0,_.wx)(n,e,r,o)}d._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],d._beforeFetch=void 0,d._afterFetch=void 0},20572:(e,t,r)=>{r.d(t,{s:()=>i});var o=r(28176);const n=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"]);function i(e){const t=(0,o.iK)(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!n.has(t)&&!e.endsWith("/sharing/rest/generateToken")}},49628:(e,t,r)=>{r.d(t,{Ko:()=>l,ol:()=>c,wx:()=>a,y4:()=>d,yK:()=>_});var o=r(6220),n=r(9456),i=r(10860),s=r(28176);function a(e,t,r=!1,o){return new Promise(((s,a)=>{if((0,i.wv)(o))return void a(f());let u=()=>{_(),a(new Error(`Unable to load ${t}`))},c=()=>{const t=e;_(),s(t)},l=()=>{if(!e)return;const t=e;_(),t.src="",a(f())};const _=()=>{(0,n.c)("esri-image-decode")||(e.removeEventListener("error",u),e.removeEventListener("load",c)),u=null,c=null,e=null,null!=o&&o.removeEventListener("abort",l),l=null,r&&URL.revokeObjectURL(t)};null!=o&&o.addEventListener("abort",l),(0,n.c)("esri-image-decode")?e.decode().then(c,u):(e.addEventListener("error",u),e.addEventListener("load",c))}))}function f(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}const u="Timeout exceeded";function c(){return new Error(u)}function l(e){o.default.request.crossOriginNoCorsDomains||(o.default.request.crossOriginNoCorsDomains={});const t=o.default.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,s.iK)(r)??""]=0:(t[(0,s.iK)("http://"+r)??""]=0,t[(0,s.iK)("https://"+r)??""]=0)}function _(e){const t=o.default.request.crossOriginNoCorsDomains;if(t){let r=(0,s.iK)(e);if(r)return r=r.toLowerCase(),!(0,s.OS)(r,(0,s.k3)())&&t[r]<Date.now()-36e5}return!1}async function d(e){const t=o.default.request.crossOriginNoCorsDomains,r=(0,s.iK)(e);t&&r&&(t[r.toLowerCase()]=Date.now());const n=(0,s.as)(e);e=n.path,"json"===n.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3632,6147],{25228:(e,t,l)=>{l.d(t,{c:()=>f});var r,i=l(41948),s=l(40504),o=l(94360),n=l(1580),a=(l(9456),l(66360),l(72052),l(33600)),u=l(12552),p=l(18996),c=l(28484);let d=r=class extends s.am{static get allTime(){return h}static get empty(){return y}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(r.allTime)}get isEmpty(){return this.equals(r.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new r({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,l=this.end?.getTime()??this.end,r=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===r&&l===i}expandTo(e,t=c.OX){if(this.isEmpty||this.isAllTime)return this.clone();let l=this.start;l&&(l=(0,o.aU)(l,e,t));let i=this.end;if(i){const l=(0,o.aU)(i,e,t);i=i.getTime()===l.getTime()?l:(0,o.g1)(l,1,e,t)}return new r({start:l,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return r.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,l=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,n;return i>=t&&i<=l?o=i:t>=i&&t<=s&&(o=t),l>=i&&l<=s?n=l:s>=t&&s<=l&&(n=s),null==o||null==n||isNaN(o)||isNaN(n)?r.empty:new r({start:o===-1/0?null:new Date(o),end:n===1/0?null:new Date(n)})}offset(e,t,l=c.OX){if(this.isEmpty||this.isAllTime)return this.clone();const i=new r,{start:s,end:n}=this;return null!=s&&(i.start=(0,o.g1)(s,e,t,l)),null!=n&&(i.end=(0,o.g1)(n,e,t,l)),i}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,l=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new r({start:t,end:l})}};(0,i._)([(0,n.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"end",void 0),(0,i._)([(0,a.E)("end")],d.prototype,"readEnd",null),(0,i._)([(0,p.G)("end")],d.prototype,"writeEnd",null),(0,i._)([(0,n.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isAllTime",null),(0,i._)([(0,n.qq)({readOnly:!0,json:{read:!1}})],d.prototype,"isEmpty",null),(0,i._)([(0,n.qq)({type:Date,json:{write:{allowNull:!0}}})],d.prototype,"start",void 0),(0,i._)([(0,a.E)("start")],d.prototype,"readStart",null),(0,i._)([(0,p.G)("start")],d.prototype,"writeStart",null),d=r=(0,i._)([(0,u.c)("esri.TimeExtent")],d);const h=new d,y=new d({start:void 0,end:void 0}),f=d},8528:(e,t,l)=>{l.d(t,{c:()=>r,g:()=>i});var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},32896:(e,t,l)=>{l.r(t),l.d(t,{default:()=>S});var r,i=l(41948),s=(l(60708),l(2600)),o=l(20744),n=l(26496),a=l(88264),u=l(28176),p=l(1580),c=(l(9456),l(66360),l(72052),l(33600)),d=l(12552),h=l(18996),y=l(81436),f=l(25216),m=l(66576),g=l(98768),w=l(26916),v=l(3116),q=l(80428),_=l(22108),T=l(87576),b=l(20960),E=l(95247),I=l(56156),P=l(67776);let x=r=class extends((0,f.W)((0,w.G)((0,v.I)((0,m.Y)((0,g.K)((0,n.U)(y.c))))))){constructor(...e){super(...e),this.copyright="",this.fullExtent=new E.c(-20037508.342787,-20037508.34278,20037508.34278,20037508.342787,I.c.WebMercator),this.legendEnabled=!1,this.isReference=null,this.popupEnabled=!1,this.spatialReference=I.c.WebMercator,this.subDomains=null,this.tileInfo=new T.c({size:[256,256],dpi:96,format:"png8",compressionQuality:0,origin:new P.c({x:-20037508.342787,y:20037508.342787,spatialReference:I.c.WebMercator}),spatialReference:I.c.WebMercator,lods:[new _.c({level:0,scale:591657527.591555,resolution:156543.033928}),new _.c({level:1,scale:295828763.795777,resolution:78271.5169639999}),new _.c({level:2,scale:147914381.897889,resolution:39135.7584820001}),new _.c({level:3,scale:73957190.948944,resolution:19567.8792409999}),new _.c({level:4,scale:36978595.474472,resolution:9783.93962049996}),new _.c({level:5,scale:18489297.737236,resolution:4891.96981024998}),new _.c({level:6,scale:9244648.868618,resolution:2445.98490512499}),new _.c({level:7,scale:4622324.434309,resolution:1222.99245256249}),new _.c({level:8,scale:2311162.217155,resolution:611.49622628138}),new _.c({level:9,scale:1155581.108577,resolution:305.748113140558}),new _.c({level:10,scale:577790.554289,resolution:152.874056570411}),new _.c({level:11,scale:288895.277144,resolution:76.4370282850732}),new _.c({level:12,scale:144447.638572,resolution:38.2185141425366}),new _.c({level:13,scale:72223.819286,resolution:19.1092570712683}),new _.c({level:14,scale:36111.909643,resolution:9.55462853563415}),new _.c({level:15,scale:18055.954822,resolution:4.77731426794937}),new _.c({level:16,scale:9027.977411,resolution:2.38865713397468}),new _.c({level:17,scale:4513.988705,resolution:1.19432856685505}),new _.c({level:18,scale:2256.994353,resolution:.597164283559817}),new _.c({level:19,scale:1128.497176,resolution:.298582141647617}),new _.c({level:20,scale:564.248588,resolution:.14929107082380833}),new _.c({level:21,scale:282.124294,resolution:.07464553541190416}),new _.c({level:22,scale:141.062147,resolution:.03732276770595208}),new _.c({level:23,scale:70.5310735,resolution:.01866138385297604})]}),this.type="web-tile",this.urlTemplate=null,this.wmtsInfo=null}normalizeCtorArgs(e,t){return"string"==typeof e?{urlTemplate:e,...t}:e}load(e){const t=this.loadFromPortal({supportedTypes:["WMTS"]},e).then((()=>{let e="";if(this.urlTemplate)if(this.spatialReference.equals(this.tileInfo.spatialReference)){const t=new u.iS(this.urlTemplate);!(this.subDomains&&this.subDomains.length>0)&&t.authority?.includes("{subDomain}")&&(e="is missing 'subDomains' property")}else e="spatialReference must match tileInfo.spatialReference";else e="is missing the required 'urlTemplate' property value";if(e)throw new o.c("web-tile-layer:load",`WebTileLayer (title: '${this.title}', id: '${this.id}') ${e}`)}));return this.addResolvingPromise(t),Promise.resolve(this)}get levelValues(){const e=[];if(!this.tileInfo)return null;for(const t of this.tileInfo.lods)e[t.level]=t.levelValue||t.level;return e}readSpatialReference(e,t){return e||I.c.fromJSON(t.fullExtent?.spatialReference)}get tileServers(){if(!this.urlTemplate)return null;const e=[],{urlTemplate:t,subDomains:l}=this,r=new u.iS(t),i=r.scheme?r.scheme+"://":"//",s=i+r.authority+"/",o=r.authority;if(o?.includes("{subDomain}")){if(l&&l.length>0&&o.split(".").length>1)for(const t of l)e.push(i+o.replaceAll(/\{subDomain\}/gi,t)+"/")}else e.push(s);return e.map(u.KW)}get urlPath(){if(!this.urlTemplate)return null;const e=this.urlTemplate,t=new u.iS(e),l=(t.scheme?t.scheme+"://":"//")+t.authority+"/";return e.substring(l.length)}readUrlTemplate(e,t){return e||t.templateUrl}writeUrlTemplate(e,t){(0,u.eC)(e)&&(e="https:"+e),e&&(e=e.replaceAll(/\{z\}/gi,"{level}").replaceAll(/\{x\}/gi,"{col}").replaceAll(/\{y\}/gi,"{row}"),e=(0,u.k7)(e)),t.templateUrl=e}fetchTile(e,t,l,r={}){const{signal:i}=r,o=this.getTileUrl(e,t,l),n={responseType:"image",signal:i,query:{...this.refreshParameters}};return(0,s.c)(o,n).then((e=>e.data))}async fetchImageBitmapTile(e,t,l,i={}){const{signal:o}=i;if(this.fetchTile!==r.prototype.fetchTile){const r=await this.fetchTile(e,t,l,i);return(0,q.G)(r,e,t,l,o)}const n=this.getTileUrl(e,t,l),a={responseType:"blob",signal:o,query:{...this.refreshParameters}},{data:u}=await(0,s.c)(n,a);return(0,q.G)(u,e,t,l,o)}getTileUrl(e,t,l){const{levelValues:r,tileServers:i,urlPath:s}=this;if(!r||!i||!s)return"";const o=r[e];return i[t%i.length]+(0,a.qq)(s,{level:o,z:o,col:l,x:l,row:t,y:t})}};(0,i._)([(0,p.qq)({type:String,value:"",json:{write:!0}})],x.prototype,"copyright",void 0),(0,i._)([(0,p.qq)({type:E.c,json:{write:!0},nonNullable:!0})],x.prototype,"fullExtent",void 0),(0,i._)([(0,p.qq)({readOnly:!0,json:{read:!1,write:!1}})],x.prototype,"legendEnabled",void 0),(0,i._)([(0,p.qq)({type:["show","hide"]})],x.prototype,"listMode",void 0),(0,i._)([(0,p.qq)({json:{read:!0,write:!0}})],x.prototype,"blendMode",void 0),(0,i._)([(0,p.qq)()],x.prototype,"levelValues",null),(0,i._)([(0,p.qq)({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],x.prototype,"isReference",void 0),(0,i._)([(0,p.qq)({type:["WebTiledLayer"],value:"WebTiledLayer"})],x.prototype,"operationalLayerType",void 0),(0,i._)([(0,p.qq)({readOnly:!0,json:{read:!1,write:!1}})],x.prototype,"popupEnabled",void 0),(0,i._)([(0,p.qq)({type:I.c})],x.prototype,"spatialReference",void 0),(0,i._)([(0,c.E)("spatialReference",["spatialReference","fullExtent.spatialReference"])],x.prototype,"readSpatialReference",null),(0,i._)([(0,p.qq)({type:[String],json:{write:!0}})],x.prototype,"subDomains",void 0),(0,i._)([(0,p.qq)({type:T.c,json:{write:!0}})],x.prototype,"tileInfo",void 0),(0,i._)([(0,p.qq)({readOnly:!0})],x.prototype,"tileServers",null),(0,i._)([(0,p.qq)({json:{read:!1}})],x.prototype,"type",void 0),(0,i._)([(0,p.qq)()],x.prototype,"urlPath",null),(0,i._)([(0,p.qq)({type:String,json:{origins:{"portal-item":{read:{source:"url"}}}}})],x.prototype,"urlTemplate",void 0),(0,i._)([(0,c.E)("urlTemplate",["urlTemplate","templateUrl"])],x.prototype,"readUrlTemplate",null),(0,i._)([(0,h.G)("urlTemplate",{templateUrl:{type:String}})],x.prototype,"writeUrlTemplate",null),(0,i._)([(0,p.qq)({type:b.K,json:{write:!0}})],x.prototype,"wmtsInfo",void 0),x=r=(0,i._)([(0,d.c)("esri.layers.WebTileLayer")],x);const S=x},98768:(e,t,l)=>{l.d(t,{K:()=>T});var r=l(41948),i=l(6220),s=l(47620),o=l(2600),n=l(40196),a=l(20744),u=l(66360),p=l(70680),c=l(10860),d=l(28176),h=l(1580),y=(l(9456),l(72052),l(33600)),f=l(12552),m=l(18996),g=l(71068),w=l(54872),v=l(9764),q=l(53039),_=l(46940);const T=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,p.mG)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,l){if(t.itemId)return new v.default({id:t.itemId,portal:l?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:r}=await Promise.all([l.e(8828),l.e(4132)]).then(l.bind(l,94132));return(0,c.wp)(t),await r({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.mA)(e)||u.c.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.CE)(e),!0))))}async setUserPrivileges(e,t){if(!i.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:l,fullEdit:r},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",l),this._set("userHasFullEditingPrivileges",r),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,c.CE)(e)}}async _fetchUserPrivileges(e,t){let l=this.portalItem;if(!e||!l||!l.loaded||l.sourceUrl)return this._fetchFallbackUserPrivileges(t);const r=e===l.id;if(r&&l.portal.user)return(0,_.CI)(l);let i,o;if(r)i=l.portal.url;else try{i=await(0,g.mK)(this.url,t)}catch(e){(0,c.CE)(e)}if(!i||!(0,d.Cs)(i,l.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(s.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.CE)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(r?await l.reload():(l=new v.default({id:e,portal:{url:i}}),await l.load(t)),l.portal.user)return(0,_.CI)(l)}catch(e){(0,c.CE)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.CE)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?s.id?.findCredential(this.url):null;if(!t)return!0;const l=b.credential===t?b.user:await this._fetchEditingUser(e);return b.credential=t,b.user=l,null==l?.privileges||l.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const l=s.id.findServerInfo(this.url??"");if(!l?.owningSystemUrl)return null;const r=`${l.owningSystemUrl}/sharing/rest`,i=w.c.getDefault();if(i&&i.loaded&&(0,d.k7)(i.restUrl)===(0,d.k7)(r))return i.user;const a=`${r}/community/self`,u=null!=e?e.signal:null,p=await(0,n.aG)((0,o.c)(a,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?q.c.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const l=t?.portal,r=this.portalItem?.id&&(this.portalItem.portal||w.c.getDefault());return l&&r&&!(0,d.kF)(r.restUrl,l.restUrl)?(t.messages&&t.messages.push(new a.c("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,r._)([(0,h.qq)({type:v.default})],t.prototype,"portalItem",null),(0,r._)([(0,y.E)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,r._)([(0,m.G)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,r._)([(0,h.qq)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,r._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,r._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,r._)([(0,h.qq)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,r._)([(0,f.c)("esri.layers.mixins.PortalLayer")],t),t},b={credential:null,user:null}},22108:(e,t,l)=>{l.d(t,{c:()=>p});var r,i=l(41948),s=l(40504),o=l(1580),n=l(53368),a=(l(72052),l(9456),l(12552));let u=r=class extends s.am{constructor(e){super(e),this.cols=null,this.level=0,this.levelValue=null,this.origin=null,this.resolution=0,this.rows=null,this.scale=0}clone(){return new r({cols:this.cols,level:this.level,levelValue:this.levelValue,resolution:this.resolution,rows:this.rows,scale:this.scale})}};(0,i._)([(0,o.qq)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"cols",void 0),(0,i._)([(0,o.qq)({type:n.Ab,json:{write:!0}})],u.prototype,"level",void 0),(0,i._)([(0,o.qq)({type:String,json:{write:!0}})],u.prototype,"levelValue",void 0),(0,i._)([(0,o.qq)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"origin",void 0),(0,i._)([(0,o.qq)({type:Number,json:{write:!0}})],u.prototype,"resolution",void 0),(0,i._)([(0,o.qq)({json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],u.prototype,"rows",void 0),(0,i._)([(0,o.qq)({type:Number,json:{write:!0}})],u.prototype,"scale",void 0),u=r=(0,i._)([(0,a.c)("esri.layers.support.LOD")],u);const p=u},87576:(e,t,l)=>{l.d(t,{c:()=>E});var r,i=l(41948),s=l(14628),o=l(40504),n=l(24296),a=l(1580),u=l(53368),p=(l(72052),l(9456),l(33600)),c=l(12552),d=l(18996),h=l(67776),y=l(56156),f=l(83372),m=l(60544),g=l(29120),w=l(22108),v=l(11712);const q=new s.O({PNG:"png",PNG8:"png8",PNG24:"png24",PNG32:"png32",JPEG:"jpg",JPG:"jpg",DIB:"dib",TIFF:"tiff",EMF:"emf",PS:"ps",PDF:"pdf",GIF:"gif",SVG:"svg",SVGZ:"svgz",Mixed:"mixed",MIXED:"mixed",LERC:"lerc",LERC2D:"lerc2d",RAW:"raw",pbf:"pbf"});let _=r=class extends o.am{static create(e={}){const{resolutionFactor:t=1,scales:l,size:i=256,spatialReference:s=y.c.WebMercator,numLODs:o=24}=e;if(!(0,m.U3)(s)){const e=[];if(l)for(let t=0;t<l.length;t++){const r=l[t];e.push(new w.c({level:t,scale:r,resolution:r}))}else{let t=5e-4;for(let l=o-1;l>=0;l--)e.unshift(new w.c({level:l,scale:t,resolution:t})),t*=2}return new r({dpi:96,lods:e,origin:new h.c(0,0,s),size:[i,i],spatialReference:s})}const a=(0,m.Nq)(s),u=e.origin?new h.c({x:e.origin.x,y:e.origin.y,spatialReference:s}):new h.c(a?{x:a.origin[0],y:a.origin[1],spatialReference:s}:{x:0,y:0,spatialReference:s}),p=1/(39.37*(0,n.k8)(s)*96),c=[];if(l)for(let e=0;e<l.length;e++){const t=l[e],r=t*p;c.push(new w.c({level:e,scale:t,resolution:r}))}else{let e=(0,m.Eb)(s)?512/i*591657527.5917094:256/i*591657527.591555;const l=Math.ceil(o/t);c.push(new w.c({level:0,scale:e,resolution:e*p}));for(let r=1;r<l;r++){const l=e/2**t,i=l*p;c.push(new w.c({level:r,scale:l,resolution:i})),e=l}}return new r({dpi:96,lods:c,origin:u,size:[i,i],spatialReference:s})}constructor(e){super(e),this.dpi=96,this.format=null,this.origin=null,this.size=null,this.spatialReference=null}get isWrappable(){const{spatialReference:e,origin:t}=this;if(e&&t){const l=(0,m.Nq)(e);return e.isWrappable&&!!l&&Math.abs(l.origin[0]-t.x)<=l.dx}return!1}readOrigin(e,t){return h.c.fromJSON({spatialReference:t.spatialReference,...e})}set lods(e){let t=0,l=0;const r=[],i=this._levelToLOD={};e&&(t=-1/0,l=1/0,e.forEach((e=>{r.push(e.scale),t=e.scale>t?e.scale:t,l=e.scale<l?e.scale:l,i[e.level]=e}))),this._set("scales",r),this._set("lods",e),this._initializeUpsampleLevels()}readSize(e,t){return[t.cols,t.rows]}writeSize(e,t){t.cols=e[0],t.rows=e[1]}zoomToScale(e){const t=this.scales;if(e<=0)return t[0];if(e>=t.length-1)return t[t.length-1];const l=Math.floor(e),r=l+1;return t[l]/(t[l]/t[r])**(e-l)}scaleToZoom(e){const t=this.scales,l=t.length-1;let r=0;for(;r<l;r++){const l=t[r],i=t[r+1];if(l<=e)return r;if(i===e)return r+1;if(l>e&&i<e)return r+Math.log(l/e)/Math.log(l/i)}return r}snapScale(e,t=.95){const l=this.scaleToZoom(e);return l%Math.floor(l)>=t?this.zoomToScale(Math.ceil(l)):this.zoomToScale(Math.floor(l))}tileAt(e,t,l,r){const i=this.lodAt(e);if(!i)return null;let s,o;if("number"==typeof t)s=t,o=l;else if((0,m.yK)(t.spatialReference,this.spatialReference))s=t.x,o=t.y,r=l;else{const e=(0,g.yU)(t,this.spatialReference);if(null==e)return null;s=e.x,o=e.y,r=l}const n=i.resolution*this.size[0],a=i.resolution*this.size[1];return r||(r=new v.g(null,0,0,0,(0,f.Su)())),r.level=e,r.row=Math.floor((this.origin.y-o)/a+.001),r.col=Math.floor((s-this.origin.x)/n+.001),this.updateTileInfo(r),r}updateTileInfo(e,t=r.ExtrapolateOptions.NONE){let l=this.lodAt(e.level);if(!l&&t===r.ExtrapolateOptions.POWER_OF_TWO){const t=this.lods[this.lods.length-1];t.level<e.level&&(l=t)}if(!l)return;const i=e.level-l.level,s=l.resolution*this.size[0]/2**i,o=l.resolution*this.size[1]/2**i;e.id=`${e.level}/${e.row}/${e.col}`,e.extent||(e.extent=(0,f.Su)()),e.extent[0]=this.origin.x+e.col*s,e.extent[1]=this.origin.y-(e.row+1)*o,e.extent[2]=e.extent[0]+s,e.extent[3]=e.extent[1]+o}upsampleTile(e){const t=this._upsampleLevels[e.level];return!(!t||-1===t.parentLevel||(e.level=t.parentLevel,e.row=Math.floor(e.row/t.factor+.001),e.col=Math.floor(e.col/t.factor+.001),this.updateTileInfo(e),0))}getTileBounds(e,t){const l=this.lodAt(t.level);if(null==l)return null;const{resolution:r}=l,i=r*this.size[0],s=r*this.size[1];return e[0]=this.origin.x+t.col*i,e[1]=this.origin.y-(t.row+1)*s,e[2]=e[0]+i,e[3]=e[1]+s,e}lodAt(e){return this._levelToLOD?.[e]??null}clone(){return r.fromJSON(this.write({}))}getOrCreateCompatible(e,t){if(256===this.size[0]&&256===this.size[1])return 256===e?this:null;const l=[],i=this.lods.length;for(let e=0;e<i;e++){const r=this.lods[e],i=r.resolution*t;l.push(new w.c({level:r.level,scale:r.scale,resolution:i}))}return new r({size:[e,e],dpi:this.dpi,format:this.format,compressionQuality:this.compressionQuality,origin:this.origin,spatialReference:this.spatialReference,lods:l})}_initializeUpsampleLevels(){const e=this.lods;this._upsampleLevels=[];let t=null;for(let l=0;l<e.length;l++){const r=e[l];this._upsampleLevels[r.level]={parentLevel:t?t.level:-1,factor:t?t.resolution/r.resolution:0},t=r}}};var T,b;(0,i._)([(0,a.qq)({type:Number,json:{write:!0}})],_.prototype,"compressionQuality",void 0),(0,i._)([(0,a.qq)({type:Number,json:{write:!0}})],_.prototype,"dpi",void 0),(0,i._)([(0,a.qq)({type:String,json:{read:q.read,write:q.write,origins:{"web-scene":{read:!1,write:!1}}}})],_.prototype,"format",void 0),(0,i._)([(0,a.qq)({readOnly:!0})],_.prototype,"isWrappable",null),(0,i._)([(0,a.qq)({type:h.c,json:{write:!0}})],_.prototype,"origin",void 0),(0,i._)([(0,p.E)("origin")],_.prototype,"readOrigin",null),(0,i._)([(0,a.qq)({type:[w.c],value:null,json:{write:!0}})],_.prototype,"lods",null),(0,i._)([(0,a.qq)({readOnly:!0})],_.prototype,"scales",void 0),(0,i._)([(0,a.qq)({cast:e=>Array.isArray(e)?e:"number"==typeof e?[e,e]:[256,256]})],_.prototype,"size",void 0),(0,i._)([(0,p.E)("size",["rows","cols"])],_.prototype,"readSize",null),(0,i._)([(0,d.G)("size",{cols:{type:u.Ab},rows:{type:u.Ab}})],_.prototype,"writeSize",null),(0,i._)([(0,a.qq)({type:y.c,json:{write:!0}})],_.prototype,"spatialReference",void 0),_=r=(0,i._)([(0,c.c)("esri.layers.support.TileInfo")],_),(b=(T=_||(_={})).ExtrapolateOptions||(T.ExtrapolateOptions={}))[b.NONE=0]="NONE",b[b.POWER_OF_TWO=1]="POWER_OF_TWO";const E=_},11712:(e,t,l)=>{l.d(t,{g:()=>r});class r{constructor(e,t,l,r,i=void 0){this.id=e,this.level=t,this.row=l,this.col=r,this.extent=i}}},20960:(e,t,l)=>{l.d(t,{K:()=>u});var r,i=l(41948),s=l(40504),o=l(62088),n=l(1580),a=(l(9456),l(66360),l(12552));let u=r=class extends s.am{constructor(e){super(e)}clone(){return new r({customLayerParameters:(0,o.ct)(this.customLayerParameters),customParameters:(0,o.ct)(this.customParameters),layerIdentifier:this.layerIdentifier,tileMatrixSet:this.tileMatrixSet,url:this.url})}};(0,i._)([(0,n.qq)({json:{type:Object,write:!0}})],u.prototype,"customLayerParameters",void 0),(0,i._)([(0,n.qq)({json:{type:Object,write:!0}})],u.prototype,"customParameters",void 0),(0,i._)([(0,n.qq)({type:String,json:{write:!0}})],u.prototype,"layerIdentifier",void 0),(0,i._)([(0,n.qq)({type:String,json:{write:!0}})],u.prototype,"tileMatrixSet",void 0),(0,i._)([(0,n.qq)({type:String,json:{write:!0}})],u.prototype,"url",void 0),u=r=(0,i._)([(0,a.c)("esri.layer.support.WMTSLayerInfo")],u)},80428:(e,t,l)=>{l.d(t,{E:()=>s,G:()=>o});var r=l(20744),i=l(10860);async function s(e,t,l){let s;try{s=await createImageBitmap(e)}catch(e){throw new r.c("request:server",`Unable to load ${t}`,{url:t,error:e})}return(0,i.wp)(l),s}async function o(e,t,l,s,o){let n;try{n=await createImageBitmap(e)}catch(e){throw new r.c("request:server",`Unable to load tile ${t}/${l}/${s}`,{error:e,level:t,row:l,col:s})}return(0,i.wp)(o),n}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3180],{68612:(t,n,e)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,a,u,s,c){return[t,n,e,r,o,a,u,s,c]}e.d(n,{IJ:()=>a,Su:()=>r,WK:()=>o});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:function(t,n){return new Float64Array(t,n,9)},fromValues:o},Symbol.toStringTag,{value:"Module"}))},87104:(t,n,e)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{IJ:()=>a,Su:()=>r,ct:()=>o});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,createView:function(t,n){return new Float64Array(t,n,16)},fromValues:function(t,n,e,r,o,a,u,s,c,i,l,f,M,h,E,I){return[t,n,e,r,o,a,u,s,c,i,l,f,M,h,E,I]}},Symbol.toStringTag,{value:"Module"}))},2620:(t,n,e)=>{function r(){return[0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{IJ:()=>a,Su:()=>r,ct:()=>o});const a=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,createView:function(t,n){return new Float64Array(t,n,4)},fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"}))},85256:(t,n,e)=>{function r(){return[0,0]}function o(t,n){return[t,n]}function a(){return o(1,1)}function u(){return o(1,0)}function s(){return o(0,1)}e.d(n,{Qw:()=>c,Su:()=>r,WK:()=>o});const c=a(),i=u(),l=s();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:i,UNIT_Y:l,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:function(t,n){return new Float64Array(t,n,2)},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:a,unitX:u,unitY:s,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},77556:(t,n,e)=>{e.d(n,{KU:()=>f,QT:()=>E,S_:()=>s,WO:()=>a,_7:()=>c,aU:()=>l,iW:()=>i,kr:()=>o,oL:()=>u,yy:()=>M});var r=e(47364);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,e,r,o,a,u,s,c,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=s,t[7]=c,t[8]=i,t}function u(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function s(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8],f=l*u-s*i,M=-l*a+s*c,h=i*a-u*c;let E=e*f+r*M+o*h;return E?(E=1/E,t[0]=f*E,t[1]=(-l*r+o*i)*E,t[2]=(s*r-o*u)*E,t[3]=M*E,t[4]=(l*e-o*c)*E,t[5]=(-s*e+o*a)*E,t[6]=h*E,t[7]=(-i*e+r*c)*E,t[8]=(u*e-r*a)*E,t):null}function c(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8];return t[0]=u*l-s*i,t[1]=o*i-r*l,t[2]=r*s-o*u,t[3]=s*c-a*l,t[4]=e*l-o*c,t[5]=o*a-e*s,t[6]=a*i-u*c,t[7]=r*c-e*i,t[8]=e*u-r*a,t}function i(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=e[0],h=e[1],E=e[2],I=e[3],S=e[4],O=e[5],T=e[6],A=e[7],N=e[8];return t[0]=M*r+h*u+E*i,t[1]=M*o+h*s+E*l,t[2]=M*a+h*c+E*f,t[3]=I*r+S*u+O*i,t[4]=I*o+S*s+O*l,t[5]=I*a+S*c+O*f,t[6]=T*r+A*u+N*i,t[7]=T*o+A*s+N*l,t[8]=T*a+A*c+N*f,t}function l(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t}function f(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e+e,s=r+r,c=o+o,i=e*u,l=r*u,f=r*s,M=o*u,h=o*s,E=o*c,I=a*u,S=a*s,O=a*c;return t[0]=1-f-E,t[3]=l-O,t[6]=M+S,t[1]=l+O,t[4]=1-i-E,t[7]=h-I,t[2]=M-S,t[5]=h+I,t[8]=1-i-f,t}function M(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],s=n[5],c=n[6],i=n[7],l=n[8],f=n[9],M=n[10],h=n[11],E=n[12],I=n[13],S=n[14],O=n[15],T=e*s-r*u,A=e*c-o*u,N=e*i-a*u,m=r*c-o*s,R=r*i-a*s,b=o*i-a*c,d=l*I-f*E,_=l*S-M*E,C=l*O-h*E,L=f*S-M*I,P=f*O-h*I,p=M*O-h*S;let F=T*p-A*P+N*L+m*C-R*_+b*d;return F?(F=1/F,t[0]=(s*p-c*P+i*L)*F,t[1]=(c*C-u*p-i*_)*F,t[2]=(u*P-s*C+i*d)*F,t[3]=(o*P-r*p-a*L)*F,t[4]=(e*p-o*C+a*_)*F,t[5]=(r*C-e*P-a*d)*F,t[6]=(I*b-S*R+O*m)*F,t[7]=(S*N-E*b-O*A)*F,t[8]=(E*R-I*N+O*T)*F,t):null}function h(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t}function E(t){const n=(0,r.Au)(),e=t[0],o=t[1],a=t[2],u=t[3],s=t[4],c=t[5],i=t[6],l=t[7],f=t[8];return Math.abs(1-(e*e+u*u+i*i))<=n&&Math.abs(1-(o*o+s*s+l*l))<=n&&Math.abs(1-(a*a+c*c+f*f))<=n}const I=i,S=h;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:c,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],u=t[5],s=t[6],c=t[7],i=t[8];return n*(i*a-u*c)+e*(-i*o+u*s)+r*(c*o-a*s)},equals:function(t,n){const e=t[0],o=t[1],a=t[2],u=t[3],s=t[4],c=t[5],i=t[6],l=t[7],f=t[8],M=n[0],h=n[1],E=n[2],I=n[3],S=n[4],O=n[5],T=n[6],A=n[7],N=n[8],m=(0,r.Au)();return Math.abs(e-M)<=m*Math.max(1,Math.abs(e),Math.abs(M))&&Math.abs(o-h)<=m*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(a-E)<=m*Math.max(1,Math.abs(a),Math.abs(E))&&Math.abs(u-I)<=m*Math.max(1,Math.abs(u),Math.abs(I))&&Math.abs(s-S)<=m*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(c-O)<=m*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(i-T)<=m*Math.max(1,Math.abs(i),Math.abs(T))&&Math.abs(l-A)<=m*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(f-N)<=m*Math.max(1,Math.abs(f),Math.abs(N))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:f,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:E,mul:I,multiply:i,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:M,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],u=n[5],s=n[6],c=n[8],i=n[9],l=n[10],f=l*u-s*i,M=-l*a+s*c,h=i*a-u*c,E=e*f+r*M+o*h;if(!E)return null;const I=1/E;return t[0]=f*I,t[1]=(-l*r+o*i)*I,t[2]=(s*r-o*u)*I,t[3]=M*I,t[4]=(l*e-o*c)*I,t[5]=(-s*e+o*a)*I,t[6]=h*I,t[7]=(-i*e+r*c)*I,t[8]=(u*e-r*a)*I,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=Math.sin(e),h=Math.cos(e);return t[0]=h*r+M*u,t[1]=h*o+M*s,t[2]=h*a+M*c,t[3]=h*u-M*r,t[4]=h*s-M*o,t[5]=h*c-M*a,t[6]=i,t[7]=l,t[8]=f,t},scale:l,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:S,subtract:h,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],i=n[6],l=n[7],f=n[8],M=e[0],h=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=s,t[5]=c,t[6]=M*r+h*u+i,t[7]=M*o+h*s+l,t[8]=M*a+h*c+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},41512:(t,n,e)=>{e.d(n,{C0:()=>l,WO:()=>O,Wu:()=>I,fO:()=>h,iW:()=>f,sF:()=>P,yG:()=>i});var r=e(68612),o=e(2620),a=e(62484),u=e(47364),s=e(98472),c=e(74784);function i(t,n,e){e*=.5;const r=Math.sin(e);return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=Math.cos(e),t}function l(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,u.Au)()?(t[0]=n[0]/r,t[1]=n[1]/r,t[2]=n[2]/r):(t[0]=1,t[1]=0,t[2]=0),e}function f(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],s=e[0],c=e[1],i=e[2],l=e[3];return t[0]=r*l+u*s+o*i-a*c,t[1]=o*l+u*c+a*s-r*i,t[2]=a*l+u*i+r*c-o*s,t[3]=u*l-r*s-o*c-a*i,t}function M(t,n,e,r){const o=n[0],a=n[1],s=n[2],c=n[3];let i,l,f,M,h,E=e[0],I=e[1],S=e[2],O=e[3];return l=o*E+a*I+s*S+c*O,l<0&&(l=-l,E=-E,I=-I,S=-S,O=-O),1-l>(0,u.Au)()?(i=Math.acos(l),f=Math.sin(i),M=Math.sin((1-r)*i)/f,h=Math.sin(r*i)/f):(M=1-r,h=r),t[0]=M*o+h*E,t[1]=M*a+h*I,t[2]=M*s+h*S,t[3]=M*c+h*O,t}function h(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function E(t,n){const e=n[0]+n[4]+n[8];let r;if(e>0)r=Math.sqrt(e+1),t[3]=.5*r,r=.5/r,t[0]=(n[5]-n[7])*r,t[1]=(n[6]-n[2])*r,t[2]=(n[1]-n[3])*r;else{let e=0;n[4]>n[0]&&(e=1),n[8]>n[3*e+e]&&(e=2);const o=(e+1)%3,a=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*o+o]-n[3*a+a]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*o+a]-n[3*a+o])*r,t[o]=(n[3*o+e]+n[3*e+o])*r,t[a]=(n[3*a+e]+n[3*e+a])*r}return t}function I(t,n,e,r){const o=.5*Math.PI/180;n*=o,e*=o,r*=o;const a=Math.sin(n),u=Math.cos(n),s=Math.sin(e),c=Math.cos(e),i=Math.sin(r),l=Math.cos(r);return t[0]=a*c*l-u*s*i,t[1]=u*s*l+a*c*i,t[2]=u*c*i-a*s*l,t[3]=u*c*l+a*s*i,t}const S=c.c,O=c.s,T=c.g,A=f,N=c.d,m=c.h,R=c.l,b=c.i,d=b,_=c.j,C=_,L=c.n,P=c.a,p=c.e,F=(0,a.Su)(),y=(0,a.WK)(1,0,0),g=(0,a.WK)(0,1,0),w=(0,o.Su)(),D=(0,o.Su)(),U=(0,r.Su)();Object.freeze(Object.defineProperty({__proto__:null,add:T,calculateW:function(t,n){const e=n[0],r=n[1],o=n[2];return t[0]=e,t[1]=r,t[2]=o,t[3]=Math.sqrt(Math.abs(1-e*e-r*r-o*o)),t},conjugate:h,copy:S,dot:m,equals:p,exactEquals:P,fromEuler:I,fromMat3:E,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e*e+r*r+o*o+a*a,s=u?1/u:0;return t[0]=-e*s,t[1]=-r*s,t[2]=-o*s,t[3]=a*s,t},len:d,length:b,lerp:R,mul:A,multiply:f,normalize:L,random:function(t){const n=u.QR,e=n(),r=n(),o=n(),a=Math.sqrt(1-e),s=Math.sqrt(e);return t[0]=a*Math.sin(2*Math.PI*r),t[1]=a*Math.cos(2*Math.PI*r),t[2]=s*Math.sin(2*Math.PI*o),t[3]=s*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c+u*s,t[1]=o*c+a*s,t[2]=a*c-o*s,t[3]=u*c-r*s,t},rotateY:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c-a*s,t[1]=o*c+u*s,t[2]=a*c+r*s,t[3]=u*c-o*s,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],o=n[1],a=n[2],u=n[3],s=Math.sin(e),c=Math.cos(e);return t[0]=r*c+o*s,t[1]=o*c-r*s,t[2]=a*c+u*s,t[3]=u*c-a*s,t},rotationTo:function(t,n,e){const r=(0,s.j)(n,e);return r<-.999999?((0,s.b)(F,y,n),(0,s.C)(F)<1e-6&&(0,s.b)(F,g,n),(0,s.n)(F,F),i(t,F,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,s.b)(F,n,e),t[0]=F[0],t[1]=F[1],t[2]=F[2],t[3]=1+r,L(t,t))},scale:N,set:O,setAxes:function(t,n,e,r){const o=U;return o[0]=e[0],o[3]=e[1],o[6]=e[2],o[1]=r[0],o[4]=r[1],o[7]=r[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],L(t,E(t,o))},setAxisAngle:i,slerp:M,sqlerp:function(t,n,e,r,o,a){return M(w,n,o,a),M(D,e,r,a),M(t,w,D,2*a*(1-a)),t},sqrLen:C,squaredLength:_,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},51120:(t,n,e)=>{e.d(n,{y:()=>i});var r=e(53648),o=e(15008),a=e(62484);function u(t,n,e){const r=Math.sin(t),o=Math.cos(t),a=Math.sin(n),u=Math.cos(n),s=e;return s[0]=-r,s[4]=-a*o,s[8]=u*o,s[12]=0,s[1]=o,s[5]=-a*r,s[9]=u*r,s[13]=0,s[2]=0,s[6]=u,s[10]=a,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=e(38380),c=e(60544);function i(t,n,e,r){if(null==t||null==r)return!1;const a=(0,s.Se)(t,s.Wy),i=(0,s.Se)(r,s.mq);if(a===i&&!l(i)&&(a!==s.o3.UNKNOWN||(0,c.yK)(t,r)))return(0,o.mu)(e,n),!0;if(l(i)){const t=s.yw[a][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][i];return null!=t&&null!=r&&(t(n,0,M,0),r(M,0,h,0),u(f*M[0],f*M[1],e),e[12]=h[0],e[13]=h[1],e[14]=h[2],!0)}if((i===s.o3.WEB_MERCATOR||i===s.o3.PLATE_CARREE||i===s.o3.WGS84)&&(a===s.o3.WGS84||a===s.o3.CGCS2000&&i===s.o3.PLATE_CARREE||a===s.o3.SPHERICAL_ECEF||a===s.o3.WEB_MERCATOR)){const t=s.yw[a][s.o3.LON_LAT],r=s.yw[s.o3.LON_LAT][i];return null!=t&&null!=r&&(t(n,0,M,0),r(M,0,h,0),a===s.o3.SPHERICAL_ECEF?function(t,n,e){u(t,n,e),(0,o.oL)(e,e)}(f*M[0],f*M[1],e):(0,o.ZX)(e),e[12]=h[0],e[13]=h[1],e[14]=h[2],!0)}return!1}function l(t){return t===s.o3.SPHERICAL_ECEF||t===s.o3.SPHERICAL_MARS_PCPF||t===s.o3.SPHERICAL_MOON_PCPF}const f=(0,r.EF)(1),M=(0,a.Su)(),h=(0,a.Su)()},82448:(t,n,e)=>{e.d(n,{_s:()=>i});var r=e(22080),o=e(56156),a=e(60544);const u=new o.c(r._),s=new o.c(r.IP),c=new o.c(r.Om);function i(t){const n=l.get(t);if(n)return n;let e=u;if(t)if(t===s)e=s;else if(t===c)e=c;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,a.cJ)(n)||(0,a.cJ)(r)?e=s:((0,a.C_)(n)||(0,a.C_)(r))&&(e=c);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===f?e=s:t===M&&(e=c)}}}return l.set(t,e),e}new o.c(r.MJ);const l=new Map,f=s.wkt.toUpperCase(),M=c.wkt.toUpperCase()},58632:(t,n,e)=>{e.d(n,{Su:()=>a,XX:()=>s,Oq:()=>u}),e(53648);var r=e(98472),o=e(62484);function a(t=E){return[t[0],t[1],t[2],t[3]]}function u(t){return t}function s(t,n,e,o=0,u=Math.floor(e*(1/3)),E=Math.floor(e*(2/3))){if(e<3)return!1;n(i,o);let I=u,S=!1;for(;I<e-1&&!S;)n(l,I),I++,S=!(0,r.h)(i,l);if(!S)return!1;for(I=Math.max(I,E),S=!1;I<e&&!S;)n(f,I),I++,(0,r.f)(M,i,l),(0,r.n)(M,M),(0,r.f)(h,l,f),(0,r.n)(h,h),S=!(0,r.h)(i,f)&&!(0,r.h)(l,f)&&Math.abs((0,r.j)(M,h))<c;return S?(function(t,n,e,r=a()){const o=e[0]-n[0],u=e[1]-n[1],s=e[2]-n[2],c=t[0]-n[0],i=t[1]-n[1],l=t[2]-n[2],f=u*l-s*i,M=s*c-o*l,h=o*i-u*c,E=f*f+M*M+h*h,I=Math.abs(E-1)>1e-5&&E>1e-12?1/Math.sqrt(E):1;r[0]=f*I,r[1]=M*I,r[2]=h*I,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2])}(i,l,f,t),!0):(0!==o||1!==u||2!==E)&&s(t,n,e,0,1,2)}e(74784),e(48880),e(20136),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)(),(0,o.Su)();const c=.99619469809,i=(0,o.Su)(),l=(0,o.Su)(),f=(0,o.Su)(),M=(0,o.Su)(),h=(0,o.Su)(),E=[0,0,1,0];var I,S;(S=I||(I={}))[S.NONE=0]="NONE",S[S.CLAMP=1]="CLAMP",S[S.INFINITE_MIN=4]="INFINITE_MIN",S[S.INFINITE_MAX=8]="INFINITE_MAX",I.INFINITE_MIN,I.INFINITE_MAX,I.INFINITE_MAX},48880:(t,n,e)=>{e.d(n,{i4:()=>u});var r=e(53648),o=e(98472),a=e(62484);function u(t,n){const e=(0,o.j)(t,n)/((0,o.l)(t)*(0,o.l)(n));return-(0,r.Uj)(e)}(0,a.Su)(),(0,a.Su)()},20136:(t,n,e)=>{e.d(n,{SW:()=>M,QX:()=>h,Wq:()=>f});var r=e(52324),o=e(68612),a=e(87104),u=e(2620),s=e(85256),c=e(62484),i=e(37008);class l{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.o)((()=>this._reset())),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(s.Su)}static createVec3f64(){return new l(c.Su)}static createVec4f64(){return new l(i.Su)}static createMat3f64(){return new l(o.Su)}static createMat4f64(){return new l(a.Su)}static createQuatf64(){return new l(u.Su)}get test(){return{length:this._items.length}}}l.createVec2f64();const f=l.createVec3f64(),M=(l.createVec4f64(),l.createMat3f64(),l.createMat4f64()),h=l.createQuatf64()},89560:(t,n,e)=>{e.d(n,{O:()=>o,Y:()=>r});class r{constructor(t,n,e=n){this.data=t,this.size=n,this.stride=e}}class o extends r{constructor(t,n,e,r=!1,o=e){super(t,e,o),this.indices=n,this.exclusive=r}}},4636:(t,n,e)=>{var r;e.d(n,{K:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.PERSPECTIVEDIVIDE="perspectiveDivide",t.CENTEROFFSETANDDISTANCE="centerOffsetAndDistance",t.LENGTH="length",t.PREVPOSITION="prevPosition",t.NEXTPOSITION="nextPosition",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMAL2COMPRESSED="normal2Compressed",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5928],{83536:(e,t,r)=>{r.d(t,{c:()=>p});var s=r(41948),o=r(2952),i=(r(40196),r(20744),r(66360),r(37176),r(41168)),n=r(1580),a=r(12552);let l=class extends o.c{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,i.ox)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new o.c(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const s of t)if(s){if(r(s)){const t=this.indexOf(s,e);t>=0?t!==e&&this.reorder(s,e):this.add(s,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(s);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,s._)([(0,n.qq)()],l.prototype,"getCollections",void 0),(0,s._)([(0,n.qq)()],l.prototype,"getChildrenFunction",void 0),(0,s._)([(0,n.qq)()],l.prototype,"itemFilterFunction",void 0),l=(0,s._)([(0,a.c)("esri.core.CollectionFlattener")],l);const p=l},10948:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Xe});var s=r(41948),o=r(2952),i=r(83536),n=r(20744),a=r(62088),l=r(79152),p=r(66360),u=r(26496),y=r(10860),d=r(28176),c=r(1580),h=(r(9456),r(33600)),f=r(12552),m=r(56156),g=r(81436),q=r(6444),v=r(82692),_=(r(99704),r(73868),r(90200),r(12836),r(63718),r(2360),r(64624),r(24948),r(70236),r(37284)),b=r(2600),w=r(14628),S=r(95800),F=r(94804),x=(r(72052),r(9968)),T=r(95247),O=r(672),A=r(22156),R=r(53368),E=r(21488);let j=class extends((0,A.MR)(u.S)){constructor(e){super(e),this.title="",this.id=-1,this.modelName=null,this.isEmpty=null,this.legendEnabled=!0,this.visible=!0,this.opacity=1}readTitle(e,t){return"string"==typeof t.alias?t.alias:"string"==typeof t.name?t.name:""}readIdOnlyOnce(e){return-1!==this.id?this.id:"number"==typeof e?e:-1}};(0,s._)([(0,c.qq)({type:String,json:{origins:{"web-scene":{write:!0},"portal-item":{write:!0}}}})],j.prototype,"title",void 0),(0,s._)([(0,h.E)("service","title",["alias","name"])],j.prototype,"readTitle",null),(0,s._)([(0,c.qq)()],j.prototype,"layer",void 0),(0,s._)([(0,c.qq)({type:R.Ab,readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],j.prototype,"id",void 0),(0,s._)([(0,h.E)("service","id")],j.prototype,"readIdOnlyOnce",null),(0,s._)([(0,c.qq)((0,E.yo)(String))],j.prototype,"modelName",void 0),(0,s._)([(0,c.qq)((0,E.yo)(Boolean))],j.prototype,"isEmpty",void 0),(0,s._)([(0,c.qq)({type:Boolean,nonNullable:!0})],j.prototype,"legendEnabled",void 0),(0,s._)([(0,c.qq)({type:Boolean,json:{name:"visibility",write:!0}})],j.prototype,"visible",void 0),(0,s._)([(0,c.qq)({type:Number,json:{write:!0}})],j.prototype,"opacity",void 0),j=(0,s._)([(0,f.c)("esri.layers.buildingSublayers.BuildingSublayer")],j);const C=j;var I=r(6828),L=r(36088),P=r(81732),Q=r(16424),B=r(564),M=r(39840),N=r(44104),D=r(95776),G=r(65548),z=r(27136),k=r(74776),U=r(63680);const K=(0,P.l)();let H=class extends((0,I.c)(S.c.LoadableMixin((0,F.g)(C)))){constructor(e){super(e),this.type="building-component",this.nodePages=null,this.materialDefinitions=[],this.textureSetDefinitions=[],this.geometryDefinitions=[],this.indexInfo=null,this.serviceUpdateTimeStamp=null,this.store=null,this.attributeStorageInfo=[],this.fields=[],this.associatedLayer=null,this.outFields=null,this.listMode="show",this.renderer=null,this.definitionExpression=null,this.popupEnabled=!0,this.popupTemplate=null,this.layerType="3d-object"}get parsedUrl(){return this.layer?{path:`${this.layer.parsedUrl?.path}/sublayers/${this.id}`,query:this.layer.parsedUrl?.query}:{path:""}}get fieldsIndex(){return new Q.c(this.fields)}readAssociatedLayer(e,t){const r=this.layer.associatedFeatureServiceItem,s=t.associatedLayerID;return null!=r&&"number"==typeof s?new O.default({portalItem:r,customParameters:this.customParameters,layerId:s}):null}get objectIdField(){if(null!=this.fields)for(const e of this.fields)if("oid"===e.type)return e.name;return null}get displayField(){return null!=this.associatedLayer?this.associatedLayer.displayField:void 0}get apiKey(){return this.layer.apiKey}get customParameters(){return this.layer.customParameters}get fullExtent(){return this.layer.fullExtent}get spatialReference(){return this.layer.spatialReference}get version(){return this.layer.version}get elevationInfo(){return this.layer.elevationInfo}get minScale(){return this.layer.minScale}get maxScale(){return this.layer.maxScale}get effectiveScaleRange(){return this.layer.effectiveScaleRange}get defaultPopupTemplate(){return this.createPopupTemplate()}load(e){const t=null!=e?e.signal:null,r=this._fetchService(t).then((()=>{this.indexInfo=(0,M.S)(this.parsedUrl.path,this.rootNode,this.nodePages,this.customParameters,this.apiKey,p.c.getLogger(this),t)}));return this.addResolvingPromise(r),Promise.resolve(this)}createPopupTemplate(e){return(0,G.Ap)(this,e)}async _fetchService(e){const t=(await(0,b.c)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service",url:this.parsedUrl})}getField(e){return this.fieldsIndex.get(e)}getFieldDomain(e,t){const r=this.getFeatureType(t?.feature)?.domains?.[e];return r&&"inherited"!==r.type?r:this.getField(e)?.domain??null}getFeatureType(e){return e&&null!=this.associatedLayer?this.associatedLayer.getFeatureType(e):null}get types(){return null!=this.associatedLayer?this.associatedLayer.types??[]:[]}get typeIdField(){return null!=this.associatedLayer?this.associatedLayer.typeIdField:null}get geometryType(){return"3d-object"===this.layerType?"mesh":"point"}get profile(){return"3d-object"===this.layerType?"mesh-pyramids":"points"}get capabilities(){const e=null!=this.associatedLayer&&this.associatedLayer.capabilities?this.associatedLayer.capabilities:L.u,{query:t,data:{supportsZ:r,supportsM:s,isVersioned:o}}=e;return{query:t,data:{supportsZ:r,supportsM:s,isVersioned:o}}}createQuery(){const e=new D.c;return"mesh"!==this.geometryType&&(e.returnGeometry=!0,e.returnZ=!0),e.where=this.definitionExpression||"1=1",e.sqlFormat="standard",e}queryExtent(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryExtent(e||this.createQuery(),t)))}queryFeatureCount(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatureCount(e||this.createQuery(),t)))}queryFeatures(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryFeatures(e||this.createQuery(),t))).then((e=>{if(e?.features)for(const t of e.features)t.layer=this.layer,t.sourceLayer=this;return e}))}queryObjectIds(e,t){return this._getAssociatedLayerForQuery().then((r=>r.queryObjectIds(e||this.createQuery(),t)))}async queryCachedAttributes(e,t){const r=(0,B.k7)(this.fieldsIndex,await(0,U.W_)(this,(0,U.M$)(this)));return(0,k.cx)(this.parsedUrl.path,this.attributeStorageInfo,e,t,r,this.apiKey,this.customParameters)}async queryCachedFeature(e,t){const r=await this.queryCachedAttributes(e,[t]);if(!r||0===r.length)throw new n.c("scenelayer:feature-not-in-cached-data","Feature not found in cached data");return new q.c({attributes:r[0],layer:this,sourceLayer:this})}getFieldUsageInfo(e){return this.fieldsIndex.has(e)?{supportsLabelingInfo:!1,supportsRenderer:!1,supportsPopupTemplate:!1,supportsLayerQuery:!1}:{supportsLabelingInfo:!1,supportsRenderer:!0,supportsPopupTemplate:!0,supportsLayerQuery:null!=this.associatedLayer}}_getAssociatedLayerForQuery(){const e=this.associatedLayer;return null!=e&&e.loaded?Promise.resolve(e):this._loadAssociatedLayerForQuery()}async _loadAssociatedLayerForQuery(){if(await this.load(),null==this.associatedLayer)throw new n.c("buildingscenelayer:query-not-available","BuildingSceneLayer component layer queries are not available without an associated feature layer",{layer:this});try{await this.associatedLayer.load()}catch(e){throw new n.c("buildingscenelayer:query-not-available","BuildingSceneLayer associated feature layer could not be loaded",{layer:this,error:e})}return this.associatedLayer}};(0,s._)([(0,c.qq)({readOnly:!0})],H.prototype,"parsedUrl",null),(0,s._)([(0,c.qq)({type:N.yq,readOnly:!0})],H.prototype,"nodePages",void 0),(0,s._)([(0,c.qq)({type:[N.a],readOnly:!0})],H.prototype,"materialDefinitions",void 0),(0,s._)([(0,c.qq)({type:[N.G4],readOnly:!0})],H.prototype,"textureSetDefinitions",void 0),(0,s._)([(0,c.qq)({type:[N.iK],readOnly:!0})],H.prototype,"geometryDefinitions",void 0),(0,s._)([(0,c.qq)({readOnly:!0})],H.prototype,"serviceUpdateTimeStamp",void 0),(0,s._)([(0,c.qq)({readOnly:!0})],H.prototype,"store",void 0),(0,s._)([(0,c.qq)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],H.prototype,"rootNode",void 0),(0,s._)([(0,c.qq)({readOnly:!0})],H.prototype,"attributeStorageInfo",void 0),(0,s._)([(0,c.qq)(K.fields)],H.prototype,"fields",void 0),(0,s._)([(0,c.qq)({readOnly:!0})],H.prototype,"fieldsIndex",null),(0,s._)([(0,c.qq)({readOnly:!0,type:O.default})],H.prototype,"associatedLayer",void 0),(0,s._)([(0,h.E)("service","associatedLayer",["associatedLayerID"])],H.prototype,"readAssociatedLayer",null),(0,s._)([(0,c.qq)(K.outFields)],H.prototype,"outFields",void 0),(0,s._)([(0,c.qq)({type:String,readOnly:!0})],H.prototype,"objectIdField",null),(0,s._)([(0,c.qq)({readOnly:!0,type:String,json:{read:!1}})],H.prototype,"displayField",null),(0,s._)([(0,c.qq)({readOnly:!0,type:String})],H.prototype,"apiKey",null),(0,s._)([(0,c.qq)({readOnly:!0,type:String})],H.prototype,"customParameters",null),(0,s._)([(0,c.qq)({readOnly:!0,type:T.c})],H.prototype,"fullExtent",null),(0,s._)([(0,c.qq)({readOnly:!0,type:m.c})],H.prototype,"spatialReference",null),(0,s._)([(0,c.qq)({readOnly:!0})],H.prototype,"version",null),(0,s._)([(0,c.qq)({readOnly:!0,type:z.c})],H.prototype,"elevationInfo",null),(0,s._)([(0,c.qq)({readOnly:!0,type:Number})],H.prototype,"minScale",null),(0,s._)([(0,c.qq)({readOnly:!0,type:Number})],H.prototype,"maxScale",null),(0,s._)([(0,c.qq)({readOnly:!0,type:Number})],H.prototype,"effectiveScaleRange",null),(0,s._)([(0,c.qq)({type:["hide","show"],json:{write:!0}})],H.prototype,"listMode",void 0),(0,s._)([(0,c.qq)({types:_.Q,json:{origins:{service:{read:{source:"drawingInfo.renderer"}}},name:"layerDefinition.drawingInfo.renderer",write:!0},value:null})],H.prototype,"renderer",void 0),(0,s._)([(0,c.qq)({type:String,json:{origins:{service:{read:!1,write:!1}},name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],H.prototype,"definitionExpression",void 0),(0,s._)([(0,c.qq)(E.Ou)],H.prototype,"popupEnabled",void 0),(0,s._)([(0,c.qq)({type:v.c,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],H.prototype,"popupTemplate",void 0),(0,s._)([(0,c.qq)({readOnly:!0,type:String,json:{origins:{service:{read:{source:"store.normalReferenceFrame"}}},read:!1}})],H.prototype,"normalReferenceFrame",void 0),(0,s._)([(0,c.qq)({readOnly:!0,json:{read:!1}})],H.prototype,"defaultPopupTemplate",null),(0,s._)([(0,c.qq)()],H.prototype,"types",null),(0,s._)([(0,c.qq)()],H.prototype,"typeIdField",null),(0,s._)([(0,c.qq)({json:{write:!1}}),(0,x.G)(new w.O({"3DObject":"3d-object",Point:"point"}))],H.prototype,"layerType",void 0),(0,s._)([(0,c.qq)()],H.prototype,"geometryType",null),(0,s._)([(0,c.qq)()],H.prototype,"profile",null),(0,s._)([(0,c.qq)({readOnly:!0,json:{read:!1}})],H.prototype,"capabilities",null),H=(0,s._)([(0,f.c)("esri.layers.buildingSublayers.BuildingComponentSublayer")],H);const J=H;var V,W=r(69504);const Z={type:o.c,readOnly:!0,json:{origins:{service:{read:{source:"sublayers",reader:$}}},read:!1}};function $(e,t,r){if(e&&Array.isArray(e))return new o.c(e.map((e=>{const t=function(e){return"group"===e.layerType?X:J}(e);if(t){const s=new t;return s.read(e,r),s}return r?.messages&&e&&r.messages.push(new W.c("building-scene-layer:unsupported-sublayer-type","Building scene sublayer of type '"+(e.type||"unknown")+"' are not supported",{definition:e,context:r})),null})))}let X=V=class extends C{constructor(e){super(e),this.type="building-group",this.listMode="show",this.sublayers=null}loadAll(){return(0,l.W)(this,(e=>V.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)}))))}};var Y;(0,s._)([(0,c.qq)({type:["hide","show","hide-children"],json:{write:!0}})],X.prototype,"listMode",void 0),(0,s._)([(0,c.qq)(Z)],X.prototype,"sublayers",void 0),X=V=(0,s._)([(0,f.c)("esri.layers.buildingSublayers.BuildingGroupSublayer")],X),(Y=X||(X={})).sublayersProperty=Z,Y.readSublayers=$,Y.forEachSublayer=function e(t,r){t.forEach((t=>{r(t),"building-group"===t.type&&e(t.sublayers,r)}))};const ee=X;var te=r(38724),re=r(16660),se=r(28584),oe=r(66576),ie=r(98768),ne=r(3116),ae=r(87072),le=r(50420),pe=r(40504),ue=r(63564);let ye=class extends pe.am{constructor(){super(...arguments),this.type=null}};(0,s._)([(0,c.qq)({type:String,readOnly:!0,json:{write:!0}})],ye.prototype,"type",void 0),ye=(0,s._)([(0,f.c)("esri.layers.support.BuildingFilterAuthoringInfo")],ye);const de=ye;var ce;let he=ce=class extends pe.am{constructor(){super(...arguments),this.filterType=null,this.filterValues=null}clone(){return new ce({filterType:this.filterType,filterValues:(0,a.ct)(this.filterValues)})}};(0,s._)([(0,c.qq)({type:String,json:{write:!0}})],he.prototype,"filterType",void 0),(0,s._)([(0,c.qq)({type:[String],json:{write:!0}})],he.prototype,"filterValues",void 0),he=ce=(0,s._)([(0,f.c)("esri.layers.support.BuildingFilterAuthoringInfoType")],he);const fe=he;var me;const ge=o.c.ofType(fe);let qe=me=class extends pe.am{clone(){return new me({filterTypes:(0,a.ct)(this.filterTypes)})}};(0,s._)([(0,c.qq)({type:ge,json:{write:!0}})],qe.prototype,"filterTypes",void 0),qe=me=(0,s._)([(0,f.c)("esri.layers.support.BuildingFilterAuthoringInfoBlock")],qe);const ve=qe;var _e;const be=o.c.ofType(ve);let we=_e=class extends de{constructor(){super(...arguments),this.type="checkbox"}clone(){return new _e({filterBlocks:(0,a.ct)(this.filterBlocks)})}};(0,s._)([(0,c.qq)({type:["checkbox"]})],we.prototype,"type",void 0),(0,s._)([(0,c.qq)({type:be,json:{write:!0}})],we.prototype,"filterBlocks",void 0),we=_e=(0,s._)([(0,f.c)("esri.layers.support.BuildingFilterAuthoringInfoCheckbox")],we);const Se=we;let Fe=class extends pe.am{};(0,s._)([(0,c.qq)({readOnly:!0,json:{read:!1}})],Fe.prototype,"type",void 0),Fe=(0,s._)([(0,f.c)("esri.layers.support.BuildingFilterMode")],Fe);const xe=Fe;var Te;let Oe=Te=class extends xe{constructor(){super(...arguments),this.type="solid"}clone(){return new Te}};(0,s._)([(0,c.qq)({type:["solid"],readOnly:!0,json:{write:!0}})],Oe.prototype,"type",void 0),Oe=Te=(0,s._)([(0,f.c)("esri.layers.support.BuildingFilterModeSolid")],Oe);const Ae=Oe;var Re,Ee=r(37904);let je=Re=class extends xe{constructor(){super(...arguments),this.type="wire-frame",this.edges=null}clone(){return new Re({edges:(0,a.ct)(this.edges)})}};(0,s._)([(0,x.G)({wireFrame:"wire-frame"})],je.prototype,"type",void 0),(0,s._)([(0,c.qq)(Ee.I)],je.prototype,"edges",void 0),je=Re=(0,s._)([(0,f.c)("esri.layers.support.BuildingFilterModeWireFrame")],je);const Ce=je;var Ie;let Le=Ie=class extends xe{constructor(){super(...arguments),this.type="x-ray"}clone(){return new Ie}};(0,s._)([(0,c.qq)({type:["x-ray"],readOnly:!0,json:{write:!0}})],Le.prototype,"type",void 0),Le=Ie=(0,s._)([(0,f.c)("esri.layers.support.BuildingFilterModeXRay")],Le);const Pe=Le;var Qe;const Be={nonNullable:!0,types:{key:"type",base:xe,typeMap:{solid:Ae,"wire-frame":Ce,"x-ray":Pe}},json:{read:e=>{switch(e?.type){case"solid":return Ae.fromJSON(e);case"wireFrame":return Ce.fromJSON(e);case"x-ray":return Pe.fromJSON(e);default:return}},write:{enabled:!0,isRequired:!0}}};let Me=Qe=class extends pe.am{constructor(){super(...arguments),this.filterExpression=null,this.filterMode=new Ae,this.title=""}clone(){return new Qe({filterExpression:this.filterExpression,filterMode:(0,a.ct)(this.filterMode),title:this.title})}};(0,s._)([(0,c.qq)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Me.prototype,"filterExpression",void 0),(0,s._)([(0,c.qq)(Be)],Me.prototype,"filterMode",void 0),(0,s._)([(0,c.qq)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],Me.prototype,"title",void 0),Me=Qe=(0,s._)([(0,f.c)("esri.layers.support.BuildingFilterBlock")],Me);const Ne=Me;var De;const Ge=o.c.ofType(Ne);let ze=De=class extends pe.am{constructor(){super(...arguments),this.description=null,this.filterBlocks=null,this.id=(0,ue.g1)(),this.name=null}clone(){return new De({description:this.description,filterBlocks:(0,a.ct)(this.filterBlocks),id:this.id,name:this.name,filterAuthoringInfo:(0,a.ct)(this.filterAuthoringInfo)})}};(0,s._)([(0,c.qq)({type:String,json:{write:!0}})],ze.prototype,"description",void 0),(0,s._)([(0,c.qq)({type:Ge,json:{write:{enabled:!0,isRequired:!0}}})],ze.prototype,"filterBlocks",void 0),(0,s._)([(0,c.qq)({types:{key:"type",base:de,typeMap:{checkbox:Se}},json:{read:e=>"checkbox"===e?.type?Se.fromJSON(e):null,write:!0}})],ze.prototype,"filterAuthoringInfo",void 0),(0,s._)([(0,c.qq)({type:String,constructOnly:!0,json:{write:{enabled:!0,isRequired:!0}}})],ze.prototype,"id",void 0),(0,s._)([(0,c.qq)({type:String,json:{write:{enabled:!0,isRequired:!0}}})],ze.prototype,"name",void 0),ze=De=(0,s._)([(0,f.c)("esri.layers.support.BuildingFilter")],ze);const ke=ze;let Ue=class extends pe.am{constructor(){super(...arguments),this.fieldName=null,this.modelName=null,this.label=null,this.min=null,this.max=null,this.mostFrequentValues=null,this.subLayerIds=null}};(0,s._)([(0,c.qq)({type:String})],Ue.prototype,"fieldName",void 0),(0,s._)([(0,c.qq)({type:String})],Ue.prototype,"modelName",void 0),(0,s._)([(0,c.qq)({type:String})],Ue.prototype,"label",void 0),(0,s._)([(0,c.qq)({type:Number})],Ue.prototype,"min",void 0),(0,s._)([(0,c.qq)({type:Number})],Ue.prototype,"max",void 0),(0,s._)([(0,c.qq)({json:{read:e=>Array.isArray(e)&&(e.every((e=>"string"==typeof e))||e.every((e=>"number"==typeof e)))?e.slice():null}})],Ue.prototype,"mostFrequentValues",void 0),(0,s._)([(0,c.qq)({type:[Number]})],Ue.prototype,"subLayerIds",void 0),Ue=(0,s._)([(0,f.c)("esri.layers.support.BuildingFieldStatistics")],Ue);let Ke=class extends(S.c.LoadableMixin((0,F.g)(pe.am))){constructor(){super(...arguments),this.url=null}get fields(){return this.loaded||"loading"===this.loadStatus?this._get("fields"):(p.c.getLogger(this).error("building summary statistics are not loaded"),null)}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._fetchService(t)),Promise.resolve(this)}async _fetchService(e){const t=(await(0,b.c)(this.url,{query:{f:"json"},responseType:"json",signal:e})).data;this.read(t,{origin:"service"})}};(0,s._)([(0,c.qq)({constructOnly:!0,type:String})],Ke.prototype,"url",void 0),(0,s._)([(0,c.qq)({readOnly:!0,type:[Ue],json:{read:{source:"summary"}}})],Ke.prototype,"fields",null),Ke=(0,s._)([(0,f.c)("esri.layers.support.BuildingSummaryStatistics")],Ke);const He=Ke;var Je=r(69204);const Ve=o.c.ofType(ke),We=(0,a.ct)(ee.sublayersProperty),Ze=We.json?.origins;Ze&&(Ze["web-scene"]={type:[J],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}},Ze["portal-item"]={type:[J],write:{enabled:!0,overridePolicy:()=>({enabled:!1})}});let $e=class extends((0,ae.G6)((0,re.u)((0,oe.Y)((0,ie.K)((0,ne.I)((0,u.U)((0,se.G)((0,te.C)(g.c))))))))){constructor(e){super(e),this.operationalLayerType="BuildingSceneLayer",this.allSublayers=new i.c({getCollections:()=>[this.sublayers],getChildrenFunction:e=>"building-group"===e.type?e.sublayers:null}),this.sublayers=null,this._sublayerOverrides=null,this.filters=new Ve,this.activeFilterId=null,this.summaryStatistics=null,this.outFields=null,this.legendEnabled=!0,this.type="building-scene"}normalizeCtorArgs(e){return"string"==typeof e?{url:e}:e??{}}destroy(){this.allSublayers.destroy()}readSublayers(e,t,r){const s=ee.readSublayers(e,t,r);return ee.forEachSublayer(s,(e=>e.layer=this)),this._sublayerOverrides&&(this.applySublayerOverrides(s,this._sublayerOverrides),this._sublayerOverrides=null),s}applySublayerOverrides(e,{overrides:t,context:r}){ee.forEachSublayer(e,(e=>e.read(t.get(e.id),r)))}readSublayerOverrides(e,t){const r=new Map;for(const s of e)null!=s&&"object"==typeof s&&"number"==typeof s.id?r.set(s.id,s):t.messages?.push(new n.c("building-scene-layer:invalid-sublayer-override","Invalid value for sublayer override. Not an object or no id specified.",{value:s}));return{overrides:r,context:t}}writeSublayerOverrides(e,t,r){const s=[];ee.forEachSublayer(this.sublayers,(e=>{const t=e.write({},r);Object.keys(t).length>1&&s.push(t)})),s.length>0&&(t.sublayers=s)}writeUnappliedOverrides(e,t){t.sublayers=[],e.overrides.forEach((e=>{t.sublayers.push((0,a.ct)(e))}))}write(e,t){return e=super.write(e,t),!t||"web-scene"!==t.origin&&"portal-item"!==t.origin||(this.sublayers?this.writeSublayerOverrides(this.sublayers,e,t):this._sublayerOverrides&&this.writeUnappliedOverrides(this._sublayerOverrides,e)),e}read(e,t){if(super.read(e,t),t&&("web-scene"===t.origin||"portal-item"===t.origin)&&null!=e&&Array.isArray(e.sublayers)){const r=this.readSublayerOverrides(e.sublayers,t);this.sublayers?this.applySublayerOverrides(this.sublayers,r):this._sublayerOverrides=r}}readSummaryStatistics(e,t){if("string"==typeof t.statisticsHRef){const e=(0,d.kn)(this.parsedUrl?.path,t.statisticsHRef);return new He({url:e})}return null}set elevationInfo(e){this._set("elevationInfo",e),this._validateElevationInfo()}load(e){const t=null!=e?e.signal:null,r=this.loadFromPortal({supportedTypes:["Scene Service"]},e).catch(y.CE).then((()=>this._fetchService(t))).then((()=>this._fetchAssociatedFeatureService(t)));return this.addResolvingPromise(r),Promise.resolve(this)}loadAll(){return(0,l.A)(this,(e=>{ee.forEachSublayer(this.sublayers,(t=>{"building-group"!==t.type&&e(t)})),this.summaryStatistics&&e(this.summaryStatistics)}))}async saveAs(e,t){return this._debouncedSaveOperations(ae.UJ.SAVE_AS,{...t,getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"},e)}async save(){const e={getTypeKeywords:()=>this._getTypeKeywords(),portalItemLayerType:"building-scene"};return this._debouncedSaveOperations(ae.UJ.SAVE,e)}validateLayer(e){if(!e.layerType||"Building"!==e.layerType)throw new n.c("buildingscenelayer:layer-type-not-supported","BuildingSceneLayer does not support this layer type",{layerType:e.layerType})}_getTypeKeywords(){return["Building"]}async _fetchAssociatedFeatureService(e){try{const{portalItem:t}=await(0,le.S)(`${this.url}/layers/${this.layerId}`,{sceneLayerItem:this.portalItem,customParameters:this.customParameters,apiKey:this.apiKey,signal:e});this.associatedFeatureServiceItem=t}catch(e){p.c.getLogger(this).warn("Associated feature service item could not be loaded",e)}}_validateElevationInfo(){const e=this.elevationInfo,t="Building scene layers";(0,Je.A$)(p.c.getLogger(this),(0,Je.Ez)(t,"absolute-height",e)),(0,Je.A$)(p.c.getLogger(this),(0,Je.W8)(t,e))}};(0,s._)([(0,c.qq)({type:["BuildingSceneLayer"]})],$e.prototype,"operationalLayerType",void 0),(0,s._)([(0,c.qq)({readOnly:!0})],$e.prototype,"allSublayers",void 0),(0,s._)([(0,c.qq)(We)],$e.prototype,"sublayers",void 0),(0,s._)([(0,h.E)("service","sublayers")],$e.prototype,"readSublayers",null),(0,s._)([(0,c.qq)({type:Ve,nonNullable:!0,json:{write:!0}})],$e.prototype,"filters",void 0),(0,s._)([(0,c.qq)({type:String,json:{write:!0}})],$e.prototype,"activeFilterId",void 0),(0,s._)([(0,c.qq)({readOnly:!0,type:He})],$e.prototype,"summaryStatistics",void 0),(0,s._)([(0,h.E)("summaryStatistics",["statisticsHRef"])],$e.prototype,"readSummaryStatistics",null),(0,s._)([(0,c.qq)({type:[String],json:{read:!1}})],$e.prototype,"outFields",void 0),(0,s._)([(0,c.qq)(E.m)],$e.prototype,"fullExtent",void 0),(0,s._)([(0,c.qq)(E.Uj)],$e.prototype,"legendEnabled",void 0),(0,s._)([(0,c.qq)({type:["show","hide","hide-children"]})],$e.prototype,"listMode",void 0),(0,s._)([(0,c.qq)((0,E.yo)(m.c))],$e.prototype,"spatialReference",void 0),(0,s._)([(0,c.qq)(E.Kg)],$e.prototype,"elevationInfo",null),(0,s._)([(0,c.qq)({json:{read:!1},readOnly:!0})],$e.prototype,"type",void 0),(0,s._)([(0,c.qq)()],$e.prototype,"associatedFeatureServiceItem",void 0),$e=(0,s._)([(0,f.c)("esri.layers.BuildingSceneLayer")],$e);const Xe=$e},87352:(e,t,r)=>{r.d(t,{c:()=>y});var s=r(41948),o=r(3856),i=r(14628),n=r(40504),a=r(1580),l=(r(9456),r(66360),r(72052),r(12552));const p=new i.O({esriFeatureEditToolAutoCompletePolygon:"auto-complete-polygon",esriFeatureEditToolCircle:"circle",esriFeatureEditToolEllipse:"ellipse",esriFeatureEditToolFreehand:"freehand",esriFeatureEditToolLine:"line",esriFeatureEditToolNone:"none",esriFeatureEditToolPoint:"point",esriFeatureEditToolPolygon:"polygon",esriFeatureEditToolRectangle:"rectangle",esriFeatureEditToolArrow:"arrow",esriFeatureEditToolTriangle:"triangle",esriFeatureEditToolLeftArrow:"left-arrow",esriFeatureEditToolRightArrow:"right-arrow",esriFeatureEditToolUpArrow:"up-arrow",esriFeatureEditToolDownArrow:"down-arrow"});let u=class extends((0,o.q)(n.am)){constructor(e){super(e),this.name=null,this.description=null,this.drawingTool=null,this.prototype=null,this.thumbnail=null}};(0,s._)([(0,a.qq)({json:{write:!0}})],u.prototype,"name",void 0),(0,s._)([(0,a.qq)({json:{write:!0}})],u.prototype,"description",void 0),(0,s._)([(0,a.qq)({json:{read:p.read,write:p.write}})],u.prototype,"drawingTool",void 0),(0,s._)([(0,a.qq)({json:{write:!0}})],u.prototype,"prototype",void 0),(0,s._)([(0,a.qq)({json:{write:!0}})],u.prototype,"thumbnail",void 0),u=(0,s._)([(0,l.c)("esri.layers.support.FeatureTemplate")],u);const y=u},79648:(e,t,r)=>{r.d(t,{c:()=>c});var s=r(41948),o=r(3856),i=r(40504),n=r(1580),a=(r(9456),r(66360),r(72052),r(33600)),l=r(12552),p=r(18996),u=r(89812),y=r(87352);let d=class extends((0,o.q)(i.am)){constructor(e){super(e),this.id=null,this.name=null,this.domains=null,this.templates=null}readDomains(e){const t={};for(const r of Object.keys(e))t[r]=(0,u.h4)(e[r]);return t}writeDomains(e,t){const r={};for(const t of Object.keys(e))e[t]&&(r[t]=e[t]?.toJSON());t.domains=r}};(0,s._)([(0,n.qq)({json:{write:!0}})],d.prototype,"id",void 0),(0,s._)([(0,n.qq)({json:{write:!0}})],d.prototype,"name",void 0),(0,s._)([(0,n.qq)({json:{write:!0}})],d.prototype,"domains",void 0),(0,s._)([(0,a.E)("domains")],d.prototype,"readDomains",null),(0,s._)([(0,p.G)("domains")],d.prototype,"writeDomains",null),(0,s._)([(0,n.qq)({type:[y.c],json:{write:!0}})],d.prototype,"templates",void 0),d=(0,s._)([(0,l.c)("esri.layers.support.FeatureType")],d);const c=d},54712:(e,t,r)=>{r.d(t,{S:()=>y});var s=r(9456),o=r(48212);function i(e,t,r){return!!a(e,t,r)}function n(e,t,r){return a(e,t,r)}function a(e,t,r){return e&&e.hasOwnProperty(t)?e[t]:r}const l={name:"supportsName",size:"supportsSize",contentType:"supportsContentType",keywords:"supportsKeywords",exifInfo:"supportsExifInfo"};function p(e){const t=e?.supportedSpatialAggregationStatistics?.map((e=>e.toLowerCase()));return{envelope:!!t?.includes("envelopeaggregate"),centroid:!!t?.includes("centroidaggregate"),convexHull:!!t?.includes("convexhullaggregate")}}function u(e,t){const r=e?.supportedOperationsWithCacheHint?.map((e=>e.toLowerCase()));return!!r?.includes(t.toLowerCase())}function y(e,t){return{analytics:d(e),attachment:c(e),data:h(e),metadata:f(e),operations:m(e.capabilities,e,t),query:g(e,t),queryRelated:q(e),queryTopFeatures:v(e),editing:_(e)}}function d(e){return{supportsCacheHint:u(e.advancedQueryCapabilities,"queryAnalytics")}}function c(e){const t=e.attachmentProperties,r={supportsName:!1,supportsSize:!1,supportsContentType:!1,supportsKeywords:!1,supportsExifInfo:!1,supportsCacheHint:u(e.advancedQueryCapabilities,"queryAttachments"),supportsResize:i(e,"supportsAttachmentsResizing",!1)};return t&&Array.isArray(t)&&t.forEach((e=>{const t=l[e.name];t&&(r[t]=!!e.isEnabled)})),r}function h(e){return{isVersioned:i(e,"isDataVersioned",!1),supportsAttachment:i(e,"hasAttachments",!1),supportsM:i(e,"hasM",!1),supportsZ:i(e,"hasZ",!1)}}function f(e){return{supportsAdvancedFieldProperties:i(e,"supportsFieldDescriptionProperty",!1)}}function m(e,t,r){const s=e?e.toLowerCase().split(",").map((e=>e.trim())):[],n=r?(0,o.K0)(r):null,a=s.includes(null!=n&&"MapServer"===n.serverType?"data":"query"),l=s.includes("editing")&&!t.datesInUnknownTimezone;let p=l&&s.includes("create"),u=l&&s.includes("delete"),y=l&&s.includes("update");const d=s.includes("changetracking"),c=t.advancedQueryCapabilities;return l&&!(p||u||y)&&(p=u=y=!0),{supportsCalculate:i(t,"supportsCalculate",!1),supportsTruncate:i(t,"supportsTruncate",!1),supportsValidateSql:i(t,"supportsValidateSql",!1),supportsAdd:p,supportsDelete:u,supportsEditing:l,supportsChangeTracking:d,supportsQuery:a,supportsQueryAnalytics:i(c,"supportsQueryAnalytic",!1),supportsQueryAttachments:i(c,"supportsQueryAttachments",!1),supportsQueryTopFeatures:i(c,"supportsTopFeaturesQuery",!1),supportsResizeAttachments:i(t,"supportsAttachmentsResizing",!1),supportsSync:s.includes("sync"),supportsUpdate:y,supportsExceedsLimitStatistics:i(t,"supportsExceedsLimitStatistics",!1),supportsAsyncConvert3D:i(t,"supportsAsyncConvert3D",!1)}}function g(e,t){const r=e.advancedQueryCapabilities,a=e.ownershipBasedAccessControlForFeatures,l=e.archivingInfo,y=e.currentVersion,d=t?.includes("MapServer"),c=!d||y>=(0,s.c)("mapserver-pbf-version-support"),h=(0,o.Wq)(t),f=new Set((e.supportedQueryFormats??"").split(",").map((e=>e.toLowerCase().trim())));return{supportsStatistics:i(r,"supportsStatistics",e.supportsStatistics),supportsPercentileStatistics:i(r,"supportsPercentileStatistics",!1),supportsSpatialAggregationStatistics:i(r,"supportsSpatialAggregationStatistics",!1),supportedSpatialAggregationStatistics:p(r),supportsCentroid:i(r,"supportsReturningGeometryCentroid",!1),supportsDistance:i(r,"supportsQueryWithDistance",!1),supportsDistinct:i(r,"supportsDistinct",e.supportsAdvancedQueries),supportsExtent:i(r,"supportsReturningQueryExtent",!1),supportsGeometryProperties:i(r,"supportsReturningGeometryProperties",!1),supportsHavingClause:i(r,"supportsHavingClause",!1),supportsOrderBy:i(r,"supportsOrderBy",e.supportsAdvancedQueries),supportsPagination:i(r,"supportsPagination",!1),supportsQuantization:i(e,"supportsCoordinatesQuantization",!1),supportsQuantizationEditMode:i(e,"supportsQuantizationEditMode",!1),supportsQueryGeometry:i(e,"supportsReturningQueryGeometry",!1),supportsResultType:i(r,"supportsQueryWithResultType",!1),supportsMaxRecordCountFactor:i(r,"supportsMaxRecordCountFactor",!1),supportsSqlExpression:i(r,"supportsSqlExpression",!1),supportsStandardizedQueriesOnly:i(e,"useStandardizedQueries",!1),supportsTopFeaturesQuery:i(r,"supportsTopFeaturesQuery",!1),supportsQueryByAnonymous:i(a,"allowAnonymousToQuery",!0),supportsQueryByOthers:i(a,"allowOthersToQuery",!0),supportsHistoricMoment:i(l,"supportsQueryWithHistoricMoment",!1),supportsFormatPBF:c&&f.has("pbf"),supportsDisjointSpatialRelationship:i(r,"supportsDisjointSpatialRel",!1),supportsCacheHint:i(r,"supportsQueryWithCacheHint",!1)||u(r,"query"),supportsDefaultSpatialReference:i(r,"supportsDefaultSR",!1),supportsCompactGeometry:h,supportsFullTextSearch:i(r,"supportsFullTextSearch",!1),maxRecordCountFactor:n(e,"maxRecordCountFactor",void 0),maxRecordCount:n(e,"maxRecordCount",void 0),standardMaxRecordCount:n(e,"standardMaxRecordCount",void 0),tileMaxRecordCount:n(e,"tileMaxRecordCount",void 0)}}function q(e){const t=e.advancedQueryCapabilities,r=i(t,"supportsAdvancedQueryRelated",!1);return{supportsPagination:i(t,"supportsQueryRelatedPagination",!1),supportsCount:r,supportsOrderBy:r,supportsCacheHint:u(t,"queryRelated")}}function v(e){return{supportsCacheHint:u(e.advancedQueryCapabilities,"queryTopFilter")}}function _(e){const t=e.ownershipBasedAccessControlForFeatures,r=e?e.advancedEditingCapabilities:void 0;return{supportsGeometryUpdate:i(e,"allowGeometryUpdates",!0),supportsGlobalId:i(e,"supportsApplyEditsWithGlobalIds",!1),supportsReturnServiceEditsInSourceSpatialReference:i(e,"supportsReturnServiceEditsInSourceSR",!1),supportsRollbackOnFailure:i(e,"supportsRollbackOnFailureParameter",!1),supportsUpdateWithoutM:i(e,"allowUpdateWithoutMValues",!1),supportsUploadWithItemId:i(e,"supportsAttachmentsByUploadId",!1),supportsDeleteByAnonymous:i(t,"allowAnonymousToDelete",!0),supportsDeleteByOthers:i(t,"allowOthersToDelete",!0),supportsUpdateByAnonymous:i(t,"allowAnonymousToUpdate",!0),supportsUpdateByOthers:i(t,"allowOthersToUpdate",!0),supportsAsyncApplyEdits:i(r,"supportsAsyncApplyEdits",!1),zDefault:n(e,"zDefault",void 0)}}},21012:(e,t,r)=>{r.d(t,{M:()=>o});var s=r(37924);function o(e,t,r){if(!r?.features||!r.hasZ)return;const o=(0,s.O)(r.geometryType,t,e.outSpatialReference);if(null!=o)for(const e of r.features)o(e.geometry)}},59500:(e,t,r)=>{r.d(t,{c:()=>v});var s,o=r(41948),i=r(60708),n=r(6444),a=r(14628),l=r(40504),p=r(62088),u=r(1580),y=(r(9456),r(66360),r(33600)),d=r(12552),c=r(18996),h=r(56156),f=r(6704),m=r(600);const g=new a.O({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let q=s=class extends l.am{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){const r=h.c.fromJSON(t.spatialReference),s=[];for(let t=0;t<e.length;t++){const o=e[t],i=n.c.fromJSON(o),a=o.geometry?.spatialReference;null==i.geometry||a||(i.geometry.spatialReference=r);const l=o.aggregateGeometries,p=i.aggregateGeometries;if(l&&null!=p)for(const e in p){const t=p[e],s=l[e],o=s?.spatialReference;null==t||o||(t.spatialReference=r)}s.push(i)}return s}writeGeometryType(e,t,r,s){if(e)return void g.write(e,t,r,s);const{features:o}=this;if(o)for(const e of o)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,s)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,s=(0,f.h4)(e);return s&&!r&&t.spatialReference&&(s.spatialReference=h.c.fromJSON(t.spatialReference)),s}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new s(this.cloneProperties())}cloneProperties(){return(0,p.ct)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const s=t.features[r];if(s.geometry){const t=e?.[r];s.geometry=t?.toJSON()||s.geometry}}return t}quantize(e){const{scale:[t,r],translate:[s,o]}=e,i=this.features,n=this._getQuantizationFunction(this.geometryType,(e=>Math.round((e-s)/t)),(e=>Math.round((o-e)/r)));for(let e=0,t=i.length;e<t;e++)n?.(i[e].geometry)||(i.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[s,o],scale:[i,n]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,(e=>e*i+s),(e=>o-e*n),a,l);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}_quantizePoints(e,t,r){let s,o;const i=[];for(let n=0,a=e.length;n<a;n++){const a=e[n];if(n>0){const e=t(a[0]),n=r(a[1]);e===s&&n===o||(i.push([e-s,n-o]),s=e,o=n)}else s=t(a[0]),o=r(a[1]),i.push([s,o])}return i.length>0?i:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const s=(0,f.Cs)(e)?e.rings:e.paths,o=[];for(let e=0,i=s.length;e<i;e++){const i=s[e],n=this._quantizePoints(i,t,r);n&&o.push(n)}return o.length>0?((0,f.Cs)(e)?e.rings=o:e.paths=o,e):null}:"multipoint"===e?e=>{const s=this._quantizePoints(e.points,t,r);return s&&s.length>0?(e.points=s,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,s,o){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),s&&(e.z=s(e.z))}:"polyline"===e||"polygon"===e?e=>{const i=(0,f.Cs)(e)?e.rings:e.paths;let n,a;for(let e=0,s=i.length;e<s;e++){const s=i[e];for(let e=0,o=s.length;e<o;e++){const o=s[e];e>0?(n+=o[0],a+=o[1]):(n=o[0],a=o[1]),o[0]=t(n),o[1]=r(a)}}if(s&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2]),r[3]=o(r[3])}}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=s(r[2])}}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),s&&null!=e.zmax&&null!=e.zmin&&(e.zmax=s(e.zmax),e.zmin=s(e.zmin)),o&&null!=e.mmax&&null!=e.mmin&&(e.mmax=o(e.mmax),e.mmin=o(e.mmin))}:"multipoint"===e?e=>{const i=e.points;let n,a;for(let e=0,s=i.length;e<s;e++){const s=i[e];e>0?(n+=s[0],a+=s[1]):(n=s[0],a=s[1]),s[0]=t(n),s[1]=r(a)}if(s&&o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2]),t[3]=o(t[3])}else if(s)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=s(t[2])}else if(o)for(let e=0,t=i.length;e<t;e++){const t=i[e];t[2]=o(t[2])}}:null}};(0,o._)([(0,u.qq)({type:String,json:{write:!0}})],q.prototype,"displayFieldName",void 0),(0,o._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],q.prototype,"exceededTransferLimit",void 0),(0,o._)([(0,u.qq)({type:[n.c],json:{write:!0}})],q.prototype,"features",void 0),(0,o._)([(0,y.E)("features")],q.prototype,"readFeatures",null),(0,o._)([(0,u.qq)({type:[m.c],json:{write:!0}})],q.prototype,"fields",void 0),(0,o._)([(0,u.qq)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],q.prototype,"geometryType",void 0),(0,o._)([(0,c.G)("geometryType")],q.prototype,"writeGeometryType",null),(0,o._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],q.prototype,"hasM",void 0),(0,o._)([(0,u.qq)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],q.prototype,"hasZ",void 0),(0,o._)([(0,u.qq)({types:i.Su,json:{write:!0}})],q.prototype,"queryGeometry",void 0),(0,o._)([(0,y.E)("queryGeometry")],q.prototype,"readQueryGeometry",null),(0,o._)([(0,u.qq)({type:h.c,json:{write:!0}})],q.prototype,"spatialReference",void 0),(0,o._)([(0,c.G)("spatialReference")],q.prototype,"writeSpatialReference",null),(0,o._)([(0,u.qq)({json:{write:!0}})],q.prototype,"transform",void 0),q=s=(0,o._)([(0,d.c)("esri.rest.support.FeatureSet")],q),q.prototype.toJSON.isDefaultToJSON=!0;const v=q}}]);