@arcgis/core 5.2.0-next.89 → 5.2.0-next.90

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 (140) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/05fbd1f373cfa3724f0c.js +1 -0
  3. package/assets/esri/core/workers/chunks/{f7f2102b16d201e5f531.js → 0d2e2d90a4e4a28e2c0c.js} +1 -1
  4. package/assets/esri/core/workers/chunks/1554feab934e8e1bcd28.js +1 -0
  5. package/assets/esri/core/workers/chunks/{823dd85b008ae4db6793.js → 188c6ff5f4664827c254.js} +2 -2
  6. package/assets/esri/core/workers/chunks/{d30a7fc8dab4ebb8893b.js → 1ab8307ba9981124f669.js} +1 -1
  7. package/assets/esri/core/workers/chunks/{5ed89c862eee1345e3af.js → 20f7b5fe64a217cb3d3d.js} +1 -1
  8. package/assets/esri/core/workers/chunks/{013a4ee14c44eb824c7c.js → 24c44541046576fee7e0.js} +2 -2
  9. package/assets/esri/core/workers/chunks/{f3716ce04d09af31cfb1.js → 2754ba5cc094028a7a3c.js} +1 -1
  10. package/assets/esri/core/workers/chunks/{e8b4f12dfbf568377cef.js → 3a65693964e3976d8035.js} +1 -1
  11. package/assets/esri/core/workers/chunks/423c2692df662b3dddd4.js +1 -0
  12. package/assets/esri/core/workers/chunks/{996211727ed1617162da.js → 48726010778d6004e347.js} +2 -2
  13. package/assets/esri/core/workers/chunks/{680557b8832fbdab7f46.js → 4bf7c0c874d30b1c0760.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{db180f8d25471cfa48af.js → 545bec045167c433af8f.js} +1 -1
  15. package/assets/esri/core/workers/chunks/5782c0362a1799ceef41.js +1 -0
  16. package/assets/esri/core/workers/chunks/{5bf65dbfd9c7a5ea187d.js → 5aa23b0f4521ba9a07ad.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{eda04911553cf99fb99b.js → 606ac9358f508bda94f2.js} +1 -1
  18. package/assets/esri/core/workers/chunks/625a692f00357629f609.js +1 -0
  19. package/assets/esri/core/workers/chunks/{bd2602195e265f8fdb15.js → 69c9a12c97ead8963817.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{2f3bbc1f7d4abbbeec2f.js → 6ab7bb3834841834f839.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{afa6b74d9ca9ed0154af.js → 6fd0d9431b141f2a3252.js} +1 -1
  22. package/assets/esri/core/workers/chunks/{3f82410d9f701e7ad8eb.js → 76e7d3cde2da4bdd7820.js} +1 -1
  23. package/assets/esri/core/workers/chunks/{ea75c23c44452f45a949.js → 7cf903db44f3647c8fd4.js} +1 -1
  24. package/assets/esri/core/workers/chunks/848a9f0e5373bbf289a5.js +1 -0
  25. package/assets/esri/core/workers/chunks/{a88bf8ae93077e1b48cf.js → 8a87e1a89a0d8c6203a7.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{a3b403f8acb90af19adb.js → 91ac9328afff8a51bd96.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{00181785a180e934bf7c.js → 91de343844ac578e7c93.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{d871572997600930e017.js → 95a3f09751bff63f4fab.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{ffe749d790320dddfa74.js → 97e41500fc2d24a88938.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{6fe7060235f601b180ea.js → 98d614d6fc9de8ebaf94.js} +1 -1
  31. package/assets/esri/core/workers/chunks/{1e087fb13b7b0a5d6fec.js → 9d3cdfa08ef4d2805625.js} +1 -1
  32. package/assets/esri/core/workers/chunks/{0460ea5a85e9c3c2e1b7.js → a89dbef8155d7c4354da.js} +2 -2
  33. package/assets/esri/core/workers/chunks/{e9f29019aa78f07ace66.js → aed7b80145b22c246098.js} +1 -1
  34. package/assets/esri/core/workers/chunks/{4aefe6fd4d725a107758.js → b7ed5f130661e9ca00b9.js} +1 -1
  35. package/assets/esri/core/workers/chunks/c07d2fb9940b2c6eda9f.js +1 -0
  36. package/assets/esri/core/workers/chunks/{a8b878c12cb1a6ea012b.js → c4a0d3149947a1d2c484.js} +1 -1
  37. package/assets/esri/core/workers/chunks/{31a0620a6028e94c7532.js → c6ec0e966106f66360d9.js} +2 -2
  38. package/assets/esri/core/workers/chunks/{5df0639839a354cb2751.js → c7f69d010f1cb32f5d37.js} +1 -1
  39. package/assets/esri/core/workers/chunks/{23addf8b11938e0c96e9.js → cb983f65995e57fff7a1.js} +1 -1
  40. package/assets/esri/core/workers/chunks/{f665fb4c5633e0a459d8.js → d24125a791247019e2ca.js} +1 -1
  41. package/assets/esri/core/workers/chunks/{7b7d0e93689aab8da83d.js → d44338bf5edafa3ca926.js} +1 -1
  42. package/assets/esri/core/workers/chunks/{2ceb07b125c84b51f02a.js → d7d5275d8b3c9430de1f.js} +1 -1
  43. package/assets/esri/core/workers/chunks/{ce227146fcaabf088da1.js → da8a314800944706511b.js} +1 -1
  44. package/assets/esri/core/workers/chunks/{705f459aab890fda134b.js → e018cbd97e6e0e4ca5c4.js} +1 -1
  45. package/assets/esri/core/workers/chunks/e55507e4114b34d1ef4e.js +1 -0
  46. package/assets/esri/core/workers/chunks/{6b06858bb9e976c1ef33.js → e594b6db9caee1f7b9fc.js} +1 -1
  47. package/assets/esri/core/workers/chunks/{4057d97a4ec234978697.js → e90076ac1cf88a83a7f9.js} +1 -1
  48. package/assets/esri/core/workers/chunks/{e40e08029325f43452d0.js → f4d351b4cd9d1aa10632.js} +1 -1
  49. package/assets/esri/core/workers/chunks/f5f5b54cab722abe88e0.js +1 -0
  50. package/assets/esri/core/workers/chunks/{d8e2d78fc4526612aad6.js → ff83d0337ac489ab08de.js} +2 -2
  51. package/config.js +1 -1
  52. package/core/EuclideanDistanceTransform.js +2 -0
  53. package/geometry/support/convexPolyhedron.js +1 -1
  54. package/geometry/support/frustumPlanes.js +2 -0
  55. package/kernel.js +1 -1
  56. package/layers/ParquetLayer.d.ts +3 -2
  57. package/layers/ParquetLayer.js +1 -1
  58. package/layers/support/dataSeriesUtils.js +1 -1
  59. package/package.json +3 -3
  60. package/popup/FeatureContentCollection.d.ts +6 -0
  61. package/popup/FeatureContentCollection.js +1 -1
  62. package/rest/support/AlgorithmicColorRamp.d.ts +2 -2
  63. package/rest/support/types.d.ts +2 -2
  64. package/smartMapping/raster/support/colorRamps.d.ts +4 -3
  65. package/support/revision.js +1 -1
  66. package/symbols/cim/CIMSymbolDrawHelper.js +1 -1
  67. package/symbols/cim/CIMSymbolHelper.js +1 -1
  68. package/symbols/cim/CIMSymbolRasterizer.js +1 -1
  69. package/symbols/cim/Rasterizer.js +1 -1
  70. package/symbols/cim/cimAnalyzer.js +1 -1
  71. package/symbols/cim/rasterizingUtils.js +1 -1
  72. package/symbols/cim/utils.js +1 -1
  73. package/views/2d/engine/webgl/GlyphSDFCreator.js +1 -1
  74. package/views/2d/engine/webgl/SDFConverter.js +1 -1
  75. package/views/2d/engine/webgl/SpriteMosaic.js +1 -1
  76. package/views/2d/engine/webgl/TextureManager.js +1 -1
  77. package/views/2d/engine/webgl/shaderGraph/techniques/animated/AnimatedTechnique.js +1 -1
  78. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexFillTechnique.js +1 -1
  79. package/views/2d/engine/webgl/shaderGraph/techniques/fill/ComplexOutlineFillTechnique.js +1 -1
  80. package/views/2d/engine/webgl/shaderGraph/techniques/fill/GradientFillTechnique.js +1 -1
  81. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternFillTechnique.js +1 -1
  82. package/views/2d/engine/webgl/shaderGraph/techniques/fill/PatternOutlineFillTechnique.js +1 -1
  83. package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelTechnique.js +1 -1
  84. package/views/2d/engine/webgl/shaderGraph/techniques/line/GradientStrokeTechnique.js +1 -1
  85. package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
  86. package/views/2d/engine/webgl/shaderGraph/techniques/line/TexturedLineTechnique.js +1 -1
  87. package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerTechnique.js +1 -1
  88. package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterInputEvaluator.js +1 -1
  89. package/views/2d/engine/webgl/shaderGraph/techniques/text/TextTechnique.js +1 -1
  90. package/views/2d/layers/features/schema/processor/symbols/ComplexSymbolSchema.js +1 -1
  91. package/views/2d/tiling/LODInfo.js +1 -1
  92. package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
  93. package/views/3d/layers/i3s/I3SIntersectionHandler.js +1 -1
  94. package/views/3d/layers/i3s/I3SViewportQueries.js +1 -1
  95. package/views/3d/layers/support/FeatureTileMeasurements3D.js +1 -1
  96. package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
  97. package/views/3d/state/Frustum.js +1 -1
  98. package/views/3d/state/controllers/RopePullController.js +1 -1
  99. package/views/3d/state/controllers/momentum/RopePullMomentumController.js +2 -0
  100. package/views/3d/support/SweptSphereVolume.js +2 -0
  101. package/views/3d/support/viewpointUtils.js +1 -1
  102. package/views/3d/terrain/PatchRenderData.js +1 -1
  103. package/views/3d/terrain/PatchRenderDataWaterproofness.js +1 -1
  104. package/views/3d/terrain/PlanarPatch.js +1 -1
  105. package/views/3d/terrain/SphericalPatch.js +1 -1
  106. package/views/3d/terrain/TerrainSurface.js +1 -1
  107. package/views/3d/terrain/Tile.js +1 -1
  108. package/views/3d/webgl/RenderCamera.js +1 -1
  109. package/views/3d/webgl-engine/collections/Component/ComponentObjectElevationAgnosticBVH.js +1 -1
  110. package/views/3d/webgl-engine/collections/Component/ComponentObjectElevationAgnosticComponentGeometryBVH.js +1 -1
  111. package/views/3d/webgl-engine/effects/laserlines/LaserLineRenderer.js +1 -1
  112. package/views/3d/webgl-engine/lib/Intersector.js +1 -1
  113. package/views/3d/webgl-engine/lib/Octree.js +1 -1
  114. package/views/3d/webgl-engine/lib/TriangleIntersectionData.js +1 -1
  115. package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
  116. package/views/3d/webgl-engine/lib/screenPolygonIntersectionUtils.js +1 -1
  117. package/views/3d/webgl-engine/lib/screenPolygonTriangleIntersections.js +1 -1
  118. package/views/draw/support/managers/InteractiveHandleManager.js +1 -1
  119. package/views/navigation/RopePullMomentumEstimator.js +2 -0
  120. package/views/support/LayerLayerViewInfo.js +1 -1
  121. package/views/support/LayerViewManager.js +1 -1
  122. package/widgets/Features/FeaturesViewModel.d.ts +6 -0
  123. package/widgets/Features/FeaturesViewModel.js +1 -1
  124. package/widgets/Features.js +1 -1
  125. package/assets/esri/core/workers/chunks/028bee58f7bc19e5e39e.js +0 -1
  126. package/assets/esri/core/workers/chunks/39b6a5222f45cb8dbc94.js +0 -1
  127. package/assets/esri/core/workers/chunks/51c9bd7c03d780fadebc.js +0 -1
  128. package/assets/esri/core/workers/chunks/71308dca3fd05687e7bd.js +0 -1
  129. package/assets/esri/core/workers/chunks/8d8708789843844eb9e1.js +0 -1
  130. package/assets/esri/core/workers/chunks/9246e2468528650bdc7c.js +0 -1
  131. package/assets/esri/core/workers/chunks/94453d075ce02eff4844.js +0 -1
  132. package/assets/esri/core/workers/chunks/a176727a1148ca4fb432.js +0 -1
  133. package/assets/esri/core/workers/chunks/f106cc7f559856f69b9f.js +0 -1
  134. package/geometry/support/frustum.js +0 -2
  135. package/views/3d/layers/i3s/SweptSphereVolume.js +0 -2
  136. /package/assets/esri/core/workers/chunks/{823dd85b008ae4db6793.js.LICENSE.txt → 188c6ff5f4664827c254.js.LICENSE.txt} +0 -0
  137. /package/assets/esri/core/workers/chunks/{013a4ee14c44eb824c7c.js.LICENSE.txt → 24c44541046576fee7e0.js.LICENSE.txt} +0 -0
  138. /package/assets/esri/core/workers/chunks/{996211727ed1617162da.js.LICENSE.txt → 48726010778d6004e347.js.LICENSE.txt} +0 -0
  139. /package/assets/esri/core/workers/chunks/{0460ea5a85e9c3c2e1b7.js.LICENSE.txt → a89dbef8155d7c4354da.js.LICENSE.txt} +0 -0
  140. /package/assets/esri/core/workers/chunks/{d8e2d78fc4526612aad6.js.LICENSE.txt → ff83d0337ac489ab08de.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1089],{66131(t,e,r){r.d(e,{lY:()=>d,mT:()=>h});var n=r(59534),s=r(799),o=r(3330),i=r(34747);const a={TimeZoneNotRecognized:"Timezone identifier has not been recognized."};class u extends Error{constructor(t,e){super((0,s.HC)(a[t],e)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,u)}}function c(t,e,r){return t<e?t-e:t>r?t-r:0}function l(t,e,r){return t<e?e:t>r?r:t}class d{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,e=1,r=1,n=0,s=0,o=0,a=0,u){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(s)||isNaN(o)||isNaN(a))return null;const m=i.c9.local(t,e).daysInMonth;let f=i.c9.fromObject({day:l(r,1,m),year:t,month:l(e,1,12),hour:l(n,0,23),minute:l(s,0,59),second:l(o,0,59),millisecond:l(a,0,999)},{zone:h(u)});return f=f.plus({months:c(e,1,12),days:c(r,1,m),hours:c(n,0,23),minutes:c(s,0,59),seconds:c(o,0,59),milliseconds:c(a,0,999)}),new d(f)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,e){const r=h(e);return t.isUnknownTimeZone||r===o.GB.instance?d.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,r):new d(t._date.setZone(r))}static dateJSToArcadeDate(t){return new d(i.c9.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,e="system"){const r=h(e);return new d(i.c9.fromJSDate(t,{zone:r}))}static unknownEpochToArcadeDate(t){return new d(i.c9.fromMillis(t,{zone:o.GB.instance}))}static unknownDateJSToArcadeDate(t){return new d(i.c9.fromMillis(t.getTime(),{zone:o.GB.instance}))}static epochToArcadeDate(t,e="system"){const r=h(e);return new d(i.c9.fromMillis(t,{zone:r}))}static dateTimeToArcadeDate(t){return new d(t)}clone(){return new d(this._date)}changeTimeZone(t){const e=h(t);return d.dateTimeToArcadeDate(this._date.setZone(e))}static dateTimeAndZoneToArcadeDate(t,e){const r=h(e);return t.zone===o.GB.instance||r===o.GB.instance?d.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,r):new d(t.setZone(r))}static nowToArcadeDate(t){const e=h(t);return new d(i.c9.fromJSDate(new Date,{zone:e}))}static nowUTCToArcadeDate(){return new d(i.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===d.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===o.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const t=this.zone;return"fixed"===t.type?0===t.fixed?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new d(this._date.plus(t))}diff(t,e){return this._date.diff(t._date,e)[e]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,e){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:e&&!this.isUnknownTimeZone})}toFormat(t,e){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,e)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new d(this._date.toUTC())}toLocal(){return new d(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;const e=i.c9.fromISO(t,{setZone:!0});return new d(e)}}function h(t,e=!0){if(t instanceof i.bo)return t;switch((0,n.B)(t)){case"system":return"system";case"utc":return"UTC";case"unknown":return o.GB.instance}if(/^[+-]?[0-9]{1,2}(:[0-9]{2})?$/.test(t)){const e=i.mQ.parseSpecifier("UTC"+(t.startsWith("+")||t.startsWith("-")?"":"+")+t);if(e)return e}const r=i.oh.create(t);if(!r.isValid){if(e)throw new u("TimeZoneNotRecognized");return null}return r}},47609(t,e,r){r.d(e,{A:()=>s});var n=r(66395);class s extends n.A{constructor(t){super({__proto__:null,url:t}),this.declaredClass="esri.arcade.Portal"}get url(){return this.field("url")}}},66395(t,e,r){r.d(e,{A:()=>a});var n=r(66131),s=r(6800),o=r(85935),i=r(78878);class a{constructor(t){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,t instanceof a?this.attributes=t.attributes:null==t?this.attributes=Object.create(null):null!=Object.getPrototypeOf(t)?this.attributes={__proto__:null,...t}:this.attributes=t}static createMutable(t){const e=new a(t);return e.immutable=!1,e}static containerEntry(t,e){return new a({__proto__:null,key:t,value:e})}static textFormatting(){return a.createMutable({__proto__:null,newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"})}field(t){const e=t.toLowerCase(),r=this.attributes[t];if(void 0!==r)return r;for(const t in this.attributes)if(t.toLowerCase()===e)return this.attributes[t];throw new o.D$("FieldNotFound",null,{key:t})}setField(t,e){if(this.immutable)throw new o.D$("Immutable",null);if((0,i.i)(e))throw new o.D$("NoFunctionInDictionary",null);const r=t.toLowerCase();if(e instanceof Date&&(e=n.lY.dateJSToArcadeDate(e)),void 0===this.attributes[t]){for(const t in this.attributes)if(t.toLowerCase()===r)return void(this.attributes[t]=e);this.attributes[t]=e}else this.attributes[t]=e}eraseField(t){if(this.immutable)throw new o.D$("Immutable",null);if(t in this.attributes)return void delete this.attributes[t];const e=t.toLowerCase();for(const t in this.attributes)if(t.toLowerCase()===e)return void delete this.attributes[t]}hasField(t){const e=t.toLowerCase();if(void 0!==this.attributes[t])return!0;for(const t in this.attributes)if(t.toLowerCase()===e)return!0;return!1}keys(){const t=[];for(const e in this.attributes)t.push(e);return t.sort((t,e)=>t.toLowerCase()<e.toLowerCase()?-1:1)}entryCount(){return Object.keys(this.attributes).length}isEmpty(){return this.entryCount()<=0}castToText(t=!1){return(0,i.c)(this.attributes,{useNumbersForDates:t})}castAsJson(){const t=Object.create(null);for(const e in this.attributes){const r=this.attributes[e];void 0!==r&&(t[e]=(0,i.a)(r))}return t}async castAsJsonAsync(t=null){const e=Object.create(null),r=[];for(const s in this.attributes){const o=this.attributes[s];void 0!==o&&((0,i.b)(o)||(0,i.d)(o)||o instanceof n.lY?e[s]=(0,i.a)(o):r.push((0,i.e)(o,t).then(t=>{e[s]=t})))}return r.length>0&&await Promise.all(r),e}deepClone(){const t=new a;t.immutable=!1;for(const e of this.keys())t.setField(e,(0,s.G)(this.field(e)));return t}}},48938(t,e,r){r.d(e,{X:()=>s});var n=r(85935);function s(t){if("string"==typeof t)return t.toLowerCase();if("name"in t)return t.name.toLowerCase();if("string"!=typeof t.value)throw new n.D$("InvalidIdentifier",null);return t.value.toLowerCase()}const o=Object.freeze({aborted:!1});r.d(e,["_",0,o])},6800(t,e,r){r.d(e,{G:()=>a,y:()=>o});var n=r(78878),s=r(54218);function o(t){i=t}let i;function a(t){return null==t?null:(0,n.f)(t)?t.clone():(0,n.b)(t)?t:(0,n.d)(t)?t.clone():(0,n.g)(t)?t.toArray().map(t=>a(t)):(0,s.cy)(t)?t.map(t=>a(t)):(0,n.h)(t)?i.createFromArcadeFeature(t):(0,n.j)(t)||(0,n.k)(t)?t:(0,n.l)(t)||(0,n.m)(t)?t.deepClone():((0,n.n)(t)||(0,n.o)(t)||(0,n.p)(t)||(0,n.i)(t),t)}},59534(t,e,r){r.d(e,{B:()=>s,b:()=>o});var n=r(85935);function s(t){return t.toLowerCase().replaceAll(/[\s-]+/g,"")}class o{constructor(t,e){const r=new Map;for(const e of t){const t=s(e);if(r.has(t))throw new Error(`${e} already added as ${r.get(t)}`);r.set(t,e)}if(null!=e)for(const[t,n]of e){const e=s(t);if(r.has(e))throw new Error(`${t} already associated with ${r.get(e)}`);r.set(e,n)}this._enumMap=r}lookup(t){return this._enumMap.get(s(t))}get(t){const e=this.lookup(t);if(null==e)throw new n.D$("InvalidParameter",null);return e}}},85935(t,e,r){r.d(e,{D$:()=>a,O$:()=>l,i2:()=>d,mT:()=>c,ps:()=>m});var n=r(799);const s={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};function o(t){return"object"==typeof t&&"line"in t&&"column"in t&&"number"==typeof t.line&&"number"==typeof t.column}class i extends Error{constructor(t,e){super(u(e)+("object"==typeof t&&null!=t&&"message"in t?t.message:""),{cause:t}),this.loc=e?.loc??null}}class a extends Error{constructor(t,e,r){super("Execution error - "+u(e)+(0,n.HC)(s[t],r)),this.declaredRootClass="esri.arcade.arcadeexecutionerror",this.loc=e?.loc??null}}function u(t){return null==t?.loc?"":`Line ${t.loc.start.line}:${t.loc.start.column}: `}class c extends Error{constructor(t,e,r){super("Compilation error - "+u(e)+(0,n.HC)(s[t],r)),this.declaredRootClass="esri.arcade.arcadecompilationerror",this.loc=e?.loc??null}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror"}}function d(t,e){return!function(t){if(t instanceof Error&&"loc"in t){const e=t.loc;return null==e||"object"==typeof e&&"start"in e&&null!=e.start&&o(e.start)&&(!("end"in e)||null==e.end||o(e.end))}return!1}(t)||null==t.loc&&null!=e?.loc?new i(t,e):t}const h={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class m extends Error{constructor(t,e){super((0,n.HC)(h[t],e)),this.declaredRootClass="esri.arcade.arcademoduleerror"}}},76343(t,e,r){r.r(e),r.d(e,{BatchTranslationServiceFactory:()=>n.B,PortalTranslationService:()=>n.P,getTranslateParametersKey:()=>n.g,registerFunctions:()=>n.r}),r(48938),r(66395),r(85935),r(78878),r(80672),r(49186),r(53966),r(45475),r(67090),r(62791),r(14942);var n=r(3367)},80672(t,e,r){r.d(e,{Iq:()=>a,RI:()=>i,VQ:()=>c,wI:()=>u});var n=r(47609),s=r(84952),o=r(20655);function i(t,e){return null==e?a(t):new o.A({url:e.url})}function a(t){return t.services?.portal??o.A.getDefault()}function u(t){const e=a(t);return new n.A(e.url)}function c(t,e){const r=t.url;return!!r&&(0,s.ut)(r,e.restUrl)}},3367(t,e,r){r.d(e,{B:()=>S,P:()=>y,g:()=>T,r:()=>C});var n=r(48938),s=r(66395),o=r(85935),i=r(78878),a=r(80672),u=r(49186),c=r(53966),l=r(91869),d=r(45475),h=r(67090),m=r(62791),f=r(14942),p=r(54218);class y{constructor(t,e){this.portal=t,this._debugLog=e}async translate(t){this.portal.loaded||await this.portal.load();const e=this.portal.helperServices?.aiUtilityServices;if(null==e)return{success:!1};const r=e.api?.text_translate;if(null==r)return{success:!1};const n=e.url+r;try{return t.requestSource??="arcade",{success:!0,results:(await(0,d.T)(n,t,{authMode:"no-prompt"})).map(t=>t.toJSON())}}catch(t){return null!=this._debugLog&&(t instanceof Error||t instanceof u.A)&&this._debugLog(`TranslateText error: ${t.message}`),c.A.getLogger("esri.arcade.functions.aiServices").error(t),{success:!1}}}}class g{constructor(t,e,r){this._parameters=t,this._maxTotalContentSize=e,this._maxContentsLength=r,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(t){const e=new Set(t.filter(t=>!this._normalizedContents.has(t.text)).map(t=>t.text));if(this._requests.length+e.size>this._maxContentsLength)return null;let r=0;for(const t of e)r+=t.length;if((r+this._contentsTotalSize)*(this._parameters.outputCultures.length??1)>this._maxTotalContentSize)return null;const n=this._requests.length;for(const{key:e,text:r}of t)(0,l.tE)(this._normalizedContents,r,()=>[]).push({batchIdx:n,key:e});return this._requests.push(t),this._contentsTotalSize+=r,n}async send(t){const e=[],r=[];let n=0;for(const[t,s]of this._normalizedContents)e.push(new h.k({key:String(n++),text:t})),r.push(s);const s=new m.F(this._parameters);s.input=e;const o=await t.translate(s);if(!o.success)return Array.from(this._requests,()=>o);const i=Array.from(this._requests,()=>({success:!0,results:[]}));for(const t of o.results){const e=Number(t.key);for(const n of r[e])i[n.batchIdx].results.push({...t,key:n.key})}return i}}function T(t){const e=[...new Set(t.outputCultures)].sort(),r=t.inputCulture??null,n=t.portalUrl,s=t.provider;return JSON.stringify([e,r,n,s])}async function w(t,e,r){try{return(await t.yieldFor(r))[e]}catch{return{success:!1}}}class S{constructor(t,e,{maxTotalContentSize:r=5e4,maxContentsLength:n=1e3}={}){this._executor=t,this._service=e,this._openBatches=new Map,this._maxTotalContentSize=r,this._maxContentsLength=n}create(t){return{translate:async e=>{const r=T(e),{input:n,outputCultures:s,inputCulture:o,provider:i,portalUrl:a}=e;if(null==s)return{success:!1};if(null==n||n.every(t=>0===t.text.length))return{success:!1};const u=this._openBatches.get(r);if(null!=u){const e=u.data.tryAdd(n);if(null!=e)return await w(t,e,u);u.send()}const c=new g({outputCultures:s,inputCulture:o,provider:i,portalUrl:a},this._maxTotalContentSize,this._maxContentsLength),l=c.tryAdd(n);if(null!=l){const e=this._executor.openBatch(c,{open:t=>{this._openBatches.set(r,t)},execute:t=>t.send(this._service),close:t=>{this._openBatches.get(r)===t&&this._openBatches.delete(r)}});return await w(t,l,e)}return await this._service.translate(e)}}}}function C(t){"async"===t.mode&&(t.functions[(0,n.X)("TranslateText")]=function(e,r){return t.standardFunctionAsync(e,r,async(t,e,r)=>{if((0,i.E)(r,2,3,e),!(0,p.Kg)(r[0])&&!(0,p.cy)(r[0])&&!(0,i.g)(r[0]))throw new o.D$("InvalidParameter",e);const n=(0,i.P)(r[0]);if(!(0,p.Kg)(r[1])&&!(0,p.cy)(r[1])&&!(0,i.g)(r[1]))throw new o.D$("InvalidParameter",e);const u=(0,i.P)(r[1]);let c=null;if(r.length>=3){if(!(0,p.Kg)(r[2]))throw new o.D$("InvalidParameter",e);c=r[2]}const l=n.map((t,e)=>new h.k({key:String(e),text:t})),d=(0,a.Iq)(t),g=new m.F({outputCultures:u,input:l,inputCulture:c,portalUrl:d.restUrl.replace(/\/sharing\/rest$/,"")}),w=new Map;let S;if(null!=t.lrucache){const e=t.lrucache;S??=T(g),g.input=g.input?.filter(t=>{const r=e.getCachedTranslation(S,t.text);return null==r||(w.set(t.key,{...r,key:t.key}),!1)})}if(g.input?.length){const e=t.services?.translation??new y(d,t.console),r=await e.translate(g);if(!r.success)return new s.A({__proto__:null,success:!1});for(const e of r.results){const r=g.input?.find(t=>t.key===e.key)?.text;if(null==r)throw new o.D$("NeverReach",null);w.set(e.key,e),null!=t.lrucache&&(S??=T(g),t.lrucache.setCachedTranslation(S,r,{detectedLanguage:e.detectedLanguage,translations:e.translations}))}}const C=Array.from(l,t=>{const e=f.s.fromJSON(w.get(t.key));if(null==e)throw new o.D$("NeverReach",null);const r=Object.create(null);for(const t of e.translations)r[t.to]=t.text;return new s.A({__proto__:null,key:e.key,text:t.text,detectedLanguage:new s.A({__proto__:null,language:e.detectedLanguage,score:e.detectedLanguageScore}),translation:new s.A(r)})});return new s.A({__proto__:null,success:!0,results:C})})})}const _=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:S,PortalTranslationService:y,getTranslateParametersKey:T,registerFunctions:C},Symbol.toStringTag,{value:"Module"}));r.d(e,["A",0,_])},44729(t,e,r){r.d(e,{n:()=>u});var n=r(66131),s=r(73444),o=r(34747);function i(t){t=t.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let e="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const n of t.match(r)||[])switch(n){case"D":e+="d";break;case"DD":e+="dd";break;case"DDD":e+="o";break;case"d":e+="c";break;case"ddd":e+="ccc";break;case"dddd":e+="cccc";break;case"M":e+="L";break;case"MM":e+="LL";break;case"MMM":e+="LLL";break;case"MMMM":e+="LLLL";break;case"YY":e+="yy";break;case"Y":case"YYYY":e+="yyyy";break;case"Q":e+="q";break;case"X":case"x":e+=n;break;default:n.length>=2&&n.startsWith("[")&&n.endsWith("]")?e+=`'${n.slice(1,-1)}'`:e+=`'${n}'`}return e}const a="esri.core.sql.dateonly";class u{constructor(t,e,r){this._year=t,this._month=e,this._day=r,this.declaredRootClass=a}static isDateOnly(t){return"object"==typeof t&&null!=t&&"declaredRootClass"in t&&t.declaredRootClass===a}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return u.isDateOnly(t)&&t.day===this.day&&t.month===this.month&&t.year===this.year}compare(t){return this.year===t.year?this.month===t.month?this.day-t.day:this.month-t.month:this.year-t.year}clone(){return new u(this._year,this._month,this._day)}toDateTime(t){return o.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,n.mT)(t)})}toDateTimeLuxon(t){return o.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,n.mT)(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,e=!0){if(null===t||""===t)return this.toString();if(e&&(t=i(t)),!t)return"";const r=this.toDateTime("unknown");return n.lY.dateTimeToArcadeDate(r).toFormat(t,{locale:(0,s.JK)(),numberingSystem:"latn"})}toArcadeDate(){const t=this.toDateTime("unknown");return n.lY.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,e){return u.fromDateTime(this.toUTCDateTime().plus({[t]:e}))}toUTCDateTime(){return o.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,e){switch(e.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===e?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){const e=o.c9.fromMillis(t,{zone:o.mQ.utcInstance});return e.isValid?u.fromParts(e.year,e.month,e.day):null}static fromSeconds(t){const e=o.c9.fromSeconds(t,{zone:o.mQ.utcInstance});return e.isValid?u.fromParts(e.year,e.month,e.day):null}static fromReader(t){if(!t)return null;const e=t.indexOf("-");if(e<0)return null;const r=t.indexOf("-",e+1);return r<0?null:new u(parseInt(t.slice(0,e),10),parseInt(t.slice(e+1,r),10),parseInt(t.slice(r+1),10))}static fromParts(t,e,r){const n=new u(t,e,r);return!1===n.isValid?null:n}static fromDateJS(t){return u.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return u.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,e=null){if(""===t)return null;if(null===t)return null;const r=[];if(e)(e=i(e))&&r.push(e);else if(null===e||""===e){const e=o.c9.fromISO(t,{setZone:!0});return e.isValid?u.fromParts(e.year,e.month,e.day):null}for(const n of r){const r=o.c9.fromFormat(t,e??n);if(r.isValid)return new u(r.year,r.month,r.day)}return null}static fromNow(t="system"){const e=o.c9.fromJSDate(new Date).setZone((0,n.mT)(t));return new u(e.year,e.month,e.day)}}},15032(t,e,r){r.d(e,{k:()=>u});var n=r(73444),s=r(54218),o=r(34747);function i(t){if(!t)return"";const e=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g;let r="";for(const n of t.match(e)||[])switch(n){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":r+=n;break;case"A":case"a":r+="a";break;default:r+=`'${n}'`}return r}const a="esri.core.sql.timeonly";class u{constructor(t,e,r,n){this._hour=t,this._minute=e,this._second=r,this._millisecond=n,this.declaredRootClass=a}static isTimeOnly(t){return"object"==typeof t&&null!=t&&"declaredRootClass"in t&&t.declaredRootClass===a}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(t){return u.isTimeOnly(t)&&t.hour===this.hour&&t.minute===this.minute&&t.second===this.second&&t.millisecond===this.millisecond}clone(){return new u(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,s.Fq)(this.hour)&&(0,s.Fq)(this.minute)&&(0,s.Fq)(this.second)&&(0,s.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(t=null){return null===t||""===t?this.toString():(t=i(t))?o.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(t,{locale:(0,n.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(t,e,r,n){const s=new u(t,e,r,n);return s.isValid()?s:null}static fromReader(t){if(!t)return null;const e=t.indexOf(":");if(e<0)return null;const r=t.indexOf(":",e+1);return r<0?null:new u(parseInt(t.slice(0,e),10),parseInt(t.slice(e+1,r),10),parseInt(t.slice(r+1),10),0)}static fromMilliseconds(t){if(t>864e5||t<0)return null;const e=Math.floor(t/1e3%60),r=Math.floor(t/6e4%60),n=Math.floor(t/36e5%24),s=Math.floor(t%1e3);return new u(n,r,e,s)}static fromDateJS(t){return new u(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}static fromDateTime(t){return new u(t.hour,t.minute,t.second,t.millisecond)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,e=null){if(""===t)return null;if(null===t)return null;const r=[];e?(e=i(e))&&r.push(e):null!==e&&""!==e||(r.push("HH:mm:ss"),r.push("HH:mm:ss.SSS"),r.push("hh:mm:ss a"),r.push("hh:mm:ss.SSS a"),r.push("HH:mm"),r.push("hh:mm a"),r.push("H:mm"),r.push("h:mm a"),r.push("H:mm:ss"),r.push("h:mm:ss a"),r.push("H:mm:ss.SSS"),r.push("h:mm:ss.SSS a"));for(const e of r){const r=o.c9.fromFormat(t,e);if(r.isValid)return new u(r.hour,r.minute,r.second,r.millisecond)}return null}plus(t,e){switch(t){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return u.fromDateTime(this.toUTCDateTime().plus({[t]:e}))}return null}toUTCDateTime(){return o.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(t,e){switch(e.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===e?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}}},67090(t,e,r){r.d(e,{k:()=>a});var n=r(32198),s=r(25482),o=r(10107),i=r(64108);let a=class extends s.o{constructor(t){super(t)}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),a=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateContent")],a)},62791(t,e,r){r.d(e,{F:()=>u});var n=r(32198),s=r(25482),o=r(10107),i=r(64108),a=r(67090);let u=class extends s.o{constructor(t){super(t),this.outputCultures=null,this.input=null,this.portalUrl="https://www.arcgis.com",this.provider="default",this.inputCulture=null,this.requestSource=null}};(0,n.Cg)([(0,o.MZ)({type:[String],json:{write:!0}})],u.prototype,"outputCultures",void 0),(0,n.Cg)([(0,o.MZ)({type:[a.k],json:{write:!0}})],u.prototype,"input",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],u.prototype,"portalUrl",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,default:"default"}})],u.prototype,"provider",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"inputCulture",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],u.prototype,"requestSource",void 0),u=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateParameters")],u)},14942(t,e,r){r.d(e,{s:()=>u});var n=r(32198),s=r(25482),o=r(10107),i=r(64108);let a=class extends s.o{};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"to",void 0),a=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateResult.Translation")],a);let u=class extends s.o{constructor(t){super(t),this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"key",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],u.prototype,"detectedLanguage",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],u.prototype,"detectedLanguageScore",void 0),(0,n.Cg)([(0,o.MZ)({type:[a],json:{write:!0}})],u.prototype,"translations",void 0),u=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateResult")],u)},45475(t,e,r){r.d(e,{T:()=>i});var n=r(11254),s=r(2272),o=r(14942);async function i(t,e,r){const i=JSON.stringify(e.toJSON()),a={};"https://www.arcgis.com"!==e.portalUrl&&(a.portal=e.portalUrl),null!=e.requestSource&&(a.request_source=e.requestSource),a.token=await(0,s.gf)(e.portalUrl,null,{signal:r?.signal,prompt:"no-prompt"!==r?.authMode});const u=(0,s.Dl)(t),c=(0,s.jV)(u.query,{...r,query:a,body:i,method:"post",authMode:"anonymous"});return(await(0,n.A)(u.path,c)).data.results.map(t=>o.s.fromJSON(t))}},2272(t,e,r){r.d(e,{Dl:()=>c,gf:()=>d,jV:()=>u,lF:()=>l});var n=r(92602),s=r(70333),o=r(4718),i=r(84952),a=r(926);function u(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function c(t){return"string"==typeof t?(0,i.An)(t):(0,o.o8)(t)}function l(t,e,r){const n={};for(const s in t){if("declaredClass"===s)continue;const o=t[s];if(null!=o&&"function"!=typeof o)if(Array.isArray(o))n[s]=o.map(t=>l(t));else if("object"==typeof o)if(o.toJSON){const t=o.toJSON(r?.[s]);n[s]=e?t:JSON.stringify(t)}else n[s]=e?o:JSON.stringify(o);else n[s]=o}return n}async function d(t,e,o){const i=function(t,e){return t?e&&(0,a.Qc)(t)?e:(0,a.getApiKey)(t)??s.id?.findCredential(t)?.token:null}(t,e);if(i)return i;!s.id&&n.A.request.useIdentity&&await Promise.all([r.e(5620),r.e(4372),r.e(5071)]).then(r.bind(r,50148));const u=await s.id.getCredential(t,o);return u?.token}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1089],{66131(t,e,r){r.d(e,{lY:()=>d,mT:()=>h});var n=r(59534),s=r(799),o=r(3330),i=r(34747);const a={TimeZoneNotRecognized:"Timezone identifier has not been recognized."};class u extends Error{constructor(t,e){super((0,s.HC)(a[t],e)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,u)}}function c(t,e,r){return t<e?t-e:t>r?t-r:0}function l(t,e,r){return t<e?e:t>r?r:t}class d{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,e=1,r=1,n=0,s=0,o=0,a=0,u){if(isNaN(t)||isNaN(e)||isNaN(r)||isNaN(n)||isNaN(s)||isNaN(o)||isNaN(a))return null;const m=i.c9.local(t,e).daysInMonth;let f=i.c9.fromObject({day:l(r,1,m),year:t,month:l(e,1,12),hour:l(n,0,23),minute:l(s,0,59),second:l(o,0,59),millisecond:l(a,0,999)},{zone:h(u)});return f=f.plus({months:c(e,1,12),days:c(r,1,m),hours:c(n,0,23),minutes:c(s,0,59),seconds:c(o,0,59),milliseconds:c(a,0,999)}),new d(f)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,e){const r=h(e);return t.isUnknownTimeZone||r===o.GB.instance?d.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,r):new d(t._date.setZone(r))}static dateJSToArcadeDate(t){return new d(i.c9.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,e="system"){const r=h(e);return new d(i.c9.fromJSDate(t,{zone:r}))}static unknownEpochToArcadeDate(t){return new d(i.c9.fromMillis(t,{zone:o.GB.instance}))}static unknownDateJSToArcadeDate(t){return new d(i.c9.fromMillis(t.getTime(),{zone:o.GB.instance}))}static epochToArcadeDate(t,e="system"){const r=h(e);return new d(i.c9.fromMillis(t,{zone:r}))}static dateTimeToArcadeDate(t){return new d(t)}clone(){return new d(this._date)}changeTimeZone(t){const e=h(t);return d.dateTimeToArcadeDate(this._date.setZone(e))}static dateTimeAndZoneToArcadeDate(t,e){const r=h(e);return t.zone===o.GB.instance||r===o.GB.instance?d.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,r):new d(t.setZone(r))}static nowToArcadeDate(t){const e=h(t);return new d(i.c9.fromJSDate(new Date,{zone:e}))}static nowUTCToArcadeDate(){return new d(i.c9.utc())}get isSystem(){return"system"===this.timeZone||this.timeZone===d.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===o.GB.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if("system"===this._date.zone.type)return"system";const t=this.zone;return"fixed"===t.type?0===t.fixed?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new d(this._date.plus(t))}diff(t,e){return this._date.diff(t._date,e)[e]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,e){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:e&&!this.isUnknownTimeZone})}toFormat(t,e){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,e)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new d(this._date.toUTC())}toLocal(){return new d(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;const e=i.c9.fromISO(t,{setZone:!0});return new d(e)}}function h(t,e=!0){if(t instanceof i.bo)return t;switch((0,n.B)(t)){case"system":return"system";case"utc":return"UTC";case"unknown":return o.GB.instance}if(/^[+-]?[0-9]{1,2}(:[0-9]{2})?$/.test(t)){const e=i.mQ.parseSpecifier("UTC"+(t.startsWith("+")||t.startsWith("-")?"":"+")+t);if(e)return e}const r=i.oh.create(t);if(!r.isValid){if(e)throw new u("TimeZoneNotRecognized");return null}return r}},47609(t,e,r){r.d(e,{A:()=>s});var n=r(66395);class s extends n.A{constructor(t){super({__proto__:null,url:t}),this.declaredClass="esri.arcade.Portal"}get url(){return this.field("url")}}},66395(t,e,r){r.d(e,{A:()=>a});var n=r(66131),s=r(6800),o=r(85935),i=r(78878);class a{constructor(t){this.declaredClass="esri.arcade.Dictionary",this.plain=!1,this.immutable=!0,t instanceof a?this.attributes=t.attributes:null==t?this.attributes=Object.create(null):null!=Object.getPrototypeOf(t)?this.attributes={__proto__:null,...t}:this.attributes=t}static createMutable(t){const e=new a(t);return e.immutable=!1,e}static containerEntry(t,e){return new a({__proto__:null,key:t,value:e})}static textFormatting(){return a.createMutable({__proto__:null,newline:"\n",tab:"\t",singlequote:"'",doublequote:'"',forwardslash:"/",backwardslash:"\\"})}field(t){const e=t.toLowerCase(),r=this.attributes[t];if(void 0!==r)return r;for(const t in this.attributes)if(t.toLowerCase()===e)return this.attributes[t];throw new o.D$("FieldNotFound",null,{key:t})}setField(t,e){if(this.immutable)throw new o.D$("Immutable",null);if((0,i.i)(e))throw new o.D$("NoFunctionInDictionary",null);const r=t.toLowerCase();if(e instanceof Date&&(e=n.lY.dateJSToArcadeDate(e)),void 0===this.attributes[t]){for(const t in this.attributes)if(t.toLowerCase()===r)return void(this.attributes[t]=e);this.attributes[t]=e}else this.attributes[t]=e}eraseField(t){if(this.immutable)throw new o.D$("Immutable",null);if(t in this.attributes)return void delete this.attributes[t];const e=t.toLowerCase();for(const t in this.attributes)if(t.toLowerCase()===e)return void delete this.attributes[t]}hasField(t){const e=t.toLowerCase();if(void 0!==this.attributes[t])return!0;for(const t in this.attributes)if(t.toLowerCase()===e)return!0;return!1}keys(){const t=[];for(const e in this.attributes)t.push(e);return t.sort((t,e)=>t.toLowerCase()<e.toLowerCase()?-1:1)}entryCount(){return Object.keys(this.attributes).length}isEmpty(){return this.entryCount()<=0}castToText(t=!1){return(0,i.c)(this.attributes,{useNumbersForDates:t})}castAsJson(){const t=Object.create(null);for(const e in this.attributes){const r=this.attributes[e];void 0!==r&&(t[e]=(0,i.a)(r))}return t}async castAsJsonAsync(t=null){const e=Object.create(null),r=[];for(const s in this.attributes){const o=this.attributes[s];void 0!==o&&((0,i.b)(o)||(0,i.d)(o)||o instanceof n.lY?e[s]=(0,i.a)(o):r.push((0,i.e)(o,t).then(t=>{e[s]=t})))}return r.length>0&&await Promise.all(r),e}deepClone(){const t=new a;t.immutable=!1;for(const e of this.keys())t.setField(e,(0,s.G)(this.field(e)));return t}}},48938(t,e,r){r.d(e,{X:()=>s});var n=r(85935);function s(t){if("string"==typeof t)return t.toLowerCase();if("name"in t)return t.name.toLowerCase();if("string"!=typeof t.value)throw new n.D$("InvalidIdentifier",null);return t.value.toLowerCase()}const o=Object.freeze({aborted:!1});r.d(e,["_",0,o])},6800(t,e,r){r.d(e,{G:()=>a,y:()=>o});var n=r(78878),s=r(54218);function o(t){i=t}let i;function a(t){return null==t?null:(0,n.f)(t)?t.clone():(0,n.b)(t)?t:(0,n.d)(t)?t.clone():(0,n.g)(t)?t.toArray().map(t=>a(t)):(0,s.cy)(t)?t.map(t=>a(t)):(0,n.h)(t)?i.createFromArcadeFeature(t):(0,n.j)(t)||(0,n.k)(t)?t:(0,n.l)(t)||(0,n.m)(t)?t.deepClone():((0,n.n)(t)||(0,n.o)(t)||(0,n.p)(t)||(0,n.i)(t),t)}},59534(t,e,r){r.d(e,{B:()=>s,b:()=>o});var n=r(85935);function s(t){return t.toLowerCase().replaceAll(/[\s-]+/g,"")}class o{constructor(t,e){const r=new Map;for(const e of t){const t=s(e);if(r.has(t))throw new Error(`${e} already added as ${r.get(t)}`);r.set(t,e)}if(null!=e)for(const[t,n]of e){const e=s(t);if(r.has(e))throw new Error(`${t} already associated with ${r.get(e)}`);r.set(e,n)}this._enumMap=r}lookup(t){return this._enumMap.get(s(t))}get(t){const e=this.lookup(t);if(null==e)throw new n.D$("InvalidParameter",null);return e}}},85935(t,e,r){r.d(e,{D$:()=>a,O$:()=>l,i2:()=>d,mT:()=>c,ps:()=>m});var n=r(799);const s={TypeNotAllowedInFeature:"Feature attributes only support dates, numbers, strings, guids.",LogicError:"Logic error - {reason}",CannotCompareDateAndTime:"Cannot compare date or dateonly with timeonly types",NeverReach:"Encountered unreachable logic",AsyncNotEnabled:"Async Arcade must be enabled for this script",ModuleAccessorMustBeString:"Module accessor must be a string",ModuleExportNotFound:"Module has no export with provided identifier",ModulesNotSupported:"Current profile does not support modules",ArrayAccessMustBeNumber:"Array accessor must be a number",FunctionNotFound:"Function not found",FieldNotFound:"Key not found - {key}",CircularModules:"Circular module dependencies are not allowed",Cancelled:"Execution cancelled",UnsupportedHashType:"Type not supported in hash function",IllegalResult:"Value is not a supported return type",PortalRequired:"Portal is required",InvalidParameter:"Invalid parameter",WrongNumberOfParameters:"Call with wrong number of parameters",Unrecognized:"Unrecognized code structure",UnrecognizedType:"Unrecognized type",WrongSpatialReference:"Cannot work with geometry in this spatial reference. It is different to the execution spatial reference",BooleanConditionRequired:"Conditions must use booleans",NoFunctionInDictionary:"Dictionaries cannot contain functions.",NoFunctionInArray:"Arrays cannot contain functions.",NoFunctionInTemplateLiteral:"Template Literals do not expect functions by value.",KeyAccessorMustBeString:"Accessor must be a string",KeyMustBeString:"Object keys must be a string",Immutable:"Object is immutable",UnexpectedToken:"Unexpected token",MemberOfNull:"Cannot access property of null object",MaximumCallDepth:"Exceeded maximum function depth",OutOfBounds:"Out of bounds",InvalidIdentifier:"Identifier not recognized",CallNonFunction:"Expression is not a function",InvalidMemberAccessKey:"Cannot access value using a key of this type",AssignModuleFunction:"Cannot assign function to module variable",UnsupportUnaryOperator:"Unsupported unary operator",UnsupportedOperator:"Unsupported operator",LogicalExpressionOnlyBoolean:"Logical expressions must be boolean",LogicExpressionOrAnd:"Logical expression can only be combined with || or &&",CannotChangeTimeZoneTime:"Cannot change the timezone of a Time",CannotChangeTimeZoneDateOnly:"Cannot change the timezone of a DateOnly",FeatureSetDoesNotHaveSubtypes:"FeatureSet does not have subtypes"};function o(t){return"object"==typeof t&&"line"in t&&"column"in t&&"number"==typeof t.line&&"number"==typeof t.column}class i extends Error{constructor(t,e){super(u(e)+("object"==typeof t&&null!=t&&"message"in t?t.message:""),{cause:t}),this.loc=e?.loc??null}}class a extends Error{constructor(t,e,r){super("Execution error - "+u(e)+(0,n.HC)(s[t],r)),this.declaredRootClass="esri.arcade.arcadeexecutionerror",this.loc=e?.loc??null}}function u(t){return null==t?.loc?"":`Line ${t.loc.start.line}:${t.loc.start.column}: `}class c extends Error{constructor(t,e,r){super("Compilation error - "+u(e)+(0,n.HC)(s[t],r)),this.declaredRootClass="esri.arcade.arcadecompilationerror",this.loc=e?.loc??null}}class l extends Error{constructor(){super("Uncompilable code structures"),this.declaredRootClass="esri.arcade.arcadeuncompilableerror"}}function d(t,e){return!function(t){if(t instanceof Error&&"loc"in t){const e=t.loc;return null==e||"object"==typeof e&&"start"in e&&null!=e.start&&o(e.start)&&(!("end"in e)||null==e.end||o(e.end))}return!1}(t)||null==t.loc&&null!=e?.loc?new i(t,e):t}const h={UnrecognizedUri:"Unrecognized uri - {uri}",UnsupportedUriProtocol:"Unrecognized uri protocol"};class m extends Error{constructor(t,e){super((0,n.HC)(h[t],e)),this.declaredRootClass="esri.arcade.arcademoduleerror"}}},76343(t,e,r){r.r(e),r.d(e,{BatchTranslationServiceFactory:()=>n.B,PortalTranslationService:()=>n.P,getTranslateParametersKey:()=>n.g,registerFunctions:()=>n.r}),r(48938),r(66395),r(85935),r(78878),r(80672),r(49186),r(53966),r(45475),r(67090),r(62791),r(14942);var n=r(3367)},80672(t,e,r){r.d(e,{Iq:()=>a,RI:()=>i,VQ:()=>c,wI:()=>u});var n=r(47609),s=r(84952),o=r(20655);function i(t,e){return null==e?a(t):new o.A({url:e.url})}function a(t){return t.services?.portal??o.A.getDefault()}function u(t){const e=a(t);return new n.A(e.url)}function c(t,e){const r=t.url;return!!r&&(0,s.ut)(r,e.restUrl)}},3367(t,e,r){r.d(e,{B:()=>S,P:()=>y,g:()=>T,r:()=>C});var n=r(48938),s=r(66395),o=r(85935),i=r(78878),a=r(80672),u=r(49186),c=r(53966),l=r(91869),d=r(45475),h=r(67090),m=r(62791),f=r(14942),p=r(54218);class y{constructor(t,e){this.portal=t,this._debugLog=e}async translate(t){this.portal.loaded||await this.portal.load();const e=this.portal.helperServices?.aiUtilityServices;if(null==e)return{success:!1};const r=e.api?.text_translate;if(null==r)return{success:!1};const n=e.url+r;try{return t.requestSource??="arcade",{success:!0,results:(await(0,d.T)(n,t,{authMode:"no-prompt"})).map(t=>t.toJSON())}}catch(t){return null!=this._debugLog&&(t instanceof Error||t instanceof u.A)&&this._debugLog(`TranslateText error: ${t.message}`),c.A.getLogger("esri.arcade.functions.aiServices").error(t),{success:!1}}}}class g{constructor(t,e,r){this._parameters=t,this._maxTotalContentSize=e,this._maxContentsLength=r,this._requests=[],this._normalizedContents=new Map,this._contentsTotalSize=0}tryAdd(t){const e=new Set(t.filter(t=>!this._normalizedContents.has(t.text)).map(t=>t.text));if(this._requests.length+e.size>this._maxContentsLength)return null;let r=0;for(const t of e)r+=t.length;if((r+this._contentsTotalSize)*(this._parameters.outputCultures.length??1)>this._maxTotalContentSize)return null;const n=this._requests.length;for(const{key:e,text:r}of t)(0,l.tE)(this._normalizedContents,r,()=>[]).push({batchIdx:n,key:e});return this._requests.push(t),this._contentsTotalSize+=r,n}async send(t){const e=[],r=[];let n=0;for(const[t,s]of this._normalizedContents)e.push(new h.k({key:String(n++),text:t})),r.push(s);const s=new m.F(this._parameters);s.input=e;const o=await t.translate(s);if(!o.success)return Array.from(this._requests,()=>o);const i=Array.from(this._requests,()=>({success:!0,results:[]}));for(const t of o.results){const e=Number(t.key);for(const n of r[e])i[n.batchIdx].results.push({...t,key:n.key})}return i}}function T(t){const e=[...new Set(t.outputCultures)].sort(),r=t.inputCulture??null,n=t.portalUrl,s=t.provider;return JSON.stringify([e,r,n,s])}async function w(t,e,r){try{return(await t.yieldFor(r))[e]}catch{return{success:!1}}}class S{constructor(t,e,{maxTotalContentSize:r=5e4,maxContentsLength:n=1e3}={}){this._executor=t,this._service=e,this._openBatches=new Map,this._maxTotalContentSize=r,this._maxContentsLength=n}create(t){return{translate:async e=>{const r=T(e),{input:n,outputCultures:s,inputCulture:o,provider:i,portalUrl:a}=e;if(null==s)return{success:!1};if(null==n||n.every(t=>0===t.text.length))return{success:!1};const u=this._openBatches.get(r);if(null!=u){const e=u.data.tryAdd(n);if(null!=e)return await w(t,e,u);u.send()}const c=new g({outputCultures:s,inputCulture:o,provider:i,portalUrl:a},this._maxTotalContentSize,this._maxContentsLength),l=c.tryAdd(n);if(null!=l){const e=this._executor.openBatch(c,{open:t=>{this._openBatches.set(r,t)},execute:t=>t.send(this._service),close:t=>{this._openBatches.get(r)===t&&this._openBatches.delete(r)}});return await w(t,l,e)}return await this._service.translate(e)}}}}function C(t){"async"===t.mode&&(t.functions[(0,n.X)("TranslateText")]=function(e,r){return t.standardFunctionAsync(e,r,async(t,e,r)=>{if((0,i.E)(r,2,3,e),!(0,p.Kg)(r[0])&&!(0,p.cy)(r[0])&&!(0,i.g)(r[0]))throw new o.D$("InvalidParameter",e);const n=(0,i.P)(r[0]);if(!(0,p.Kg)(r[1])&&!(0,p.cy)(r[1])&&!(0,i.g)(r[1]))throw new o.D$("InvalidParameter",e);const u=(0,i.P)(r[1]);let c=null;if(r.length>=3){if(!(0,p.Kg)(r[2]))throw new o.D$("InvalidParameter",e);c=r[2]}const l=n.map((t,e)=>new h.k({key:String(e),text:t})),d=(0,a.Iq)(t),g=new m.F({outputCultures:u,input:l,inputCulture:c,portalUrl:d.restUrl.replace(/\/sharing\/rest$/,"")}),w=new Map;let S;if(null!=t.lrucache){const e=t.lrucache;S??=T(g),g.input=g.input?.filter(t=>{const r=e.getCachedTranslation(S,t.text);return null==r||(w.set(t.key,{...r,key:t.key}),!1)})}if(g.input?.length){const e=t.services?.translation??new y(d,t.console),r=await e.translate(g);if(!r.success)return new s.A({__proto__:null,success:!1});for(const e of r.results){const r=g.input?.find(t=>t.key===e.key)?.text;if(null==r)throw new o.D$("NeverReach",null);w.set(e.key,e),null!=t.lrucache&&(S??=T(g),t.lrucache.setCachedTranslation(S,r,{detectedLanguage:e.detectedLanguage,translations:e.translations}))}}const C=Array.from(l,t=>{const e=f.s.fromJSON(w.get(t.key));if(null==e)throw new o.D$("NeverReach",null);const r=Object.create(null);for(const t of e.translations)r[t.to]=t.text;return new s.A({__proto__:null,key:e.key,text:t.text,detectedLanguage:new s.A({__proto__:null,language:e.detectedLanguage,score:e.detectedLanguageScore}),translation:new s.A(r)})});return new s.A({__proto__:null,success:!0,results:C})})})}const _=Object.freeze(Object.defineProperty({__proto__:null,BatchTranslationServiceFactory:S,PortalTranslationService:y,getTranslateParametersKey:T,registerFunctions:C},Symbol.toStringTag,{value:"Module"}));r.d(e,["A",0,_])},44729(t,e,r){r.d(e,{n:()=>u});var n=r(66131),s=r(73444),o=r(34747);function i(t){t=t.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let e="";const r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(const n of t.match(r)||[])switch(n){case"D":e+="d";break;case"DD":e+="dd";break;case"DDD":e+="o";break;case"d":e+="c";break;case"ddd":e+="ccc";break;case"dddd":e+="cccc";break;case"M":e+="L";break;case"MM":e+="LL";break;case"MMM":e+="LLL";break;case"MMMM":e+="LLLL";break;case"YY":e+="yy";break;case"Y":case"YYYY":e+="yyyy";break;case"Q":e+="q";break;case"X":case"x":e+=n;break;default:n.length>=2&&n.startsWith("[")&&n.endsWith("]")?e+=`'${n.slice(1,-1)}'`:e+=`'${n}'`}return e}const a="esri.core.sql.dateonly";class u{constructor(t,e,r){this._year=t,this._month=e,this._day=r,this.declaredRootClass=a}static isDateOnly(t){return"object"==typeof t&&null!=t&&"declaredRootClass"in t&&t.declaredRootClass===a}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return u.isDateOnly(t)&&t.day===this.day&&t.month===this.month&&t.year===this.year}compare(t){return this.year===t.year?this.month===t.month?this.day-t.day:this.month-t.month:this.year-t.year}clone(){return new u(this._year,this._month,this._day)}toDateTime(t){return o.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,n.mT)(t)})}toDateTimeLuxon(t){return o.c9.fromObject({day:this.day,month:this.month,year:this.year},{zone:(0,n.mT)(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,e=!0){if(null===t||""===t)return this.toString();if(e&&(t=i(t)),!t)return"";const r=this.toDateTime("unknown");return n.lY.dateTimeToArcadeDate(r).toFormat(t,{locale:(0,s.JK)(),numberingSystem:"latn"})}toArcadeDate(){const t=this.toDateTime("unknown");return n.lY.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,e){return u.fromDateTime(this.toUTCDateTime().plus({[t]:e}))}toUTCDateTime(){return o.c9.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,e){switch(e.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===e?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){const e=o.c9.fromMillis(t,{zone:o.mQ.utcInstance});return e.isValid?u.fromParts(e.year,e.month,e.day):null}static fromSeconds(t){const e=o.c9.fromSeconds(t,{zone:o.mQ.utcInstance});return e.isValid?u.fromParts(e.year,e.month,e.day):null}static fromReader(t){if(!t)return null;const e=t.indexOf("-");if(e<0)return null;const r=t.indexOf("-",e+1);return r<0?null:new u(parseInt(t.slice(0,e),10),parseInt(t.slice(e+1,r),10),parseInt(t.slice(r+1),10))}static fromParts(t,e,r){const n=new u(t,e,r);return!1===n.isValid?null:n}static fromDateJS(t){return u.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return u.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,e=null){if(""===t)return null;if(null===t)return null;const r=[];if(e)(e=i(e))&&r.push(e);else if(null===e||""===e){const e=o.c9.fromISO(t,{setZone:!0});return e.isValid?u.fromParts(e.year,e.month,e.day):null}for(const n of r){const r=o.c9.fromFormat(t,e??n);if(r.isValid)return new u(r.year,r.month,r.day)}return null}static fromNow(t="system"){const e=o.c9.fromJSDate(new Date).setZone((0,n.mT)(t));return new u(e.year,e.month,e.day)}}},15032(t,e,r){r.d(e,{k:()=>u});var n=r(73444),s=r(54218),o=r(34747);function i(t){if(!t)return"";const e=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g;let r="";for(const n of t.match(e)||[])switch(n){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":r+=n;break;case"A":case"a":r+="a";break;default:r+=`'${n}'`}return r}const a="esri.core.sql.timeonly";class u{constructor(t,e,r,n){this._hour=t,this._minute=e,this._second=r,this._millisecond=n,this.declaredRootClass=a}static isTimeOnly(t){return"object"==typeof t&&null!=t&&"declaredRootClass"in t&&t.declaredRootClass===a}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(t){return u.isTimeOnly(t)&&t.hour===this.hour&&t.minute===this.minute&&t.second===this.second&&t.millisecond===this.millisecond}clone(){return new u(this.hour,this.minute,this.second,this.millisecond)}isValid(){return(0,s.Fq)(this.hour)&&(0,s.Fq)(this.minute)&&(0,s.Fq)(this.second)&&(0,s.Fq)(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(t=null){return null===t||""===t?this.toString():(t=i(t))?o.c9.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(t,{locale:(0,n.JK)(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(t,e,r,n){const s=new u(t,e,r,n);return s.isValid()?s:null}static fromReader(t){if(!t)return null;const e=t.indexOf(":");if(e<0)return null;const r=t.indexOf(":",e+1);return r<0?null:new u(parseInt(t.slice(0,e),10),parseInt(t.slice(e+1,r),10),parseInt(t.slice(r+1),10),0)}static fromMilliseconds(t){if(t>864e5||t<0)return null;const e=Math.floor(t/1e3%60),r=Math.floor(t/6e4%60),n=Math.floor(t/36e5%24),s=Math.floor(t%1e3);return new u(n,r,e,s)}static fromDateJS(t){return new u(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}static fromDateTime(t){return new u(t.hour,t.minute,t.second,t.millisecond)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,e=null){if(""===t)return null;if(null===t)return null;const r=[];e?(e=i(e))&&r.push(e):null!==e&&""!==e||(r.push("HH:mm:ss"),r.push("HH:mm:ss.SSS"),r.push("hh:mm:ss a"),r.push("hh:mm:ss.SSS a"),r.push("HH:mm"),r.push("hh:mm a"),r.push("H:mm"),r.push("h:mm a"),r.push("H:mm:ss"),r.push("h:mm:ss a"),r.push("H:mm:ss.SSS"),r.push("h:mm:ss.SSS a"));for(const e of r){const r=o.c9.fromFormat(t,e);if(r.isValid)return new u(r.hour,r.minute,r.second,r.millisecond)}return null}plus(t,e){switch(t){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return u.fromDateTime(this.toUTCDateTime().plus({[t]:e}))}return null}toUTCDateTime(){return o.c9.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(t,e){switch(e.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return"M"===e?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}}},67090(t,e,r){r.d(e,{k:()=>a});var n=r(32198),s=r(25482),o=r(10107),i=r(64108);let a=class extends s.o{constructor(t){super(t)}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"key",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),a=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateContent")],a)},62791(t,e,r){r.d(e,{F:()=>u});var n=r(32198),s=r(25482),o=r(10107),i=r(64108),a=r(67090);let u=class extends s.o{constructor(t){super(t),this.outputCultures=null,this.input=null,this.portalUrl="https://www.arcgis.com",this.provider="default",this.inputCulture=null,this.requestSource=null}};(0,n.Cg)([(0,o.MZ)({type:[String],json:{write:!0}})],u.prototype,"outputCultures",void 0),(0,n.Cg)([(0,o.MZ)({type:[a.k],json:{write:!0}})],u.prototype,"input",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],u.prototype,"portalUrl",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0,default:"default"}})],u.prototype,"provider",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"inputCulture",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:!1,write:!1}})],u.prototype,"requestSource",void 0),u=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateParameters")],u)},14942(t,e,r){r.d(e,{s:()=>u});var n=r(32198),s=r(25482),o=r(10107),i=r(64108);let a=class extends s.o{};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"text",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],a.prototype,"to",void 0),a=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateResult.Translation")],a);let u=class extends s.o{constructor(t){super(t),this.detectedLanguage="en",this.detectedLanguageScore=-1}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],u.prototype,"key",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{read:{source:"detectedLanguage.language"},write:{target:"detectedLanguage.language"}}})],u.prototype,"detectedLanguage",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:{read:{source:"detectedLanguage.score"},write:{target:"detectedLanguage.score"}}})],u.prototype,"detectedLanguageScore",void 0),(0,n.Cg)([(0,o.MZ)({type:[a],json:{write:!0}})],u.prototype,"translations",void 0),u=(0,n.Cg)([(0,i.$)("esri.rest.support.TranslateResult")],u)},45475(t,e,r){r.d(e,{T:()=>i});var n=r(11254),s=r(2272),o=r(14942);async function i(t,e,r){const i=JSON.stringify(e.toJSON()),a={};"https://www.arcgis.com"!==e.portalUrl&&(a.portal=e.portalUrl),null!=e.requestSource&&(a.request_source=e.requestSource),a.token=await(0,s.gf)(e.portalUrl,null,{signal:r?.signal,prompt:"no-prompt"!==r?.authMode});const u=(0,s.Dl)(t),c=(0,s.jV)(u.query,{...r,query:a,body:i,method:"post",authMode:"anonymous"});return(await(0,n.A)(u.path,c)).data.results.map(t=>o.s.fromJSON(t))}},2272(t,e,r){r.d(e,{Dl:()=>c,gf:()=>d,jV:()=>u,lF:()=>l});var n=r(92602),s=r(70333),o=r(4718),i=r(84952),a=r(926);function u(t,e){return e?{...e,query:{...t,...e.query}}:{query:t}}function c(t){return"string"==typeof t?(0,i.An)(t):(0,o.o8)(t)}function l(t,e,r){const n={};for(const s in t){if("declaredClass"===s)continue;const o=t[s];if(null!=o&&"function"!=typeof o)if(Array.isArray(o))n[s]=o.map(t=>l(t));else if("object"==typeof o)if(o.toJSON){const t=o.toJSON(r?.[s]);n[s]=e?t:JSON.stringify(t)}else n[s]=e?o:JSON.stringify(o);else n[s]=o}return n}async function d(t,e,o){const i=function(t,e){return t?e&&(0,a.Qc)(t)?e:(0,a.getApiKey)(t)??s.id?.findCredential(t)?.token:null}(t,e);if(i)return i;!s.id&&n.A.request.useIdentity&&await Promise.all([r.e(5620),r.e(4372),r.e(9530)]).then(r.bind(r,50148));const u=await s.id.getCredential(t,o);return u?.token}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2469],{69052(e,t,r){r.d(t,{hr:()=>i});var o=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return n(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,o.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+l(this.range,e-t,r)}minimalMonotonic(e,t,r){return n(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,o=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(o)?r:o}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function n(e,t,r,o,i=0,n=!1){return(o-=i)<t?o+=l(e,t-o):o>r&&(o-=l(e,o-r)),n&&o===r&&(o=t),o+i}function l(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new i(0,2*Math.PI),s=(new i(-Math.PI,Math.PI),new i(0,360));r.d(t,["ie",0,s,"uC",0,a])},93146(e,t,r){r.d(t,{z:()=>i});class o{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async e=>(this.module=e,e))),this._promise}}function i(e){return new o(async()=>{const t=await e();return!1===t.isLoaded?.()&&await t.load(),t})}},52039(e,t,r){r.d(t,{O7:()=>u,el:()=>s});var o=r(69052),i=(r(49186),r(17676)),n=(r(5443),r(39829),r(82799),r(16930)),l=r(93146),a=(r(80754),r(21325));async function s(e,t,r){Array.isArray(e)||(e=[e]),null!=t&&"object"==typeof t&&"authMode"in t&&(r=t);let o=null;for(const t of e)o??=t?.spatialReference;if(!o)return e;const n=(0,a.Vp)(o);if(!n)return e;const[l,s]=n.valid;let u=!1;for(const t of e){if(!t)continue;if("point"===t.type){u||=t.x>=s,u||=t.x<=l;continue}const{extent:e}=t;if(null==e){u=!0;break}u||=e.xmin>=s,u||=e.xmin<=l,u||=e.xmax>=s,u||=e.xmax<=l}if(!u)return e;const[{foldInto360Range:d},c]=await(0,i.qr)(Promise.all([p.getImportPromise(),y.getImportPromise()]),r),m=c.fromSpatialReference(o);return e.map(e=>{if(null==e||"mesh"===e.type)return e;const t=c.fromGeometry(e),r=c.toGeometry(d(t,m),o);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const p=(0,l.z)(()=>r.e(4144).then(r.bind(r,4144))),y=(0,l.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)));function u(e,t,r){const o=(0,a.Vp)(r);if(null==o)return e;const[i,n]=o.valid,l=2*n;let s=0,p=0;t>n?s=Math.ceil(Math.abs(t-n)/l):t<i&&(s=-Math.ceil(Math.abs(t-i)/l)),e>n?p=Math.ceil(Math.abs(e-n)/l):e<i&&(p=-Math.ceil(Math.abs(e-i)/l));let y=e+(s-p)*l;const u=y-t;return u>n?y-=l:u<i&&(y+=l),y}function d(e){const t=(0,a.Vp)(e);if(null==t)return null;const[r,i]=t.valid;return new o.hr(r,i)}const c=d(n.A.WGS84);d(n.A.WebMercator),r.d(t,["Y_",0,c])},80754(e,t,r){r.d(t,{kS:()=>p,kd:()=>s});var o=r(82799),i=r(16930),n=r(60408),l=r(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new o.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new o.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new o.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new o.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function s(e,t){return Math.ceil((e-t)/(2*t))}function p(e,t){if((0,l.Ed)(e))for(const r of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of r){if((0,l.aO)(e)){const[r,o]=e.c;r[0]+=t,o[0]+=t;continue}if((0,l.FG)(e)){const[r,o]=e.a;r[0]+=t,o[0]+=t;continue}if((0,l.n1)(e)){const[r,o,i]=e.b;r[0]+=t,o[0]+=t,i[0]+=t;continue}e[0]+=t}for(const r of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(const e of r)e[0]+=t;return e}r.d(t,["j7",0,a])},96299(e,t,r){r.r(t),r.d(t,{default:()=>$});var o=r(32198),i=r(52106),n=r(7762),l=r(49186),a=r(4718),s=r(25728),p=r(93637),y=r(67076),u=r(91429),d=r(5443),c=r(99917),m=r(16930),f=r(19419),g=r(52039),h=r(21325),M=r(89808),w=r(99959);const C=Symbol("isMapNotesGraphicOriginSymbol");var b;class v extends w.A{get[(b=C,M.Q)](){return this.layer}constructor(e,t){super(),this[b]=!0,this.type="map-notes",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var S=r(53781),O=r(94194),x=r(4146),Z=r(33032),T=r(63074),N=r(34287),A=r(8303),R=r(25036),j=r(20437),I=r(94985),L=r(31593),z=r(53930),F=r(68249),J=r(36005),_=r(43937);function P(e){return"markup"===e.featureCollectionType||e.layers.some(e=>null!=e.layerDefinition.visibilityField||!G(e))}function G({layerDefinition:e,featureSet:t}){const r=e.geometryType??t.geometryType;return q.find(t=>r===t.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===t.identifyingSymbol.type)}function D(){return new d.A({xmin:-180,ymin:-90,xmax:180,ymax:90})}const K=new j.A({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),E=new j.A({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0,length:255}),q=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new I.A).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new L.A).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new z.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new z.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new F.A).toJSON()}];let k=class extends((0,T.dM)((0,R.j)((0,N.q)((0,A.A)((0,s.M)(x.A)))))){constructor(e){super(e),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.legendEnabled=!1,this.listMode="hide-children",this.minScale=0,this.maxScale=0,this.spatialReference=m.A.WGS84,this.sublayers=new n.A(q.map(e=>new B({id:e.id,layerId:e.layerId,title:e.title,layer:this}))),this.title="Map Notes",this.type="map-notes",this.visibilityMode="inherited"}readCapabilities(e,t,r){return{operations:{supportsMapNotesEditing:!P(t)&&"portal-item"!==r?.origin}}}readFeatureCollections(e,t,r){if(!P(t))return null;const o=t.layers.map(e=>{const t=new S.default;return t.read(e,r),t});return new n.A({items:o})}readLegacyfeatureCollectionJSON(e,t){return P(t)?(0,a.o8)(t.featureCollection):null}get fullExtent(){const e=this.spatialReference,t=(0,f.Ie)();return null!=this.sublayers?this.sublayers.forEach(({fullBounds:e})=>null!=e?(0,f.fT)(t,e,t):t,t):this.featureCollectionJSON?.layers.some(e=>e.layerDefinition.extent)&&this.featureCollectionJSON.layers.forEach(r=>{const o=(0,c.projectOrLoad)(r.layerDefinition.extent,e).geometry;null!=o&&(0,f.fT)(t,o,t)}),(0,f.aI)(t,f.qv)?(0,c.projectOrLoad)(D(),e).geometry:(0,f.w1)(t,e)}readMinScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}get multipointLayer(){return this._findSublayer("multipointLayer")}get pointLayer(){return this._findSublayer("pointLayer")}get polygonLayer(){return this._findSublayer("polygonLayer")}get polylineLayer(){return this._findSublayer("polylineLayer")}readSpatialReference(e,t){return t.layers.length?m.A.fromJSON(t.layers[0].layerDefinition.spatialReference):m.A.WGS84}readSublayers(e,t,r){if(P(t))return null;const o=[];let l=t.layers.reduce((e,t)=>Math.max(e,t.layerDefinition.id??-1),-1)+1;for(const e of t.layers){const{layerDefinition:t,featureSet:r}=e,n=t.id??l++,a=G(e);if(null!=a){const e=new B({id:a.id,title:t.name,layerId:n,layer:this,graphics:r.features.map(({geometry:e,symbol:t,attributes:r,popupInfo:o})=>i.A.fromJSON({attributes:r,geometry:e,symbol:t,popupTemplate:o}))});o.push(e)}}return new n.A(o)}writeSublayers(e,t,r,o){const{minScale:i,maxScale:n}=this;if(null==e)return;const a=e.some(e=>e.graphics.length>0);if(!this.capabilities.operations.supportsMapNotesEditing)return void(a&&o?.messages?.push(new l.A("map-notes-layer:editing-not-supported","New map notes cannot be added to this layer")));const s=[];let y=this.spatialReference.toJSON();e:for(const t of e)for(const e of t.graphics)if(null!=e.geometry){y=e.geometry.spatialReference.toJSON();break e}for(const t of q){const r=e.find(e=>t.id===e.id);this._writeMapNoteSublayer(s,r,t,i,n,y,o)}(0,p.sM)("featureCollection.layers",s,t)}get textLayer(){return this._findSublayer("textLayer")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}read(e,t){"featureCollection"in e&&(e=(0,a.o8)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async beforeSave(){if(null==this.sublayers)return;let e=null;const t=[];for(const r of this.sublayers)for(const o of r.graphics)if(null!=o.geometry){const r=o.geometry;e?(0,h.aI)(r.spatialReference,e)||((0,c.canProjectWithoutEngine)(r.spatialReference,e)||(0,c.isLoaded)()||await(0,c.load)(),o.geometry=(0,c.project)(r,e)):e=r.spatialReference,t.push(o)}const r=await(0,g.el)(t.map(e=>e.geometry));t.forEach((e,t)=>e.geometry=r[t])}_findSublayer(e){return null==this.sublayers?null:this.sublayers?.find(t=>t.id===e)??null}_writeMapNoteSublayer(e,t,r,o,i,n,l){const s=[];if(null!=t){for(const e of t.graphics)this._writeMapNote(s,e,r.geometryType,l);this._normalizeObjectIds(s,K),e.push({layerDefinition:{name:t.title,drawingInfo:{renderer:{type:"simple",symbol:(0,a.o8)(r.identifyingSymbol)}},id:t.layerId,geometryType:r.geometryTypeJSON,minScale:o,maxScale:i,objectIdField:"OBJECTID",fields:[K.toJSON(),E.toJSON()],spatialReference:n},featureSet:{features:s,geometryType:r.geometryTypeJSON}})}}_writeMapNote(e,t,r,o){if(null==t)return;const{geometry:i,symbol:n,popupTemplate:l}=t;if(null==i)return;if(i.type!==r)return void o?.messages?.push(new y.A("map-notes-layer:invalid-geometry-type",`Geometry "${i.type}" cannot be saved in "${r}" layer`,{graphic:t}));if(null==n)return void o?.messages?.push(new y.A("map-notes-layer:no-symbol","Skipping map notes with no symbol",{graphic:t}));const a={attributes:{...t.attributes},geometry:i.toJSON(),symbol:n.toJSON()};null!=l&&(a.popupInfo=l.toJSON()),e.push(a)}_normalizeObjectIds(e,t){const r=t.name;let o=(0,Z.H)(r,e)+1;const i=new Set;for(const t of e){t.attributes||(t.attributes={});const{attributes:e}=t;(null==e[r]||i.has(e[r]))&&(e[r]=o++),i.add(e[r])}}};(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"capabilities",void 0),(0,o.Cg)([(0,J.w)(["portal-item","web-map"],"capabilities",["layers"])],k.prototype,"readCapabilities",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"featureCollections",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"featureCollections",["layers"])],k.prototype,"readFeatureCollections",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],k.prototype,"featureCollectionJSON",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],k.prototype,"readLegacyfeatureCollectionJSON",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],k.prototype,"featureCollectionType",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"fullExtent",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],k.prototype,"legendEnabled",void 0),(0,o.Cg)([(0,u.MZ)({type:["show","hide","hide-children"]})],k.prototype,"listMode",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],k.prototype,"minScale",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"minScale",["layers"])],k.prototype,"readMinScale",null),(0,o.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],k.prototype,"maxScale",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"maxScale",["layers"])],k.prototype,"readMaxScale",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"multipointLayer",null),(0,o.Cg)([(0,u.MZ)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],k.prototype,"operationalLayerType",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"pointLayer",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"polygonLayer",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"polylineLayer",null),(0,o.Cg)([(0,u.MZ)({type:m.A})],k.prototype,"spatialReference",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"spatialReference",["layers"])],k.prototype,"readSpatialReference",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],k.prototype,"sublayers",void 0),(0,o.Cg)([(0,J.w)("web-map","sublayers",["layers"])],k.prototype,"readSublayers",null),(0,o.Cg)([(0,_.K)("web-map","sublayers")],k.prototype,"writeSublayers",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"textLayer",null),(0,o.Cg)([(0,u.MZ)()],k.prototype,"title",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1}})],k.prototype,"type",void 0),k=(0,o.Cg)([(0,u.$K)("esri.layers.MapNotesLayer")],k);let B=class extends O.A{constructor(e){super(e),this.visibilityMode="inherited"}initialize(){for(const e of this.graphics)e.sourceLayer=this.layer;this.graphics.on("after-add",e=>{e.item.sourceLayer=this.layer,e.item.origin=this.graphicOrigin}),this.graphics.on("after-remove",e=>{e.item.sourceLayer=null,e.item.origin=null})}get fullExtent(){const e=this.layer?.spatialReference,t=this.fullBounds;return e?null==t?(0,c.projectOrLoad)(D(),e).geometry:(0,f.w1)(t,e):null}get fullBounds(){const e=this.layer?.spatialReference;if(!e)return null;const t=(0,f.Ie)();return this.graphics.forEach(r=>{const o=null!=r.geometry?(0,c.projectOrLoad)(r.geometry,e).geometry:null;null!=o&&(0,f.fT)(t,"point"===o.type?o:o.extent,t)}),(0,f.aI)(t,f.qv)?null:t}get graphicOrigin(){return new v(this.layer,this)}get sublayers(){return this.graphics}};(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"fullExtent",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"fullBounds",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"graphicOrigin",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"sublayers",null),(0,o.Cg)([(0,u.MZ)()],B.prototype,"layer",void 0),(0,o.Cg)([(0,u.MZ)()],B.prototype,"layerId",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"visibilityMode",void 0),B=(0,o.Cg)([(0,u.$K)("esri.layers.MapNotesLayer.MapNotesSublayer")],B);const $=k},33032(e,t,r){function o(e,t){let r=0;for(const o of t){const t=o.attributes?.[e];"number"==typeof t&&isFinite(t)&&(r=Math.max(r,t))}return r}r.d(t,{H:()=>o})},52136(e,t,r){var o=r(32198),i=r(91429);r.d(t,["p",0,e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,o.Cg)([(0,i.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,o.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},28032(e,t,r){r.d(t,{A:()=>s});var o=r(32198),i=r(69540),n=r(25482),l=r(91429),a=r(56400);let s=class extends((0,i.OU)(n.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,o.Cg)([(0,l.MZ)()],s.prototype,"creatorField",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"creationDateField",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"editorField",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"editDateField",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"realm",void 0),(0,o.Cg)([(0,l.MZ)((0,a.P6)("dateFieldsTimeReference",!0))],s.prototype,"timeZone",void 0),s=(0,o.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],s)},33143(e,t,r){r.d(t,{A:()=>u});var o=r(32198),i=r(69540),n=r(25482),l=r(91429),a=r(8631),s=r(29005),p=r(36005),y=r(43937);let u=class extends((0,i.OU)(n.o)){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,a.r)(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,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"id",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"domains",void 0),(0,o.Cg)([(0,p.w)("domains")],u.prototype,"readDomains",null),(0,o.Cg)([(0,y.K)("domains")],u.prototype,"writeDomains",null),(0,o.Cg)([(0,l.MZ)({type:[s.A],json:{write:!0}})],u.prototype,"templates",void 0),u=(0,o.Cg)([(0,l.$K)("esri.layers.support.FeatureType")],u)},37352(e,t,r){r.d(t,{A:()=>s});var o,i=r(32198),n=r(7762),l=r(25482),a=r(91429);let s=o=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new o({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],s.prototype,"floorField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllMode",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllLevelIds",void 0),s=o=(0,i.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],s)},45067(e,t,r){r.d(t,{A:()=>y});var o=r(32198),i=r(69540),n=r(66552),l=r(25482),a=r(91429);const s=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let y=class extends((0,i.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,o.Cg)([(0,a.MZ)({json:{read:s.read,write:s.write}})],y.prototype,"cardinality",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],y.prototype,"catalogId",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"composite",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"id",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"keyField",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"keyFieldInRelationshipTable",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"name",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"relatedTableId",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"relationshipTableId",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:p.read,write:p.write}})],y.prototype,"role",void 0),y=(0,o.Cg)([(0,a.$K)("esri.layers.support.Relationship")],y)},22671(e,t,r){r.d(t,{A:()=>M});var o,i=r(32198),n=r(52106),l=r(66552),a=r(25482),s=r(4718),p=r(91429),y=r(16930),u=r(60408),d=r(65864),c=r(50498),m=r(20437),f=r(36005),g=r(43937);const h=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=o=class extends a.o{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){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,o){if(e)return void h.write(e,t,r,o);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void h.write(e.geometry.type,t,r,o)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,o=(0,d.rS)(e);return o&&!r&&t.spatialReference&&(o.spatialReference=y.A.fromJSON(t.spatialReference)),o}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 o(this.cloneProperties())}cloneProperties(){return(0,s.o8)({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 o=t.features[r];if(o.geometry){const t=e?.[r];o.geometry=t?.toJSON()||o.geometry}}return t}quantize(e){const{scale:[t,r],translate:[o,i]}=e,n=this.features,l=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-o)/t),e=>Math.round((i-e)/r));for(let e=0,t=n.length;e<t;e++)l?.(n[e].geometry)||(n.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:[o,i],scale:[n,l]}=r;let a=null,s=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;s=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,e=>e*n+o,e=>i-e*l,a,s);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const o=y.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],l=r.fromJSON(n),a=n.geometry?.spatialReference;null==l.geometry||a||(l.geometry.spatialReference=o);const s=n.aggregateGeometries,p=l.aggregateGeometries;if(s&&null!=p)for(const e in p){const t=p[e],r=s[e],i=r?.spatialReference;null==t||i||(t.spatialReference=o)}i.push(l)}return i}_quantizePoints(e,t,r){let o,i;const n=[];for(let l=0,a=e.length;l<a;l++){const a=e[l];if(l>0){const e=t(a[0]),l=r(a[1]);e===o&&l===i||(n.push([e-o,l-i]),o=e,i=l)}else o=t(a[0]),i=r(a[1]),n.push([o,i])}return n.length>0?n: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 o=(0,u.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,n=o.length;e<n;e++){const n=o[e],l=this._quantizePoints(n,t,r);l&&i.push(l)}return i.length>0?((0,u.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const o=this._quantizePoints(e.points,t,r);return o&&o.length>0?(e.points=o,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,o,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),o&&(e.z=o(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,u.Bi)(e)?e.rings:e.paths;let l,a;for(let e=0,o=n.length;e<o;e++){const o=n[e];for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(l+=i[0],a+=i[1]):(l=i[0],a=i[1]),i[0]=t(l),i[1]=r(a)}}if(o&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2]),r[3]=i(r[3])}}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(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),o&&null!=e.zmax&&null!=e.zmin&&(e.zmax=o(e.zmax),e.zmin=o(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let l,a;for(let e=0,o=n.length;e<o;e++){const o=n[e];e>0?(l+=o[0],a+=o[1]):(l=o[0],a=o[1]),o[0]=t(l),o[1]=r(a)}if(o&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2]),t[3]=i(t[3])}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,p.MZ)({type:[n.A],json:{write:!0}})],M.prototype,"features",void 0),(0,i.Cg)([(0,f.w)("features")],M.prototype,"readFeatures",null),(0,i.Cg)([(0,p.MZ)({type:[m.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:h.read}}})],M.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasM",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasZ",void 0),(0,i.Cg)([(0,p.MZ)({types:c.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,f.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,p.MZ)({type:y.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,p.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=o=(0,i.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var o=r(32198),i=r(66552),n=r(53966),l=r(91429),a=r(93223);const s=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",y="field";r.d(t,["K",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&y||r&&p||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==y&&e!==p||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,o.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,o.Cg)([(0,a.e)(s,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,o.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,s])}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2469],{69052(e,t,r){r.d(t,{hr:()=>i});var o=r(34727);class i{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,r=!1){return n(this.range,this.min,this.max,e,t,r)}clamp(e,t=0){return(0,o.qE)(e-t,this.min,this.max)+t}monotonic(e,t,r){return e<t?t:t+l(this.range,e-t,r)}minimalMonotonic(e,t,r){return n(this.range,e,e+this.range,t,r)}center(e,t,r){return t=this.monotonic(e,t,r),this.normalize((e+t)/2,r)}diff(e,t,r){return this.monotonic(e,t,r)-e}shortestSignedDiff(e,t){e=this.normalize(e);const r=(t=this.normalize(t))-e,o=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(r)<Math.abs(o)?r:o}contains(e,t,r){return t=this.minimalMonotonic(e,t),(r=this.minimalMonotonic(e,r))>e&&r<t}}function n(e,t,r,o,i=0,n=!1){return(o-=i)<t?o+=l(e,t-o):o>r&&(o-=l(e,o-r)),n&&o===r&&(o=t),o+i}function l(e,t,r=0){return Math.ceil((t-r)/e)*e+r}const a=new i(0,2*Math.PI),s=(new i(-Math.PI,Math.PI),new i(0,360));r.d(t,["ie",0,s,"uC",0,a])},93146(e,t,r){r.d(t,{z:()=>i});class o{constructor(e){this._import=e,this.module=null,this._promise=null}getImportPromise(){return null==this._promise&&(this._promise=this._import().then(async e=>(this.module=e,e))),this._promise}}function i(e){return new o(async()=>{const t=await e();return!1===t.isLoaded?.()&&await t.load(),t})}},52039(e,t,r){r.d(t,{O7:()=>u,el:()=>s});var o=r(69052),i=(r(49186),r(17676)),n=(r(5443),r(39829),r(82799),r(16930)),l=r(93146),a=(r(80754),r(21325));async function s(e,t,r){Array.isArray(e)||(e=[e]),null!=t&&"object"==typeof t&&"authMode"in t&&(r=t);let o=null;for(const t of e)o??=t?.spatialReference;if(!o)return e;const n=(0,a.Vp)(o);if(!n)return e;const[l,s]=n.valid;let u=!1;for(const t of e){if(!t)continue;if("point"===t.type){u||=t.x>=s,u||=t.x<=l;continue}const{extent:e}=t;if(null==e){u=!0;break}u||=e.xmin>=s,u||=e.xmin<=l,u||=e.xmax>=s,u||=e.xmax<=l}if(!u)return e;const[{foldInto360Range:d},c]=await(0,i.qr)(Promise.all([p.getImportPromise(),y.getImportPromise()]),r),m=c.fromSpatialReference(o);return e.map(e=>{if(null==e||"mesh"===e.type)return e;const t=c.fromGeometry(e),r=c.toGeometry(d(t,m),o);return"extent"===e.type&&1===r?.rings.length?r.extent:r})}const p=(0,l.z)(()=>r.e(4144).then(r.bind(r,4144))),y=(0,l.z)(()=>Promise.all([r.e(9187),r.e(8885),r.e(9117),r.e(3299),r.e(1550)]).then(r.bind(r,78125)));function u(e,t,r){const o=(0,a.Vp)(r);if(null==o)return e;const[i,n]=o.valid,l=2*n;let s=0,p=0;t>n?s=Math.ceil(Math.abs(t-n)/l):t<i&&(s=-Math.ceil(Math.abs(t-i)/l)),e>n?p=Math.ceil(Math.abs(e-n)/l):e<i&&(p=-Math.ceil(Math.abs(e-i)/l));let y=e+(s-p)*l;const u=y-t;return u>n?y-=l:u<i&&(y+=l),y}function d(e){const t=(0,a.Vp)(e);if(null==t)return null;const[r,i]=t.valid;return new o.hr(r,i)}const c=d(n.A.WGS84);d(n.A.WebMercator),r.d(t,["Y_",0,c])},80754(e,t,r){r.d(t,{kS:()=>p,kd:()=>s});var o=r(82799),i=r(16930),n=r(60408),l=r(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new o.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator}),minus180Line:new o.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:i.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new o.A({paths:[[[180,-180],[180,180]]],spatialReference:i.A.WGS84}),minus180Line:new o.A({paths:[[[-180,-180],[-180,180]]],spatialReference:i.A.WGS84})}};function s(e,t){return Math.ceil((e-t)/(2*t))}function p(e,t){if((0,l.Ed)(e))for(const r of function(e){return(0,n.Bi)(e)?e.curveRings:e.curvePaths}(e))for(const e of r){if((0,l.aO)(e)){const[r,o]=e.c;r[0]+=t,o[0]+=t;continue}if((0,l.FG)(e)){const[r,o]=e.a;r[0]+=t,o[0]+=t;continue}if((0,l.n1)(e)){const[r,o,i]=e.b;r[0]+=t,o[0]+=t,i[0]+=t;continue}e[0]+=t}for(const r of function(e){return(0,n.Bi)(e)?e.rings:e.paths}(e))for(const e of r)e[0]+=t;return e}r.d(t,["j7",0,a])},96299(e,t,r){r.r(t),r.d(t,{default:()=>$});var o=r(32198),i=r(52106),n=r(7762),l=r(49186),a=r(4718),s=r(25728),p=r(93637),y=r(67076),u=r(91429),d=r(5443),c=r(99917),m=r(16930),f=r(19419),g=r(52039),h=r(21325),M=r(89808),w=r(99959);const C=Symbol("isMapNotesGraphicOriginSymbol");var b;class v extends w.A{get[(b=C,M.Q)](){return this.layer}constructor(e,t){super(),this[b]=!0,this.type="map-notes",this.layer=e,this.sublayer=t}get id(){return`${this.layer.id}:__${this.sublayer.id}__`}}var S=r(18589),O=r(94194),x=r(4146),Z=r(33032),T=r(63074),N=r(34287),A=r(8303),R=r(25036),j=r(20437),I=r(94985),L=r(31593),z=r(53930),F=r(68249),J=r(36005),_=r(43937);function P(e){return"markup"===e.featureCollectionType||e.layers.some(e=>null!=e.layerDefinition.visibilityField||!G(e))}function G({layerDefinition:e,featureSet:t}){const r=e.geometryType??t.geometryType;return q.find(t=>r===t.geometryTypeJSON&&e.drawingInfo?.renderer?.symbol?.type===t.identifyingSymbol.type)}function D(){return new d.A({xmin:-180,ymin:-90,xmax:180,ymax:90})}const K=new j.A({name:"OBJECTID",alias:"OBJECTID",type:"oid",nullable:!1,editable:!1}),E=new j.A({name:"title",alias:"Title",type:"string",nullable:!0,editable:!0,length:255}),q=[{geometryType:"polygon",geometryTypeJSON:"esriGeometryPolygon",id:"polygonLayer",layerId:0,title:"Polygons",identifyingSymbol:(new I.A).toJSON()},{geometryType:"polyline",geometryTypeJSON:"esriGeometryPolyline",id:"polylineLayer",layerId:1,title:"Polylines",identifyingSymbol:(new L.A).toJSON()},{geometryType:"multipoint",geometryTypeJSON:"esriGeometryMultipoint",id:"multipointLayer",layerId:2,title:"Multipoints",identifyingSymbol:(new z.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"pointLayer",layerId:3,title:"Points",identifyingSymbol:(new z.A).toJSON()},{geometryType:"point",geometryTypeJSON:"esriGeometryPoint",id:"textLayer",layerId:4,title:"Text",identifyingSymbol:(new F.A).toJSON()}];let k=class extends((0,T.dM)((0,R.j)((0,N.q)((0,A.A)((0,s.M)(x.A)))))){constructor(e){super(e),this.capabilities={operations:{supportsMapNotesEditing:!0}},this.featureCollections=null,this.featureCollectionJSON=null,this.featureCollectionType="notes",this.legendEnabled=!1,this.listMode="hide-children",this.minScale=0,this.maxScale=0,this.spatialReference=m.A.WGS84,this.sublayers=new n.A(q.map(e=>new B({id:e.id,layerId:e.layerId,title:e.title,layer:this}))),this.title="Map Notes",this.type="map-notes",this.visibilityMode="inherited"}readCapabilities(e,t,r){return{operations:{supportsMapNotesEditing:!P(t)&&"portal-item"!==r?.origin}}}readFeatureCollections(e,t,r){if(!P(t))return null;const o=t.layers.map(e=>{const t=new S.default;return t.read(e,r),t});return new n.A({items:o})}readLegacyfeatureCollectionJSON(e,t){return P(t)?(0,a.o8)(t.featureCollection):null}get fullExtent(){const e=this.spatialReference,t=(0,f.Ie)();return null!=this.sublayers?this.sublayers.forEach(({fullBounds:e})=>null!=e?(0,f.fT)(t,e,t):t,t):this.featureCollectionJSON?.layers.some(e=>e.layerDefinition.extent)&&this.featureCollectionJSON.layers.forEach(r=>{const o=(0,c.projectOrLoad)(r.layerDefinition.extent,e).geometry;null!=o&&(0,f.fT)(t,o,t)}),(0,f.aI)(t,f.qv)?(0,c.projectOrLoad)(D(),e).geometry:(0,f.w1)(t,e)}readMinScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.minScale)return e.layerDefinition.minScale;return 0}readMaxScale(e,t){for(const e of t.layers)if(null!=e.layerDefinition.maxScale)return e.layerDefinition.maxScale;return 0}get multipointLayer(){return this._findSublayer("multipointLayer")}get pointLayer(){return this._findSublayer("pointLayer")}get polygonLayer(){return this._findSublayer("polygonLayer")}get polylineLayer(){return this._findSublayer("polylineLayer")}readSpatialReference(e,t){return t.layers.length?m.A.fromJSON(t.layers[0].layerDefinition.spatialReference):m.A.WGS84}readSublayers(e,t,r){if(P(t))return null;const o=[];let l=t.layers.reduce((e,t)=>Math.max(e,t.layerDefinition.id??-1),-1)+1;for(const e of t.layers){const{layerDefinition:t,featureSet:r}=e,n=t.id??l++,a=G(e);if(null!=a){const e=new B({id:a.id,title:t.name,layerId:n,layer:this,graphics:r.features.map(({geometry:e,symbol:t,attributes:r,popupInfo:o})=>i.A.fromJSON({attributes:r,geometry:e,symbol:t,popupTemplate:o}))});o.push(e)}}return new n.A(o)}writeSublayers(e,t,r,o){const{minScale:i,maxScale:n}=this;if(null==e)return;const a=e.some(e=>e.graphics.length>0);if(!this.capabilities.operations.supportsMapNotesEditing)return void(a&&o?.messages?.push(new l.A("map-notes-layer:editing-not-supported","New map notes cannot be added to this layer")));const s=[];let y=this.spatialReference.toJSON();e:for(const t of e)for(const e of t.graphics)if(null!=e.geometry){y=e.geometry.spatialReference.toJSON();break e}for(const t of q){const r=e.find(e=>t.id===e.id);this._writeMapNoteSublayer(s,r,t,i,n,y,o)}(0,p.sM)("featureCollection.layers",s,t)}get textLayer(){return this._findSublayer("textLayer")}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Feature Collection"]},e)),Promise.resolve(this)}read(e,t){"featureCollection"in e&&(e=(0,a.o8)(e),Object.assign(e,e.featureCollection)),super.read(e,t)}async beforeSave(){if(null==this.sublayers)return;let e=null;const t=[];for(const r of this.sublayers)for(const o of r.graphics)if(null!=o.geometry){const r=o.geometry;e?(0,h.aI)(r.spatialReference,e)||((0,c.canProjectWithoutEngine)(r.spatialReference,e)||(0,c.isLoaded)()||await(0,c.load)(),o.geometry=(0,c.project)(r,e)):e=r.spatialReference,t.push(o)}const r=await(0,g.el)(t.map(e=>e.geometry));t.forEach((e,t)=>e.geometry=r[t])}_findSublayer(e){return null==this.sublayers?null:this.sublayers?.find(t=>t.id===e)??null}_writeMapNoteSublayer(e,t,r,o,i,n,l){const s=[];if(null!=t){for(const e of t.graphics)this._writeMapNote(s,e,r.geometryType,l);this._normalizeObjectIds(s,K),e.push({layerDefinition:{name:t.title,drawingInfo:{renderer:{type:"simple",symbol:(0,a.o8)(r.identifyingSymbol)}},id:t.layerId,geometryType:r.geometryTypeJSON,minScale:o,maxScale:i,objectIdField:"OBJECTID",fields:[K.toJSON(),E.toJSON()],spatialReference:n},featureSet:{features:s,geometryType:r.geometryTypeJSON}})}}_writeMapNote(e,t,r,o){if(null==t)return;const{geometry:i,symbol:n,popupTemplate:l}=t;if(null==i)return;if(i.type!==r)return void o?.messages?.push(new y.A("map-notes-layer:invalid-geometry-type",`Geometry "${i.type}" cannot be saved in "${r}" layer`,{graphic:t}));if(null==n)return void o?.messages?.push(new y.A("map-notes-layer:no-symbol","Skipping map notes with no symbol",{graphic:t}));const a={attributes:{...t.attributes},geometry:i.toJSON(),symbol:n.toJSON()};null!=l&&(a.popupInfo=l.toJSON()),e.push(a)}_normalizeObjectIds(e,t){const r=t.name;let o=(0,Z.H)(r,e)+1;const i=new Set;for(const t of e){t.attributes||(t.attributes={});const{attributes:e}=t;(null==e[r]||i.has(e[r]))&&(e[r]=o++),i.add(e[r])}}};(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"capabilities",void 0),(0,o.Cg)([(0,J.w)(["portal-item","web-map"],"capabilities",["layers"])],k.prototype,"readCapabilities",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"featureCollections",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"featureCollections",["layers"])],k.prototype,"readFeatureCollections",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{enabled:!0,target:"featureCollection"}}}}})],k.prototype,"featureCollectionJSON",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"featureCollectionJSON",["featureCollection"])],k.prototype,"readLegacyfeatureCollectionJSON",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!0,write:{enabled:!0,ignoreOrigin:!0}}})],k.prototype,"featureCollectionType",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"fullExtent",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{target:"featureCollection.showLegend",overridePolicy(){return{enabled:null!=this.featureCollectionJSON}}}}}}})],k.prototype,"legendEnabled",void 0),(0,o.Cg)([(0,u.MZ)({type:["show","hide","hide-children"]})],k.prototype,"listMode",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],k.prototype,"minScale",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"minScale",["layers"])],k.prototype,"readMinScale",null),(0,o.Cg)([(0,u.MZ)({type:Number,nonNullable:!0,json:{write:!1}})],k.prototype,"maxScale",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"maxScale",["layers"])],k.prototype,"readMaxScale",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"multipointLayer",null),(0,o.Cg)([(0,u.MZ)({value:"ArcGISFeatureLayer",type:["ArcGISFeatureLayer"]})],k.prototype,"operationalLayerType",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"pointLayer",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"polygonLayer",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"polylineLayer",null),(0,o.Cg)([(0,u.MZ)({type:m.A})],k.prototype,"spatialReference",void 0),(0,o.Cg)([(0,J.w)(["web-map","portal-item"],"spatialReference",["layers"])],k.prototype,"readSpatialReference",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0}}}}})],k.prototype,"sublayers",void 0),(0,o.Cg)([(0,J.w)("web-map","sublayers",["layers"])],k.prototype,"readSublayers",null),(0,o.Cg)([(0,_.K)("web-map","sublayers")],k.prototype,"writeSublayers",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],k.prototype,"textLayer",null),(0,o.Cg)([(0,u.MZ)()],k.prototype,"title",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0,json:{read:!1}})],k.prototype,"type",void 0),k=(0,o.Cg)([(0,u.$K)("esri.layers.MapNotesLayer")],k);let B=class extends O.A{constructor(e){super(e),this.visibilityMode="inherited"}initialize(){for(const e of this.graphics)e.sourceLayer=this.layer;this.graphics.on("after-add",e=>{e.item.sourceLayer=this.layer,e.item.origin=this.graphicOrigin}),this.graphics.on("after-remove",e=>{e.item.sourceLayer=null,e.item.origin=null})}get fullExtent(){const e=this.layer?.spatialReference,t=this.fullBounds;return e?null==t?(0,c.projectOrLoad)(D(),e).geometry:(0,f.w1)(t,e):null}get fullBounds(){const e=this.layer?.spatialReference;if(!e)return null;const t=(0,f.Ie)();return this.graphics.forEach(r=>{const o=null!=r.geometry?(0,c.projectOrLoad)(r.geometry,e).geometry:null;null!=o&&(0,f.fT)(t,"point"===o.type?o:o.extent,t)}),(0,f.aI)(t,f.qv)?null:t}get graphicOrigin(){return new v(this.layer,this)}get sublayers(){return this.graphics}};(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"fullExtent",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"fullBounds",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"graphicOrigin",null),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"sublayers",null),(0,o.Cg)([(0,u.MZ)()],B.prototype,"layer",void 0),(0,o.Cg)([(0,u.MZ)()],B.prototype,"layerId",void 0),(0,o.Cg)([(0,u.MZ)({readOnly:!0})],B.prototype,"visibilityMode",void 0),B=(0,o.Cg)([(0,u.$K)("esri.layers.MapNotesLayer.MapNotesSublayer")],B);const $=k},33032(e,t,r){function o(e,t){let r=0;for(const o of t){const t=o.attributes?.[e];"number"==typeof t&&isFinite(t)&&(r=Math.max(r,t))}return r}r.d(t,{H:()=>o})},52136(e,t,r){var o=r(32198),i=r(91429);r.d(t,["p",0,e=>{const t=e;let r=class extends t{get apiKey(){return this._isOverridden("apiKey")?this._get("apiKey"):"portalItem"in this?this.portalItem?.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,o.Cg)([(0,i.MZ)({type:String})],r.prototype,"apiKey",null),r=(0,o.Cg)([(0,i.$K)("esri.layers.mixins.APIKeyMixin")],r),r}])},28032(e,t,r){r.d(t,{A:()=>s});var o=r(32198),i=r(69540),n=r(25482),l=r(91429),a=r(56400);let s=class extends((0,i.OU)(n.o)){constructor(e){super(e),this.creatorField=null,this.creationDateField=null,this.editorField=null,this.editDateField=null,this.realm=null,this.timeZone=null}};(0,o.Cg)([(0,l.MZ)()],s.prototype,"creatorField",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"creationDateField",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"editorField",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"editDateField",void 0),(0,o.Cg)([(0,l.MZ)()],s.prototype,"realm",void 0),(0,o.Cg)([(0,l.MZ)((0,a.P6)("dateFieldsTimeReference",!0))],s.prototype,"timeZone",void 0),s=(0,o.Cg)([(0,l.$K)("esri.layers.support.EditFieldsInfo")],s)},33143(e,t,r){r.d(t,{A:()=>u});var o=r(32198),i=r(69540),n=r(25482),l=r(91429),a=r(8631),s=r(29005),p=r(36005),y=r(43937);let u=class extends((0,i.OU)(n.o)){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,a.r)(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,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"id",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"name",void 0),(0,o.Cg)([(0,l.MZ)({json:{write:!0}})],u.prototype,"domains",void 0),(0,o.Cg)([(0,p.w)("domains")],u.prototype,"readDomains",null),(0,o.Cg)([(0,y.K)("domains")],u.prototype,"writeDomains",null),(0,o.Cg)([(0,l.MZ)({type:[s.A],json:{write:!0}})],u.prototype,"templates",void 0),u=(0,o.Cg)([(0,l.$K)("esri.layers.support.FeatureType")],u)},37352(e,t,r){r.d(t,{A:()=>s});var o,i=r(32198),n=r(7762),l=r(25482),a=r(91429);let s=o=class extends l.o{constructor(e){super(e),this.floorField=null,this.viewAllMode=!1,this.viewAllLevelIds=new n.A}clone(){return new o({floorField:this.floorField,viewAllMode:this.viewAllMode,viewAllLevelIds:this.viewAllLevelIds})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{isRequired:!0}}})],s.prototype,"floorField",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllMode",void 0),(0,i.Cg)([(0,a.MZ)({json:{read:!1,write:!1}})],s.prototype,"viewAllLevelIds",void 0),s=o=(0,i.Cg)([(0,a.$K)("esri.layers.support.LayerFloorInfo")],s)},45067(e,t,r){r.d(t,{A:()=>y});var o=r(32198),i=r(69540),n=r(66552),l=r(25482),a=r(91429);const s=new n.J({esriRelCardinalityOneToOne:"one-to-one",esriRelCardinalityOneToMany:"one-to-many",esriRelCardinalityManyToMany:"many-to-many"}),p=new n.J({esriRelRoleOrigin:"origin",esriRelRoleDestination:"destination"});let y=class extends((0,i.OU)(l.o)){constructor(e){super(e),this.cardinality=null,this.catalogId=null,this.composite=null,this.id=null,this.keyField=null,this.keyFieldInRelationshipTable=null,this.name=null,this.relatedTableId=null,this.relationshipTableId=null,this.role=null}};(0,o.Cg)([(0,a.MZ)({json:{read:s.read,write:s.write}})],y.prototype,"cardinality",void 0),(0,o.Cg)([(0,a.MZ)({json:{name:"catalogID"}})],y.prototype,"catalogId",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"composite",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"id",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"keyField",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"keyFieldInRelationshipTable",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"name",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"relatedTableId",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:!0,write:!0}})],y.prototype,"relationshipTableId",void 0),(0,o.Cg)([(0,a.MZ)({json:{read:p.read,write:p.write}})],y.prototype,"role",void 0),y=(0,o.Cg)([(0,a.$K)("esri.layers.support.Relationship")],y)},22671(e,t,r){r.d(t,{A:()=>M});var o,i=r(32198),n=r(52106),l=r(66552),a=r(25482),s=r(4718),p=r(91429),y=r(16930),u=r(60408),d=r(65864),c=r(50498),m=r(20437),f=r(36005),g=r(43937);const h=new l.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let M=o=class extends a.o{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){return this.readFeaturesWithClass(e,t,n.A)}writeGeometryType(e,t,r,o){if(e)return void h.write(e,t,r,o);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void h.write(e.geometry.type,t,r,o)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,o=(0,d.rS)(e);return o&&!r&&t.spatialReference&&(o.spatialReference=y.A.fromJSON(t.spatialReference)),o}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 o(this.cloneProperties())}cloneProperties(){return(0,s.o8)({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 o=t.features[r];if(o.geometry){const t=e?.[r];o.geometry=t?.toJSON()||o.geometry}}return t}quantize(e){const{scale:[t,r],translate:[o,i]}=e,n=this.features,l=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-o)/t),e=>Math.round((i-e)/r));for(let e=0,t=n.length;e<t;e++)l?.(n[e].geometry)||(n.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:[o,i],scale:[n,l]}=r;let a=null,s=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;s=r=>null==r?r:r*t+e}const p=this._getHydrationFunction(e,e=>e*n+o,e=>i-e*l,a,s);for(const{geometry:e}of t)null!=e&&p&&p(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const o=y.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const n=e[t],l=r.fromJSON(n),a=n.geometry?.spatialReference;null==l.geometry||a||(l.geometry.spatialReference=o);const s=n.aggregateGeometries,p=l.aggregateGeometries;if(s&&null!=p)for(const e in p){const t=p[e],r=s[e],i=r?.spatialReference;null==t||i||(t.spatialReference=o)}i.push(l)}return i}_quantizePoints(e,t,r){let o,i;const n=[];for(let l=0,a=e.length;l<a;l++){const a=e[l];if(l>0){const e=t(a[0]),l=r(a[1]);e===o&&l===i||(n.push([e-o,l-i]),o=e,i=l)}else o=t(a[0]),i=r(a[1]),n.push([o,i])}return n.length>0?n: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 o=(0,u.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,n=o.length;e<n;e++){const n=o[e],l=this._quantizePoints(n,t,r);l&&i.push(l)}return i.length>0?((0,u.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const o=this._quantizePoints(e.points,t,r);return o&&o.length>0?(e.points=o,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,o,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),o&&(e.z=o(e.z))}:"polyline"===e||"polygon"===e?e=>{const n=(0,u.Bi)(e)?e.rings:e.paths;let l,a;for(let e=0,o=n.length;e<o;e++){const o=n[e];for(let e=0,i=o.length;e<i;e++){const i=o[e];e>0?(l+=i[0],a+=i[1]):(l=i[0],a=i[1]),i[0]=t(l),i[1]=r(a)}}if(o&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2]),r[3]=i(r[3])}}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=o(r[2])}}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(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),o&&null!=e.zmax&&null!=e.zmin&&(e.zmax=o(e.zmax),e.zmin=o(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const n=e.points;let l,a;for(let e=0,o=n.length;e<o;e++){const o=n[e];e>0?(l+=o[0],a+=o[1]):(l=o[0],a=o[1]),o[0]=t(l),o[1]=r(a)}if(o&&i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2]),t[3]=i(t[3])}else if(o)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=o(t[2])}else if(i)for(let e=0,t=n.length;e<t;e++){const t=n[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],M.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,p.MZ)({type:[n.A],json:{write:!0}})],M.prototype,"features",void 0),(0,i.Cg)([(0,f.w)("features")],M.prototype,"readFeatures",null),(0,i.Cg)([(0,p.MZ)({type:[m.A],json:{write:!0}})],M.prototype,"fields",void 0),(0,i.Cg)([(0,p.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:h.read}}})],M.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.K)("geometryType")],M.prototype,"writeGeometryType",null),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasM",void 0),(0,i.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],M.prototype,"hasZ",void 0),(0,i.Cg)([(0,p.MZ)({types:c.yR,json:{write:!0}})],M.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,f.w)("queryGeometry")],M.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,p.MZ)({type:y.A,json:{write:!0}})],M.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.K)("spatialReference")],M.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,p.MZ)({json:{write:!0}})],M.prototype,"transform",void 0),M=o=(0,i.Cg)([(0,p.$K)("esri.rest.support.FeatureSet")],M),M.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var o=r(32198),i=r(66552),n=r(53966),l=r(91429),a=r(93223);const s=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",y="field";r.d(t,["K",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&y||r&&p||null,t&&r&&n.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==y&&e!==p||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,o.Cg)([(0,l.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,o.Cg)([(0,a.e)(s,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,o.Cg)([(0,l.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,s])}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2741],{2741(e,t,r){r.d(t,{s:()=>i});var s=r(92602),n=(r(11254),r(49186)),o=r(53966),a=r(84952);function i(e){if(!s.A.assetsPath)throw o.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,a.fj)(s.A.assetsPath,e)}},97159(e,t,r){r.d(t,{a:()=>g,c:()=>f,e:()=>y,f:()=>a,i:()=>p,p:()=>m,r:()=>l,t:()=>i,w:()=>u});var s=r(70333),n=r(84952),o=r(39131);function a(e,t){const r=t?.url?.path;if(e&&r&&(e=(0,n.s2)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,n.V1)(e,t.portalItem.itemUrl);null!=r&&r.startsWith(d)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return(e=w(e,t?.portal))&&c.test(e)?g(e):e}function i(e,t,r=0){if(null==(e=e&&c.test(e)?v(e):e))return e;!(0,n.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let s=(0,n.s2)(e);if(t){const r=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(r){const o=w(r,t.portal),a=w(s,t.portal);s=(0,n.V1)(a,o,o),null!=s&&s!==a&&s!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=y(s,t?.portal),(0,n.oP)(s)&&(s=(0,n.S8)(s)),t?.resources&&t?.portalItem&&!(0,n.oP)(s)&&!(0,n.DB)(s)&&0===r&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(s),compress:!1}),s}function l(e,t,r){return a(e,r)}function u(e,t,r,s){const n=i(e,s);void 0!==n&&(t[r]=n)}const c=/\/items\/([^/]+)\/resources\/(.*)/,d="./resources/";function p(e){const t=e?.match(c)??null;return t?.[1]??null}const h=/http.+\/items\/[^/]+/i;function f(e){const t=e&&c.test(e)?e.match(h):null;return t?.[0]??null}function m(e){const t=e?.match(c)??null;if(null==t)return null;const r=t[2],s=r.lastIndexOf("/");if(-1===s){const{path:e,extension:t}=(0,n.xw)(r);return{prefix:null,filename:e,extension:t}}const{path:o,extension:a}=(0,n.xw)(r.slice(s+1));return{prefix:r.slice(0,s),filename:o,extension:a}}function y(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,n.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function w(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,s=(0,n.Xq)();return(0,n.FX)(s,`${s.scheme}://${r}`)?(0,n.T1)(e,t.portalHostname,r):(0,n.T1)(e,r,t.portalHostname)}function g(e){if(!e)return e||null;let t=e;return t&&s.id&&!s.id.findCredential(t)&&(t=(0,o.qG)(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function v(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&s.id&&!s.id.findCredential(t)&&(t=(0,o.qG)(t)),t}const q=Object.freeze(Object.defineProperty({__proto__:null,ensureMainOnlineDomain:y,fromCDNUrl:v,fromJSON:a,itemIdFromResourceUrl:p,itemUrlFromResourceUrl:f,prefixAndFilenameFromResourceUrl:m,read:l,toCDNUrl:g,toJSON:i,write:u},Symbol.toStringTag,{value:"Module"}));r.d(t,["b",0,q])},91869(e,t,r){function s(e,t){for(const r of e.values())if(t(r))return!0;return!1}function n(e,t,r){const s=e.get(t);if(void 0!==s)return s;const n=r();return e.set(t,n),n}function o(e){const t=new Map;return r=>(t.has(r)||t.set(r,e(r)),t.get(r))}r.d(t,{Bj:()=>o,Bs:()=>s,tE:()=>n})},60694(e,t,r){r.d(t,{Fi:()=>d,HZ:()=>q,Jf:()=>v,LS:()=>b,Wo:()=>w,bd:()=>S,cr:()=>f,iz:()=>h,qg:()=>p,uV:()=>g,yG:()=>m});var s=r(84952),n=r(39131),o=r(97159);const a={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},i=Object.values(a),l=new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(?<serviceTitle>.+?)\\/(?<serverType>${i.join("|")})(?:\\/exts\\/(?<soeTitle>.+?)\\/(?<soeServerType>${i.join("|")}))?)(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),u=new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/(?<serviceTitle>[^/\\n]+)\\/(?<serverType>${i.join("|")}))(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function d(e){return l.test(e)}function p(e){if(null==e)return null;const t=(0,s.An)(e),r=t?.path.match(l)||t?.path.match(u);if(!r)return null;const{path:n,serviceTitle:o,serverType:i,soeTitle:c,soeServerType:d,sublayer:p}=r.groups??{},h=c||o,m=h.indexOf("/");return{title:f(-1!==m?h.slice(m+1):h),serverType:a[(d||i).toLowerCase()],sublayer:null!=p&&""!==p?parseInt(p,10):null,url:{path:n}}}function h(e){const t=(0,s.An)(e).path.match(c);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function f(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,t){const r=[];if(e){const t=p(e);null!=t&&t.title&&r.push(t.title)}if(t){const e=f(t);r.push(e)}if(2===r.length){if(r[0].toLowerCase().includes(r[1].toLowerCase()))return r[0];if(r[1].toLowerCase().includes(r[0].toLowerCase()))return r[1]}return r.join(" - ")}const y=["services","features","tiles","elevation3d","basemaps3d"];function w(e){let t=(0,s.$z)(e,!0);return!!t&&(t=t.toLowerCase(),!!t.endsWith(".arcgis.com")&&(!!y.some(e=>t.startsWith(e))||/^[a-z\d-]+\.svcs[a-z\d-]*\./.test(t)))}function g(e){return(0,n.$E)(e)&&function(e){const t=(0,s.$z)(e);return!!t&&t.toLowerCase().endsWith(".arcgis.com")}(e)}function v(e,t){return e?(0,s.UC)((0,s.zi)(e,t)):e}function q(e){let{url:t}=e;if(!t)return{url:t};t=(0,s.zi)(t,e.logger);const r=(0,s.An)(t),n=p(r.path);let o;if(null!=n)null!=n.sublayer&&null==e.layer.layerId&&(o=n.sublayer),t=n.url.path;else if(e.nonStandardUrlAllowed){const e=h(r.path);null!=e&&(t=e.serviceUrl,o=e.sublayerId)}return{url:(0,s.UC)(t),layerId:o}}function b(e,t,r,n,a){(0,o.w)(t,n,"url",a),n.url&&null!=e.layerId&&(n.url=(0,s.fj)(n.url,r,e.layerId.toString()))}function S(e){if(!e)return!1;const t=e.toLowerCase(),r=t.includes("/services/"),s=t.includes("/mapserver/wmsserver"),n=t.includes("/imageserver/wmsserver"),o=t.includes("/wmsserver");return r&&(s||n||o)}},11254(e,t,r){r.d(t,{A:()=>w});var s=r(92602),n=r(49186),o=r(44208),a=r(17676),i=r(84952),l=r(56152),u=r(65592),c=r(91869),d=r(60694);async function p(e){const t=function(e){let t,r=!1;return"string"==typeof e?(t=(0,i.$z)(e,!0),r=(0,d.Wo)(e)):(t=e.origin,r=(0,d.Wo)(e.toString())),null==t?null:new y(t,r)}(e.parameters.url);if(!t)return null;const{QueueProcessor:s,SharedConcurrency:n}=await r.e(563).then(r.bind(r,563));return(0,c.tE)(h,t.origin,()=>{const e=(t.isHosted?(0,o.A)("request-queue-concurrency-hosted"):(0,o.A)("request-queue-concurrency-non-hosted"))??4;return f??=new n((0,o.A)("request-queue-concurrency-global")??50),new s({concurrency:e,sharedConcurrency:f,process:e=>{if((0,a.G4)(e.parameters.requestOptions))throw(0,u.YB)("",(0,a.NK)("Request canceled"),e.parameters);return(0,u.zc)(e)}})})}const h=new Map;let f,m;class y{constructor(e,t){this.origin=e,this.isHosted=t}}async function w(e,t){e instanceof URL&&(e=e.toString());const s=(0,i.DB)(e),n=(0,i.w8)(e);n||s||(e=(0,i.S8)(e));const c={url:e,requestOptions:{...t}};t?.query&&(c.requestOptions.query=t?.query instanceof URLSearchParams?(0,i.zf)(t.query.toString().replaceAll("+"," ")):t?.query);const d=e=>({data:e,getAllHeaders:v,getHeader:v,httpStatus:200,requestOptions:c.requestOptions,url:c.url}),h=(0,i.sC)(e,g.internalInterceptors);if(h){const e=await q(h,c);if(null!=e)return d(e)}let f=(0,i.sC)(e);if(f){const e=await q(f,c);if(null!=e)return d(e);f.after||f.error||(f=null)}if(e=c.url,"image"===(t=c.requestOptions).responseType&&((0,o.A)("host-webworker")||(0,o.A)("host-node")))throw(0,u.YB)("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),c);if("head"===t.method){if(t.body)throw(0,u.YB)("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),c);if(s||n)throw(0,u.YB)("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),c)}if(await async function(){(0,o.A)("host-webworker")&&(!m&&globalThis.invokeStaticMessage?m=await r.e(369).then(r.bind(r,40369)):l.i.isForeignWorker=!0)}(),m)return m.execute(e,t);const y=new AbortController,w=(0,a.u7)(t,()=>y.abort()),b={controller:y,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:f,parameters:c,redoRequest:!1,useIdentity:g.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},S=t.useQueue?async function(e){const t=await p(e);return t?t.push(e):(0,u.zc)(e)}(b):(0,u.zc)(b),T=await S.finally(()=>w?.remove());return f?.after?.(T),T}const g=s.A.request,v=()=>null;async function q(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,s;try{s=await e.before(t)}catch(e){r=(0,u.YB)("request:interceptor",e,t)}if((s instanceof Error||s instanceof n.A)&&(r=(0,u.YB)("request:interceptor",s,t)),r)throw e.error&&e.error(r),r;return s}}},56152(e,t,r){r.d(t,["i",0,{corsServers:["https://server.arcgisonline.com","https://services.arcgisonline.com"],beforeFetch:void 0,afterFetch:void 0,isForeignWorker:!1}])},95117(e,t,r){r.d(t,{y:()=>n});var s=r(17676);function n(e,t,r=!1,n){return new Promise((o,a)=>{if((0,s.G4)(n))return void a((0,s.NK)());let i=()=>{c(),a(new Error(`Unable to load ${t}`))},l=async()=>{const t=e;try{await t.decode()}catch{}c(),o(t)},u=()=>{if(!e)return;const t=e;c(),t.src="",a((0,s.NK)())};const c=()=>{e&&(e.removeEventListener("error",i),e.removeEventListener("load",l),i=null,l=null,e=null,n?.removeEventListener("abort",u),u=null,r&&URL.revokeObjectURL(t))};n?.addEventListener("abort",u),e.addEventListener("error",i),e.addEventListener("load",l)})}},65592(e,t,r){r.d(t,{YB:()=>x,c8:()=>$,zc:()=>b});var s=r(92602),n=r(70333),o=r(49186),a=r(44208),i=r(4718),l=r(17676),u=r(84952),c=r(39131),d=r(56152),p=r(95117),h=r(60694);const f=new Map;function m(e,t){const r=t?.preferredHost;if(!r||(0,u.FX)(e,`https://${r}`,!0))return;const s=(0,h.qg)(e);if(!s||"FeatureServer"!==s.serverType||(0,c.$E)(e))return;const n=s.url.path.toLowerCase();f.has(n)||f.set(n,r)}function y(e){const t=(0,h.qg)(e)?.url.path.toLowerCase();if(!t)return e;const r=f.get(t);return r?(0,u.hf)(e,r):e}const w="FormData"in globalThis,g=new Set([499,498,403,401]),v=new Set(["COM_0056","COM_0057","SB_0008"]),q=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i];async function b(e){let t,o;await async function(e){const t=e.parameters.url,o=e.parameters.requestOptions,a=e.controller.signal,i=o.body;let u=null,c=null;if(w&&"HTMLFormElement"in globalThis&&(i instanceof FormData?u=i:i instanceof HTMLFormElement&&(u=new FormData(i))),"string"==typeof i&&(c=i),e.fetchOptions={cache:o.cacheMode??(o.cacheBust?"no-cache":"default"),credentials:"same-origin",headers:o.headers||{},keepalive:o.keepAlive??!1,method:"head"===o.method?"HEAD":"GET",mode:"cors",priority:o.priority??s.A.request.priority,redirect:"follow",signal:a},(u||c)&&(e.fetchOptions.body=u||c),(d.i.isForeignWorker||"anonymous"===o.authMode)&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||o.query?.token||u?.get("token")),!e.hasToken){const{getApiKey:s,getSessionToken:n}=await r.e(926).then(r.bind(r,926)),a=await n(t)??s(t);a&&(o.query??={},o.query.token=a,e.hasToken=!0)}if(e.useIdentity&&!e.hasToken&&!e.credential&&!e.credentialToken&&!O(t)&&!(0,l.G4)(a)){let r;"immediate"===o.authMode?(await A(),r=await n.id.getCredential(t,{signal:a})):"no-prompt"===o.authMode?(await A(),r=await n.id.getCredential(t,{prompt:!1,signal:a}).catch(()=>{})):n.id&&(r=n.id.findCredential(t)),r&&(e.credential=r,e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[t,o]=await S(e)}while(!await L(e,t,o))}catch(r){const s=x("request:server",r,e.parameters,t);throw s.details.ssl=e.useSSL,e.interceptor?.error?.(s),s}const a=e.parameters.url;if(o)if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!e.hasToken&&!e.credentialToken&&o.user?.username&&!(0,u.FL)(a)){const e=(0,u.$z)(a,!0);e&&s.A.request.trustedServers.push(e)}Array.isArray(o.authorizedCrossOriginNoCorsDomains)&&function(e){s.A.request.crossOriginNoCorsDomains||(s.A.request.crossOriginNoCorsDomains={});const t=s.A.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,u.$z)(r)??""]=0:(t[(0,u.$z)("http://"+r)??""]=0,t[(0,u.$z)("https://"+r)??""]=0)}(o.authorizedCrossOriginNoCorsDomains)}else"json"===(e.parameters.requestOptions.responseType||"json")&&m(a,o);const i=e.credential;if(i&&n.id){const e=n.id.findServerInfo(i.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=n.id.findCredential(t,i.userId);e&&-1===n.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:o,getAllHeaders:t?()=>Array.from(t.headers):E,getHeader:t?e=>t.headers.get(e):E,httpStatus:t?.status??200,requestOptions:e.parameters.requestOptions,ssl:e.useSSL,url:e.parameters.url}}async function S(e){let t=e.parameters.url,r=y(t);const o=e.parameters.requestOptions,i=e.fetchOptions??{},p=(0,u.w8)(t)||(0,u.DB)(t),h=o.responseType??"json",f=p?0:null!=o.timeout?o.timeout:s.A.request.timeout;let m=!1;if(!p){e.useSSL&&(t=(0,u.lM)(t));let l={...o.query};e.credentialToken&&(l.token=e.credentialToken);let d=(0,u.x0)(l);(0,a.A)("esri-url-encodes-apostrophe")&&(d=d.replaceAll("'","%27"));const p=r.length+1+d.length;let h;m="delete"===o.method||"post"===o.method||"put"===o.method||!!o.body||p>s.A.request.maxUrlLength;const f=o.useProxy||!!(0,u.zs)(t);if(f){const e=(0,u.s_)(t);h=e.path,!m&&h.length+1+p>s.A.request.maxUrlLength&&(m=!0),e.query&&(l={...e.query,...l})}if("HEAD"===i.method&&(m||f)){if(m){if(p>s.A.request.maxUrlLength)throw x("request:invalid-parameters",new Error("URL exceeds maximum length"),e.parameters);throw x("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.parameters)}if(f)throw x("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.parameters)}if(m?(i.method="delete"===o.method?"DELETE":"put"===o.method?"PUT":"POST",o.body?t=(0,u.a6)(t,l):(i.body=(0,u.x0)(l),i.headers||(i.headers={}),i.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.a6)(t,l),f&&(e.useProxy=!0,t=`${h}?${t}`),l.token&&w&&i.body instanceof FormData&&!(0,c.$E)(t)&&i.body.set("token",l.token),o.hasOwnProperty("withCredentials"))e.withCredentials=o.withCredentials;else if(!(0,u.FX)(t,(0,u.Xq)()))if((0,u.FL)(t))e.withCredentials=!0;else if(n.id){const r=n.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(i.credentials="include",function(e){const t=s.A.request.crossOriginNoCorsDomains;if(t){let r=(0,u.$z)(e);if(r)return r=r.toLowerCase(),!(0,u.FX)(r,(0,u.Xq)())&&t[r]<Date.now()-36e5}return!1}(t)&&await async function(e){const t=(0,u.An)(e);e=t.path,"json"===t.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}const r=s.A.request.crossOriginNoCorsDomains,n=(0,u.$z)(e);r&&n&&(r[n.toLowerCase()]=Date.now())}(m?(0,u.a6)(t,l):t)),r=y(t)}let g,v,q=0,b=!1;f>0&&(q=setTimeout(()=>{b=!0,e.controller.abort()},f));try{if("native-request-init"===o.responseType)v=i,v.url=r,o.signal?v.signal=o.signal:delete v.signal;else if("image"!==o.responseType||"default"!==i.cache||i.keepalive||"GET"!==i.method||m||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(o.headers)||!p&&!e.useProxy&&s.A.request.proxyUrl&&!C(t)){if(await(d.i.beforeFetch?.(t,i)),g=await fetch(r,i),await(d.i.afterFetch?.(g)),e.useProxy||function(e){const t=(0,u.$z)(e);t&&!d.i.corsServers.includes(t)&&d.i.corsServers.push(t)}(t),"native"===o.responseType)v=g;else if("HEAD"!==i.method)if(g.ok){switch(h){case"array-buffer":v=await g.arrayBuffer();break;case"blob":case"image":v=await g.blob();break;default:v=await g.text()}if(q&&(clearTimeout(q),q=0),"json"===h||"xml"===h||"document"===h)if(v)switch(h){case"json":v=JSON.parse(v);break;case"xml":v=k(v,"application/xml");break;case"document":v=k(v,"text/html")}else v=null;if(v){if(("array-buffer"===h||"blob"===h)&&v["blob"===h?"size":"byteLength"]<=750)try{const e=await new Response(v).json();e.error&&(v=e)}catch{}"image"===h&&v instanceof Blob&&(v=await T(URL.createObjectURL(v),e,!0))}}else{v=await g.text();try{v=JSON.parse(v)}catch{}}}else v=await T(r,e)}catch(r){if("AbortError"===r.name){if(b)throw new Error(P);throw(0,l.NK)("Request canceled")}if(!(!g&&r instanceof TypeError&&s.A.request.proxyUrl)||o.body||"delete"===o.method||"head"===o.method||"post"===o.method||"put"===o.method||e.useProxy||C(t))throw r;e.redoRequest=!0,(0,u.oy)({proxyUrl:s.A.request.proxyUrl,urlPrefix:(0,u.$z)(t)??""})}finally{q&&clearTimeout(q)}return[g,v]}function T(e,t,r=!1){const n=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=s.A.request.priority,o.src=e,(0,p.y)(o,e,r,n)}function C(e){const t=(0,u.$z)(e);return!t||t.endsWith(".arcgis.com")||d.i.corsServers.includes(t)||(0,u.FL)(t)}async function A(){n.id||await Promise.all([r.e(5620),r.e(7736),r.e(4372),r.e(9358),r.e(5071),r.e(8094)]).then(r.bind(r,50148))}function O(e){return q.some(t=>t.test(e))}function k(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 L(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const s=e.parameters.requestOptions;if(!t||"native"===s.responseType||"native-request-init"===s.responseType)return!0;let o,a;if(r&&(r.error&&"object"==typeof r.error?o=r.error:"error"===r.status&&Array.isArray(r.messages)&&(o={...r},o[U]=r,o.details=r.messages)),!o&&!t.ok)throw o=new Error(`Unable to load ${t.url} status: ${t.status}`),o[U]=r,o;let i,l=null;o&&(a=Number(o.code),l=o.hasOwnProperty("subcode")?Number(o.subcode):null,i=o.messageCode,i=i?.toUpperCase());const u=s.authMode;if(403===a&&(4===l||o.message?.toLowerCase().includes("ssl")&&!o.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&g.has(a)&&!O(e.parameters.url)&&(403!==a||(!i||!v.has(i))&&(null==l||2===l&&e.credentialToken))){await A();try{const t=await n.id.getCredential(e.parameters.url,{error:x("request:server",o,e.parameters),credential:e.credential,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;o=t}}if(o)throw o;return!0}function x(e,t,r,s){let n;const a={url:r.url,requestOptions:r.requestOptions,getAllHeaders:E,getHeader:E,ssl:!1};if(t instanceof o.A)return t.details?(t.details=(0,i.o8)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=a,t;if(t){const e=s&&(()=>Array.from(s.headers)),r=s&&(e=>s.headers.get(e)),o=s?.status,i=t.message;i&&(n=i),e&&r&&(a.getAllHeaders=e,a.getHeader=r),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||o||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?(a.messages=[t.details],n??=t.details):(a.messages=t.details,n??=a.messages?.[0]),a.raw=U in t?t[U]:t}return n??="Error",(0,l.zf)(t)?(0,l.NK)():new o.A(e,n,a)}const U=Symbol(),E=()=>null,P="Timeout exceeded";function $(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===P}}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2741],{2741(e,t,r){r.d(t,{s:()=>i});var s=r(92602),n=(r(11254),r(49186)),o=r(53966),a=r(84952);function i(e){if(!s.A.assetsPath)throw o.A.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new n.A("assets:path-not-set","config.assetsPath is not set");return(0,a.fj)(s.A.assetsPath,e)}},97159(e,t,r){r.d(t,{a:()=>g,c:()=>f,e:()=>y,f:()=>a,i:()=>p,p:()=>m,r:()=>l,t:()=>i,w:()=>u});var s=r(70333),n=r(84952),o=r(39131);function a(e,t){const r=t?.url?.path;if(e&&r&&(e=(0,n.s2)(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){const r=(0,n.V1)(e,t.portalItem.itemUrl);null!=r&&r.startsWith(d)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(r).path)}return(e=w(e,t?.portal))&&c.test(e)?g(e):e}function i(e,t,r=0){if(null==(e=e&&c.test(e)?v(e):e))return e;!(0,n.oP)(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let s=(0,n.s2)(e);if(t){const r=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(r){const o=w(r,t.portal),a=w(s,t.portal);s=(0,n.V1)(a,o,o),null!=s&&s!==a&&s!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(s)}}return s=y(s,t?.portal),(0,n.oP)(s)&&(s=(0,n.S8)(s)),t?.resources&&t?.portalItem&&!(0,n.oP)(s)&&!(0,n.DB)(s)&&0===r&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(s),compress:!1}),s}function l(e,t,r){return a(e,r)}function u(e,t,r,s){const n=i(e,s);void 0!==n&&(t[r]=n)}const c=/\/items\/([^/]+)\/resources\/(.*)/,d="./resources/";function p(e){const t=e?.match(c)??null;return t?.[1]??null}const h=/http.+\/items\/[^/]+/i;function f(e){const t=e&&c.test(e)?e.match(h):null;return t?.[0]??null}function m(e){const t=e?.match(c)??null;if(null==t)return null;const r=t[2],s=r.lastIndexOf("/");if(-1===s){const{path:e,extension:t}=(0,n.xw)(r);return{prefix:null,filename:e,extension:t}}const{path:o,extension:a}=(0,n.xw)(r.slice(s+1));return{prefix:r.slice(0,s),filename:o,extension:a}}function y(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?(0,n.T1)(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function w(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;const r=`${t.urlKey}.${t.customBaseUrl}`,s=(0,n.Xq)();return(0,n.FX)(s,`${s.scheme}://${r}`)?(0,n.T1)(e,t.portalHostname,r):(0,n.T1)(e,r,t.portalHostname)}function g(e){if(!e)return e||null;let t=e;return t&&s.id&&!s.id.findCredential(t)&&(t=(0,o.qG)(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function v(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&s.id&&!s.id.findCredential(t)&&(t=(0,o.qG)(t)),t}const q=Object.freeze(Object.defineProperty({__proto__:null,ensureMainOnlineDomain:y,fromCDNUrl:v,fromJSON:a,itemIdFromResourceUrl:p,itemUrlFromResourceUrl:f,prefixAndFilenameFromResourceUrl:m,read:l,toCDNUrl:g,toJSON:i,write:u},Symbol.toStringTag,{value:"Module"}));r.d(t,["b",0,q])},91869(e,t,r){function s(e,t){for(const r of e.values())if(t(r))return!0;return!1}function n(e,t,r){const s=e.get(t);if(void 0!==s)return s;const n=r();return e.set(t,n),n}function o(e){const t=new Map;return r=>(t.has(r)||t.set(r,e(r)),t.get(r))}r.d(t,{Bj:()=>o,Bs:()=>s,tE:()=>n})},60694(e,t,r){r.d(t,{Fi:()=>d,HZ:()=>q,Jf:()=>v,LS:()=>b,Wo:()=>w,bd:()=>S,cr:()=>f,iz:()=>h,qg:()=>p,uV:()=>g,yG:()=>m});var s=r(84952),n=r(39131),o=r(97159);const a={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},i=Object.values(a),l=new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(?<serviceTitle>.+?)\\/(?<serverType>${i.join("|")})(?:\\/exts\\/(?<soeTitle>.+?)\\/(?<soeServerType>${i.join("|")}))?)(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),u=new RegExp(`^(?<path>(?:https?:)?\\/\\/\\S+?\\/(?<serviceTitle>[^/\\n]+)\\/(?<serverType>${i.join("|")}))(?:\\/(?:layers))?(?:\\/(?<sublayer>\\d+))?`,"i"),c=/(.*?)\/(?:layers\/)?(\d+)\/?$/i;function d(e){return l.test(e)}function p(e){if(null==e)return null;const t=(0,s.An)(e),r=t?.path.match(l)||t?.path.match(u);if(!r)return null;const{path:n,serviceTitle:o,serverType:i,soeTitle:c,soeServerType:d,sublayer:p}=r.groups??{},h=c||o,m=h.indexOf("/");return{title:f(-1!==m?h.slice(m+1):h),serverType:a[(d||i).toLowerCase()],sublayer:null!=p&&""!==p?parseInt(p,10):null,url:{path:n}}}function h(e){const t=(0,s.An)(e).path.match(c);return t?{serviceUrl:t[1],sublayerId:Number(t[2])}:null}function f(e){return(e=e.replaceAll(/\s*[/_]+\s*/g," "))[0].toUpperCase()+e.slice(1)}function m(e,t){const r=[];if(e){const t=p(e);null!=t&&t.title&&r.push(t.title)}if(t){const e=f(t);r.push(e)}if(2===r.length){if(r[0].toLowerCase().includes(r[1].toLowerCase()))return r[0];if(r[1].toLowerCase().includes(r[0].toLowerCase()))return r[1]}return r.join(" - ")}const y=["services","features","tiles","elevation3d","basemaps3d"];function w(e){let t=(0,s.$z)(e,!0);return!!t&&(t=t.toLowerCase(),!!t.endsWith(".arcgis.com")&&(!!y.some(e=>t.startsWith(e))||/^[a-z\d-]+\.svcs[a-z\d-]*\./.test(t)))}function g(e){return(0,n.$E)(e)&&function(e){const t=(0,s.$z)(e);return!!t&&t.toLowerCase().endsWith(".arcgis.com")}(e)}function v(e,t){return e?(0,s.UC)((0,s.zi)(e,t)):e}function q(e){let{url:t}=e;if(!t)return{url:t};t=(0,s.zi)(t,e.logger);const r=(0,s.An)(t),n=p(r.path);let o;if(null!=n)null!=n.sublayer&&null==e.layer.layerId&&(o=n.sublayer),t=n.url.path;else if(e.nonStandardUrlAllowed){const e=h(r.path);null!=e&&(t=e.serviceUrl,o=e.sublayerId)}return{url:(0,s.UC)(t),layerId:o}}function b(e,t,r,n,a){(0,o.w)(t,n,"url",a),n.url&&null!=e.layerId&&(n.url=(0,s.fj)(n.url,r,e.layerId.toString()))}function S(e){if(!e)return!1;const t=e.toLowerCase(),r=t.includes("/services/"),s=t.includes("/mapserver/wmsserver"),n=t.includes("/imageserver/wmsserver"),o=t.includes("/wmsserver");return r&&(s||n||o)}},11254(e,t,r){r.d(t,{A:()=>w});var s=r(92602),n=r(49186),o=r(44208),a=r(17676),i=r(84952),l=r(56152),u=r(65592),c=r(91869),d=r(60694);async function p(e){const t=function(e){let t,r=!1;return"string"==typeof e?(t=(0,i.$z)(e,!0),r=(0,d.Wo)(e)):(t=e.origin,r=(0,d.Wo)(e.toString())),null==t?null:new y(t,r)}(e.parameters.url);if(!t)return null;const{QueueProcessor:s,SharedConcurrency:n}=await r.e(563).then(r.bind(r,563));return(0,c.tE)(h,t.origin,()=>{const e=(t.isHosted?(0,o.A)("request-queue-concurrency-hosted"):(0,o.A)("request-queue-concurrency-non-hosted"))??4;return f??=new n((0,o.A)("request-queue-concurrency-global")??50),new s({concurrency:e,sharedConcurrency:f,process:e=>{if((0,a.G4)(e.parameters.requestOptions))throw(0,u.YB)("",(0,a.NK)("Request canceled"),e.parameters);return(0,u.zc)(e)}})})}const h=new Map;let f,m;class y{constructor(e,t){this.origin=e,this.isHosted=t}}async function w(e,t){e instanceof URL&&(e=e.toString());const s=(0,i.DB)(e),n=(0,i.w8)(e);n||s||(e=(0,i.S8)(e));const c={url:e,requestOptions:{...t}};t?.query&&(c.requestOptions.query=t?.query instanceof URLSearchParams?(0,i.zf)(t.query.toString().replaceAll("+"," ")):t?.query);const d=e=>({data:e,getAllHeaders:v,getHeader:v,httpStatus:200,requestOptions:c.requestOptions,url:c.url}),h=(0,i.sC)(e,g.internalInterceptors);if(h){const e=await q(h,c);if(null!=e)return d(e)}let f=(0,i.sC)(e);if(f){const e=await q(f,c);if(null!=e)return d(e);f.after||f.error||(f=null)}if(e=c.url,"image"===(t=c.requestOptions).responseType&&((0,o.A)("host-webworker")||(0,o.A)("host-node")))throw(0,u.YB)("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),c);if("head"===t.method){if(t.body)throw(0,u.YB)("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),c);if(s||n)throw(0,u.YB)("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),c)}if(await async function(){(0,o.A)("host-webworker")&&(!m&&globalThis.invokeStaticMessage?m=await r.e(369).then(r.bind(r,40369)):l.i.isForeignWorker=!0)}(),m)return m.execute(e,t);const y=new AbortController,w=(0,a.u7)(t,()=>y.abort()),b={controller:y,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:f,parameters:c,redoRequest:!1,useIdentity:g.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},S=t.useQueue?async function(e){const t=await p(e);return t?t.push(e):(0,u.zc)(e)}(b):(0,u.zc)(b),T=await S.finally(()=>w?.remove());return f?.after?.(T),T}const g=s.A.request,v=()=>null;async function q(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,s;try{s=await e.before(t)}catch(e){r=(0,u.YB)("request:interceptor",e,t)}if((s instanceof Error||s instanceof n.A)&&(r=(0,u.YB)("request:interceptor",s,t)),r)throw e.error&&e.error(r),r;return s}}},56152(e,t,r){r.d(t,["i",0,{corsServers:["https://server.arcgisonline.com","https://services.arcgisonline.com"],beforeFetch:void 0,afterFetch:void 0,isForeignWorker:!1}])},95117(e,t,r){r.d(t,{y:()=>n});var s=r(17676);function n(e,t,r=!1,n){return new Promise((o,a)=>{if((0,s.G4)(n))return void a((0,s.NK)());let i=()=>{c(),a(new Error(`Unable to load ${t}`))},l=async()=>{const t=e;try{await t.decode()}catch{}c(),o(t)},u=()=>{if(!e)return;const t=e;c(),t.src="",a((0,s.NK)())};const c=()=>{e&&(e.removeEventListener("error",i),e.removeEventListener("load",l),i=null,l=null,e=null,n?.removeEventListener("abort",u),u=null,r&&URL.revokeObjectURL(t))};n?.addEventListener("abort",u),e.addEventListener("error",i),e.addEventListener("load",l)})}},65592(e,t,r){r.d(t,{YB:()=>x,c8:()=>$,zc:()=>b});var s=r(92602),n=r(70333),o=r(49186),a=r(44208),i=r(4718),l=r(17676),u=r(84952),c=r(39131),d=r(56152),p=r(95117),h=r(60694);const f=new Map;function m(e,t){const r=t?.preferredHost;if(!r||(0,u.FX)(e,`https://${r}`,!0))return;const s=(0,h.qg)(e);if(!s||"FeatureServer"!==s.serverType||(0,c.$E)(e))return;const n=s.url.path.toLowerCase();f.has(n)||f.set(n,r)}function y(e){const t=(0,h.qg)(e)?.url.path.toLowerCase();if(!t)return e;const r=f.get(t);return r?(0,u.hf)(e,r):e}const w="FormData"in globalThis,g=new Set([499,498,403,401]),v=new Set(["COM_0056","COM_0057","SB_0008"]),q=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i];async function b(e){let t,o;await async function(e){const t=e.parameters.url,o=e.parameters.requestOptions,a=e.controller.signal,i=o.body;let u=null,c=null;if(w&&"HTMLFormElement"in globalThis&&(i instanceof FormData?u=i:i instanceof HTMLFormElement&&(u=new FormData(i))),"string"==typeof i&&(c=i),e.fetchOptions={cache:o.cacheMode??(o.cacheBust?"no-cache":"default"),credentials:"same-origin",headers:o.headers||{},keepalive:o.keepAlive??!1,method:"head"===o.method?"HEAD":"GET",mode:"cors",priority:o.priority??s.A.request.priority,redirect:"follow",signal:a},(u||c)&&(e.fetchOptions.body=u||c),(d.i.isForeignWorker||"anonymous"===o.authMode)&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||o.query?.token||u?.get("token")),!e.hasToken){const{getApiKey:s,getSessionToken:n}=await r.e(926).then(r.bind(r,926)),a=await n(t)??s(t);a&&(o.query??={},o.query.token=a,e.hasToken=!0)}if(e.useIdentity&&!e.hasToken&&!e.credential&&!e.credentialToken&&!O(t)&&!(0,l.G4)(a)){let r;"immediate"===o.authMode?(await A(),r=await n.id.getCredential(t,{signal:a})):"no-prompt"===o.authMode?(await A(),r=await n.id.getCredential(t,{prompt:!1,signal:a}).catch(()=>{})):n.id&&(r=n.id.findCredential(t)),r&&(e.credential=r,e.credentialToken=r.token,e.useSSL=!!r.ssl)}}(e);try{do{[t,o]=await S(e)}while(!await L(e,t,o))}catch(r){const s=x("request:server",r,e.parameters,t);throw s.details.ssl=e.useSSL,e.interceptor?.error?.(s),s}const a=e.parameters.url;if(o)if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(a)){if(!e.hasToken&&!e.credentialToken&&o.user?.username&&!(0,u.FL)(a)){const e=(0,u.$z)(a,!0);e&&s.A.request.trustedServers.push(e)}Array.isArray(o.authorizedCrossOriginNoCorsDomains)&&function(e){s.A.request.crossOriginNoCorsDomains||(s.A.request.crossOriginNoCorsDomains={});const t=s.A.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[(0,u.$z)(r)??""]=0:(t[(0,u.$z)("http://"+r)??""]=0,t[(0,u.$z)("https://"+r)??""]=0)}(o.authorizedCrossOriginNoCorsDomains)}else"json"===(e.parameters.requestOptions.responseType||"json")&&m(a,o);const i=e.credential;if(i&&n.id){const e=n.id.findServerInfo(i.server);let t=e?.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=n.id.findCredential(t,i.userId);e&&-1===n.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:o,getAllHeaders:t?()=>Array.from(t.headers):E,getHeader:t?e=>t.headers.get(e):E,httpStatus:t?.status??200,requestOptions:e.parameters.requestOptions,ssl:e.useSSL,url:e.parameters.url}}async function S(e){let t=e.parameters.url,r=y(t);const o=e.parameters.requestOptions,i=e.fetchOptions??{},p=(0,u.w8)(t)||(0,u.DB)(t),h=o.responseType??"json",f=p?0:null!=o.timeout?o.timeout:s.A.request.timeout;let m=!1;if(!p){e.useSSL&&(t=(0,u.lM)(t));let l={...o.query};e.credentialToken&&(l.token=e.credentialToken);let d=(0,u.x0)(l);(0,a.A)("esri-url-encodes-apostrophe")&&(d=d.replaceAll("'","%27"));const p=r.length+1+d.length;let h;m="delete"===o.method||"post"===o.method||"put"===o.method||!!o.body||p>s.A.request.maxUrlLength;const f=o.useProxy||!!(0,u.zs)(t);if(f){const e=(0,u.s_)(t);h=e.path,!m&&h.length+1+p>s.A.request.maxUrlLength&&(m=!0),e.query&&(l={...e.query,...l})}if("HEAD"===i.method&&(m||f)){if(m){if(p>s.A.request.maxUrlLength)throw x("request:invalid-parameters",new Error("URL exceeds maximum length"),e.parameters);throw x("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.parameters)}if(f)throw x("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.parameters)}if(m?(i.method="delete"===o.method?"DELETE":"put"===o.method?"PUT":"POST",o.body?t=(0,u.a6)(t,l):(i.body=(0,u.x0)(l),i.headers||(i.headers={}),i.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,u.a6)(t,l),f&&(e.useProxy=!0,t=`${h}?${t}`),l.token&&w&&i.body instanceof FormData&&!(0,c.$E)(t)&&i.body.set("token",l.token),o.hasOwnProperty("withCredentials"))e.withCredentials=o.withCredentials;else if(!(0,u.FX)(t,(0,u.Xq)()))if((0,u.FL)(t))e.withCredentials=!0;else if(n.id){const r=n.id.findServerInfo(t);r?.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(i.credentials="include",function(e){const t=s.A.request.crossOriginNoCorsDomains;if(t){let r=(0,u.$z)(e);if(r)return r=r.toLowerCase(),!(0,u.FX)(r,(0,u.Xq)())&&t[r]<Date.now()-36e5}return!1}(t)&&await async function(e){const t=(0,u.An)(e);e=t.path,"json"===t.query?.f&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}const r=s.A.request.crossOriginNoCorsDomains,n=(0,u.$z)(e);r&&n&&(r[n.toLowerCase()]=Date.now())}(m?(0,u.a6)(t,l):t)),r=y(t)}let g,v,q=0,b=!1;f>0&&(q=setTimeout(()=>{b=!0,e.controller.abort()},f));try{if("native-request-init"===o.responseType)v=i,v.url=r,o.signal?v.signal=o.signal:delete v.signal;else if("image"!==o.responseType||"default"!==i.cache||i.keepalive||"GET"!==i.method||m||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(o.headers)||!p&&!e.useProxy&&s.A.request.proxyUrl&&!C(t)){if(await(d.i.beforeFetch?.(t,i)),g=await fetch(r,i),await(d.i.afterFetch?.(g)),e.useProxy||function(e){const t=(0,u.$z)(e);t&&!d.i.corsServers.includes(t)&&d.i.corsServers.push(t)}(t),"native"===o.responseType)v=g;else if("HEAD"!==i.method)if(g.ok){switch(h){case"array-buffer":v=await g.arrayBuffer();break;case"blob":case"image":v=await g.blob();break;default:v=await g.text()}if(q&&(clearTimeout(q),q=0),"json"===h||"xml"===h||"document"===h)if(v)switch(h){case"json":v=JSON.parse(v);break;case"xml":v=k(v,"application/xml");break;case"document":v=k(v,"text/html")}else v=null;if(v){if(("array-buffer"===h||"blob"===h)&&v["blob"===h?"size":"byteLength"]<=750)try{const e=await new Response(v).json();e.error&&(v=e)}catch{}"image"===h&&v instanceof Blob&&(v=await T(URL.createObjectURL(v),e,!0))}}else{v=await g.text();try{v=JSON.parse(v)}catch{}}}else v=await T(r,e)}catch(r){if("AbortError"===r.name){if(b)throw new Error(P);throw(0,l.NK)("Request canceled")}if(!(!g&&r instanceof TypeError&&s.A.request.proxyUrl)||o.body||"delete"===o.method||"head"===o.method||"post"===o.method||"put"===o.method||e.useProxy||C(t))throw r;e.redoRequest=!0,(0,u.oy)({proxyUrl:s.A.request.proxyUrl,urlPrefix:(0,u.$z)(t)??""})}finally{q&&clearTimeout(q)}return[g,v]}function T(e,t,r=!1){const n=t.controller.signal,o=new Image;return t.withCredentials?o.crossOrigin="use-credentials":o.crossOrigin="anonymous",o.alt="",o.fetchPriority=s.A.request.priority,o.src=e,(0,p.y)(o,e,r,n)}function C(e){const t=(0,u.$z)(e);return!t||t.endsWith(".arcgis.com")||d.i.corsServers.includes(t)||(0,u.FL)(t)}async function A(){n.id||await Promise.all([r.e(5620),r.e(7736),r.e(4372),r.e(9358),r.e(9530),r.e(8094)]).then(r.bind(r,50148))}function O(e){return q.some(t=>t.test(e))}function k(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 L(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const s=e.parameters.requestOptions;if(!t||"native"===s.responseType||"native-request-init"===s.responseType)return!0;let o,a;if(r&&(r.error&&"object"==typeof r.error?o=r.error:"error"===r.status&&Array.isArray(r.messages)&&(o={...r},o[U]=r,o.details=r.messages)),!o&&!t.ok)throw o=new Error(`Unable to load ${t.url} status: ${t.status}`),o[U]=r,o;let i,l=null;o&&(a=Number(o.code),l=o.hasOwnProperty("subcode")?Number(o.subcode):null,i=o.messageCode,i=i?.toUpperCase());const u=s.authMode;if(403===a&&(4===l||o.message?.toLowerCase().includes("ssl")&&!o.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&void 0!==a&&g.has(a)&&!O(e.parameters.url)&&(403!==a||(!i||!v.has(i))&&(null==l||2===l&&e.credentialToken))){await A();try{const t=await n.id.getCredential(e.parameters.url,{error:x("request:server",o,e.parameters),credential:e.credential,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;o=t}}if(o)throw o;return!0}function x(e,t,r,s){let n;const a={url:r.url,requestOptions:r.requestOptions,getAllHeaders:E,getHeader:E,ssl:!1};if(t instanceof o.A)return t.details?(t.details=(0,i.o8)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=a,t;if(t){const e=s&&(()=>Array.from(s.headers)),r=s&&(e=>s.headers.get(e)),o=s?.status,i=t.message;i&&(n=i),e&&r&&(a.getAllHeaders=e,a.getHeader=r),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||o||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?(a.messages=[t.details],n??=t.details):(a.messages=t.details,n??=a.messages?.[0]),a.raw=U in t?t[U]:t}return n??="Error",(0,l.zf)(t)?(0,l.NK)():new o.A(e,n,a)}const U=Symbol(),E=()=>null,P="Timeout exceeded";function $(e){return"object"==typeof e&&!!e&&"message"in e&&e.message===P}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,8366],{73354(t,n,e){e.d(n,{a:()=>l,b:()=>u,c:()=>o,d:()=>s,e:()=>h,f:()=>f,l:()=>c,n:()=>p,t:()=>i}),e(44208);var r=e(72727);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,o=3,i=o){const s=(0,r.k)(t.length,o,3),u=(0,r.k)(n.length,i,3),a=Math.min(s,u),c=e[0],f=e[1],l=e[2],h=e[4],p=e[5],M=e[6],d=e[8],m=e[9],g=e[10],y=e[12],v=e[13],S=e[14];let _=0,w=0;for(let e=0;e<a;e++){const e=n[_],r=n[_+1],s=n[_+2];t[w]=c*e+h*r+d*s+y,t[w+1]=f*e+p*r+m*s+v,t[w+2]=l*e+M*r+g*s+S,_+=i,w+=o}return t}function s(t,n,e){u(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function u(t,n,e,o=3,i=o){const s=(0,r.k)(t.length,o,3),u=(0,r.k)(n.length,i,3),a=Math.min(s,u),c=e[0],f=e[1],l=e[2],h=e[3],p=e[4],M=e[5],d=e[6],m=e[7],g=e[8];let y=0,v=0;for(let e=0;e<a;e++){const e=n[y],r=n[y+1],s=n[y+2];t[v]=c*e+h*r+d*s,t[v+1]=f*e+p*r+m*s,t[v+2]=l*e+M*r+g*s,y+=i,v+=o}}function a(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let s=0,u=0;for(let a=0;a<i;a++)t[u]=e*n[s],t[u+1]=e*n[s+1],t[u+2]=e*n[s+2],s+=o,u+=r;return t}function c(t,n,e,r){f(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function f(t,n,e,r,o=3,i=o){const s=Math.min(t.length/o,n.length/i);let u=0,a=0;const c=1/2.2;for(let f=0;f<s;f++)t[a]=r*(e*n[u])**c,t[a+1]=r*(e*n[u+1])**c,t[a+2]=r*(e*n[u+2])**c,u+=i,a+=o}function l(t,n,e,o=3,i=o){const s=(0,r.k)(t.length,o,3),u=(0,r.k)(n.length,i,3),a=Math.min(s,u);let c=0,f=0;for(let r=0;r<a;r++)t[f]=n[c]+e[0],t[f+1]=n[c+1]+e[1],t[f+2]=n[c+2]+e[2],c+=i,f+=o;return t}function h(t,n){p(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function p(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,s=0;for(let u=0;u<o;u++){const o=n[i],u=n[i+1],a=n[i+2],c=o*o+u*u+a*a;if(c>0){const n=1/Math.sqrt(c);t[s]=n*o,t[s+1]=n*u,t[s+2]=n*a}i+=r,s+=e}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:f,linearToSRGBView:c,normalize:p,normalizeView:h,scale:a,scaleView:function(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,s=n.typedBuffer,u=n.typedBufferStride;let a=0,c=0;for(let t=0;t<r;t++)o[c]=s[a]>>e,o[c+1]=s[a+1]>>e,o[c+2]=s[a+2]>>e,a+=u,c+=i},transformMat3:u,transformMat3View:s,transformMat4:i,transformMat4View:o,translate:l},Symbol.toStringTag,{value:"Module"}))},82534(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,{o8:()=>o,vt:()=>r});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,i])},48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function s(){return i(1,1)}function u(){return i(-1,-1)}function a(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>o,vt:()=>r});const f=s(),l=u(),h=a(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:l,ONES:f,UNIT_X:h,UNIT_Y:p,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},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:i,negativeOnes:u,ones:s,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,l,"Un",0,f])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(){return o(1,1,1,1)}function s(){return o(1,0,0,0)}function u(){return o(0,1,0,0)}function a(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>o,vt:()=>r});const f=[0,0,0,0],l=i(),h=s(),p=u(),M=a(),d=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_W:d,UNIT_X:h,UNIT_Y:p,UNIT_Z:M,ZEROS:f,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitW:c,unitX:s,unitY:u,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,l,"uY",0,f])},67026(t,n,e){e.d(n,{A6:()=>d,Xd:()=>f,Xr:()=>p,lw:()=>l,x8:()=>c});var r=e(29242),o=e(82534),i=e(51850),s=e(34304),u=e(35522),a=e(78955);function c(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 f(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,s.FD)()?(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 l(t,n,e){const r=n[0],o=n[1],i=n[2],s=n[3],u=e[0],a=e[1],c=e[2],f=e[3];return t[0]=r*f+s*u+o*c-i*a,t[1]=o*f+s*a+i*u-r*c,t[2]=i*f+s*c+r*a-o*u,t[3]=s*f-r*u-o*a-i*c,t}function h(t,n,e,r){const o=n[0],i=n[1],u=n[2],a=n[3];let c,f,l,h,p,M=e[0],d=e[1],m=e[2],g=e[3];return f=o*M+i*d+u*m+a*g,f<0&&(f=-f,M=-M,d=-d,m=-m,g=-g),1-f>(0,s.FD)()?(c=Math.acos(f),l=Math.sin(c),h=Math.sin((1-r)*c)/l,p=Math.sin(r*c)/l):(h=1-r,p=r),t[0]=h*o+p*M,t[1]=h*i+p*d,t[2]=h*u+p*m,t[3]=h*a+p*g,t}function p(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function M(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,i=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*o+o]-n[3*i+i]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*o+i]-n[3*i+o])*r,t[o]=(n[3*o+e]+n[3*e+o])*r,t[i]=(n[3*i+e]+n[3*e+i])*r}return t}function d(t,n,e,r){const o=.5*Math.PI/180;n*=o,e*=o,r*=o;const i=Math.sin(n),s=Math.cos(n),u=Math.sin(e),a=Math.cos(e),c=Math.sin(r),f=Math.cos(r);return t[0]=i*a*f-s*u*c,t[1]=s*u*f+i*a*c,t[2]=s*a*c-i*u*f,t[3]=s*a*f+i*u*c,t}const m=a.C,g=a.hZ,y=a.WQ,v=l,S=a.hs,_=a.Om,w=a.Cc,A=a.Bw,b=A,B=a.m3,O=B,x=a.S8,I=a.t2,N=a.aI,T=(0,i.vt)(),Z=(0,i.fA)(1,0,0),C=(0,i.fA)(0,1,0),X=(0,o.vt)(),q=(0,o.vt)(),P=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:y,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:p,copy:m,dot:_,equals:N,exactEquals:I,fromEuler:d,fromMat3:M,getAxisAngle:f,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],i=n[3],s=e*e+r*r+o*o+i*i,u=s?1/s:0;return t[0]=-e*u,t[1]=-r*u,t[2]=-o*u,t[3]=i*u,t},len:b,length:A,lerp:w,mul:v,multiply:l,normalize:x,random:function(t){const n=s.Ov,e=n(),r=n(),o=n(),i=Math.sqrt(1-e),u=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=u*Math.sin(2*Math.PI*o),t[3]=u*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,e){e*=.5;const r=n[0],o=n[1],i=n[2],s=n[3],u=Math.sin(e),a=Math.cos(e);return t[0]=r*a+s*u,t[1]=o*a+i*u,t[2]=i*a-o*u,t[3]=s*a-r*u,t},rotateY:function(t,n,e){e*=.5;const r=n[0],o=n[1],i=n[2],s=n[3],u=Math.sin(e),a=Math.cos(e);return t[0]=r*a-i*u,t[1]=o*a+s*u,t[2]=i*a+r*u,t[3]=s*a-o*u,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],o=n[1],i=n[2],s=n[3],u=Math.sin(e),a=Math.cos(e);return t[0]=r*a+o*u,t[1]=o*a-r*u,t[2]=i*a+s*u,t[3]=s*a-i*u,t},rotationTo:function(t,n,e){const r=(0,u.Om)(n,e);return r<-.999999?((0,u.$A)(T,Z,n),(0,u.Il)(T)<1e-6&&(0,u.$A)(T,C,n),(0,u.S8)(T,T),c(t,T,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,u.$A)(T,n,e),t[0]=T[0],t[1]=T[1],t[2]=T[2],t[3]=1+r,x(t,t))},scale:S,set:g,setAxes:function(t,n,e,r){const o=P;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],x(t,M(t,o))},setAxisAngle:c,slerp:h,sqlerp:function(t,n,e,r,o,i){return h(X,n,o,i),h(q,e,r,i),h(t,X,q,2*i*(1-i)),t},sqrLen:O,squaredLength:B,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),e.d(n,["hZ",0,g,"t2",0,I])},48353(t,n,e){e.d(n,{l:()=>c});var r=e(34727),o=e(58083),i=e(51850);function s(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),s=Math.cos(n),u=e;return u[0]=-r,u[4]=-i*o,u[8]=s*o,u[12]=0,u[1]=o,u[5]=-i*r,u[9]=s*r,u[13]=0,u[2]=0,u[6]=s,u[10]=i,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=e(49208),a=e(21325);function c(t,n,e,r){const i=(0,u.Tp)(t,r);if(null==i)return!1;const c=i.source.spatialReferenceId,M=i.dest.spatialReferenceId;if(c===M&&!f(M)&&(0!==c||(0,a.aI)(t,r)))return(0,o.kN)(e,n),!0;if(f(M)){const t=u.w5[c][10],r=u.w5[10][M];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,p,0),s(l*h[0],l*h[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}const d=f(c);if((3===M||11===M||2===M||5===M)&&(2===c||d||3===c||5===c)){const t=u.w5[c][10],r=u.w5[10][M];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,p,0),d?function(t,n,e){s(t,n,e),(0,o.mg)(e,e)}(l*h[0],l*h[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function f(t){return 1===t||6===t||8===t||4===t}const l=(0,r.kU)(1),h=(0,i.vt)(),p=(0,i.vt)()},65806(t,n,e){e.d(n,{g:()=>s});var r=e(51850),o=e(99917),i=e(9762);function s(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e))return u[0]=t.x,u[1]=t.y,u[2]=t.z??0,(0,i.projectBuffer)(u,t.spatialReference,0,n,e,0);const s=(0,o.tryProject)(t,e,r);return!!s&&(n[0]=s.x,n[1]=s.y,n[2]=s.z??0,!0)}const u=(0,r.vt)()},73836(t,n,e){e.d(n,{A:()=>p});var r=e(32198),o=e(69540),i=e(25482),s=e(91429),u=e(58083),a=e(9093),c=e(67026),f=e(82534),l=e(51850),h=e(24770);let p=class extends((0,o.OU)(i.o)){constructor(t){super(t),this.translation=(0,l.vt)(),this.rotationAxis=(0,l.ci)(h.up),this.rotationAngle=0,this.scale=(0,l.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,l.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){const t=(0,a.vt)();return(0,c.x8)(M,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,u.o1)(t,M,this.translation,this.scale),t}get localMatrixInverse(){return(0,u.B8)((0,a.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,u.t2)(this.localMatrix,t.localMatrix)}};(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],p.prototype,"translation",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],p.prototype,"rotationAxis",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],p.prototype,"rotationAngle",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],p.prototype,"scale",void 0),(0,r.Cg)([(0,s.MZ)()],p.prototype,"rotation",null),(0,r.Cg)([(0,s.MZ)()],p.prototype,"localMatrix",null),(0,r.Cg)([(0,s.MZ)()],p.prototype,"localMatrixInverse",null),p=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshTransform")],p);const M=(0,f.vt)()},24770(t,n,e){e.d(n,{$I:()=>m,AU:()=>p,g7:()=>d,i4:()=>f,ui:()=>l,vt:()=>c,yo:()=>M});var r=e(34727),o=e(58083),i=e(67026),s=e(82534),u=e(35522),a=e(51850);function c(t=y){return[t[0],t[1],t[2],t[3]]}function f(t,n,e=c()){return(0,u.C)(e,t),e[3]=n,e}function l(t,n=c()){const e=(0,o.l)(v,t);return g(n,(0,r.KJ)((0,i.Xd)(n,e))),n}function h(t,n,e=c()){return(0,i.x8)(v,t,m(t)),(0,i.x8)(S,n,m(n)),(0,i.lw)(v,S,v),g(e,(0,r.KJ)((0,i.Xd)(e,v)))}function p(t,n,e,r=c()){return f(a.Cw,t,_),f(a.JP,n,w),f(a.Cb,e,A),h(_,w,_),h(_,A,r),r}function M(t){return t}function d(t){return t[3]}function m(t){return(0,r.kU)(t[3])}function g(t,n){return t[3]=n,t}const y=[0,0,1,0],v=(0,s.vt)(),S=(0,s.vt)(),_=(c(),c()),w=c(),A=c();e.d(n,["up",0,y])},72727(t,n,e){function r(t,n,e){if(n<=0)return 0;const r=t-e;return r<0?0:Math.floor(r/n)+1}e.d(n,{k:()=>r}),e(53966)},27921(t,n,e){e.d(n,{$Q:()=>S,BX:()=>v,C:()=>u,Cr:()=>f,H:()=>w,O_:()=>c,Qj:()=>a,T7:()=>y,lU:()=>l,mN:()=>A,vE:()=>b,vt:()=>s});var r=e(34727),o=e(35522),i=e(51850);function s(t=B){return[t[0],t[1],t[2],t[3]]}function u(t,n){return function(t,n,e,r,o=s()){return o[0]=t,o[1]=n,o[2]=e,o[3]=r,o}(n[0],n[1],n[2],n[3],t)}function a(t){return t}function c(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],o=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*o,e[1]=n[1]*o,e[2]=n[2]*o,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function f(t,n,e,r=s()){const o=e[0]-n[0],i=e[1]-n[1],u=e[2]-n[2],a=t[0]-n[0],c=t[1]-n[1],f=t[2]-n[2],l=i*f-u*c,h=u*a-o*f,p=o*c-i*a,M=l*l+h*h+p*p,d=Math.abs(M-1)>1e-5&&M>1e-12?1/Math.sqrt(M):1;return r[0]=l*d,r[1]=h*d,r[2]=p*d,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function l(t,n,e,r=0,i=Math.floor(e*(1/3)),s=Math.floor(e*(2/3))){if(e<3)return!1;n(p,r);let u=i,a=!1;for(;u<e-1&&!a;)n(M,u),u++,a=!(0,o.t2)(p,M);if(!a)return!1;for(u=Math.max(u,s),a=!1;u<e&&!a;)n(d,u),u++,(0,o.Re)(m,p,M),(0,o.S8)(m,m),(0,o.Re)(g,M,d),(0,o.S8)(g,g),a=!(0,o.t2)(p,d)&&!(0,o.t2)(M,d)&&Math.abs((0,o.Om)(m,g))<h;return a?(f(p,M,d,t),!0):(0!==r||1!==i||2!==s)&&l(t,n,e,0,1,2)}e(78955),e(44280),e(32114),e(32728);const h=.99619469809,p=(0,i.vt)(),M=(0,i.vt)(),d=(0,i.vt)(),m=(0,i.vt)(),g=(0,i.vt)();function y(t,n,e){return function(t){return 0===t||1===t}(b(t,n.origin,n.vector,0,e))}function v(t,n){return A(t,n)>=0}function S(t,n){return function(t,n,e,r,i,s,u){const a=(0,o.Om)(t,e),c=A(t,n);if(a>-1e-6&&a<1e-6)return _(c,i,s);const f=-c/a,l=_(a,i,!1);return!(u&&!l&&!_(c,i,s))&&(l?f>r.c0&&(r.c0=f):f<r.c1&&(r.c1=f),r.c0<=r.c1)}(t,n.ray.origin,n.ray.direction,n,!1,!1,!0)}function _(t,n,e){return e?n?t>=0:t<=0:n?t>0:t<0}function w(t,n,e,r=!1){let i=n.at(-1),s=A(t,i),u=r?s>0:s<=0;for(let a=0;a<n.length;a++){const c=n.at(a),f=A(t,c),l=r?f>0:f<=0;u!==l&&(0,o.Cc)(e(),i,c,s/(s-f)),l&&(0,o.C)(e(),c),i=c,s=f,u=l}}function A(t,n){return(0,o.Om)(t,n)+t[3]}function b(t,n,e,i,s){const u=(0,o.Om)(t,e),a=A(t,n);if(0===u)return a>=0?2:3;let c=-a/u;return 1&i&&(c=(0,r.qE)(c,0,1)),!(4&i)&&c<0||!(8&i)&&c>1?a>=0?2:3:((0,o.WQ)(s,n,(0,o.hs)(s,e,c)),a>=0?0:1)}const B=[0,0,1,0];(0,i.vt)()},44280(t,n,e){e.d(n,{g7:()=>u,gr:()=>s});var r=e(34727),o=e(35522),i=e(51850);function s(t,n){return(0,o.Om)(t,n)/(0,o.Bw)(t)}function u(t,n){const e=(0,o.Om)(t,n)/((0,o.Bw)(t)*(0,o.Bw)(n));return-(0,r.XM)(e)}(0,i.vt)(),(0,i.vt)()},32114(t,n,e){e.d(n,{Rc:()=>p,rq:()=>l,Km:()=>h}),e(44208);var r=e(26390),o=e(29242),i=e(9093),s=e(82534),u=e(48163),a=e(51850),c=e(91829);class f{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new f(u.vt)}static createVec3f64(){return new f(a.vt)}static createVec4f64(){return new f(c.vt)}static createMat3f64(){return new f(o.vt)}static createMat4f64(){return new f(i.vt)}static createQuatf64(){return new f(s.vt)}get test(){}}f.createVec2f64();const l=f.createVec3f64(),h=f.createVec4f64(),p=(f.createMat3f64(),f.createMat4f64());f.createQuatf64()},77793(t,n,e){e.d(n,{V:()=>i,f:()=>s});var r=e(86738),o=e(73836);function i(t,n,e=u){return new r.A({x:t[e.originX],y:t[e.originY],z:t[e.originZ],spatialReference:n})}function s(t,n=u){return new o.A({translation:[t[n.translationX],-t[n.translationZ],t[n.translationY]],rotationAxis:[t[n.rotationX],-t[n.rotationZ],t[n.rotationY]],rotationAngle:t[n.rotationDeg],scale:[t[n.scaleX],t[n.scaleZ],t[n.scaleY]]})}const u={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},40050(t,n,e){e.r(n),e.d(n,{assetMapFromAssetMapsJSON:()=>m,extractMesh:()=>d,meshFeatureSetFromJSON:()=>M});var r=e(52106),o=e(53966),i=e(91869),s=e(5443),u=e(16930),a=e(40118),c=e(63579),f=e(20557),l=e(22671),h=e(77793);const p=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function M(t,n,e){const o=e.features;e.features=[],delete e.geometryType;const i=l.A.fromJSON(e);if(i.geometryType="mesh",!e.assetMaps)return i;const s=m(n,e.assetMaps),a=t.sourceSpatialReference??u.A.WGS84,c=e.globalIdFieldName,{outFields:f}=t,h=null!=f&&f.length>0?(p=f.includes("*")?null:new Set(f),({attributes:t})=>{if(!t)return{};if(!p)return t;for(const n in t)p.has(n)||delete t[n];return t}):()=>({});var p;for(const t of o){const e=d(t,c,a,n,s);i.features.push(new r.A({geometry:e,attributes:h(t)}))}return i}function d(t,n,e,r,o){const i=t.attributes[n],u=o.get(i);if(null==u||!t.geometry)return null;const f=(0,h.V)(t.attributes,e,r.transformFieldRoles),l=s.A.fromJSON(t.geometry);l.spatialReference=e;const p=(0,h.f)(t.attributes,r.transformFieldRoles),M=e.isGeographic?"local":"georeferenced",d=function(t){const n=Array.from(t.files.values()),e=new Array;for(const t of n){if(2!==t.status)return null;const n=new Array;for(const e of t.parts){if(!e)return null;n.push(new c.Bq(e.url,e.hash))}e.push(new c.Qp(t.name,t.mimeType,n))}return{type:"service",assets:e}}(u);return d?(0,a.createWithExternalSource)(f,d,{extent:l,transform:p,vertexSpace:M,unitConversionDisabled:!0}):(0,a.H5)(f,{transform:p,vertexSpace:M})}function m(t,n){const e=new Map;for(const r of n){const n=r.parentGlobalId;if(null==n)continue;const o=r.assetName,s=r.assetType,u=r.assetHash,a=r.assetURL,c=r.conversionStatus,l=r.seqNo,h=(0,f.Fm)(s,t.supportedFormats);if(!h){p().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${s}, but it does not list it as a supported type`);continue}const M=(0,i.tE)(e,n,()=>({files:new Map}));(0,i.tE)(M.files,o,()=>({name:o,type:s,mimeType:h,status:g(c),parts:[]})).parts[l]={hash:u,url:a}}return e}function g(t){switch(t){case"COMPLETED":case"SUBMITTED":return 2;case"INPROGRESS":return 1;default:return 0}}},32728(t,n,e){e.d(n,{YH:()=>s,nu:()=>u,wp:()=>i}),e(34727);var r=e(35522),o=e(51850);function i(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),o=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),i=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,r.hZ)(t,e,o,i),t}function s(t,n,e){e=e||t;const o=(0,r.Om)(t,n);(0,r.hZ)(e,t[0]-o*n[0],t[1]-o*n[1],t[2]-o*n[2]),(0,r.S8)(e,e)}function u(t,n,e,i=(0,o.vt)()){const s=(0,r.Bw)(t),u=(0,r.Bw)(n),f=(0,r.Om)(t,n)/(s*u);if(f<.9999999999999999){const o=Math.acos(f),l=((1-e)*s+e*u)/Math.sin(o),h=l/s*Math.sin((1-e)*o),p=l/u*Math.sin(e*o);return(0,r.hs)(a,t,h),(0,r.hs)(c,n,p),(0,r.WQ)(i,a,c)}return(0,r.Cc)(i,t,n,e)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const a=(0,o.vt)(),c=(0,o.vt)()}}]);
1
+ "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,8366],{73354(t,n,e){e.d(n,{a:()=>l,b:()=>u,c:()=>o,d:()=>s,e:()=>h,f:()=>f,l:()=>c,n:()=>p,t:()=>i}),e(44208);var r=e(72727);function o(t,n,e){i(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function i(t,n,e,o=3,i=o){const s=(0,r.k)(t.length,o,3),u=(0,r.k)(n.length,i,3),a=Math.min(s,u),c=e[0],f=e[1],l=e[2],h=e[4],p=e[5],M=e[6],d=e[8],m=e[9],g=e[10],y=e[12],v=e[13],S=e[14];let _=0,w=0;for(let e=0;e<a;e++){const e=n[_],r=n[_+1],s=n[_+2];t[w]=c*e+h*r+d*s+y,t[w+1]=f*e+p*r+m*s+v,t[w+2]=l*e+M*r+g*s+S,_+=i,w+=o}return t}function s(t,n,e){u(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)}function u(t,n,e,o=3,i=o){const s=(0,r.k)(t.length,o,3),u=(0,r.k)(n.length,i,3),a=Math.min(s,u),c=e[0],f=e[1],l=e[2],h=e[3],p=e[4],M=e[5],d=e[6],m=e[7],g=e[8];let y=0,v=0;for(let e=0;e<a;e++){const e=n[y],r=n[y+1],s=n[y+2];t[v]=c*e+h*r+d*s,t[v+1]=f*e+p*r+m*s,t[v+2]=l*e+M*r+g*s,y+=i,v+=o}}function a(t,n,e,r=3,o=r){const i=Math.min(t.length/r,n.length/o);let s=0,u=0;for(let a=0;a<i;a++)t[u]=e*n[s],t[u+1]=e*n[s+1],t[u+2]=e*n[s+2],s+=o,u+=r;return t}function c(t,n,e,r){f(t.typedBuffer,n.typedBuffer,e,r,t.typedBufferStride,n.typedBufferStride)}function f(t,n,e,r,o=3,i=o){const s=Math.min(t.length/o,n.length/i);let u=0,a=0;const c=1/2.2;for(let f=0;f<s;f++)t[a]=r*(e*n[u])**c,t[a+1]=r*(e*n[u+1])**c,t[a+2]=r*(e*n[u+2])**c,u+=i,a+=o}function l(t,n,e,o=3,i=o){const s=(0,r.k)(t.length,o,3),u=(0,r.k)(n.length,i,3),a=Math.min(s,u);let c=0,f=0;for(let r=0;r<a;r++)t[f]=n[c]+e[0],t[f+1]=n[c+1]+e[1],t[f+2]=n[c+2]+e[2],c+=i,f+=o;return t}function h(t,n){p(t.typedBuffer,n.typedBuffer,t.typedBufferStride,n.typedBufferStride)}function p(t,n,e=3,r=e){const o=Math.min(t.length/e,n.length/r);let i=0,s=0;for(let u=0;u<o;u++){const o=n[i],u=n[i+1],a=n[i+2],c=o*o+u*u+a*a;if(c>0){const n=1/Math.sqrt(c);t[s]=n*o,t[s+1]=n*u,t[s+2]=n*a}i+=r,s+=e}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:f,linearToSRGBView:c,normalize:p,normalizeView:h,scale:a,scaleView:function(t,n,e){a(t.typedBuffer,n.typedBuffer,e,t.typedBufferStride,n.typedBufferStride)},shiftRight:function(t,n,e){const r=Math.min(t.count,n.count),o=t.typedBuffer,i=t.typedBufferStride,s=n.typedBuffer,u=n.typedBufferStride;let a=0,c=0;for(let t=0;t<r;t++)o[c]=s[a]>>e,o[c+1]=s[a+1]>>e,o[c+2]=s[a+2]>>e,a+=u,c+=i},transformMat3:u,transformMat3View:s,transformMat4:i,transformMat4View:o,translate:l},Symbol.toStringTag,{value:"Module"}))},82534(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,{o8:()=>o,vt:()=>r});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:o,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,i])},48163(t,n,e){function r(){return[0,0]}function o(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function s(){return i(1,1)}function u(){return i(-1,-1)}function a(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>o,vt:()=>r});const f=s(),l=u(),h=a(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:l,ONES:f,UNIT_X:h,UNIT_Y:p,ZEROS:[0,0],clone:o,create:r,freeze:function(t,n){return[t,n]},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:i,negativeOnes:u,ones:s,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,l,"Un",0,f])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function i(){return o(1,1,1,1)}function s(){return o(1,0,0,0)}function u(){return o(0,1,0,0)}function a(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>o,vt:()=>r});const f=[0,0,0,0],l=i(),h=s(),p=u(),M=a(),d=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_W:d,UNIT_X:h,UNIT_Y:p,UNIT_Z:M,ZEROS:f,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:i,unitW:c,unitX:s,unitY:u,unitZ:a,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,l,"uY",0,f])},67026(t,n,e){e.d(n,{A6:()=>d,Xd:()=>f,Xr:()=>p,lw:()=>l,x8:()=>c});var r=e(29242),o=e(82534),i=e(51850),s=e(34304),u=e(35522),a=e(78955);function c(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 f(t,n){const e=2*Math.acos(n[3]),r=Math.sin(e/2);return r>(0,s.FD)()?(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 l(t,n,e){const r=n[0],o=n[1],i=n[2],s=n[3],u=e[0],a=e[1],c=e[2],f=e[3];return t[0]=r*f+s*u+o*c-i*a,t[1]=o*f+s*a+i*u-r*c,t[2]=i*f+s*c+r*a-o*u,t[3]=s*f-r*u-o*a-i*c,t}function h(t,n,e,r){const o=n[0],i=n[1],u=n[2],a=n[3];let c,f,l,h,p,M=e[0],d=e[1],m=e[2],g=e[3];return f=o*M+i*d+u*m+a*g,f<0&&(f=-f,M=-M,d=-d,m=-m,g=-g),1-f>(0,s.FD)()?(c=Math.acos(f),l=Math.sin(c),h=Math.sin((1-r)*c)/l,p=Math.sin(r*c)/l):(h=1-r,p=r),t[0]=h*o+p*M,t[1]=h*i+p*d,t[2]=h*u+p*m,t[3]=h*a+p*g,t}function p(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function M(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,i=(e+2)%3;r=Math.sqrt(n[3*e+e]-n[3*o+o]-n[3*i+i]+1),t[e]=.5*r,r=.5/r,t[3]=(n[3*o+i]-n[3*i+o])*r,t[o]=(n[3*o+e]+n[3*e+o])*r,t[i]=(n[3*i+e]+n[3*e+i])*r}return t}function d(t,n,e,r){const o=.5*Math.PI/180;n*=o,e*=o,r*=o;const i=Math.sin(n),s=Math.cos(n),u=Math.sin(e),a=Math.cos(e),c=Math.sin(r),f=Math.cos(r);return t[0]=i*a*f-s*u*c,t[1]=s*u*f+i*a*c,t[2]=s*a*c-i*u*f,t[3]=s*a*f+i*u*c,t}const m=a.C,g=a.hZ,y=a.WQ,v=l,S=a.hs,_=a.Om,w=a.Cc,A=a.Bw,b=A,B=a.m3,O=B,x=a.S8,I=a.t2,N=a.aI,T=(0,i.vt)(),Z=(0,i.fA)(1,0,0),C=(0,i.fA)(0,1,0),X=(0,o.vt)(),q=(0,o.vt)(),P=(0,r.vt)();Object.freeze(Object.defineProperty({__proto__:null,add:y,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:p,copy:m,dot:_,equals:N,exactEquals:I,fromEuler:d,fromMat3:M,getAxisAngle:f,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],i=n[3],s=e*e+r*r+o*o+i*i,u=s?1/s:0;return t[0]=-e*u,t[1]=-r*u,t[2]=-o*u,t[3]=i*u,t},len:b,length:A,lerp:w,mul:v,multiply:l,normalize:x,random:function(t){const n=s.Ov,e=n(),r=n(),o=n(),i=Math.sqrt(1-e),u=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*r),t[1]=i*Math.cos(2*Math.PI*r),t[2]=u*Math.sin(2*Math.PI*o),t[3]=u*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,e){e*=.5;const r=n[0],o=n[1],i=n[2],s=n[3],u=Math.sin(e),a=Math.cos(e);return t[0]=r*a+s*u,t[1]=o*a+i*u,t[2]=i*a-o*u,t[3]=s*a-r*u,t},rotateY:function(t,n,e){e*=.5;const r=n[0],o=n[1],i=n[2],s=n[3],u=Math.sin(e),a=Math.cos(e);return t[0]=r*a-i*u,t[1]=o*a+s*u,t[2]=i*a+r*u,t[3]=s*a-o*u,t},rotateZ:function(t,n,e){e*=.5;const r=n[0],o=n[1],i=n[2],s=n[3],u=Math.sin(e),a=Math.cos(e);return t[0]=r*a+o*u,t[1]=o*a-r*u,t[2]=i*a+s*u,t[3]=s*a-i*u,t},rotationTo:function(t,n,e){const r=(0,u.Om)(n,e);return r<-.999999?((0,u.$A)(T,Z,n),(0,u.Il)(T)<1e-6&&(0,u.$A)(T,C,n),(0,u.S8)(T,T),c(t,T,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,u.$A)(T,n,e),t[0]=T[0],t[1]=T[1],t[2]=T[2],t[3]=1+r,x(t,t))},scale:S,set:g,setAxes:function(t,n,e,r){const o=P;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],x(t,M(t,o))},setAxisAngle:c,slerp:h,sqlerp:function(t,n,e,r,o,i){return h(X,n,o,i),h(q,e,r,i),h(t,X,q,2*i*(1-i)),t},sqrLen:O,squaredLength:B,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"})),e.d(n,["hZ",0,g,"t2",0,I])},48353(t,n,e){e.d(n,{l:()=>c});var r=e(34727),o=e(58083),i=e(51850);function s(t,n,e){const r=Math.sin(t),o=Math.cos(t),i=Math.sin(n),s=Math.cos(n),u=e;return u[0]=-r,u[4]=-i*o,u[8]=s*o,u[12]=0,u[1]=o,u[5]=-i*r,u[9]=s*r,u[13]=0,u[2]=0,u[6]=s,u[10]=i,u[14]=0,u[3]=0,u[7]=0,u[11]=0,u[15]=1,u}var u=e(49208),a=e(21325);function c(t,n,e,r){const i=(0,u.Tp)(t,r);if(null==i)return!1;const c=i.source.spatialReferenceId,M=i.dest.spatialReferenceId;if(c===M&&!f(M)&&(0!==c||(0,a.aI)(t,r)))return(0,o.kN)(e,n),!0;if(f(M)){const t=u.w5[c][10],r=u.w5[10][M];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,p,0),s(l*h[0],l*h[1],e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}const d=f(c);if((3===M||11===M||2===M||5===M)&&(2===c||d||3===c||5===c)){const t=u.w5[c][10],r=u.w5[10][M];return null!=t&&null!=r&&(t(n,0,h,0),r(h,0,p,0),d?function(t,n,e){s(t,n,e),(0,o.mg)(e,e)}(l*h[0],l*h[1],e):(0,o.D_)(e),e[12]=p[0],e[13]=p[1],e[14]=p[2],!0)}return!1}function f(t){return 1===t||6===t||8===t||4===t}const l=(0,r.kU)(1),h=(0,i.vt)(),p=(0,i.vt)()},65806(t,n,e){e.d(n,{g:()=>s});var r=e(51850),o=e(99917),i=e(9762);function s(t,n,e,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,e))return u[0]=t.x,u[1]=t.y,u[2]=t.z??0,(0,i.projectBuffer)(u,t.spatialReference,0,n,e,0);const s=(0,o.tryProject)(t,e,r);return!!s&&(n[0]=s.x,n[1]=s.y,n[2]=s.z??0,!0)}const u=(0,r.vt)()},73836(t,n,e){e.d(n,{A:()=>p});var r=e(32198),o=e(69540),i=e(25482),s=e(91429),u=e(58083),a=e(9093),c=e(67026),f=e(82534),l=e(51850),h=e(24770);let p=class extends((0,o.OU)(i.o)){constructor(t){super(t),this.translation=(0,l.vt)(),this.rotationAxis=(0,l.ci)(h.up),this.rotationAngle=0,this.scale=(0,l.fA)(1,1,1)}get rotation(){return(0,h.i4)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,l.o8)((0,h.yo)(t)),this.rotationAngle=(0,h.g7)(t)}get localMatrix(){const t=(0,a.vt)();return(0,c.x8)(M,(0,h.yo)(this.rotation),(0,h.$I)(this.rotation)),(0,u.o1)(t,M,this.translation,this.scale),t}get localMatrixInverse(){return(0,u.B8)((0,a.vt)(),this.localMatrix)}equals(t){return this===t||null!=t&&(0,u.t2)(this.localMatrix,t.localMatrix)}};(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],p.prototype,"translation",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],p.prototype,"rotationAxis",void 0),(0,r.Cg)([(0,s.MZ)({type:Number,nonNullable:!0,json:{write:!0}})],p.prototype,"rotationAngle",void 0),(0,r.Cg)([(0,s.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],p.prototype,"scale",void 0),(0,r.Cg)([(0,s.MZ)()],p.prototype,"rotation",null),(0,r.Cg)([(0,s.MZ)()],p.prototype,"localMatrix",null),(0,r.Cg)([(0,s.MZ)()],p.prototype,"localMatrixInverse",null),p=(0,r.Cg)([(0,s.$K)("esri.geometry.support.MeshTransform")],p);const M=(0,f.vt)()},24770(t,n,e){e.d(n,{$I:()=>m,AU:()=>p,g7:()=>d,i4:()=>f,ui:()=>l,vt:()=>c,yo:()=>M});var r=e(34727),o=e(58083),i=e(67026),s=e(82534),u=e(35522),a=e(51850);function c(t=y){return[t[0],t[1],t[2],t[3]]}function f(t,n,e=c()){return(0,u.C)(e,t),e[3]=n,e}function l(t,n=c()){const e=(0,o.l)(v,t);return g(n,(0,r.KJ)((0,i.Xd)(n,e))),n}function h(t,n,e=c()){return(0,i.x8)(v,t,m(t)),(0,i.x8)(S,n,m(n)),(0,i.lw)(v,S,v),g(e,(0,r.KJ)((0,i.Xd)(e,v)))}function p(t,n,e,r=c()){return f(a.Cw,t,_),f(a.JP,n,w),f(a.Cb,e,A),h(_,w,_),h(_,A,r),r}function M(t){return t}function d(t){return t[3]}function m(t){return(0,r.kU)(t[3])}function g(t,n){return t[3]=n,t}const y=[0,0,1,0],v=(0,s.vt)(),S=(0,s.vt)(),_=(c(),c()),w=c(),A=c();e.d(n,["up",0,y])},72727(t,n,e){function r(t,n,e){if(n<=0)return 0;const r=t-e;return r<0?0:Math.floor(r/n)+1}e.d(n,{k:()=>r}),e(53966)},27921(t,n,e){e.d(n,{$Q:()=>_,BX:()=>S,C:()=>u,Cr:()=>f,H:()=>A,O_:()=>c,Qj:()=>a,T7:()=>y,lU:()=>l,mN:()=>b,vE:()=>O,vt:()=>s,wE:()=>B});var r=e(34727),o=e(35522),i=e(51850);function s(t=x){return[t[0],t[1],t[2],t[3]]}function u(t,n){return function(t,n,e,r,o=s()){return o[0]=t,o[1]=n,o[2]=e,o[3]=r,o}(n[0],n[1],n[2],n[3],t)}function a(t){return t}function c(t,n,e){const r=n[0]*n[0]+n[1]*n[1]+n[2]*n[2],o=Math.abs(r-1)>1e-5&&r>1e-12?1/Math.sqrt(r):1;return e[0]=n[0]*o,e[1]=n[1]*o,e[2]=n[2]*o,e[3]=-(e[0]*t[0]+e[1]*t[1]+e[2]*t[2]),e}function f(t,n,e,r=s()){const o=e[0]-n[0],i=e[1]-n[1],u=e[2]-n[2],a=t[0]-n[0],c=t[1]-n[1],f=t[2]-n[2],l=i*f-u*c,h=u*a-o*f,p=o*c-i*a,M=l*l+h*h+p*p,d=Math.abs(M-1)>1e-5&&M>1e-12?1/Math.sqrt(M):1;return r[0]=l*d,r[1]=h*d,r[2]=p*d,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2]),r}function l(t,n,e,r=0,i=Math.floor(e*(1/3)),s=Math.floor(e*(2/3))){if(e<3)return!1;n(p,r);let u=i,a=!1;for(;u<e-1&&!a;)n(M,u),u++,a=!(0,o.t2)(p,M);if(!a)return!1;for(u=Math.max(u,s),a=!1;u<e&&!a;)n(d,u),u++,(0,o.Re)(m,p,M),(0,o.S8)(m,m),(0,o.Re)(g,M,d),(0,o.S8)(g,g),a=!(0,o.t2)(p,d)&&!(0,o.t2)(M,d)&&Math.abs((0,o.Om)(m,g))<h;return a?(f(p,M,d,t),!0):(0!==r||1!==i||2!==s)&&l(t,n,e,0,1,2)}e(78955),e(44280),e(32114),e(32728);const h=.99619469809,p=(0,i.vt)(),M=(0,i.vt)(),d=(0,i.vt)(),m=(0,i.vt)(),g=(0,i.vt)();function y(t,n,e){return function(t){return 0===t||1===t}(O(t,n.origin,n.vector,0,e))}function v(t,n){return b(t,n)<=0}function S(t,n){return b(t,n)>=0}function _(t,n){return function(t,n,e,r,i,s,u){const a=(0,o.Om)(t,e),c=b(t,n);if(a>-1e-6&&a<1e-6)return w(c,i,s);const f=-c/a,l=w(a,i,!1);return!(u&&!l&&!w(c,i,s))&&(l?f>r.c0&&(r.c0=f):f<r.c1&&(r.c1=f),r.c0<=r.c1)}(t,n.ray.origin,n.ray.direction,n,!1,!1,!0)}function w(t,n,e){return e?n?t>=0:t<=0:n?t>0:t<0}function A(t,n,e,r=!1){let i=n.at(-1),s=b(t,i),u=r?s>0:s<=0;for(let a=0;a<n.length;a++){const c=n.at(a),f=b(t,c),l=r?f>0:f<=0;u!==l&&(0,o.Cc)(e(),i,c,s/(s-f)),l&&(0,o.C)(e(),c),i=c,s=f,u=l}}function b(t,n){return(0,o.Om)(t,n)+t[3]}function B(t,n,e){for(let r=0;r<e;++r)if(v(t,n[r]))return!1;return!0}function O(t,n,e,i,s){const u=(0,o.Om)(t,e),a=b(t,n);if(0===u)return a>=0?2:3;let c=-a/u;return 1&i&&(c=(0,r.qE)(c,0,1)),!(4&i)&&c<0||!(8&i)&&c>1?a>=0?2:3:((0,o.WQ)(s,n,(0,o.hs)(s,e,c)),a>=0?0:1)}const x=[0,0,1,0];(0,i.vt)()},44280(t,n,e){e.d(n,{g7:()=>u,gr:()=>s});var r=e(34727),o=e(35522),i=e(51850);function s(t,n){return(0,o.Om)(t,n)/(0,o.Bw)(t)}function u(t,n){const e=(0,o.Om)(t,n)/((0,o.Bw)(t)*(0,o.Bw)(n));return-(0,r.XM)(e)}(0,i.vt)(),(0,i.vt)()},32114(t,n,e){e.d(n,{Rc:()=>p,rq:()=>l,Km:()=>h}),e(44208);var r=e(26390),o=e(29242),i=e(9093),s=e(82534),u=e(48163),a=e(51850),c=e(91829);class f{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new f(u.vt)}static createVec3f64(){return new f(a.vt)}static createVec4f64(){return new f(c.vt)}static createMat3f64(){return new f(o.vt)}static createMat4f64(){return new f(i.vt)}static createQuatf64(){return new f(s.vt)}get test(){}}f.createVec2f64();const l=f.createVec3f64(),h=f.createVec4f64(),p=(f.createMat3f64(),f.createMat4f64());f.createQuatf64()},77793(t,n,e){e.d(n,{V:()=>i,f:()=>s});var r=e(86738),o=e(73836);function i(t,n,e=u){return new r.A({x:t[e.originX],y:t[e.originY],z:t[e.originZ],spatialReference:n})}function s(t,n=u){return new o.A({translation:[t[n.translationX],-t[n.translationZ],t[n.translationY]],rotationAxis:[t[n.rotationX],-t[n.rotationZ],t[n.rotationY]],rotationAngle:t[n.rotationDeg],scale:[t[n.scaleX],t[n.scaleZ],t[n.scaleY]]})}const u={originX:"originX",originY:"originY",originZ:"originZ",translationX:"translationX",translationY:"translationY",translationZ:"translationZ",scaleX:"scaleX",scaleY:"scaleY",scaleZ:"scaleZ",rotationX:"rotationX",rotationY:"rotationY",rotationZ:"rotationZ",rotationDeg:"rotationDeg"}},40050(t,n,e){e.r(n),e.d(n,{assetMapFromAssetMapsJSON:()=>m,extractMesh:()=>d,meshFeatureSetFromJSON:()=>M});var r=e(52106),o=e(53966),i=e(91869),s=e(5443),u=e(16930),a=e(40118),c=e(63579),f=e(20557),l=e(22671),h=e(77793);const p=()=>o.A.getLogger("esri.rest.support.meshFeatureSet");function M(t,n,e){const o=e.features;e.features=[],delete e.geometryType;const i=l.A.fromJSON(e);if(i.geometryType="mesh",!e.assetMaps)return i;const s=m(n,e.assetMaps),a=t.sourceSpatialReference??u.A.WGS84,c=e.globalIdFieldName,{outFields:f}=t,h=null!=f&&f.length>0?(p=f.includes("*")?null:new Set(f),({attributes:t})=>{if(!t)return{};if(!p)return t;for(const n in t)p.has(n)||delete t[n];return t}):()=>({});var p;for(const t of o){const e=d(t,c,a,n,s);i.features.push(new r.A({geometry:e,attributes:h(t)}))}return i}function d(t,n,e,r,o){const i=t.attributes[n],u=o.get(i);if(null==u||!t.geometry)return null;const f=(0,h.V)(t.attributes,e,r.transformFieldRoles),l=s.A.fromJSON(t.geometry);l.spatialReference=e;const p=(0,h.f)(t.attributes,r.transformFieldRoles),M=e.isGeographic?"local":"georeferenced",d=function(t){const n=Array.from(t.files.values()),e=new Array;for(const t of n){if(2!==t.status)return null;const n=new Array;for(const e of t.parts){if(!e)return null;n.push(new c.Bq(e.url,e.hash))}e.push(new c.Qp(t.name,t.mimeType,n))}return{type:"service",assets:e}}(u);return d?(0,a.createWithExternalSource)(f,d,{extent:l,transform:p,vertexSpace:M,unitConversionDisabled:!0}):(0,a.H5)(f,{transform:p,vertexSpace:M})}function m(t,n){const e=new Map;for(const r of n){const n=r.parentGlobalId;if(null==n)continue;const o=r.assetName,s=r.assetType,u=r.assetHash,a=r.assetURL,c=r.conversionStatus,l=r.seqNo,h=(0,f.Fm)(s,t.supportedFormats);if(!h){p().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${s}, but it does not list it as a supported type`);continue}const M=(0,i.tE)(e,n,()=>({files:new Map}));(0,i.tE)(M.files,o,()=>({name:o,type:s,mimeType:h,status:g(c),parts:[]})).parts[l]={hash:u,url:a}}return e}function g(t){switch(t){case"COMPLETED":case"SUBMITTED":return 2;case"INPROGRESS":return 1;default:return 0}}},32728(t,n,e){e.d(n,{YH:()=>s,nu:()=>u,wp:()=>i}),e(34727);var r=e(35522),o=e(51850);function i(t,n){const e=Math.sqrt(n[0]*n[0]+n[4]*n[4]+n[8]*n[8]),o=Math.sqrt(n[1]*n[1]+n[5]*n[5]+n[9]*n[9]),i=Math.sqrt(n[2]*n[2]+n[6]*n[6]+n[10]*n[10]);return(0,r.hZ)(t,e,o,i),t}function s(t,n,e){e=e||t;const o=(0,r.Om)(t,n);(0,r.hZ)(e,t[0]-o*n[0],t[1]-o*n[1],t[2]-o*n[2]),(0,r.S8)(e,e)}function u(t,n,e,i=(0,o.vt)()){const s=(0,r.Bw)(t),u=(0,r.Bw)(n),f=(0,r.Om)(t,n)/(s*u);if(f<.9999999999999999){const o=Math.acos(f),l=((1-e)*s+e*u)/Math.sin(o),h=l/s*Math.sin((1-e)*o),p=l/u*Math.sin(e*o);return(0,r.hs)(a,t,h),(0,r.hs)(c,n,p),(0,r.WQ)(i,a,c)}return(0,r.Cc)(i,t,n,e)}(0,o.vt)(),(0,o.vt)(),(0,o.vt)();const a=(0,o.vt)(),c=(0,o.vt)()}}]);