@arcgis/core 4.34.0-next.22 → 4.34.0-next.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/applications/Components/arcadeFeatureUtils.d.ts +5 -0
- package/applications/Components/arcadeFeatureUtils.js +5 -0
- package/arcade/parser.js +1 -1
- package/arcade/validation/arcadeValidator.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/026fbeb0ff5b9e6c74df.js +1 -0
- package/assets/esri/core/workers/chunks/0f6203ae32663b2b52db.js +1 -0
- package/assets/esri/core/workers/chunks/20bcd2e6cf02e057ad7d.js +1 -0
- package/assets/esri/core/workers/chunks/234cbc290b074eeb5dd6.js +1 -0
- package/assets/esri/core/workers/chunks/{00eef04fd026adaf0df8.js → 36a2a8b6547604bad2ab.js} +1 -1
- package/assets/esri/core/workers/chunks/{63cc4647b7775ff8aedf.js → 44d28849e59f62616e72.js} +1 -1
- package/assets/esri/core/workers/chunks/4c47d327815e281c457e.js +1 -0
- package/assets/esri/core/workers/chunks/{6bb1ecaa0afc2c7de79e.js → 4cc3eeb0b824c53793d0.js} +1 -1
- package/assets/esri/core/workers/chunks/{19ae76283a0cb0fe4dee.js → 4ea96aff38bb301dc40d.js} +1 -1
- package/assets/esri/core/workers/chunks/{cab1a1067f44ce374673.js → 7d7f8f2936ddee65e3da.js} +1 -1
- package/assets/esri/core/workers/chunks/{b57c0ef7bc57e3c91257.js → 865fccacf44ae5b70eba.js} +1 -1
- package/assets/esri/core/workers/chunks/{f43110391f124b8a179c.js → 909a6218db87cba2c9ba.js} +1 -1
- package/assets/esri/core/workers/chunks/a273f80298417edecc07.js +1 -0
- package/assets/esri/core/workers/chunks/{496e02cfe3d84010f675.js → a2ed7a3cd518dd136ec7.js} +1 -1
- package/assets/esri/core/workers/chunks/{1d9e44bdd129cc682ae5.js → ac93b3f1ff15a95d926c.js} +1 -1
- package/assets/esri/core/workers/chunks/b32c1b60896a72e0ae90.js +1 -0
- package/assets/esri/core/workers/chunks/{6782114a752b9cc59168.js → b6b8272a74a5c24a6b86.js} +1 -1
- package/assets/esri/core/workers/chunks/b9f66d735a7e63417b3d.js +1 -0
- package/assets/esri/core/workers/chunks/d2ce360961ca4b58666c.js +1 -0
- package/assets/esri/core/workers/chunks/{8b19fe829a9dc26fb3fe.js → d915d0a30d9beb24bd3a.js} +1 -1
- package/assets/esri/core/workers/chunks/f90573c9dc36e51cd588.js +1 -0
- package/assets/esri/core/workers/chunks/fe1902d63f610cebd947.js +1 -0
- package/chunks/Bufferer-Dw9Qi4T1.js +1 -1
- package/chunks/Envelope.js +1 -1
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorClip.js +1 -1
- package/chunks/ProjectionTransformation.js +1 -1
- package/chunks/index.js +1 -1
- package/config.js +1 -1
- package/core/MemCachePool.js +1 -1
- package/core/accessorSupport/overrideDefaultsFrom.js +1 -1
- package/geometry/operators/gx/operatorOffset.js +1 -1
- package/geometry/operators/support/jsonConverter.js +1 -1
- package/interfaces.d.ts +157 -31
- package/kernel.js +1 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/orientedImagery/core/ExposurePoint.js +1 -1
- package/layers/orientedImagery/core/bestImageUtils.js +1 -1
- package/layers/support/ControlPointsGeoreference.js +1 -1
- package/layers/support/PixelBlock.js +1 -1
- package/layers/support/RasterJobHandler.js +1 -1
- package/layers/support/RasterWorker.js +1 -1
- package/layers/support/SceneModification.js +1 -1
- package/layers/support/SceneModifications.js +1 -1
- package/layers/support/rasterDatasets/MRFRaster.js +1 -1
- package/layers/support/rasterFunctions/clipUtils.js +1 -1
- package/layers/support/rasterFunctions/rasterFunctionHelper.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/layers/video/videoUtils.js +1 -1
- package/libs/basisu/BasisUEncoder.js +1 -1
- package/libs/dxtEncoder/DXTEncoder.js +1 -1
- package/libs/i3s/I3SModule.js +1 -1
- package/networks/support/UtilityNetworkLookupHelper.js +1 -1
- package/networks/support/utils.js +1 -1
- package/package.json +1 -1
- package/renderers/support/DictionaryControlString.js +1 -1
- package/rest/knowledgeGraph/GraphAddFieldIndexResult.js +1 -1
- package/rest/knowledgeGraph/GraphAddNamedTypesResult.js +1 -1
- package/rest/knowledgeGraph/GraphAddPropertyResult.js +1 -1
- package/rest/knowledgeGraph/GraphDataModelOperationResult.d.ts +1 -1
- package/rest/knowledgeGraph/GraphDataModelOperationResult.js +1 -1
- package/rest/knowledgeGraph/GraphDeleteFieldIndexResult.js +1 -1
- package/rest/knowledgeGraph/GraphDeleteNamedTypeResult.js +1 -1
- package/rest/knowledgeGraph/GraphDeletePropertyResult.js +1 -1
- package/rest/knowledgeGraph/GraphUpdateNamedTypesResult.js +1 -1
- package/rest/knowledgeGraph/GraphUpdatePropertyResult.js +1 -1
- package/rest/knowledgeGraph/GraphUpdateSearchIndexResult.js +1 -1
- package/support/revision.js +1 -1
- package/symbols/cim/cimAnalyzer.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/mesh/MeshWriterInputEvaluator.js +1 -1
- package/views/2d/layers/VideoLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/processor/ClusterStrategy.js +1 -1
- package/views/2d/layers/features/processor/TrackStrategy.js +1 -1
- package/views/2d/layers/features/sources/strategies/chunks/Overrides.js +1 -1
- package/views/2d/layers/features/support/FeatureFilterEvaluator.js +1 -1
- package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
- package/views/3d/analysis/images/heading-rotate-svg.js +1 -1
- package/views/3d/analysis/images/tilt-rotate-svg.js +1 -1
- package/views/3d/interactive/editingTools/draw/DrawGraphicTool3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/graphics/Graphics3DCore.js +1 -1
- package/views/3d/layers/graphics/pipeline/Tile3DManager.js +1 -1
- package/views/3d/state/ViewStateManager.js +1 -1
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/lib/Object3D.js +1 -1
- package/views/3d/webgl-engine/materials/internal/bufferWriterUtils.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/draw/DrawScreenTool.js +1 -1
- package/views/draw/MultipointDrawAction.js +1 -1
- package/views/draw/PointDrawAction.js +1 -1
- package/views/draw/PolygonDrawAction.js +1 -1
- package/views/draw/PolylineDrawAction.js +1 -1
- package/views/magnifier/mask-svg.js +1 -1
- package/views/magnifier/overlay-svg.js +1 -1
- package/views/support/TextureCompressionHelper.js +1 -1
- package/views/support/TextureCompressionWorker.js +1 -1
- package/views/support/TextureCompressionWorkerHandle.js +1 -1
- package/webmap/Bookmark.js +1 -1
- package/webscene/spec-certification/spec.js +1 -1
- package/widgets/BasemapLayerList.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/inputs/EditableInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/GroupInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/InputBase.d.ts +1 -1
- package/widgets/BatchAttributeForm/inputs/InputBase.js +1 -1
- package/widgets/Editor/support/SketchController.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/Feature/FeatureExpression/FeatureExpressionViewModel.js +1 -1
- package/widgets/Feature/FeatureViewModel.js +1 -1
- package/widgets/Feature/support/arcadeFeatureUtils.js +1 -1
- package/widgets/LayerList.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewer.js +1 -1
- package/widgets/OrientedImageryViewer/components/ImageViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/components/OrientedImageryVideoViewModel.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/NavigationManager.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/queries.js +1 -1
- package/widgets/OrientedImageryViewer/navigation/utils.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/PanoramicViewer/PanoramicViewerViewModel.js +1 -1
- package/widgets/PanoramicViewer.js +1 -1
- package/widgets/Print.js +1 -1
- package/widgets/Sketch/SketchViewModel.js +1 -1
- package/widgets/Slider/SliderViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeature.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceFeaturesDrillIn.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/support/SelectionList.js +1 -1
- package/widgets/support/Selector2D/SelectionOperation.js +1 -1
- package/widgets/support/UtilityNetworkAssociations/FeatureUtilityNetworkAssociationsViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/0ba6177ba118a0f032e2.js +0 -1
- package/assets/esri/core/workers/chunks/573a8393bec916dcf16f.js +0 -1
- package/assets/esri/core/workers/chunks/58e74681ddef30ba9cb6.js +0 -1
- package/assets/esri/core/workers/chunks/81006d9eed65bbb82962.js +0 -1
- package/assets/esri/core/workers/chunks/8fa6c938e8dc7bbfaeb7.js +0 -1
- package/assets/esri/core/workers/chunks/9f91d519da67714f915f.js +0 -1
- package/assets/esri/core/workers/chunks/ad3871f497ecea1a08c9.js +0 -1
- package/assets/esri/core/workers/chunks/bbca1b85656d9ba71e4c.js +0 -1
- package/assets/esri/core/workers/chunks/cd64181298d82c8d0e9d.js +0 -1
- package/assets/esri/core/workers/chunks/e2cb295104ed2f8cd2ff.js +0 -1
- package/assets/esri/core/workers/chunks/f3d5d92e0aefc2593208.js +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import "../../interfaces";
|
|
2
|
+
|
|
3
|
+
export const compileExpression: __esri.arcadeFeatureUtils["compileExpression"];
|
|
4
|
+
export const compileExpressionInfos: __esri.arcadeFeatureUtils["compileExpressionInfos"];
|
|
5
|
+
export const formatArcadeValue: __esri.arcadeFeatureUtils["formatArcadeValue"];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
|
+
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
+
*/
|
|
5
|
+
import{compileExpression as e,compileExpressionInfos as s,formatArcadeValue as o}from"../../widgets/Feature/support/arcadeFeatureUtils.js";const r=e,a=s,t=o;export{r as compileExpression,a as compileExpressionInfos,t as formatArcadeValue};
|
package/arcade/parser.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{
|
|
5
|
+
import{U as o,y as n,a as e}from"../chunks/index.js";import{findScriptDependencies as i}from"./treeAnalysis.js";function d(d,r=[]){const s=o(d);if(null===s.body||void 0===s.body)throw new n({index:0,line:0,column:0,data:null,description:"",code:e.InvalidExpression});return s.loadedModules={},i(s,r),s}export{d as parseScript};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{i as e,$ as i,a as t,f as n,B as s,Y as a,V as o}from"../../chunks/index.js";import{DiagnosticCodes as r,diagnosticMessages as d}from"./diagnosticMessages.js";import{arcadeReservedKeywords as c}from"./languageKeywords.js";import{DiagnosticSeverity as l}from"./types.js";function h(e,i){return i?e.replaceAll(/\${(.*?)}/g,(e,t)=>i[t]?.toString()??""):e}function f(e){return!!e&&"dictionary"!==e.type}class p{constructor(e,i=[]){this._apiDefinitions=e,this._profileVariables=i,this._isInBlock=!1,this._identifierBeingAssigned=void 0,this._assignmentValidationMode="disabled",this._scriptScopeIdentifiers=new Map,this._diagnostics=new Array,this._undeclaredIdentifiersInFunctions=new Map}validateScript(i){if(!i)return{diagnostics:[],program:null};this._isInBlock=!1,this._identifierBeingAssigned=void 0,this._assignmentValidationMode="disabled",this._diagnostics=[],this._scriptScopeIdentifiers.clear(),this._undeclaredIdentifiersInFunctions.clear(),this._functionScopeIdentifiers=void 0;let t=null;try{t=e(i,{tolerant:!0}),this.handleErrors(t.errors),t.body.forEach(e=>this.validateStatement(e)),this.diagnoseIdentifiers(),this._undeclaredIdentifiersInFunctions.size>0&&this._undeclaredIdentifiersInFunctions.forEach(e=>{for(const i of e)this.logDiagnostic(i.node.loc,{code:r.NotDefined,data:{identifier:i.node.name}})})}catch(n){this.handleException(n)}return{diagnostics:this._diagnostics,program:t}}disableRecordIdentifierAssignment(e,i){const t=this._assignmentValidationMode;this._assignmentValidationMode="disabled",e.call(this,i),this._assignmentValidationMode=t}inBlock(e,i){const t=this._isInBlock;this._isInBlock=!0,e.call(this,i),this._isInBlock=t}get _isInFunctionScope(){return!!this._functionScopeIdentifiers}inFunctionScope(e){this._functionScopeIdentifiers=new Map,e.call(this),this.diagnoseIdentifiers(),this._functionScopeIdentifiers=void 0}logDiagnostic(e,t){const n={severity:l.Error,...t,message:h(d[t.code]??i[t.code],t.data),range:{start:{line:e.start.line-1,character:e.start.column},end:{line:e.end.line-1,character:e.end.column}}};this._diagnostics.push(n)}handleErrors(e){(e??[]).forEach(this.handleException,this)}handleException(e){if(g(e)){const{range:i,code:t,data:n}=e;this.logDiagnostic(i,{code:t,data:n})}else this.logDiagnostic({start:{line:1,column:0},end:{line:1,column:0}},{code:r.ExecutionError,data:{stack:e.stack}})}getIdentifierInfo(e){return this._functionScopeIdentifiers?.get(e)??this._scriptScopeIdentifiers.get(e)}setIdentiferInfo(e,i){this._functionScopeIdentifiers?this._functionScopeIdentifiers.set(e,i):((this._functionScopeIdentifiers??this._scriptScopeIdentifiers).set(e,i),this._functionScopeIdentifiers||this._undeclaredIdentifiersInFunctions.has(e)&&(this._undeclaredIdentifiersInFunctions.delete(e),i.used=!0))}isProfileVariable(e){return(this._profileVariables??[]).some(i=>i.name.toLowerCase()===e)}isApiItem(e){const i=!!this._apiDefinitions?.constantDefinitions?.get(e),t=!!this._apiDefinitions?.functionDefinitions?.get(e);return i||t}validateStatement(e){if(e)switch(e.type){case t.BlockStatement:return void e.body.forEach(e=>this.validateStatement(e));case t.VariableDeclaration:return void e.declarations.forEach(e=>this.validateVariableDeclarator(e));case t.FunctionDeclaration:return void this.validateFunctionDeclaration(e);case t.ExportNamedDeclaration:return void this.validateExportDeclaration(e);case t.ImportDeclaration:return void this.validateImportDeclaration(e);case t.WhileStatement:return void this.validateWhileStatement(e);case t.ForStatement:return void this.validateForStatement(e);case t.ForInStatement:return void this.validateForInStatement(e);case t.IfStatement:return void this.validateIfStatement(e);case t.ReturnStatement:return void this.validateExpression(e.argument);case t.ExpressionStatement:return void this.validateExpression(e.expression);case t.BreakStatement:case t.ContinueStatement:case t.EmptyStatement:return}}validateVariableDeclarator(e){this.validateExpression(e.init),this.recordVariableIdentifier(e.id,{initialized:!!e.init})}validateFunctionDeclaration(e){this.recordFunctionIdentifier(e),this.inFunctionScope(()=>{e.params.forEach(e=>this.recordParamAsIdentifier(e)),m(e.body)&&this.logDiagnostic(e.body.loc,{code:r.UnexpectedEmptyFunction,data:{identifier:e.id.name},severity:l.Warning}),this.validateStatement(e.body)})}validateExportDeclaration(e){this.validateStatement(e.declaration)}validateImportDeclaration(e){this.recordImportIdentifier(e)}validateForStatement(e){n(e.init)?this.inBlock(this.validateStatement,e.init):this.validateExpression(e.init),this.validateExpression(e.update),this.validateExpression(e.test),m(e.body)&&this.logDiagnostic(e.body.loc,{code:r.EmptyBlockStatement,severity:l.Warning}),this.inBlock(this.validateStatement,e.body)}validateWhileStatement(e){this.validateExpression(e.test),m(e.body)&&this.logDiagnostic(e.body.loc,{code:r.EmptyBlockStatement,severity:l.Warning}),this.inBlock(this.validateStatement,e.body)}validateForInStatement(e){s(e.left)?this.validateExpression(e.left):this.recordVariableIdentifier(e.left.declarations[0].id,{initialized:!0,inBlock:!0}),this.validateExpression(e.right),m(e.body)&&this.logDiagnostic(e.body.loc,{code:r.EmptyBlockStatement,severity:l.Warning}),this.validateStatement(e.body)}validateIfStatement(e){this.validateExpression(e.test),m(e.consequent)&&this.logDiagnostic(e.consequent.loc,{code:r.EmptyBlockStatement,severity:l.Warning}),e.alternate&&m(e.alternate)&&this.logDiagnostic(e.alternate.loc,{code:r.EmptyBlockStatement,severity:l.Warning}),this.inBlock(this.validateStatement,e.consequent),this.inBlock(this.validateStatement,e.alternate)}validateExpression(e){if(e)switch(e.type){case t.AssignmentExpression:return void this.validateAssignmentExpression(e);case t.CallExpression:return void this.validateCallExpression(e);case t.Identifier:return void this.validateIdentifier(e);case t.Literal:return void this.validateLiteral(e);case t.ArrayExpression:return void e.elements.forEach(e=>this.validateExpression(e));case t.ObjectExpression:return void this.validateObjectExpression(e);case t.UnaryExpression:return void this.validateUnaryExpression(e);case t.UpdateExpression:return void this.validateUpdateExpression(e);case t.BinaryExpression:case t.LogicalExpression:return void this.validateBinaryAndLogicalExpression(e);case t.MemberExpression:return void this.validateMemberExpression(e);case t.TemplateLiteral:return void e.expressions.forEach(e=>this.validateExpression(e));default:return}}validateAssignmentExpression(e){const i=this._identifierBeingAssigned,t=this._assignmentValidationMode;s(e.left)&&(this._identifierBeingAssigned=e.left.name.toLowerCase(),this._assignmentValidationMode="left"),this.validateExpression(e.left),s(e.left)&&(this._assignmentValidationMode="right"),this.validateExpression(e.right),this._identifierBeingAssigned=i,this._assignmentValidationMode=t}validateCallExpression(e){if(this.validateExpression(e.callee),s(e.callee)){const i=e.callee.name.toLowerCase(),t=this.getIdentifierInfo(i),n=this._apiDefinitions?.functionDefinitions?.get(i);if(!t&&n){const i=u(n,e.arguments.length);i&&this.logDiagnostic(e.loc,i)}}e.arguments.forEach(e=>this.validateExpression(e))}validateIdentifier(e){const i=e.name.toLowerCase(),t=this.getIdentifierInfo(i);if(t){if("left"===this._assignmentValidationMode&&this._identifierBeingAssigned===i)return void(t.initialized=!0);if("right"===this._assignmentValidationMode&&this._identifierBeingAssigned===i)return;t.used=!0}else if(!this.isProfileVariable(i)&&!this.isApiItem(i)){if(this._isInFunctionScope){let t=this._undeclaredIdentifiersInFunctions.get(i);return t||(t=[],this._undeclaredIdentifiersInFunctions.set(i,t)),void t.push({node:e,identifier:i})}this.logDiagnostic(e.loc,{code:r.NotDefined,data:{identifier:e.name}})}}validateLiteral(e){I(e.raw).forEach(e=>{const i=this.getIdentifierInfo(e.toLowerCase());i&&(i.used=!0)})}logProfileOrApiConflict(e){const i=e.name.toLowerCase(),t=this.isProfileVariable(i),n=this.isApiItem(i);(t||n)&&this.logDiagnostic(e.loc,{code:t?r.ProfileVariablesConflict:r.ApiConflict,severity:l.Warning,data:{identifier:e.name}})}logReservedKeywordsConflict(e){const i=e.name.toLowerCase();c.includes(i)&&this.logDiagnostic(e.loc,{code:r.ReservedKeyword,severity:l.Warning,data:{identifier:e.name}})}validateObjectExpression(e){e.properties.forEach(e=>{this.validateExpression(e.value)})}validateUnaryExpression(e){this.validateExpression(e.argument)}validateUpdateExpression(e){this.validateExpression(e.argument)}validateBinaryAndLogicalExpression(e){this.validateExpression(e.left),this.validateExpression(e.right)}validateMemberExpression(e){const i=this.flattenMemberExpressionAndValidate(e),t=i[0].object;this.disableRecordIdentifierAssignment(this.validateExpression,t),s(t)&&(this.getIdentifierInfo(t.name.toLowerCase())||this.validateMemberExpressionWithProfile(i)||this.validateConstantMemberExpression(i))}flattenMemberExpressionAndValidate(e){return e.type===t.MemberExpression?(s(e.property)&&!e.computed||this.validateExpression(e.property),[...this.flattenMemberExpressionAndValidate(e.object),e]):[]}extractAndValidatePropertyName(e){switch(e.type){case"Identifier":return e.name.toLowerCase();case"Literal":return"string"!=typeof e.value?(this.logDiagnostic(e.loc,{code:r.UnexpectedPropertyIdentifier}),null):e.value.toLowerCase();default:return this.logDiagnostic(e.loc,{code:r.UnexpectedPropertyIdentifier}),null}}validateConstantMemberExpression(e){const i=e[0];if(!s(i.object))return!1;const t=i.object.name.toLowerCase(),n=this._apiDefinitions?.constantDefinitions?.get(t);if(!n)return!1;if("namespace"!==n.type)return this.logDiagnostic(i.property.loc,{code:r.NotADictionary,data:{identifier:t}}),!0;const a=this.extractAndValidatePropertyName(i.property);if(!a)return!0;if(!n.members.some(e=>e.key===a)){const e=n.members.reduce((e,i)=>`${e}${e?" | ":""}${i.completion.label.split(".").pop()}`,"");this.logDiagnostic(i.property.loc,{code:r.InvalidConstantIdentifier,data:{list:e}})}return e.length>1&&this.logDiagnostic(e[1].property.loc,{code:r.UnexpectedPropertyIdentifier}),!0}validateMemberExpressionWithProfile(e){const i=e[0];if(i.object.type!==t.Identifier)return!1;const n=i.object.name.toLowerCase(),s=this._profileVariables?.find(e=>e.key===n);if(!s)return!1;if(f(s))return this.logDiagnostic(i.object.loc,{code:r.NotADictionary,data:{identifier:s.name}}),!0;if(this._identifierBeingAssigned===n)return this.logDiagnostic(i.loc,{code:r.ProfileVariablesAreImmutable}),!0;let a=s;for(let t=0;t<e.length;t++){if(e[t].computed)return!0;if(f(a))return this.logDiagnostic(e[t-1]?.property.loc??e[t].object.loc,{code:r.NotADictionary,data:{identifier:a.name}}),!0;const i=this.extractAndValidatePropertyName(e[t].property);if(!i)return!0;if(0===a.properties.length)return this.logDiagnostic(e[t].property.loc,{code:r.UnknownPropertyIdentifier,data:{identifier:i},severity:l.Warning}),!0;const n=a.properties.find(e=>e.name.toLowerCase()===i);if(!n){const i=a.properties.reduce((e,i)=>`${e}${e?" | ":""}${i.name.split(".").pop()}`,"");return this.logDiagnostic(e[t].property.loc,{code:r.InvalidPropertyIdentifier,data:{list:i}}),!0}a=n}return!0}recordVariableIdentifier(e,i){this.logReservedKeywordsConflict(e),this.logProfileOrApiConflict(e);const t=e.name.toLowerCase();let n=this.getIdentifierInfo(t);const s=n&&this._isInFunctionScope&&"function"===n.scope,a=n&&!this._isInFunctionScope&&"script"===n.scope;(s||a)&&this.logDiagnostic(e.loc,{code:r.AlreadyDefined,data:{identifier:e.name},severity:l.Warning});const o=i.inBlock??this._isInBlock,{initialized:d}=i;if(!n||this._isInFunctionScope&&"function"!==n.scope){n={node:e,used:!1,initialized:d,scope:this._isInFunctionScope?"function":o?"block":"script"}}else n.node=e,n.used=!1,n.initialized=d;return"block"!==n.scope||o||(n.scope="script",this.logDiagnostic(e.loc,{code:r.AlreadyDefined,data:{identifier:e.name},severity:l.Warning})),this.setIdentiferInfo(t,n),!1}recordImportIdentifier(e){const i=e.specifiers[0].local;this.logProfileOrApiConflict(i);const t=i.name.toLowerCase();let n=this.getIdentifierInfo(t);n?.scope&&this.logDiagnostic(e.specifiers[0].local.loc,{code:r.AlreadyDefined,data:{identifier:e.specifiers[0].local.name},severity:l.Warning}),n={node:e.specifiers[0].local,used:!1,...n,scope:"script",initialized:!0},this.setIdentiferInfo(t,n)}recordFunctionIdentifier(e){this.logProfileOrApiConflict(e.id);const i=e.id.name.toLowerCase();let t=this.getIdentifierInfo(i);t?.scope&&this.logDiagnostic(e.id.loc,{code:r.AlreadyDefined,data:{identifier:e.id.name},severity:l.Warning}),t={node:e.id,used:!1,...t,scope:"script",initialized:!0},this.setIdentiferInfo(i,t)}recordParamAsIdentifier(e){return this.recordVariableIdentifier(e,{initialized:!0})}diagnoseIdentifiers(){(this._functionScopeIdentifiers??this._scriptScopeIdentifiers).forEach(e=>{e.node&&(e.used?e.initialized||this.logDiagnostic(e.node.loc,{code:r.DefinedNeverAssigned,data:{identifier:e.node.name},severity:l.Warning}):this.logDiagnostic(e.node.loc,{code:e.initialized?r.AssignedNeverUsed:r.DefinedNeverUsed,data:{identifier:e.node.name},severity:l.Warning}))})}}function g(e){return"ParsingError"===e?.name}function m(e){return a(e)||o(e)&&!e?.body.length}function u(e,i){if(!e||null==i||i<0)return null;const{min:t,max:n}=e.overloads.reduce((e,i)=>{const{min:t,max:n}=i.parametersInfo;return e.min>=0&&(e.min=Math.min(t,e.min)),e.max>=0&&(e.max=n<0?n:Math.max(n,e.max)),e},{min:1/0,max:0});return i<t?t>0?{code:r.NotEnoughArguments,data:{min:t}}:{code:r.NoArgumentExpected}:n>=0&&i>n?{code:r.TooManyArguments,data:{max:n}}:null}const v=new RegExp(/\B@\w+/g);function I(e){return Array.from((e??"").matchAll(v),e=>e[0].slice(1))}function y(e,i=[],t){if(!e)return{diagnostics:[]};return new p(t,i).validateScript(e)}export{p as ArcadeValidationService,h as format,f as isValueVariable,y as validateScript};
|
|
5
|
+
import{U as e,Z as i,n as t,x as n,g as s,i as a,P as o}from"../../chunks/index.js";import{DiagnosticCodes as r,diagnosticMessages as d}from"./diagnosticMessages.js";import{arcadeReservedKeywords as c}from"./languageKeywords.js";import{DiagnosticSeverity as l}from"./types.js";function h(e,i){return i?e.replaceAll(/\${(.*?)}/g,(e,t)=>i[t]?.toString()??""):e}function f(e){return!!e&&"dictionary"!==e.type}class p{constructor(e,i=[]){this._apiDefinitions=e,this._profileVariables=i,this._isInBlock=!1,this._identifierBeingAssigned=void 0,this._assignmentValidationMode="disabled",this._scriptScopeIdentifiers=new Map,this._diagnostics=new Array,this._undeclaredIdentifiersInFunctions=new Map}validateScript(i){if(!i)return{diagnostics:[],program:null};this._isInBlock=!1,this._identifierBeingAssigned=void 0,this._assignmentValidationMode="disabled",this._diagnostics=[],this._scriptScopeIdentifiers.clear(),this._undeclaredIdentifiersInFunctions.clear(),this._functionScopeIdentifiers=void 0;let t=null;try{t=e(i,{tolerant:!0}),this.handleErrors(t.errors),t.body.forEach(e=>this.validateStatement(e)),this.diagnoseIdentifiers(),this._undeclaredIdentifiersInFunctions.size>0&&this._undeclaredIdentifiersInFunctions.forEach(e=>{for(const i of e)this.logDiagnostic(i.node.loc,{code:r.NotDefined,data:{identifier:i.node.name}})})}catch(n){this.handleException(n)}return{diagnostics:this._diagnostics,program:t}}disableRecordIdentifierAssignment(e,i){const t=this._assignmentValidationMode;this._assignmentValidationMode="disabled",e.call(this,i),this._assignmentValidationMode=t}inBlock(e,i){const t=this._isInBlock;this._isInBlock=!0,e.call(this,i),this._isInBlock=t}get _isInFunctionScope(){return!!this._functionScopeIdentifiers}inFunctionScope(e){this._functionScopeIdentifiers=new Map,e.call(this),this.diagnoseIdentifiers(),this._functionScopeIdentifiers=void 0}logDiagnostic(e,t){const n={severity:l.Error,...t,message:h(d[t.code]??i[t.code],t.data),range:{start:{line:e.start.line-1,character:e.start.column},end:{line:e.end.line-1,character:e.end.column}}};this._diagnostics.push(n)}handleErrors(e){(e??[]).forEach(this.handleException,this)}handleException(e){if(g(e)){const{range:i,code:t,data:n}=e;this.logDiagnostic(i,{code:t,data:n})}else this.logDiagnostic({start:{line:1,column:0},end:{line:1,column:0}},{code:r.ExecutionError,data:{stack:e.stack}})}getIdentifierInfo(e){return this._functionScopeIdentifiers?.get(e)??this._scriptScopeIdentifiers.get(e)}setIdentiferInfo(e,i){this._functionScopeIdentifiers?this._functionScopeIdentifiers.set(e,i):((this._functionScopeIdentifiers??this._scriptScopeIdentifiers).set(e,i),this._functionScopeIdentifiers||this._undeclaredIdentifiersInFunctions.has(e)&&(this._undeclaredIdentifiersInFunctions.delete(e),i.used=!0))}isProfileVariable(e){return(this._profileVariables??[]).some(i=>i.name.toLowerCase()===e)}isApiItem(e){const i=!!this._apiDefinitions?.constantDefinitions?.get(e),t=!!this._apiDefinitions?.functionDefinitions?.get(e);return i||t}validateStatement(e){if(e)switch(e.type){case t.BlockStatement:return void e.body.forEach(e=>this.validateStatement(e));case t.VariableDeclaration:return void e.declarations.forEach(e=>this.validateVariableDeclarator(e));case t.FunctionDeclaration:return void this.validateFunctionDeclaration(e);case t.ExportNamedDeclaration:return void this.validateExportDeclaration(e);case t.ImportDeclaration:return void this.validateImportDeclaration(e);case t.WhileStatement:return void this.validateWhileStatement(e);case t.ForStatement:return void this.validateForStatement(e);case t.ForInStatement:return void this.validateForInStatement(e);case t.IfStatement:return void this.validateIfStatement(e);case t.ReturnStatement:return void this.validateExpression(e.argument);case t.ExpressionStatement:return void this.validateExpression(e.expression);case t.BreakStatement:case t.ContinueStatement:case t.EmptyStatement:return}}validateVariableDeclarator(e){this.validateExpression(e.init),this.recordVariableIdentifier(e.id,{initialized:!!e.init})}validateFunctionDeclaration(e){this.recordFunctionIdentifier(e),this.inFunctionScope(()=>{e.params.forEach(e=>this.recordParamAsIdentifier(e)),m(e.body)&&this.logDiagnostic(e.body.loc,{code:r.UnexpectedEmptyFunction,data:{identifier:e.id.name},severity:l.Warning}),this.validateStatement(e.body)})}validateExportDeclaration(e){this.validateStatement(e.declaration)}validateImportDeclaration(e){this.recordImportIdentifier(e)}validateForStatement(e){n(e.init)?this.inBlock(this.validateStatement,e.init):this.validateExpression(e.init),this.validateExpression(e.update),this.validateExpression(e.test),m(e.body)&&this.logDiagnostic(e.body.loc,{code:r.EmptyBlockStatement,severity:l.Warning}),this.inBlock(this.validateStatement,e.body)}validateWhileStatement(e){this.validateExpression(e.test),m(e.body)&&this.logDiagnostic(e.body.loc,{code:r.EmptyBlockStatement,severity:l.Warning}),this.inBlock(this.validateStatement,e.body)}validateForInStatement(e){s(e.left)?this.validateExpression(e.left):this.recordVariableIdentifier(e.left.declarations[0].id,{initialized:!0,inBlock:!0}),this.validateExpression(e.right),m(e.body)&&this.logDiagnostic(e.body.loc,{code:r.EmptyBlockStatement,severity:l.Warning}),this.validateStatement(e.body)}validateIfStatement(e){this.validateExpression(e.test),m(e.consequent)&&this.logDiagnostic(e.consequent.loc,{code:r.EmptyBlockStatement,severity:l.Warning}),e.alternate&&m(e.alternate)&&this.logDiagnostic(e.alternate.loc,{code:r.EmptyBlockStatement,severity:l.Warning}),this.inBlock(this.validateStatement,e.consequent),this.inBlock(this.validateStatement,e.alternate)}validateExpression(e){if(e)switch(e.type){case t.AssignmentExpression:return void this.validateAssignmentExpression(e);case t.CallExpression:return void this.validateCallExpression(e);case t.Identifier:return void this.validateIdentifier(e);case t.Literal:return void this.validateLiteral(e);case t.ArrayExpression:return void e.elements.forEach(e=>this.validateExpression(e));case t.ObjectExpression:return void this.validateObjectExpression(e);case t.UnaryExpression:return void this.validateUnaryExpression(e);case t.UpdateExpression:return void this.validateUpdateExpression(e);case t.BinaryExpression:case t.LogicalExpression:return void this.validateBinaryAndLogicalExpression(e);case t.MemberExpression:return void this.validateMemberExpression(e);case t.TemplateLiteral:return void e.expressions.forEach(e=>this.validateExpression(e));default:return}}validateAssignmentExpression(e){const i=this._identifierBeingAssigned,t=this._assignmentValidationMode;s(e.left)&&(this._identifierBeingAssigned=e.left.name.toLowerCase(),this._assignmentValidationMode="left"),this.validateExpression(e.left),s(e.left)&&(this._assignmentValidationMode="right"),this.validateExpression(e.right),this._identifierBeingAssigned=i,this._assignmentValidationMode=t}validateCallExpression(e){if(this.validateExpression(e.callee),s(e.callee)){const i=e.callee.name.toLowerCase(),t=this.getIdentifierInfo(i),n=this._apiDefinitions?.functionDefinitions?.get(i);if(!t&&n){const i=u(n,e.arguments.length);i&&this.logDiagnostic(e.loc,i)}}e.arguments.forEach(e=>this.validateExpression(e))}validateIdentifier(e){const i=e.name.toLowerCase(),t=this.getIdentifierInfo(i);if(t){if("left"===this._assignmentValidationMode&&this._identifierBeingAssigned===i)return void(t.initialized=!0);if("right"===this._assignmentValidationMode&&this._identifierBeingAssigned===i)return;t.used=!0}else if(!this.isProfileVariable(i)&&!this.isApiItem(i)){if(this._isInFunctionScope){let t=this._undeclaredIdentifiersInFunctions.get(i);return t||(t=[],this._undeclaredIdentifiersInFunctions.set(i,t)),void t.push({node:e,identifier:i})}this.logDiagnostic(e.loc,{code:r.NotDefined,data:{identifier:e.name}})}}validateLiteral(e){I(e.raw).forEach(e=>{const i=this.getIdentifierInfo(e.toLowerCase());i&&(i.used=!0)})}logProfileOrApiConflict(e){const i=e.name.toLowerCase(),t=this.isProfileVariable(i),n=this.isApiItem(i);(t||n)&&this.logDiagnostic(e.loc,{code:t?r.ProfileVariablesConflict:r.ApiConflict,severity:l.Warning,data:{identifier:e.name}})}logReservedKeywordsConflict(e){const i=e.name.toLowerCase();c.includes(i)&&this.logDiagnostic(e.loc,{code:r.ReservedKeyword,severity:l.Warning,data:{identifier:e.name}})}validateObjectExpression(e){e.properties.forEach(e=>{this.validateExpression(e.value)})}validateUnaryExpression(e){this.validateExpression(e.argument)}validateUpdateExpression(e){this.validateExpression(e.argument)}validateBinaryAndLogicalExpression(e){this.validateExpression(e.left),this.validateExpression(e.right)}validateMemberExpression(e){const i=this.flattenMemberExpressionAndValidate(e),t=i[0].object;this.disableRecordIdentifierAssignment(this.validateExpression,t),s(t)&&(this.getIdentifierInfo(t.name.toLowerCase())||this.validateMemberExpressionWithProfile(i)||this.validateConstantMemberExpression(i))}flattenMemberExpressionAndValidate(e){return e.type===t.MemberExpression?(s(e.property)&&!e.computed||this.validateExpression(e.property),[...this.flattenMemberExpressionAndValidate(e.object),e]):[]}extractAndValidatePropertyName(e){switch(e.type){case"Identifier":return e.name.toLowerCase();case"Literal":return"string"!=typeof e.value?(this.logDiagnostic(e.loc,{code:r.UnexpectedPropertyIdentifier}),null):e.value.toLowerCase();default:return this.logDiagnostic(e.loc,{code:r.UnexpectedPropertyIdentifier}),null}}validateConstantMemberExpression(e){const i=e[0];if(!s(i.object))return!1;const t=i.object.name.toLowerCase(),n=this._apiDefinitions?.constantDefinitions?.get(t);if(!n)return!1;if("namespace"!==n.type)return this.logDiagnostic(i.property.loc,{code:r.NotADictionary,data:{identifier:t}}),!0;const a=this.extractAndValidatePropertyName(i.property);if(!a)return!0;if(!n.members.some(e=>e.key===a)){const e=n.members.reduce((e,i)=>`${e}${e?" | ":""}${i.completion.label.split(".").pop()}`,"");this.logDiagnostic(i.property.loc,{code:r.InvalidConstantIdentifier,data:{list:e}})}return e.length>1&&this.logDiagnostic(e[1].property.loc,{code:r.UnexpectedPropertyIdentifier}),!0}validateMemberExpressionWithProfile(e){const i=e[0];if(i.object.type!==t.Identifier)return!1;const n=i.object.name.toLowerCase(),s=this._profileVariables?.find(e=>e.key===n);if(!s)return!1;if(f(s))return this.logDiagnostic(i.object.loc,{code:r.NotADictionary,data:{identifier:s.name}}),!0;if(this._identifierBeingAssigned===n)return this.logDiagnostic(i.loc,{code:r.ProfileVariablesAreImmutable}),!0;let a=s;for(let t=0;t<e.length;t++){if(e[t].computed)return!0;if(f(a))return this.logDiagnostic(e[t-1]?.property.loc??e[t].object.loc,{code:r.NotADictionary,data:{identifier:a.name}}),!0;const i=this.extractAndValidatePropertyName(e[t].property);if(!i)return!0;if(0===a.properties.length)return this.logDiagnostic(e[t].property.loc,{code:r.UnknownPropertyIdentifier,data:{identifier:i},severity:l.Warning}),!0;const n=a.properties.find(e=>e.name.toLowerCase()===i);if(!n){const i=a.properties.reduce((e,i)=>`${e}${e?" | ":""}${i.name.split(".").pop()}`,"");return this.logDiagnostic(e[t].property.loc,{code:r.InvalidPropertyIdentifier,data:{list:i}}),!0}a=n}return!0}recordVariableIdentifier(e,i){this.logReservedKeywordsConflict(e),this.logProfileOrApiConflict(e);const t=e.name.toLowerCase();let n=this.getIdentifierInfo(t);const s=n&&this._isInFunctionScope&&"function"===n.scope,a=n&&!this._isInFunctionScope&&"script"===n.scope;(s||a)&&this.logDiagnostic(e.loc,{code:r.AlreadyDefined,data:{identifier:e.name},severity:l.Warning});const o=i.inBlock??this._isInBlock,{initialized:d}=i;if(!n||this._isInFunctionScope&&"function"!==n.scope){n={node:e,used:!1,initialized:d,scope:this._isInFunctionScope?"function":o?"block":"script"}}else n.node=e,n.used=!1,n.initialized=d;return"block"!==n.scope||o||(n.scope="script",this.logDiagnostic(e.loc,{code:r.AlreadyDefined,data:{identifier:e.name},severity:l.Warning})),this.setIdentiferInfo(t,n),!1}recordImportIdentifier(e){const i=e.specifiers[0].local;this.logProfileOrApiConflict(i);const t=i.name.toLowerCase();let n=this.getIdentifierInfo(t);n?.scope&&this.logDiagnostic(e.specifiers[0].local.loc,{code:r.AlreadyDefined,data:{identifier:e.specifiers[0].local.name},severity:l.Warning}),n={node:e.specifiers[0].local,used:!1,...n,scope:"script",initialized:!0},this.setIdentiferInfo(t,n)}recordFunctionIdentifier(e){this.logProfileOrApiConflict(e.id);const i=e.id.name.toLowerCase();let t=this.getIdentifierInfo(i);t?.scope&&this.logDiagnostic(e.id.loc,{code:r.AlreadyDefined,data:{identifier:e.id.name},severity:l.Warning}),t={node:e.id,used:!1,...t,scope:"script",initialized:!0},this.setIdentiferInfo(i,t)}recordParamAsIdentifier(e){return this.recordVariableIdentifier(e,{initialized:!0})}diagnoseIdentifiers(){(this._functionScopeIdentifiers??this._scriptScopeIdentifiers).forEach(e=>{e.node&&(e.used?e.initialized||this.logDiagnostic(e.node.loc,{code:r.DefinedNeverAssigned,data:{identifier:e.node.name},severity:l.Warning}):this.logDiagnostic(e.node.loc,{code:e.initialized?r.AssignedNeverUsed:r.DefinedNeverUsed,data:{identifier:e.node.name},severity:l.Warning}))})}}function g(e){return"ParsingError"===e?.name}function m(e){return a(e)||o(e)&&!e?.body.length}function u(e,i){if(!e||null==i||i<0)return null;const{min:t,max:n}=e.overloads.reduce((e,i)=>{const{min:t,max:n}=i.parametersInfo;return e.min>=0&&(e.min=Math.min(t,e.min)),e.max>=0&&(e.max=n<0?n:Math.max(n,e.max)),e},{min:1/0,max:0});return i<t?t>0?{code:r.NotEnoughArguments,data:{min:t}}:{code:r.NoArgumentExpected}:n>=0&&i>n?{code:r.TooManyArguments,data:{max:n}}:null}const v=new RegExp(/\B@\w+/g);function I(e){return Array.from((e??"").matchAll(v),e=>e[0].slice(1))}function y(e,i=[],t){if(!e)return{diagnostics:[]};return new p(t,i).validateScript(e)}export{p as ArcadeValidationService,h as format,f as isValueVariable,y as validateScript};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var RemoteClient;(()=>{var e={799:(e,t,r)=>{"use strict";r.d(t,{Cj:()=>i,HC:()=>a,Wm:()=>c,_e:()=>f});var n=r(93637);const o=/\{([^}]+)\}/g;function s(e){return e??""}function a(e,t){return t?e.replaceAll(o,"object"==typeof t?(e,r)=>s((0,n.wc)(r,t)):(e,r)=>s(t(r))):e}function i(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}let l;function f(e){return l??=new DOMParser,l.parseFromString(e||"","text/html").body.innerText||""}},2131:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},4576:(e,t,r)=>{"use strict";r.d(t,{MJ:()=>s,Mo:()=>h,Ru:()=>y,TF:()=>g,Xy:()=>d,aI:()=>a,iv:()=>i,k4:()=>m,mW:()=>b,qh:()=>f,vW:()=>c});var n=r(21818),o=r(87811);function s(e,t,r,n,o,s,a){if(null==e&&null==n)return!0;t=Math.max(0,t),o=Math.max(0,o),r=Math.max(0,r<0?(e?.length??0)+r:r),s=Math.max(0,s<0?(n?.length??0)+s:s);const i=r-t;if(null==e||null==n||i!==s-o)return!1;if(a){for(let r=0;r<i;r++)if(!a(e[t+r],n[o+r]))return!1}else for(let r=0;r<i;r++)if(e[t+r]!==n[o+r])return!1;return!0}function a(e,t,r){return s(e,0,e?.length??0,t,0,t?.length??0,r)}function i(e,t,r){let n,o;return r?(n=t.filter(t=>!e.some(e=>r(e,t))),o=e.filter(e=>!t.some(t=>r(t,e)))):(n=t.filter(t=>!e.includes(t)),o=e.filter(e=>!t.includes(e))),{added:n,removed:o}}class c{constructor(){this.last=0}}const l=new c;function f(e,t,r,n){n=n||l;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function d(e,t,r,o){const s=r??e.length,a=f(e,(0,n.zI)(t),s,o);if(-1!==a)return e[a]=e[s-1],null==r&&e.pop(),t}const u=new Set;function b(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;u.clear();for(let e=0;e<n;++e)u.add(t[e]);o=o||l;const a=Math.max(0,o.last-10);for(let t=a;t<r;++t)if(u.has(e[t])&&(s?.push(e[t]),u.delete(e[t]),e[t]=e[r-1],--r,--t,0===u.size||0===r))return u.clear(),r;for(let t=0;t<a;++t)if(u.has(e[t])&&(s?.push(e[t]),u.delete(e[t]),e[t]=e[r-1],--r,--t,0===u.size||0===r))return u.clear(),r;return u.clear(),r}function h(e){return e?(p.seed=e,()=>p.getFloat()):Math.random}const p=new o.A;function m(e,t){if(!e)return e;const r=h(t);for(let t=e.length-1;t>0;t--){const n=Math.floor(r()*(t+1)),o=e[t];e[t]=e[n],e[n]=o}return e}function g(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function y(e,t){return null!=e}},4718:(e,t,r)=>{"use strict";r.d(t,{Nb:()=>c,TU:()=>i,aI:()=>b,gh:()=>h,o8:()=>a,oy:()=>s});var n=r(4576),o=r(34275);function s(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&s(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function a(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(a);if(f(e))throw new Error("Trying to clone an unclonable Accessor instance");const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=a(e[t]);return r}function i(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const r=u(e);if(null!=r)return r;if(l(e)){let r=!0;const n=e.map(e=>{const n=i(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;const n=new(0,Object.getPrototypeOf(e).constructor);for(const t of Object.getOwnPropertyNames(e)){const r=e[t],o=i(r);if(null!=r&&null==o)return null;n[t]=o}return n}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,o.dz)(e)||(0,o.mg)(e)||(0,o.UR)(e)||(0,o.IY)(e)||(0,o.jq)(e)||(0,o._G)(e)||(0,o.XJ)(e)||(0,o.vZ)(e)||(0,o.aI)(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,a(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(a(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},8341:(e,t,r)=>{"use strict";r.d(t,{Go:()=>a,Jc:()=>l,T:()=>s,VI:()=>u,mF:()=>f,oV:()=>h,u1:()=>d});var n=r(44208),o=r(74887);const s="worker:port-closed";var a,i;(i=a||(a={}))[i.HANDSHAKE=0]="HANDSHAKE",i[i.OPEN=1]="OPEN",i[i.OPENED=2]="OPENED",i[i.RESPONSE=3]="RESPONSE",i[i.INVOKE=4]="INVOKE",i[i.ABORT=5]="ABORT",i[i.CLOSE=6]="CLOSE",i[i.OPEN_PORT=7]="OPEN_PORT",i[i.ON=8]="ON";let c=0;function l(){return c++}function f(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function d(e,t,r,o){if(t.type===a.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==a.INVOKE&&t.type!==a.RESPONSE)return void e.postMessage(t);let s;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(s=b(r.transferList),t.data=r.result):(s=b(o),t.data=r),s){if((0,n.A)("ff"))for(const r of s)if("byteLength"in r&&r.byteLength>267386880){const r="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case a.INVOKE:throw r;case a.RESPONSE:return void d(e,{type:a.RESPONSE,jobId:t.jobId,error:f(r)})}}e.postMessage(t,s)}else e.postMessage(t)}function u(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function b(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function h(e){try{return await e}catch(e){const t=e?.name===s;if(!(0,o.zf)(e)&&!t)throw e;return}}},12195:(e,t,r)=>{"use strict";function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},18357:(e,t,r)=>{"use strict";r.d(t,{$:()=>n,u:()=>o});const n="20250620",o="11765b8f1aca9f2c702b001bd2ad36138edc44f0"},21818:(e,t,r)=>{"use strict";function n(e){}function o(e){return e}r.d(t,{Xb:()=>n,zI:()=>o}),r(44208)},26306:(e,t,r)=>{"use strict";function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function o(e){const t=new Uint8Array(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>o})},34275:(e,t,r)=>{"use strict";function n(e){return e instanceof ArrayBuffer}function o(e){return"Int8Array"===e?.constructor?.name}function s(e){return"Uint8Array"===e?.constructor?.name}function a(e){return"Uint8ClampedArray"===e?.constructor?.name}function i(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}r.d(t,{IY:()=>i,JI:()=>m,LW:()=>d,PI:()=>w,UR:()=>a,XJ:()=>f,_G:()=>l,a3:()=>y,aI:()=>b,dk:()=>g,dz:()=>o,h2:()=>v,iu:()=>h,jq:()=>c,mg:()=>s,mw:()=>n,vZ:()=>u,y9:()=>p}),r(44208);const p=1024;function m(e){return b(e)||u(e)||l(e)||i(e)||o(e)}function g(e){return b(e)||u(e)}function y(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:c(e)?65535:s(e)||a(e)?255:l(e)?2147483647:i(e)?32767:o(e)?127:256}const w=-32768,v=-2147483648},36563:(e,t,r)=>{"use strict";r.d(t,{Bf:()=>i,hA:()=>o,rE:()=>a,vE:()=>s});const n={remove:()=>{}};function o(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function s(e){return o(()=>function(e){e.forEach(e=>e?.remove())}(e))}function a(e){return o(()=>e?.abort())}function i(e){return{[Symbol.dispose](){e.remove()}}}},37955:(e,t,r)=>{"use strict";r.d(t,{Oo:()=>i,on:()=>a,wb:()=>o});var n=r(36563);function o(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||s(e)}function s(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function a(e,t,r){if(!o(e))throw new TypeError("target is not a Evented or EventTarget object");return s(e)?function(e,t,r,o){if(Array.isArray(t)){const s=t.slice();for(const t of s)e.addEventListener(t,r,o);return(0,n.hA)(()=>{for(const t of s)e.removeEventListener(t,r,o)})}return e.addEventListener(t,r,o),(0,n.hA)(()=>e.removeEventListener(t,r,o))}(e,t,r):e.on(t,r)}function i(e,t,r){if(!o(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=a(e,t,t=>{n.remove(),r.call(e,t)});return n}},39131:(e,t,r)=>{"use strict";r.d(t,{$E:()=>a,py:()=>s,qG:()=>i});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,o={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function s(e){const t=e?.match(n);if(!t)return null;const[,r,s,a]=t;if(!r)return null;let i=null,c=null,l=null;const{devext:f,qaext:d,www:u}=o;if(s)if(i=r,a)switch(a.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qa":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}else({customBaseUrl:c,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qaext":({customBaseUrl:c,portalHostname:l}=d);break;case"www":({customBaseUrl:c,portalHostname:l}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:i}}function a(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function i(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},44208:(e,t,r)=>{"use strict";let n;function o(e){return"function"==typeof n[e]?n[e]=n[e](globalThis):n[e]}r.d(t,{A:()=>o}),n=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,r,s)=>{(s||void 0===n[e])&&(n[e]=t),r&&o(e)},o.cache=n,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("edge")||o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in globalThis),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),o.add("esri-atomics","Atomics"in globalThis),o.add("esri-workers","Worker"in globalThis),o.add("web-feat:cache","caches"in globalThis),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("workers-pool-size",8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-fast-triangulation-enabled",!0),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",1e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",1e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!1),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",4),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o("host-webworker")||o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),o.add("esri-image-decode",()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then(()=>{o.add("esri-image-decode",!0,!0,!0)}).catch(()=>{o.add("esri-image-decode",!1,!0,!0)})}return!1}),o.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},49186:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(4718),o=r(53966),s=r(79907);class a extends s.A{constructor(e,t,r){super(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}}))}}catch(e){throw o.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new a(e.name,e.message,e.details)}}a.prototype.type="error"},52268:(e,t,r)=>{"use strict";function n(e,t){return new Proxy({},{get:(r,n,o)=>(...r)=>{let o,s;const a=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(a)&&(o=a.signal,s=a.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:s,signal:o})}})}r.d(t,{L:()=>n})},53966:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(92602),o=(r(44208),r(799));const s={info:0,warn:1,error:2,none:3};class a{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,a._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,a._loggers.get(e)||new a({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),s=this._loggedMessages[e].get(n);if("once"===t&&null!=s||"oncePerTick"===t&&s&&s>=a._tickCounter)return;this._loggedMessages[e].set(n,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",i)}_matchLevel(e){const t=n.A.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then(()=>{a._tickCounter++,a._tickCounterScheduled=!1}))}}function i(e,t,...r){console[e](`[${t}]`,...r)}},61322:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(70333),o=r(49186),s=r(37955),a=r(36563),i=r(97768),c=r(74887),l=r(52268);const f={statsWorker:()=>Promise.all([r.e(6285),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8902),r.e(1882),r.e(2603),r.e(4560),r.e(397),r.e(5975),r.e(8991)]).then(r.bind(r,33009)),geometryEngineWorker:()=>Promise.all([r.e(9930),r.e(8887)]).then(r.bind(r,68887)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8902),r.e(1882),r.e(1123)]).then(r.bind(r,1123)),CSVSourceWorker:()=>Promise.all([r.e(6285),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(3733),r.e(752)]).then(r.bind(r,40752)),EdgeProcessingWorker:()=>Promise.all([r.e(3030),r.e(9899),r.e(7346)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(3030),r.e(1784)]).then(r.bind(r,38419)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(6285),r.e(1956),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(3733),r.e(4522),r.e(1210)]).then(r.bind(r,12543)),GeoJSONSourceWorker:()=>Promise.all([r.e(6285),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(3733),r.e(1202)]).then(r.bind(r,71202)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),MemorySourceWorker:()=>Promise.all([r.e(6285),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(3733),r.e(9432)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8902),r.e(1882),r.e(8140)]).then(r.bind(r,39078)),FeaturePipelineWorker:()=>Promise.all([r.e(6285),r.e(5715),r.e(5323),r.e(1956),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(9949),r.e(4522),r.e(9423),r.e(9936),r.e(8487)]).then(r.bind(r,38487)),PointCloudWorker:()=>Promise.all([r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(2603),r.e(2944),r.e(7984),r.e(4056)]).then(r.bind(r,34142)),RasterWorker:()=>Promise.all([r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(1427),r.e(6049),r.e(7848)]).then(r.bind(r,30139)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(5122),r.e(2603),r.e(3030),r.e(7937),r.e(9899),r.e(8263)]).then(r.bind(r,27444)),SceneLayerWorker:()=>Promise.all([r.e(6285),r.e(9953),r.e(1956),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(5975),r.e(7937),r.e(2944),r.e(6875),r.e(4026)]).then(r.bind(r,36233)),WFSSourceWorker:()=>Promise.all([r.e(6285),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(3733),r.e(3771)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8902),r.e(9949),r.e(5897),r.e(9423),r.e(3379)]).then(r.bind(r,11764)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(9234)]).then(r.bind(r,79234)),Feature3DPipelineWorker:()=>Promise.all([r.e(6285),r.e(8948),r.e(3910),r.e(5715),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(3030),r.e(7937),r.e(2944),r.e(655),r.e(9899),r.e(432),r.e(9844)]).then(r.bind(r,66357)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(r.bind(r,95902))};var d=r(8341),u=r(18357);const{CLOSE:b,ABORT:h,INVOKE:p,RESPONSE:m,OPEN_PORT:g,ON:y}=d.Go;class w{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===d.Go.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static{this.kernelInfo={buildDate:u.$,fullVersion:n.ol,revision:u.u}}static{this.clients=new Map}static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const o=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=o),v.clients.set(o,n),r.port2}static loadWorker(e){const t=f[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new w(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:b}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,s=r?.transferList;if(!this._port)return Promise.reject(new o.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const a=(0,d.Jc)();return new Promise((r,o)=>{if((0,c.G4)(n))return this._processWork(),void o((0,c.NK)());const l=(0,c.u7)(n,()=>{const e=this._outJobs.get(a);e&&(this._outJobs.delete(a),this._processWork(),(0,i.xt)(e.abortHandle),this._post({type:h,jobId:a}),o((0,c.NK)()))}),f={resolve:r,reject:o,abortHandle:l,debugInfo:e};this._outJobs.set(a,f),this._post({type:p,jobId:a,methodName:e,abortable:null!=n},t,s)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:d.Go.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,a.hA)(()=>{r.port1.postMessage({type:d.Go.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:g,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:o}=e;this.apply(t,r,n).then(e=>o.resolve(e)).catch(e=>o.reject(e))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,i.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null!=this._schedule?this._schedule(()=>this._processMessage(e,!0)):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,d.VI)(e);if(r)switch(r.type){case m:this._onResponseMessage(r);break;case p:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case h:this._onAbortMessage(r);break;case b:this._onCloseMessage();break;case g:this._onOpenPortMessage(r);break;case y:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:o}=e,s=o?new AbortController:null,a=this._inJobs;let i,l=this._client,f=l[t];try{if(!f&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:s?s.signal:null}),i=f.apply(l,n)}catch(e){return void this._post({type:m,jobId:r,error:(0,d.mF)(e)})}(0,c.$X)(i)?(a.set(r,{controller:s,promise:i}),i.then(e=>{a.has(r)&&(a.delete(r),this._post({type:m,jobId:r},e))},e=>{a.has(r)&&(a.delete(r),(0,c.zf)(e)||this._post({type:m,jobId:r,error:(0,d.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:m,jobId:r},i)}_onOpenPortMessage(e){new v(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,s.on)(e.port,"message",e=>{const o=(0,d.VI)(e);o?.type===d.Go.CLOSE&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.xt)(a.abortHandle),r?a.reject(o.A.fromJSON(JSON.parse(r))):a.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},70333:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>c,Y3:()=>l,id:()=>a,ol:()=>i,rE:()=>s});var n=r(44208),o=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const s="4.34";let a,i=s;function c(e){a=e}function l(e){const t=a?.findCredential(e);return t?.token?(0,o.rs)(e,"token",t.token):e}i="4.34.0-next.22",(0,n.A)("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),(0,n.A)("host-webworker")},74887:(e,t,r)=>{"use strict";r.d(t,{Pl:()=>k,Ol:()=>O,nA:()=>_,NK:()=>l,Tw:()=>x,sg:()=>S,Lx:()=>v,QZ:()=>w,zf:()=>y,G4:()=>u,$X:()=>P,u7:()=>p,NY:()=>m,hn:()=>j,Mq:()=>d,QP:()=>b,Te:()=>f,jH:()=>h,NO:()=>M,z7:()=>A,qr:()=>g});var n=r(36563);const o=(s=globalThis,{setTimeout:(e,t)=>{const r=s.setTimeout(e,t);return(0,n.hA)(()=>s.clearTimeout(r))}});var s,a=r(49186),i=r(37955),c=(r(53966),r(97768));function l(e="Aborted"){return new a.A("AbortError",e)}function f(e,t="Aborted"){if(u(e))throw l(t)}function d(e){return e instanceof AbortSignal?e:e?.signal??void 0}function u(e){const t=d(e);return null!=t&&t.aborted}function b(e){if(y(e))throw e}function h(e){if(!y(e))throw e}function p(e,t){const r=d(e);if(null!=r){if(!r.aborted)return(0,i.Oo)(r,"abort",()=>t());t()}}function m(e,t){const r=d(e);if(null!=r)return f(r),(0,i.Oo)(r,"abort",()=>t(l()))}function g(e,t){return null==d(t)?e:new Promise((r,n)=>{let o=p(t,()=>n(l()));const s=()=>{o=(0,c.xt)(o)};e.then(s,s),e.then(r,n)})}function y(e){return"AbortError"===e?.name}async function w(e){try{return await e}catch(e){if(!y(e))throw e;return}}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map(t=>e[t]),n=await v(r),o={};return t.map((e,t)=>o[e]=n[t]),o}const t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function _(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function O(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function k(e,t=void 0,r){const n=new AbortController;return p(r,()=>n.abort()),new Promise((r,o)=>{let s=setTimeout(()=>{s=0,r(t)},e);p(n,()=>{s&&(clearTimeout(s),o(l()))})})}function P(e){return e&&"function"==typeof e.then}function A(e){return P(e)?e:Promise.resolve(e)}function S(e,t=-1){let r,n,o,s,a=null;const i=(...c)=>{if(r){n=c,s&&s.reject(l()),s=x();const e=s.promise;if(a){const e=a;a=null,e.abort()}return e}if(o=s||x(),s=null,t>0){const n=new AbortController;r=A(e(...c,n.signal));const o=r;k(t).then(()=>{r===o&&(s?n.abort():a=n)})}else r=1,r=A(e(...c));const f=()=>{const e=n;n=o=r=a=null,null!=e&&i(...e)},d=r,u=o;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return i}function x(){let e,t;const r=new Promise((r,n)=>{e=r,t=n}),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>o.setTimeout(()=>n.reject(t),e),n.promise=r,n}function j(e,t){t.then(e.resolve,e.reject)}async function M(e){await Promise.resolve(),f(e)}},79907:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(93637);class o{constructor(e,t,r=void 0){this.name=e,this.details=r,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}(t,r))??""}toString(){return"["+this.name+"]: "+this.message}}},84952:(e,t,r)=>{"use strict";r.d(t,{$1:()=>Z,$z:()=>K,An:()=>x,BQ:()=>se,DB:()=>X,FL:()=>F,FX:()=>J,Hg:()=>re,Il:()=>be,Ln:()=>ge,N9:()=>oe,S8:()=>D,T1:()=>pe,UC:()=>he,V1:()=>H,Xq:()=>A,Zo:()=>Oe,_0:()=>Pe,a6:()=>_e,b8:()=>L,e7:()=>ue,fj:()=>G,gd:()=>S,hf:()=>me,lJ:()=>Y,lM:()=>ce,m3:()=>ie,nM:()=>de,oP:()=>Q,oy:()=>$,r$:()=>te,rs:()=>ve,s0:()=>_,s2:()=>B,sC:()=>q,s_:()=>C,tk:()=>ne,ut:()=>W,w8:()=>V,x0:()=>M,xw:()=>ke,yM:()=>T,zf:()=>j,zi:()=>we,zs:()=>R});var n=r(92602),o=r(4576),s=r(49186),a=r(53966),i=r(12195),c=r(39131),l=r(26306);const f=()=>a.A.getLogger("esri.core.urlUtils"),d=n.A.request,u="esri/config: esriConfig.request.proxyUrl is not set.",b=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,h=/^\s*http:/i,p=/^\s*https:/i,m=/^\s*file:/i,g=/:\d+$/,y=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,w=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),v=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class _{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(w);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(v),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const O={};let k=new _(n.A.applicationUrl);let P=function(){const e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null!=k.port?`:${k.port}`:""}${t}`}();const A=()=>k,S=()=>P;function x(e){if(!e)return null;const t={path:null,query:null},r=new _(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=j(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function j(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function M(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",s=t?.[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map(e=>(0,i.W)(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e)).join("&"):(0,i.W)(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function C(e=!1){let t,r=d.proxyUrl;if("string"==typeof e){t=ie(e);const n=R(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw f().warn(u),new s.A("urlUtils:proxy-not-set",u);return t&&le()&&(r=ce(r)),x(r)}function T(e,t=!1){const r=R(e);let n,o;if(r){const e=I(r.proxyUrl);n=e.path,o=e.query?j(e.query):null}else if(t){const t=C(e);n=t.path,o=t.query}if(n){const t=x(e);e=n+"?"+t.path;const r=M({...o,...t.query});r&&(e=`${e}?${r}`)}return e}const E={path:"",query:""};function I(e){const t=e.indexOf("?");return-1!==t?(E.path=e.slice(0,t),E.query=e.slice(t+1)):(E.path=e,E.query=null),E}function N(e){return(e=fe(e=be(e=I(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:N(e.urlPrefix)},r=d.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function R(e){const t=d.proxyRules,r=N(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function L(e,t){if(!e||!t)return!1;e=U(e),t=U(t);const r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&J(e,t,!0)}function W(e,t){return e=U(e),t=U(t),fe(e)===fe(t)}function U(e){const t=(e=D(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=d.interceptors){const r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(const e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function J(e,t,r=!1){if(!e||!t)return!1;const n=ye(e),o=ye(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function F(e){if("string"==typeof e){if(!Q(e))return!0;e=ye(e)}if(J(e,k))return!0;const t=d.trustedServers||[];for(let r=0;r<t.length;r++){const n=z(t[r]);for(let t=0;t<n.length;t++)if(J(e,n[t]))return!0}return!1}function z(e){return O[e]||(ae(e)||se(e)?O[e]=[new _(B(e))]:O[e]=[new _(`http://${e}`),new _(`https://${e}`)]),O[e]}function B(e,t=P,r){return se(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===K(e).slice(2)?`http:${e}`:`https:${e}`:ae(e)?e:G("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function H(e,t=P,r){if(null==e||!Q(e))return e;const n=D(e),o=n.toLowerCase(),s=D(t).toLowerCase().replace(/\/+$/,""),a=r?D(r).toLowerCase().replace(/\/+$/,""):null;if(a&&0!==s.indexOf(a))return e;const i=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=i(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=i(o,"/",c+1);if(-1===l)return e;if(a&&l<a.length)return e;e=n.slice(l);const f=s.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function D(e){return function(e){const t=d.httpsDomains;if(!function(e){return null!=e&&h.test(e)||"http"===k.scheme&&se(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),g.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&n===k.authority&&!y.test(e)||(le()&&n===k.authority||t&&t.some(e=>n===e||n.endsWith(`.${e}`))||le()&&!R(e))&&(e=ce(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=I(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=B(e=e.trim()))))}function G(...e){const t=e.filter(o.Ru);if(!t?.length)return;const r=[];if(Q(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&m.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function K(e,t=!1){if(null==e||V(e)||X(e))return null;let r=e.indexOf("://");if(-1===r&&se(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=fe(e,!0)),e}function Q(e){return se(e)||ae(e)}function V(e){return null!=e&&"blob:"===e.slice(0,5)}function X(e){return null!=e&&"data:"===e.slice(0,5)}function Y(e){const t=te(e);return t?.isBase64?(0,l.M)(t.data):null}function Z(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const ee=/^data:(.*?)(;base64)?,(.*)$/;function te(e){const t=e.match(ee);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function re(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ne(e){return(await fetch(e)).blob()}function oe(e){const t=Y(e);if(!t)return null;const r=te(e);return new Blob([t],{type:r.mediaType})}function se(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ae(e){return null!=e&&b.test(e)}function ie(e){return null!=e&&p.test(e)||"https"===k.scheme&&se(e)}function ce(e){return se(e)?`https:${e}`:e.replace(h,"https:")}function le(){return"https"===k.scheme}function fe(e,t=!1){return se(e)?e.slice(2):(e=e.replace(b,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function de(e){let t=0;if(Q(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function ue(e,t){if(!e)return"";const r=x(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;const o=new RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(o,"")}function be(e){return e.endsWith("/")?e:`${e}/`}function he(e){return e.replace(/\/+$/,"")}function pe(e,t,r){if(!(t&&r&&e&&Q(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),a=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,a).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(a)}`}function me(e,t){const r=new URL(e);return r.host=t,r.port&&!g.test(t)&&(r.port=""),r.toString()}function ge(e){return new URL(e).host}function ye(e){return"string"==typeof e?new _(B(e)):(e.scheme||(e.scheme=k.scheme),e)}function we(e,t){const r=x(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ve(e,t,r){const n=x(e),o=n.query||{};return o[t]=String(r),`${n.path}?${M(o)}`}function _e(e,t){if(!t)return e;const r=x(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const o=M(n);return o?`${r.path}?${o}`:r.path}function Oe(e){if(null==e)return null;const t=e.match(Ae);return t?t[2]:null}function ke(e){if(null==e)return null;const t=e.match(Ae);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function Pe(e){return"string"==typeof e?te(e)??{data:e}:new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(te(n.result)),n.onerror=e=>r(e)})}const Ae=/([^.]*)\.([^/]*)$/},87811:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}},92602:(e,t,r)=>{"use strict";r.d(t,{A:()=>o}),r(44208);var n=r(93637);const o={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.$N)(o,globalThis.esriConfig,!0),delete o.has),!o.assetsPath){{const e="4.34.0-next.22";o.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}o.defaultAssetsPath=o.assetsPath}},93637:(e,t,r)=>{"use strict";r.d(t,{$N:()=>o,i8:()=>i,sM:()=>a,wc:()=>s});var n=r(4718);function o(e,t,r=!1){return l(e,t,r)}function s(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function a(e,t,r){const n=e.split("."),o=n.pop(),s=c(n,!0,r);s&&o&&(s[o]=t)}function i(e,t){if(null==e&&null==t)return!1;if(null==e)return!0;if(null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){const r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(i(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const r in e)if(i(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce((e,o)=>{if("__proto__"===o)return e;let s=e[o],a=t[o];return s===a?e:void 0===s?(e[o]=(0,n.o8)(a),e):(Array.isArray(a)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.slice():e[o]=[s]:e[o]=[],a&&(Array.isArray(a)||(a=[a]),r?a.forEach(e=>{s.includes(e)||s.push(e)}):e[o]=a.slice())):a&&"object"==typeof a?e[o]=l(s,a,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=a),e)},e||{}):e}},97768:(e,t,r)=>{"use strict";function n(e,t){if(null==e)throw new Error(t??"value is None")}function o(e){return e?.destroy(),null}function s(e){return e?.dispose(),null}function a(e){return e?.remove(),null}function i(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>i,Gz:()=>c,Lw:()=>n,Pb:()=>f,WD:()=>s,pR:()=>o,xt:()=>a})}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"chunks/"+{13:"55e9b02d70812f7cdac2",36:"12723e79b996969e304e",146:"dc6538a2d5a1e60d0209",177:"e5a9c37de44508e9733b",191:"09b77f82c22530b44daa",217:"2732d965c623a04e199c",224:"30776f451c778fa6e043",309:"c2faddd504c2355ac46e",349:"971c956de1f8dd230d0f",362:"a6a7279b09d7962147ec",364:"d683a97620cd606fa019",369:"af00081b78fc30ac556c",382:"b0e52c3775f05aaf7ff6",390:"41f487713c6278d389a1",397:"a0abe3e54c8a20cafeb3",427:"e756cef14d9750652ef6",432:"f43110391f124b8a179c",547:"1cf0fae3f2e848a2a738",563:"7d0c4e1518a6a63a3f87",573:"0c784cd0187822a18f3c",591:"9a23e2dbfe6038ec8a02",603:"ef7fdd5306588c4b4ad2",624:"fdd48334ff0ec2fa484b",647:"eef369952f65378a20f5",655:"6bf43bc3714d7b3878fa",681:"bd7d19ba0c7d9143a455",692:"cefb063f93c4310a3888",708:"5ea03f53d4d64d9e7cae",752:"35aef6fd08b50c4d7dd3",788:"9991bd3c7991bffd8260",807:"48cedef1c926d11164b7",812:"c741e46d6805b65122fa",820:"3c5f07ebe1b09dcdc958",847:"df2012fad20dac17ca33",980:"e6bf5f1345e5ff8614bc",1088:"fdfb5d601d318d6a49f9",1123:"c5986ebe1cad60e730e6",1202:"d2986ddd390227feac85",1204:"9f459805a6698708830a",1210:"8000e2e80fff7752e761",1214:"9f91d519da67714f915f",1253:"6bb1ecaa0afc2c7de79e",1273:"0f4b1a426bf21e99fdb5",1277:"341f514ee342db827653",1312:"6614c642c97d4041bc0e",1384:"57a579b0cbc1bcf0d903",1414:"95a4da3150ad8e8e36d8",1419:"8ea34878a1ef24b4ded3",1427:"ad3871f497ecea1a08c9",1598:"29e2b105f55adafc3a6d",1728:"7a08d6d8e5e430658f3a",1737:"6136bf09950adc46bc33",1784:"6ca764b4baadef5c1515",1867:"30d7d2c7d6e9e5e2ecb9",1878:"65fd971d0574d69cbc26",1882:"4802501ff51b8b475761",1956:"fd0eecec91f3d1f3c1ac",2029:"e9a9174c4d1a0a9effb6",2042:"2a03cdf31a920c86d4b5",2083:"5e805c9e9012dd39ec86",2144:"bffaf1f20f18c75fad4e",2158:"b743847f928edd572e23",2165:"c9c109d43a1e5160955d",2186:"36fe6b8228e622407ec2",2189:"cd64181298d82c8d0e9d",2282:"4b89d5b9e35bf79b321e",2288:"7a5a1d01a89383faf4fd",2343:"7b9178c3826f9ef52a00",2372:"21d7f42c2033de987b97",2390:"a34a14fd989dbbd3c2d0",2503:"49085a0b3a74e158f32f",2558:"bc8a49e0172fde44f274",2593:"94d75f3b215e3bd1b4d7",2603:"b4512d62b6cb26fc6b25",2657:"2841888fdbc2770e90c8",2731:"6b0baecbd35d26393dcf",2741:"97324f030738fc0d456b",2763:"f3d5d92e0aefc2593208",2765:"916691122d7fb38497d6",2893:"6f9f32b7de59b4d9cd97",2944:"3fcd73ba832cb53d3a07",2958:"8f3ce10eacb5bc14a641",2980:"ce291074b0cbebcaf27b",3029:"f050ab9d100012b77bb9",3030:"f3e3c2340452c1d60c95",3054:"0a72894cc936e23ea7c1",3091:"976dd80e318266ab4c2c",3103:"52bd7e64e350df5e6623",3116:"c3213b487c11076985af",3169:"d9d9180689bcf71af00f",3186:"5b276962c46c57155166",3202:"1cc30073f8200b67cff6",3236:"ca62e7ec102a1bb879dc",3299:"63cc4647b7775ff8aedf",3331:"fe9cf96f2cb2063b851f",3359:"3ed7d19bbbad6c4a1cba",3367:"2a6df3f0a166eb886554",3379:"3793f282ddaccd3465f2",3390:"c25e28aab5bee30722cb",3447:"c4f8da6c238eb5e91f91",3492:"82a390be9500b629f6bc",3513:"b98279213f45a0c27600",3543:"d6241c7736d4a86f201f",3561:"f03635ddf56e2ef90e4c",3562:"084236ca316aad980192",3600:"843b6029d4c13115e1ac",3610:"b4bb461955a4c2bce072",3633:"55c903d93b15f4e723d4",3637:"9c40f9ced07d7837e952",3642:"e0a5b499b3ae38c21278",3651:"8eea6251aa09725e654e",3661:"4cc8351c2953f5f3bc2d",3666:"755e2ecd20b6bd1909be",3669:"0202c2ac73354e3970b2",3733:"04c17957c15234ca0321",3747:"fa9658dbfb921f9c13af",3771:"4c2f3e43992a918e4c2d",3813:"0b484224a92b52c34330",3910:"395f589b0929e37ba674",3937:"3629d5e1a8e9bece0ed8",4026:"e2cb295104ed2f8cd2ff",4056:"6c33ecffbc783cb8f944",4097:"f4432ed034c6f139a9c8",4111:"35d238a5a6501f89bed7",4123:"dd9be173cddc16a354ed",4167:"9049c81445cc044286f1",4304:"02dc6e31b1244e5bb785",4383:"56569d0c2cf5c5167651",4399:"12a16f0fd77371d61c2a",4496:"5253cca467fe9bc0a210",4522:"4f691962b96e78cbe1a9",4560:"5bfcb3d87380e7f85b08",4575:"0c33f3f831c865f48a02",4594:"6ce4327f63e6eb92bba8",4654:"666afe669866c44830bd",4697:"919d2fd7ebc0c840a759",4753:"86d6007c45f2aa643ac8",4784:"875c6293767602763bc0",4796:"ca9dfe053505a517bbbb",4813:"d9f206e7ac1fad940be7",4815:"8e91119c5f3d196a26af",4929:"be1f3cac908c28c64401",4990:"e1a20ba7d6279f59adc0",4996:"4f14e78d0560050c1a81",5011:"6a0fbc54638f7de138c1",5122:"8bf04be4052bf148777a",5137:"774cbf14c74504458a6f",5141:"15064c3b21b325d5c2f6",5165:"16a78f5a82f5ca163816",5180:"6648e68f00d28e12bcf9",5257:"8644c54b4f00c53bab80",5323:"c94cc026c4ed330408fb",5335:"58e74681ddef30ba9cb6",5356:"c64fa94cba71ba2794e2",5367:"d48af7bc06b4bb176534",5404:"4cea5170939c8d363ef7",5552:"649caffe8f5dbaad0d7b",5605:"573a8393bec916dcf16f",5613:"146520d263b910b5bdc7",5655:"dca633ae3bfd4a3f9bb3",5666:"1de633f4866cc0fb08df",5715:"0867aa688fa8938906da",5740:"c0517d02c99128fe603f",5751:"576e408fb0834f3948e8",5804:"6bb5158de43c4b59107f",5874:"a9e17cd93521a7579d02",5897:"3d020f2e454c1e4babee",5902:"1d9e44bdd129cc682ae5",5913:"d875a743e23a0d6b5490",5924:"67c5f1112a7c65e9eeff",5943:"8b19fe829a9dc26fb3fe",5962:"e49a135a2933306a6105",5975:"fad577be78560ed6f4f8",6049:"6782114a752b9cc59168",6052:"4b68783e8d1415d0a171",6061:"63b8193ad90b2ebe6884",6131:"fd8f4eabb8bbc593dd9c",6160:"cc0cb4906e4419f7c4a9",6183:"ba5b24beebeb703b5919",6187:"388873be1dca91ccbc9d",6222:"b57c0ef7bc57e3c91257",6285:"c5c72c36c9bddcb78916",6298:"242b216d61940aebe8e1",6339:"a9f16323666042a9d47f",6343:"f98689562017583f73ee",6424:"fb5e2b1ced03eef28e96",6468:"aec00f8e356fc7dda399",6650:"7cfba5cec425221962e8",6737:"81006d9eed65bbb82962",6742:"9ae18a17f62d91167202",6791:"496e02cfe3d84010f675",6830:"bbca1b85656d9ba71e4c",6875:"4405c765786c895365fb",6903:"53781ccca16e53d4a8c3",7060:"ae6eed26fc932bc08356",7074:"94c5a2cb1d0559274345",7087:"d9a23fb0c6c936d5e8ec",7136:"06bd58c219678315cf5c",7243:"d9f311ac82ae8dabff8f",7301:"2e6ae1ca07df442fc966",7330:"873008572c1f21cea122",7346:"1d75cb1747ffb7b8b050",7360:"0e8181e7fc1386d08ffc",7367:"ce48207997af9605b0f7",7444:"d58563de1392d991e521",7546:"4bce53df4074f4ae0de5",7559:"451555af283b32a10fef",7561:"fd259dd8e3e54fe5ede8",7656:"89d91ce2f566dd3f57f7",7677:"fedbf639a0788417a70f",7721:"d45383d76ba99718b6d9",7817:"57efabab9b47e15ec30b",7836:"d1aeb9fe9eb573beefcc",7848:"0ba6177ba118a0f032e2",7883:"66affa0ee7fda288df11",7937:"30fae1f066dc3cd781f1",7982:"d1b363c418a67b087306",7984:"7051bcc178eb512819f6",8010:"a0dfd99dc8f4eac0b7ae",8018:"1c06a8badb547c47b976",8039:"ce7155ae63e7bb74be00",8096:"e06096e532a8dbb31491",8098:"d7056ce482aca45dadbd",8125:"9f18392933c06f1d63b6",8140:"0becc660e8ee6c5d02b5",8189:"fe73e74e3e4278aedcc3",8219:"54a49a25845897a15ab1",8241:"a22e5b2874647fe0d31a",8256:"49dce142ad1ea4c01d00",8263:"92ad9098006568358550",8329:"40c1d65039c8f1d6afa0",8368:"6a14af239b400b0976c5",8373:"cdabea4718a7e7d34cb8",8392:"7ee50f75914d8d650af4",8407:"e7f5ff5318c144baa4e9",8411:"e553383e9791bb10249f",8446:"accff253af360c34e8a8",8487:"cab1a1067f44ce374673",8506:"acb9c166259872828646",8542:"00eef04fd026adaf0df8",8551:"90145d49a0cec902435c",8628:"856739d12ee9d7154683",8692:"dfa7976085f7408a366c",8714:"809a9055da28c8fa58b0",8812:"920b4def081c78c0d586",8887:"213e82a7e3fa5b253ec1",8902:"c11efbf098866c927607",8916:"8fa6c938e8dc7bbfaeb7",8948:"080c79d6caca3b6a2db2",8988:"6b4e66eb0cb37f293cf8",8991:"f42155b7a4e6c5e80757",9e3:"26c5675093820b485106",9013:"a5a67216e0d0cee95a55",9041:"8feed8ecfc4878ed2ea3",9062:"f532ff3b4b956f2d92e3",9141:"edead1a123860cc74b1b",9159:"05e80991c0c817ee59b5",9186:"5ce62d9fff80d014d186",9187:"f2b63597ae956db74eb3",9202:"a2d7263f6941b2df4db2",9234:"f328c933bc0367938d70",9239:"43878c01706121f410c6",9263:"8c62cefa7ead4a1997f4",9265:"7000d9158da929a16071",9321:"24ff9dad3fb64ab54970",9331:"4a720f2ed4eb96c3bd1c",9384:"88cbaa91c495d86f4bb0",9402:"f912fca8c875eb1a27f2",9423:"a8a5cdd70db90273a3fc",9432:"41d07f5a550f242d964e",9506:"1afe05047c1b5942ccbd",9547:"d7d5f7fea2bf77f43754",9588:"a69e885336eb5d2729fd",9695:"a7a5b89c2bb69f3af59c",9700:"db298b292a4e43cba72d",9838:"cb3b88959b2f048e54a5",9844:"19ae76283a0cb0fe4dee",9867:"aba520714efc01bead36",9875:"32756905bcf11699b3f7",9899:"66757fc16316a5c50e1e",9926:"746c78e1c84f9612d69b",9930:"d8a0eb143b2079d7b6b7",9933:"24fe862b607ec927e07f",9936:"585031826294d5130813",9940:"79c4f10da8360ee60cd2",9945:"9c510df592befb9ff892",9949:"e6a97f9b6f7be8076f85",9953:"0cfded1acf92f89a13cb"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={76:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,s,a]=t;for(var i in s)r.o(s,i)&&(r.m[i]=s[i]);for(a&&a(r);o.length;)e[o.pop()]=1;n(t)}})(),r(2131);var n=r(61322);RemoteClient=n})();
|
|
1
|
+
var RemoteClient;(()=>{var e={799:(e,t,r)=>{"use strict";r.d(t,{Cj:()=>i,HC:()=>a,Wm:()=>c,_e:()=>f});var n=r(93637);const o=/\{([^}]+)\}/g;function s(e){return e??""}function a(e,t){return t?e.replaceAll(o,"object"==typeof t?(e,r)=>s((0,n.wc)(r,t)):(e,r)=>s(t(r))):e}function i(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,e=>t?.includes(e)?e:`\\${e}`)}function c(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}let l;function f(e){return l??=new DOMParser,l.parseFromString(e||"","text/html").body.innerText||""}},2131:(e,t,r)=>{r.p=self.esriConfig.assetsPath+"/esri/core/workers/"},4576:(e,t,r)=>{"use strict";r.d(t,{MJ:()=>s,Mo:()=>h,Ru:()=>y,TF:()=>g,Xy:()=>d,aI:()=>a,iv:()=>i,k4:()=>m,mW:()=>b,qh:()=>f,vW:()=>c});var n=r(21818),o=r(87811);function s(e,t,r,n,o,s,a){if(null==e&&null==n)return!0;t=Math.max(0,t),o=Math.max(0,o),r=Math.max(0,r<0?(e?.length??0)+r:r),s=Math.max(0,s<0?(n?.length??0)+s:s);const i=r-t;if(null==e||null==n||i!==s-o)return!1;if(a){for(let r=0;r<i;r++)if(!a(e[t+r],n[o+r]))return!1}else for(let r=0;r<i;r++)if(e[t+r]!==n[o+r])return!1;return!0}function a(e,t,r){return s(e,0,e?.length??0,t,0,t?.length??0,r)}function i(e,t,r){let n,o;return r?(n=t.filter(t=>!e.some(e=>r(e,t))),o=e.filter(e=>!t.some(t=>r(t,e)))):(n=t.filter(t=>!e.includes(t)),o=e.filter(e=>!t.includes(e))),{added:n,removed:o}}class c{constructor(){this.last=0}}const l=new c;function f(e,t,r,n){n=n||l;const o=Math.max(0,n.last-10);for(let s=o;s<r;++s)if(e[s]===t)return n.last=s,s;const s=Math.min(o,r);for(let r=0;r<s;++r)if(e[r]===t)return n.last=r,r;return-1}function d(e,t,r,o){const s=r??e.length,a=f(e,(0,n.zI)(t),s,o);if(-1!==a)return e[a]=e[s-1],null==r&&e.pop(),t}const u=new Set;function b(e,t,r=e.length,n=t.length,o,s){if(0===n||0===r)return r;u.clear();for(let e=0;e<n;++e)u.add(t[e]);o=o||l;const a=Math.max(0,o.last-10);for(let t=a;t<r;++t)if(u.has(e[t])&&(s?.push(e[t]),u.delete(e[t]),e[t]=e[r-1],--r,--t,0===u.size||0===r))return u.clear(),r;for(let t=0;t<a;++t)if(u.has(e[t])&&(s?.push(e[t]),u.delete(e[t]),e[t]=e[r-1],--r,--t,0===u.size||0===r))return u.clear(),r;return u.clear(),r}function h(e){return e?(p.seed=e,()=>p.getFloat()):Math.random}const p=new o.A;function m(e,t){if(!e)return e;const r=h(t);for(let t=e.length-1;t>0;t--){const n=Math.floor(r()*(t+1)),o=e[t];e[t]=e[n],e[n]=o}return e}function g(e,t){const r=e.indexOf(t);return-1!==r?(e.splice(r,1),t):null}function y(e,t){return null!=e}},4718:(e,t,r)=>{"use strict";r.d(t,{Nb:()=>c,TU:()=>i,aI:()=>b,gh:()=>h,o8:()=>a,oy:()=>s});var n=r(4576),o=r(34275);function s(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]instanceof Object&&s(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&void 0===e[r]&&delete e[r];return e}function a(e){if(!e||"object"!=typeof e||"function"==typeof e)return e;const t=u(e);if(null!=t)return t;if(c(e))return e.clone();if(l(e))return e.map(a);if(f(e))throw new Error("Trying to clone an unclonable Accessor instance");const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=a(e[t]);return r}function i(e,t){if(!e||"object"!=typeof e||"function"==typeof e||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;const r=u(e);if(null!=r)return r;if(l(e)){let r=!0;const n=e.map(e=>{const n=i(e,t);return null!=e&&null==n&&(r=!1),n});return r?n:null}if(c(e))return e.clone(t);if(e instanceof File||e instanceof Blob)return e;if(f(e))return null;const n=new(0,Object.getPrototypeOf(e).constructor);for(const t of Object.getOwnPropertyNames(e)){const r=e[t],o=i(r);if(null!=r&&null==o)return null;n[t]=o}return n}function c(e){return"function"==typeof e.clone}function l(e){return"function"==typeof e.map&&"function"==typeof e.forEach}function f(e){return"function"==typeof e.notifyChange&&"function"==typeof e.watch}function d(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){if((0,o.dz)(e)||(0,o.mg)(e)||(0,o.UR)(e)||(0,o.IY)(e)||(0,o.jq)(e)||(0,o._G)(e)||(0,o.XJ)(e)||(0,o.vZ)(e)||(0,o.aI)(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){const t=new Map;for(const[r,n]of e)t.set(r,a(n));return t}if(e instanceof Set){const t=new Set;for(const r of e)t.add(a(r));return t}return null}function b(e,t){return e===t||"number"==typeof e&&isNaN(e)&&"number"==typeof t&&isNaN(t)||"function"==typeof e?.getTime&&"function"==typeof t?.getTime&&e.getTime()===t.getTime()||!1}function h(e,t){return e===t||(null==e||"string"==typeof e?e===t:"number"==typeof e?e===t||"number"==typeof t&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&(0,n.aI)(e,t):e instanceof Set?t instanceof Set&&function(e,t){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}(e,t):e instanceof Map?t instanceof Map&&function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e){const e=t.get(r);if(e!==n||void 0===e&&!t.has(r))return!1}return!0}(e,t):!!d(e)&&d(t)&&function(e,t){if(null===e||null===t)return!1;const r=Object.keys(e);if(null===t||Object.keys(t).length!==r.length)return!1;for(const n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}(e,t))}},8341:(e,t,r)=>{"use strict";r.d(t,{Go:()=>a,Jc:()=>l,T:()=>s,VI:()=>u,mF:()=>f,oV:()=>h,u1:()=>d});var n=r(44208),o=r(74887);const s="worker:port-closed";var a,i;(i=a||(a={}))[i.HANDSHAKE=0]="HANDSHAKE",i[i.OPEN=1]="OPEN",i[i.OPENED=2]="OPENED",i[i.RESPONSE=3]="RESPONSE",i[i.INVOKE=4]="INVOKE",i[i.ABORT=5]="ABORT",i[i.CLOSE=6]="CLOSE",i[i.OPEN_PORT=7]="OPEN_PORT",i[i.ON=8]="ON";let c=0;function l(){return c++}function f(e){return e?"string"==typeof e?JSON.stringify({name:"message",message:e}):e.toJSON?JSON.stringify(e):JSON.stringify({name:e.name,message:e.message,details:e.details||{stack:e.stack}}):null}function d(e,t,r,o){if(t.type===a.OPEN_PORT)return void e.postMessage(t,[t.port]);if(t.type!==a.INVOKE&&t.type!==a.RESPONSE)return void e.postMessage(t);let s;if(function(e){return e&&"object"==typeof e&&("result"in e||"transferList"in e)}(r)?(s=b(r.transferList),t.data=r.result):(s=b(o),t.data=r),s){if((0,n.A)("ff"))for(const r of s)if("byteLength"in r&&r.byteLength>267386880){const r="Worker call with large ArrayBuffer would crash Firefox";switch(t.type){case a.INVOKE:throw r;case a.RESPONSE:return void d(e,{type:a.RESPONSE,jobId:t.jobId,error:f(r)})}}e.postMessage(t,s)}else e.postMessage(t)}function u(e){if(!e)return null;const t=e.data;return t?"string"==typeof t?JSON.parse(t):t:null}function b(e){if(!e?.length)return null;if((0,n.A)("esri-workers-arraybuffer-transfer"))return e;const t=e.filter(e=>!function(e){return e instanceof ArrayBuffer||"ArrayBuffer"===e?.constructor?.name}(e));return t.length?t:null}async function h(e){try{return await e}catch(e){const t=e?.name===s;if(!(0,o.zf)(e)&&!t)throw e;return}}},12195:(e,t,r)=>{"use strict";function n(e){return e&&"object"==typeof e&&"toJSON"in e&&"function"==typeof e.toJSON}r.d(t,{W:()=>n})},18357:(e,t,r)=>{"use strict";r.d(t,{$:()=>n,u:()=>o});const n="20250624",o="bbc458d452dd1d67fe9b453d6566eb5a4d9bd351"},21818:(e,t,r)=>{"use strict";function n(e){}function o(e){return e}r.d(t,{Xb:()=>n,zI:()=>o}),r(44208)},26306:(e,t,r)=>{"use strict";function n(e){const t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r.buffer}function o(e){const t=new Uint8Array(e);let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}r.d(t,{M:()=>n,Y:()=>o})},34275:(e,t,r)=>{"use strict";function n(e){return e instanceof ArrayBuffer}function o(e){return"Int8Array"===e?.constructor?.name}function s(e){return"Uint8Array"===e?.constructor?.name}function a(e){return"Uint8ClampedArray"===e?.constructor?.name}function i(e){return"Int16Array"===e?.constructor?.name}function c(e){return"Uint16Array"===e?.constructor?.name}function l(e){return"Int32Array"===e?.constructor?.name}function f(e){return"Uint32Array"===e?.constructor?.name}function d(e){return"Float16Array"===e?.constructor?.name}function u(e){return"Float32Array"===e?.constructor?.name}function b(e){return"Float64Array"===e?.constructor?.name}function h(e){return"buffer"in e}r.d(t,{IY:()=>i,JI:()=>m,LW:()=>d,PI:()=>w,UR:()=>a,XJ:()=>f,_G:()=>l,a3:()=>y,aI:()=>b,dk:()=>g,dz:()=>o,h2:()=>v,iu:()=>h,jq:()=>c,mg:()=>s,mw:()=>n,vZ:()=>u,y9:()=>p}),r(44208);const p=1024;function m(e){return b(e)||u(e)||l(e)||i(e)||o(e)}function g(e){return b(e)||u(e)}function y(e){return b(e)?179769e303:d(e)?65504:u(e)?3402823e32:f(e)?4294967295:c(e)?65535:s(e)||a(e)?255:l(e)?2147483647:i(e)?32767:o(e)?127:256}const w=-32768,v=-2147483648},36563:(e,t,r)=>{"use strict";r.d(t,{Bf:()=>i,hA:()=>o,rE:()=>a,vE:()=>s});const n={remove:()=>{}};function o(e){return e?{remove(){e&&(e(),e=void 0)}}:n}function s(e){return o(()=>function(e){e.forEach(e=>e?.remove())}(e))}function a(e){return o(()=>e?.abort())}function i(e){return{[Symbol.dispose](){e.remove()}}}},37955:(e,t,r)=>{"use strict";r.d(t,{Oo:()=>i,on:()=>a,wb:()=>o});var n=r(36563);function o(e){return function(e){return null!=e&&"object"==typeof e&&"on"in e&&"function"==typeof e.on}(e)||s(e)}function s(e){return null!=e&&"object"==typeof e&&"addEventListener"in e&&"function"==typeof e.addEventListener}function a(e,t,r){if(!o(e))throw new TypeError("target is not a Evented or EventTarget object");return s(e)?function(e,t,r,o){if(Array.isArray(t)){const s=t.slice();for(const t of s)e.addEventListener(t,r,o);return(0,n.hA)(()=>{for(const t of s)e.removeEventListener(t,r,o)})}return e.addEventListener(t,r,o),(0,n.hA)(()=>e.removeEventListener(t,r,o))}(e,t,r):e.on(t,r)}function i(e,t,r){if(!o(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);const n=a(e,t,t=>{n.remove(),r.call(e,t)});return n}},39131:(e,t,r)=>{"use strict";r.d(t,{$E:()=>a,py:()=>s,qG:()=>i});const n=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/i,o={devext:{customBaseUrl:"mapsdevext.arcgis.com",portalHostname:"devext.arcgis.com"},qaext:{customBaseUrl:"mapsqa.arcgis.com",portalHostname:"qaext.arcgis.com"},www:{customBaseUrl:"maps.arcgis.com",portalHostname:"www.arcgis.com"}};function s(e){const t=e?.match(n);if(!t)return null;const[,r,s,a]=t;if(!r)return null;let i=null,c=null,l=null;const{devext:f,qaext:d,www:u}=o;if(s)if(i=r,a)switch(a.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qa":({customBaseUrl:c,portalHostname:l}=d);break;default:return null}else({customBaseUrl:c,portalHostname:l}=u);else switch(r.toLowerCase()){case"devext":({customBaseUrl:c,portalHostname:l}=f);break;case"qaext":({customBaseUrl:c,portalHostname:l}=d);break;case"www":({customBaseUrl:c,portalHostname:l}=u);break;default:return null}return{customBaseUrl:c,isPortal:!1,portalHostname:l,urlKey:i}}function a(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function i(e){const t=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}},44208:(e,t,r)=>{"use strict";let n;function o(e){return"function"==typeof n[e]?n[e]=n[e](globalThis):n[e]}r.d(t,{A:()=>o}),n=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},o.add=(e,t,r,s)=>{(s||void 0===n[e])&&(n[e]=t),r&&o(e)},o.cache=n,o.add("big-integer-warning-enabled",!0),o.add("esri-deprecation-warnings",!0),o.add("esri-tests-disable-screenshots",!1),o.add("esri-tests-use-full-window",!1),o.add("esri-tests-post-to-influx",!0),o.add("esri-cim-animations-enable-status","enabled"),o.add("esri-cim-animations-spotlight",!1),o.add("esri-cim-animations-freeze-time",!1),(()=>{o.add("host-webworker",void 0!==globalThis.WorkerGlobalScope&&self instanceof globalThis.WorkerGlobalScope);const e="undefined"!=typeof window&&"undefined"!=typeof location&&"undefined"!=typeof document&&window.location===location&&window.document===document;if(o.add("host-browser",e),o.add("host-node","object"==typeof globalThis.process&&globalThis.process.versions?.node&&globalThis.process.versions.v8),o.add("dom",e),o("host-browser")){const e=navigator,t=e.userAgent,r=e.appVersion,n=parseFloat(r);if(o.add("wp",parseFloat(t.split("Windows Phone")[1])||void 0),o.add("msapp",parseFloat(t.split("MSAppHost/")[1])||void 0),o.add("khtml",r.includes("Konqueror")?n:void 0),o.add("edge",parseFloat(t.split("Edge/")[1])||void 0),o.add("opr",parseFloat(t.split("OPR/")[1])||void 0),o.add("webkit",!o("wp")&&!o("edge")&&parseFloat(t.split("WebKit/")[1])||void 0),o.add("chrome",!o("edge")&&!o("opr")&&parseFloat(t.split("Chrome/")[1])||void 0),o.add("android",!o("wp")&&parseFloat(t.split("Android ")[1])||void 0),o.add("safari",!r.includes("Safari")||o("wp")||o("chrome")||o("android")||o("edge")||o("opr")?void 0:parseFloat(r.split("Version/")[1])),o.add("mac",r.includes("Macintosh")),!o("wp")&&/(iPhone|iPod|iPad)/.test(t)){const e=RegExp.$1.replace(/P/,"p"),r=/OS ([\d_]+)/.test(t)?RegExp.$1:"1",n=parseFloat(r.replace(/_/,".").replaceAll("_",""));o.add(e,n),o.add("ios",n)}o("webkit")||(!t.includes("Gecko")||o("wp")||o("khtml")||o("edge")||o.add("mozilla",n),o("mozilla")&&o.add("ff",parseFloat(t.split("Firefox/")[1]||t.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){const e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&o.add("esri-mobile",t),r&&o.add("esri-iPhone",r),o.add("esri-geolocation",!!navigator.geolocation)}o.add("esri-wasm","WebAssembly"in globalThis),o.add("esri-performance-mode-frames-between-render",20),o.add("esri-force-performance-mode",!1),o.add("esri-shared-array-buffer",()=>{const e="SharedArrayBuffer"in globalThis,t=!1===globalThis.crossOriginIsolated;return e&&!t}),o.add("wasm-simd",()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11]))),o.add("esri-atomics","Atomics"in globalThis),o.add("esri-workers","Worker"in globalThis),o.add("web-feat:cache","caches"in globalThis),o.add("esri-workers-arraybuffer-transfer",!o("safari")||Number(o("safari"))>=12),o.add("workers-pool-size",8),o.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),o.add("featurelayer-simplify-payload-size-factors",[1,1,4]),o.add("featurelayer-fast-triangulation-enabled",!0),o.add("featurelayer-animation-enabled",!0),o.add("featurelayer-snapshot-enabled",!0),o.add("featurelayer-snapshot-initial-tolerance",0),o.add("featurelayer-snapshot-point-min-threshold",8e4),o.add("featurelayer-snapshot-point-max-threshold",4e5),o.add("featurelayer-snapshot-multipoint-min-threshold",2e4),o.add("featurelayer-snapshot-multipoint-max-threshold",1e5),o.add("featurelayer-snapshot-polygon-min-threshold",1e3),o.add("featurelayer-snapshot-polygon-max-threshold",2e3),o.add("featurelayer-snapshot-polyline-min-threshold",1e3),o.add("featurelayer-snapshot-polyline-max-threshold",2e3),o.add("featurelayer-snapshot-max-vertex-count",25e4),o.add("featurelayer-snapshot-non-hosted-exceedslimit-enabled",!1),o.add("featurelayer-snapshot-concurrency",4),o.add("featurelayer-snapshot-coverage",.1),o.add("featurelayer-query-max-depth",4),o.add("featurelayer-query-pausing-enabled",!1),o.add("featurelayer-query-tile-concurrency",4),o.add("featurelayer-query-tile-max-features",6e5),o.add("featurelayer-advanced-symbols",!1),o.add("featurelayer-pbf",!0),o.add("featurelayer-pbf-statistics",!1),o.add("feature-layers-workers",!0),o.add("feature-polyline-generalization-factor",1),o.add("mapview-transitions-duration",200),o.add("mapview-essential-goto-duration",200),o.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),o.add("mapserver-pbf-version-support",10.81),o.add("mapservice-popup-identify-max-tolerance",20),o.add("request-queue-concurrency-hosted",16),o.add("request-queue-concurrency-non-hosted",4),o.add("curve-densification-coarse-segments",128),o.add("curve-densification-max-segments",2e3),o.add("curve-densification-min-segments",3),o.add("curve-densification-pixel-deviation",.5),o.add("view-readyState-waiting-delay",1e3),o.add("gradient-depth-bias",.01),o.add("gradient-depth-epsilon",1e-8),o.add("enable-feature:esri-compress-textures",!0),o("host-webworker")||o("host-browser")&&(o.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),o.add("esri-image-decode",()=>{if("decode"in new Image){const e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then(()=>{o.add("esri-image-decode",!0,!0,!0)}).catch(()=>{o.add("esri-image-decode",!1,!0,!0)})}return!1}),o.add("esri-url-encodes-apostrophe",()=>{const e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()},49186:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(4718),o=r(53966),s=r(79907);class a extends s.A{constructor(e,t,r){super(e,t,r)}toJSON(){if(null!=this.details)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,t)=>{if(t&&"object"==typeof t&&"function"==typeof t.toJSON)return t;try{return(0,n.o8)(t)}catch(e){return"[object]"}}))}}catch(e){throw o.A.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new a(e.name,e.message,e.details)}}a.prototype.type="error"},52268:(e,t,r)=>{"use strict";function n(e,t){return new Proxy({},{get:(r,n,o)=>(...r)=>{let o,s;const a=r[r.length-1];return function(e){return"object"==typeof e&&!Array.isArray(e)&&null!=e&&("signal"in e||"transferList"in e||0===Object.keys(e).length)}(a)&&(o=a.signal,s=a.transferList,r.pop()),e.apply(t?`${t}.${n.toString()}`:n.toString(),r,{transferList:s,signal:o})}})}r.d(t,{L:()=>n})},53966:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(92602),o=(r(44208),r(799));const s={info:0,warn:1,error:2,none:3};class a{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},null!=e.level&&(this.level=e.level),null!=e.writer&&(this.writer=e.writer),this._module=e.module,a._loggers.set(this.module,this);const t=this.module.lastIndexOf(".");-1!==t&&(this._parent=a.getLogger(this.module.slice(0,t)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e="string"!=typeof e?e.declaredClass:e,a._loggers.get(e)||new a({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,t,...r){if(this._matchLevel(e)){if("always"!==t&&!a._throttlingDisabled){const n=function(...e){return(0,o.Wm)(JSON.stringify(e,(e,t)=>"object"!=typeof t||Array.isArray(t)?t:"[Object]"))}(r),s=this._loggedMessages[e].get(n);if("once"===t&&null!=s||"oncePerTick"===t&&s&&s>=a._tickCounter)return;this._loggedMessages[e].set(n,a._tickCounter),a._scheduleTickCounterIncrement()}for(const t of n.A.log.interceptors)if(t(e,this.module,...r))return;this._inheritedWriter()(e,this.module,...r)}}_parentWithMember(e,t){let r=this;for(;null!=r;){const t=r[e];if(null!=t)return t;r=r.parent}return t}_inheritedWriter(){return this._parentWithMember("writer",i)}_matchLevel(e){const t=n.A.log.level||"warn";return s[this._parentWithMember("level",t)]<=s[e]}static _scheduleTickCounterIncrement(){a._tickCounterScheduled||(a._tickCounterScheduled=!0,Promise.resolve().then(()=>{a._tickCounter++,a._tickCounterScheduled=!1}))}}function i(e,t,...r){console[e](`[${t}]`,...r)}},61322:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(70333),o=r(49186),s=r(37955),a=r(36563),i=r(97768),c=r(74887),l=r(52268);const f={statsWorker:()=>Promise.all([r.e(6285),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8902),r.e(1882),r.e(2603),r.e(4560),r.e(397),r.e(5975),r.e(8991)]).then(r.bind(r,33009)),geometryEngineWorker:()=>Promise.all([r.e(9930),r.e(8887)]).then(r.bind(r,68887)),arcadeGeometryOperatorsWorker:()=>Promise.all([r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8902),r.e(1882),r.e(1123)]).then(r.bind(r,1123)),CSVSourceWorker:()=>Promise.all([r.e(6285),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(3733),r.e(752)]).then(r.bind(r,40752)),EdgeProcessingWorker:()=>Promise.all([r.e(3030),r.e(9899),r.e(7346)]).then(r.bind(r,71936)),ElevationSamplerWorker:()=>Promise.all([r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(3030),r.e(1784)]).then(r.bind(r,38419)),FeatureServiceSnappingSourceWorker:()=>Promise.all([r.e(6285),r.e(1956),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(3733),r.e(4522),r.e(1210)]).then(r.bind(r,12543)),GeoJSONSourceWorker:()=>Promise.all([r.e(6285),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(3733),r.e(1202)]).then(r.bind(r,71202)),LercWorker:()=>r.e(7087).then(r.bind(r,57087)),MemorySourceWorker:()=>Promise.all([r.e(6285),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(3733),r.e(9432)]).then(r.bind(r,29432)),PBFDecoderWorker:()=>Promise.all([r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8902),r.e(1882),r.e(8140)]).then(r.bind(r,39078)),FeaturePipelineWorker:()=>Promise.all([r.e(6285),r.e(5715),r.e(5323),r.e(1956),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(9949),r.e(4522),r.e(9423),r.e(9936),r.e(8487)]).then(r.bind(r,38487)),PointCloudWorker:()=>Promise.all([r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(2603),r.e(2944),r.e(7984),r.e(4056)]).then(r.bind(r,34142)),RasterWorker:()=>Promise.all([r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(1427),r.e(6049),r.e(7848)]).then(r.bind(r,30139)),SceneLayerSnappingSourceWorker:()=>Promise.all([r.e(5122),r.e(2603),r.e(3030),r.e(7937),r.e(9899),r.e(8263)]).then(r.bind(r,27444)),SceneLayerWorker:()=>Promise.all([r.e(6285),r.e(9953),r.e(1956),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(5975),r.e(7937),r.e(2944),r.e(6875),r.e(4026)]).then(r.bind(r,36233)),WFSSourceWorker:()=>Promise.all([r.e(6285),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(3733),r.e(3771)]).then(r.bind(r,33771)),WorkerTileHandler:()=>Promise.all([r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8902),r.e(9949),r.e(5897),r.e(9423),r.e(3379)]).then(r.bind(r,11764)),Lyr3DWorker:()=>Promise.all([r.e(2741),r.e(9234)]).then(r.bind(r,79234)),Feature3DPipelineWorker:()=>Promise.all([r.e(6285),r.e(8948),r.e(3910),r.e(5715),r.e(5323),r.e(13),r.e(1214),r.e(1956),r.e(708),r.e(5122),r.e(2741),r.e(6791),r.e(4996),r.e(8988),r.e(8902),r.e(1882),r.e(2603),r.e(8368),r.e(4560),r.e(397),r.e(3202),r.e(5975),r.e(3633),r.e(3030),r.e(7937),r.e(2944),r.e(655),r.e(9899),r.e(432),r.e(9844)]).then(r.bind(r,66357)),TextureCompressionWorker:()=>Promise.all([r.e(2741),r.e(5902)]).then(r.bind(r,95902))};var d=r(8341),u=r(18357);const{CLOSE:b,ABORT:h,INVOKE:p,RESPONSE:m,OPEN_PORT:g,ON:y}=d.Go;class w{constructor(e){this._invoke=e,this._timer=null,this._cancelledJobIds=new Set,this._invokeMessages=[],this._timer=null,this._process=this._process.bind(this)}push(e){e.type===d.Go.ABORT?this._cancelledJobIds.add(e.jobId):(this._invokeMessages.push(e),null===this._timer&&(this._timer=setTimeout(this._process,0)))}clear(){this._invokeMessages.length=0,this._cancelledJobIds.clear(),this._timer=null}_process(){this._timer=null;for(const e of this._invokeMessages)this._cancelledJobIds.has(e.jobId)||this._invoke(e);this._cancelledJobIds.clear(),this._invokeMessages.length=0}}class v{static{this.kernelInfo={buildDate:u.$,fullVersion:n.ol,revision:u.u}}static{this.clients=new Map}static connect(e,t){const r=new MessageChannel;let n;n="function"==typeof e?new e:"default"in e&&"function"==typeof e.default?new e.default:e;const o=new v(r.port1,{channel:r,client:n,schedule:t});return"object"==typeof n&&"remoteClient"in n&&(n.remoteClient=o),v.clients.set(o,n),r.port2}static loadWorker(e){const t=f[e];return t?t():Promise.resolve(null)}constructor(e,t,r,n){this._port=e,this._jobQueue=r,this._lowPriorityJobQueue=n,this._outJobs=new Map,this._inJobs=new Map,this._invokeQueue=new w(e=>this._onInvokeMessage(e)),this._client=t.client,this._onMessage=this._onMessage.bind(this),this._channel=t.channel,this._schedule=t.schedule,this._port.addEventListener("message",this._onMessage),this._port.start()}close(){this._post({type:b}),this._close()}isBusy(){return this._outJobs.size>0}invoke(e,t,r){return this.apply(e,[t],r)}apply(e,t,r){const n=r?.signal,s=r?.transferList;if(!this._port)return Promise.reject(new o.A(d.T,`Cannot call invoke('${e}'), port is closed`,{methodName:e,data:t}));const a=(0,d.Jc)();return new Promise((r,o)=>{if((0,c.G4)(n))return this._processWork(),void o((0,c.NK)());const l=(0,c.u7)(n,()=>{const e=this._outJobs.get(a);e&&(this._outJobs.delete(a),this._processWork(),(0,i.xt)(e.abortHandle),this._post({type:h,jobId:a}),o((0,c.NK)()))}),f={resolve:r,reject:o,abortHandle:l,debugInfo:e};this._outJobs.set(a,f),this._post({type:p,jobId:a,methodName:e,abortable:null!=n},t,s)})}createInvokeProxy(e){return(0,l.L)(this,e)}on(e,t){const r=new MessageChannel;function n(e){t(e.data)}return this._port.postMessage({type:d.Go.ON,eventType:e,port:r.port2},[r.port2]),r.port1.addEventListener("message",n),r.port1.start(),(0,a.hA)(()=>{r.port1.postMessage({type:d.Go.CLOSE}),r.port1.close(),r.port1.removeEventListener("message",n)})}jobAdded(){this._processWork()}openPort(){const e=new MessageChannel;return this._post({type:g,port:e.port2}),e.port1}_processWork(){if(this._outJobs.size>=2)return;const e=this._jobQueue?.pop()??this._lowPriorityJobQueue?.pop();if(!e)return;const{methodName:t,data:r,invokeOptions:n,resolver:o}=e;this.apply(t,r,n).then(e=>o.resolve(e)).catch(e=>o.reject(e))}_close(){this._channel&&(this._channel=void 0),this._port.removeEventListener("message",this._onMessage),this._port.close(),this._outJobs.forEach(e=>{(0,i.xt)(e.abortHandle),e.reject((0,c.NK)(`Worker closing, aborting job calling '${e.debugInfo}'`))}),this._inJobs.clear(),this._outJobs.clear(),this._invokeQueue.clear(),this._port=null,this._client=null,this._schedule=null,this._onMessage=null,this._channel=null,this._jobQueue=void 0,this._invokeQueue=void 0,this._lowPriorityJobQueue=void 0}_onMessage(e){null!=this._schedule?this._schedule(()=>this._processMessage(e,!0)):this._processMessage(e,!1)}_processMessage(e,t){const r=(0,d.VI)(e);if(r)switch(r.type){case m:this._onResponseMessage(r);break;case p:t?this._onInvokeMessage(r):this._invokeQueue.push(r);break;case h:this._onAbortMessage(r);break;case b:this._onCloseMessage();break;case g:this._onOpenPortMessage(r);break;case y:this._onOnMessage(r)}}_onAbortMessage(e){const t=this._inJobs,r=e.jobId,n=t.get(r);this._invokeQueue.push(e),n&&(n.controller&&n.controller.abort(),t.delete(r))}_onCloseMessage(){const e=this._client;this._close(),e&&"destroy"in e&&v.clients.get(this)===e&&e.destroy(),v.clients.delete(this),e?.remoteClient&&(e.remoteClient=null)}_onInvokeMessage(e){const{methodName:t,jobId:r,data:n=[],abortable:o}=e,s=o?new AbortController:null,a=this._inJobs;let i,l=this._client,f=l[t];try{if(!f&&t&&t.includes(".")){const e=t.split(".");for(let t=0;t<e.length-1;t++)l=l[e[t]],f=l[e[t+1]]}if("function"!=typeof f)throw new TypeError(`${t} is not a function`);n.push({client:this,signal:s?s.signal:null}),i=f.apply(l,n)}catch(e){return void this._post({type:m,jobId:r,error:(0,d.mF)(e)})}(0,c.$X)(i)?(a.set(r,{controller:s,promise:i}),i.then(e=>{a.has(r)&&(a.delete(r),this._post({type:m,jobId:r},e))},e=>{a.has(r)&&(a.delete(r),(0,c.zf)(e)||this._post({type:m,jobId:r,error:(0,d.mF)(e||{message:`Error encountered at method ${t}`})}))})):this._post({type:m,jobId:r},i)}_onOpenPortMessage(e){new v(e.port,{client:this._client})}_onOnMessage(e){const{port:t}=e,r=this._client.on(e.eventType,e=>{t.postMessage(e)}),n=(0,s.on)(e.port,"message",e=>{const o=(0,d.VI)(e);o?.type===d.Go.CLOSE&&(n.remove(),r.remove(),t.close())})}_onResponseMessage(e){const{jobId:t,error:r,data:n}=e,s=this._outJobs;if(!s.has(t))return;const a=s.get(t);s.delete(t),this._processWork(),(0,i.xt)(a.abortHandle),r?a.reject(o.A.fromJSON(JSON.parse(r))):a.resolve(n)}_post(e,t,r){return(0,d.u1)(this._port,e,t,r)}}},70333:(e,t,r)=>{"use strict";r.d(t,{Aq:()=>c,Y3:()=>l,id:()=>a,ol:()=>i,rE:()=>s});var n=r(44208),o=r(84952);Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");const s="4.34";let a,i=s;function c(e){a=e}function l(e){const t=a?.findCredential(e);return t?.token?(0,o.rs)(e,"token",t.token):e}i="4.34.0-next.24",(0,n.A)("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),(0,n.A)("host-webworker")},74887:(e,t,r)=>{"use strict";r.d(t,{Pl:()=>k,Ol:()=>O,nA:()=>_,NK:()=>l,Tw:()=>x,sg:()=>S,Lx:()=>v,QZ:()=>w,zf:()=>y,G4:()=>u,$X:()=>P,u7:()=>p,NY:()=>m,hn:()=>j,Mq:()=>d,QP:()=>b,Te:()=>f,jH:()=>h,NO:()=>M,z7:()=>A,qr:()=>g});var n=r(36563);const o=(s=globalThis,{setTimeout:(e,t)=>{const r=s.setTimeout(e,t);return(0,n.hA)(()=>s.clearTimeout(r))}});var s,a=r(49186),i=r(37955),c=(r(53966),r(97768));function l(e="Aborted"){return new a.A("AbortError",e)}function f(e,t="Aborted"){if(u(e))throw l(t)}function d(e){return e instanceof AbortSignal?e:e?.signal??void 0}function u(e){const t=d(e);return null!=t&&t.aborted}function b(e){if(y(e))throw e}function h(e){if(!y(e))throw e}function p(e,t){const r=d(e);if(null!=r){if(!r.aborted)return(0,i.Oo)(r,"abort",()=>t());t()}}function m(e,t){const r=d(e);if(null!=r)return f(r),(0,i.Oo)(r,"abort",()=>t(l()))}function g(e,t){return null==d(t)?e:new Promise((r,n)=>{let o=p(t,()=>n(l()));const s=()=>{o=(0,c.xt)(o)};e.then(s,s),e.then(r,n)})}function y(e){return"AbortError"===e?.name}async function w(e){try{return await e}catch(e){if(!y(e))throw e;return}}async function v(e){if(!e)return;if("function"!=typeof e.forEach){const t=Object.keys(e),r=t.map(t=>e[t]),n=await v(r),o={};return t.map((e,t)=>o[e]=n[t]),o}const t=e;return Promise.allSettled(t).then(e=>Array.from(t,(t,r)=>{const n=e[r];return"fulfilled"===n.status?{promise:t,value:n.value}:{promise:t,error:n.reason}}))}async function _(e){return(await Promise.allSettled(e)).filter(e=>"fulfilled"===e.status).map(e=>e.value)}async function O(e){return(await Promise.allSettled(e)).filter(e=>"rejected"===e.status).map(e=>e.reason)}function k(e,t=void 0,r){const n=new AbortController;return p(r,()=>n.abort()),new Promise((r,o)=>{let s=setTimeout(()=>{s=0,r(t)},e);p(n,()=>{s&&(clearTimeout(s),o(l()))})})}function P(e){return e&&"function"==typeof e.then}function A(e){return P(e)?e:Promise.resolve(e)}function S(e,t=-1){let r,n,o,s,a=null;const i=(...c)=>{if(r){n=c,s&&s.reject(l()),s=x();const e=s.promise;if(a){const e=a;a=null,e.abort()}return e}if(o=s||x(),s=null,t>0){const n=new AbortController;r=A(e(...c,n.signal));const o=r;k(t).then(()=>{r===o&&(s?n.abort():a=n)})}else r=1,r=A(e(...c));const f=()=>{const e=n;n=o=r=a=null,null!=e&&i(...e)},d=r,u=o;return d.then(f,f),d.then(u.resolve,u.reject),u.promise};return i}function x(){let e,t;const r=new Promise((r,n)=>{e=r,t=n}),n=t=>{e(t)};return n.resolve=t=>e(t),n.reject=e=>t(e),n.timeout=(e,t)=>o.setTimeout(()=>n.reject(t),e),n.promise=r,n}function j(e,t){t.then(e.resolve,e.reject)}async function M(e){await Promise.resolve(),f(e)}},79907:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(93637);class o{constructor(e,t,r=void 0){this.name=e,this.details=r,this.message=(t&&function(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(e,r)=>""===r?"$":((0,n.wc)(r,t)??"").toString())}(t,r))??""}toString(){return"["+this.name+"]: "+this.message}}},84952:(e,t,r)=>{"use strict";r.d(t,{$1:()=>Z,$z:()=>K,An:()=>x,BQ:()=>se,DB:()=>X,FL:()=>F,FX:()=>J,Hg:()=>re,Il:()=>be,Ln:()=>ge,N9:()=>oe,S8:()=>D,T1:()=>pe,UC:()=>he,V1:()=>H,Xq:()=>A,Zo:()=>Oe,_0:()=>Pe,a6:()=>_e,b8:()=>L,e7:()=>ue,fj:()=>G,gd:()=>S,hf:()=>me,lJ:()=>Y,lM:()=>ce,m3:()=>ie,nM:()=>de,oP:()=>Q,oy:()=>$,r$:()=>te,rs:()=>ve,s0:()=>_,s2:()=>B,sC:()=>q,s_:()=>C,tk:()=>ne,ut:()=>W,w8:()=>V,x0:()=>M,xw:()=>ke,yM:()=>T,zf:()=>j,zi:()=>we,zs:()=>R});var n=r(92602),o=r(4576),s=r(49186),a=r(53966),i=r(12195),c=r(39131),l=r(26306);const f=()=>a.A.getLogger("esri.core.urlUtils"),d=n.A.request,u="esri/config: esriConfig.request.proxyUrl is not set.",b=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,h=/^\s*http:/i,p=/^\s*https:/i,m=/^\s*file:/i,g=/:\d+$/,y=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,w=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),v=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$");class _{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let t=this.uri.match(w);this.scheme=t[2]||(t[1]?"":null),this.authority=t[4]||(t[3]?"":null),this.path=t[5],this.query=t[7]||(t[6]?"":null),this.fragment=t[9]||(t[8]?"":null),null!=this.authority&&(t=this.authority.match(v),this.user=t[3]||null,this.password=t[4]||null,this.host=t[6]||t[7],this.port=t[9]||null)}toString(){return this.uri}}const O={};let k=new _(n.A.applicationUrl);let P=function(){const e=k.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${k.scheme}://${k.host}${null!=k.port?`:${k.port}`:""}${t}`}();const A=()=>k,S=()=>P;function x(e){if(!e)return null;const t={path:null,query:null},r=new _(e),n=e.indexOf("?");return null===r.query?t.path=e:(t.path=e.slice(0,n),t.query=j(r.query)),r.fragment&&(t.hash=r.fragment,null===r.query&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function j(e){const t=e.split("&"),r={};for(const e of t){if(!e)continue;const t=e.indexOf("=");let n,o;t<0?(n=decodeURIComponent(e),o=""):(n=decodeURIComponent(e.slice(0,t)),o=decodeURIComponent(e.slice(t+1)));let s=r[n];"string"==typeof s&&(s=r[n]=[s]),Array.isArray(s)?s.push(o):r[n]=o}return r}function M(e,t){return e?t&&"function"==typeof t?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{const n=e[r];if(null==n)return"";const o=encodeURIComponent(r)+"=",s=t?.[r];return s?o+encodeURIComponent(s(n)):Array.isArray(n)?n.map(e=>(0,i.W)(e)?o+encodeURIComponent(JSON.stringify(e)):o+encodeURIComponent(e)).join("&"):(0,i.W)(n)?o+encodeURIComponent(JSON.stringify(n)):o+encodeURIComponent(n)}).filter(e=>e).join("&"):""}function C(e=!1){let t,r=d.proxyUrl;if("string"==typeof e){t=ie(e);const n=R(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw f().warn(u),new s.A("urlUtils:proxy-not-set",u);return t&&le()&&(r=ce(r)),x(r)}function T(e,t=!1){const r=R(e);let n,o;if(r){const e=I(r.proxyUrl);n=e.path,o=e.query?j(e.query):null}else if(t){const t=C(e);n=t.path,o=t.query}if(n){const t=x(e);e=n+"?"+t.path;const r=M({...o,...t.query});r&&(e=`${e}?${r}`)}return e}const E={path:"",query:""};function I(e){const t=e.indexOf("?");return-1!==t?(E.path=e.slice(0,t),E.query=e.slice(t+1)):(E.path=e,E.query=null),E}function N(e){return(e=fe(e=be(e=I(e).path),!0)).toLowerCase()}function $(e){const t={proxyUrl:e.proxyUrl,urlPrefix:N(e.urlPrefix)},r=d.proxyRules,n=t.urlPrefix;let o=r.length;for(let e=0;e<r.length;e++){const t=r[e].urlPrefix;if(0===n.indexOf(t)){if(n.length===t.length)return-1;o=e;break}0===t.indexOf(n)&&(o=e+1)}return r.splice(o,0,t),o}function R(e){const t=d.proxyRules,r=N(e);for(let e=0;e<t.length;e++)if(0===r.indexOf(t[e].urlPrefix))return t[e]}function L(e,t){if(!e||!t)return!1;e=U(e),t=U(t);const r=(0,c.py)(e),n=(0,c.py)(t);return null!=r&&null!=n?r.portalHostname===n.portalHostname:null==r&&null==n&&J(e,t,!0)}function W(e,t){return e=U(e),t=U(t),fe(e)===fe(t)}function U(e){const t=(e=D(e)).indexOf("/sharing");return t>0?e.slice(0,t):e.replace(/\/+$/,"")}function q(e,t=d.interceptors){const r=t=>t instanceof RegExp?t.test(e):"string"==typeof t?e.startsWith(t):null==t;if(t)for(const e of t)if(Array.isArray(e.urls)){if(e.urls.some(r))return e}else if(r(e.urls))return e;return null}function J(e,t,r=!1){if(!e||!t)return!1;const n=ye(e),o=ye(t);return!(!r&&n.scheme!==o.scheme)&&null!=n.host&&null!=o.host&&n.host.toLowerCase()===o.host.toLowerCase()&&n.port===o.port}function F(e){if("string"==typeof e){if(!Q(e))return!0;e=ye(e)}if(J(e,k))return!0;const t=d.trustedServers||[];for(let r=0;r<t.length;r++){const n=z(t[r]);for(let t=0;t<n.length;t++)if(J(e,n[t]))return!0}return!1}function z(e){return O[e]||(ae(e)||se(e)?O[e]=[new _(B(e))]:O[e]=[new _(`http://${e}`),new _(`https://${e}`)]),O[e]}function B(e,t=P,r){return se(e)?r?.preserveProtocolRelative?e:"http"===k.scheme&&k.authority===K(e).slice(2)?`http:${e}`:`https:${e}`:ae(e)?e:G("/"===e[0]?function(e){const t=e.indexOf("//"),r=e.indexOf("/",t+2);return-1===r?e:e.slice(0,r)}(t):t,e)}function H(e,t=P,r){if(null==e||!Q(e))return e;const n=D(e),o=n.toLowerCase(),s=D(t).toLowerCase().replace(/\/+$/,""),a=r?D(r).toLowerCase().replace(/\/+$/,""):null;if(a&&0!==s.indexOf(a))return e;const i=(e,t,r)=>-1===(r=e.indexOf(t,r))?e.length:r;let c=i(o,"/",o.indexOf("//")+2),l=-1;for(;o.slice(0,c+1)===s.slice(0,c)+"/"&&(l=c+1,c!==o.length);)c=i(o,"/",c+1);if(-1===l)return e;if(a&&l<a.length)return e;e=n.slice(l);const f=s.slice(l-1).replaceAll(/[^/]+/g,"").length;if(f>0)for(let t=0;t<f;t++)e=`../${e}`;else e=`./${e}`;return e}function D(e){return function(e){const t=d.httpsDomains;if(!function(e){return null!=e&&h.test(e)||"http"===k.scheme&&se(e)}(e))return e;const r=e.indexOf("/",7);let n;if(n=-1===r?e:e.slice(0,r),n=n.toLowerCase().slice(7),g.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return"http"===k.scheme&&n===k.authority&&!y.test(e)||(le()&&n===k.authority||t&&t.some(e=>n===e||n.endsWith(`.${e}`))||le()&&!R(e))&&(e=ce(e)),e}(e=function(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}(e=function(e){if(/^https?:\/\//i.test(e)){const t=I(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}(e=B(e=e.trim()))))}function G(...e){const t=e.filter(o.Ru);if(!t?.length)return;const r=[];if(Q(t[0])){const e=t[0],n=e.indexOf("//");-1!==n&&(r.push(e.slice(0,n+1)),function(e){return null!=e&&m.test(e)}(t[0])&&(r[0]+="/"),t[0]=e.slice(n+2))}else"/"===t[0][0]&&r.push("");const n=t.reduce((e,t)=>t?e.concat(t.split("/")):e,[]);for(let e=0;e<n.length;e++){const t=n[e];".."===t&&r.length>0&&".."!==r[r.length-1]?r.pop():(!t&&e===n.length-1||t&&("."!==t||0===r.length))&&r.push(t)}return r.join("/")}function K(e,t=!1){if(null==e||V(e)||X(e))return null;let r=e.indexOf("://");if(-1===r&&se(e))r=2;else{if(-1===r)return null;r+=3}const n=e.indexOf("/",r);return-1!==n&&(e=e.slice(0,n)),t&&(e=fe(e,!0)),e}function Q(e){return se(e)||ae(e)}function V(e){return null!=e&&"blob:"===e.slice(0,5)}function X(e){return null!=e&&"data:"===e.slice(0,5)}function Y(e){const t=te(e);return t?.isBase64?(0,l.M)(t.data):null}function Z(e){return(0,l.Y)(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}const ee=/^data:(.*?)(;base64)?,(.*)$/;function te(e){const t=e.match(ee);if(!t)return null;const[,r,n,o]=t;return{mediaType:r,isBase64:!!n,data:o}}function re(e){return e.isBase64?`data:${e.mediaType};base64,${e.data}`:`data:${e.mediaType},${e.data}`}async function ne(e){return(await fetch(e)).blob()}function oe(e){const t=Y(e);if(!t)return null;const r=te(e);return new Blob([t],{type:r.mediaType})}function se(e){return null!=e&&"/"===e[0]&&"/"===e[1]}function ae(e){return null!=e&&b.test(e)}function ie(e){return null!=e&&p.test(e)||"https"===k.scheme&&se(e)}function ce(e){return se(e)?`https:${e}`:e.replace(h,"https:")}function le(){return"https"===k.scheme}function fe(e,t=!1){return se(e)?e.slice(2):(e=e.replace(b,""),t&&e.length>1&&"/"===e[0]&&"/"===e[1]&&(e=e.slice(2)),e)}function de(e){let t=0;if(Q(e)){const r=e.indexOf("//");-1!==r&&(t=r+2)}const r=e.lastIndexOf("/");return r<t?e:e.slice(0,r+1)}function ue(e,t){if(!e)return"";const r=x(e).path.replace(/\/+$/,""),n=r.slice(r.lastIndexOf("/")+1);if(!t?.length)return n;const o=new RegExp(`\\.(${t.join("|")})$`,"i");return n.replace(o,"")}function be(e){return e.endsWith("/")?e:`${e}/`}function he(e){return e.replace(/\/+$/,"")}function pe(e,t,r){if(!(t&&r&&e&&Q(e)))return e;const n=e.indexOf("//"),o=e.indexOf("/",n+2),s=e.indexOf(":",n+2),a=Math.min(o<0?e.length:o,s<0?e.length:s);return e.slice(n+2,a).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(a)}`}function me(e,t){const r=new URL(e);return r.host=t,r.port&&!g.test(t)&&(r.port=""),r.toString()}function ge(e){return new URL(e).host}function ye(e){return"string"==typeof e?new _(B(e)):(e.scheme||(e.scheme=k.scheme),e)}function we(e,t){const r=x(e),n=Object.keys(r.query||{});return n.length>0&&t&&t.warn("removeQueryParameters()",`Url query parameters are not supported, the following parameters have been removed: ${n.join(", ")}.`),r.path}function ve(e,t,r){const n=x(e),o=n.query||{};return o[t]=String(r),`${n.path}?${M(o)}`}function _e(e,t){if(!t)return e;const r=x(e),n=r.query||{};for(const[e,r]of Object.entries(t))null!=r&&(n[e]=r);const o=M(n);return o?`${r.path}?${o}`:r.path}function Oe(e){if(null==e)return null;const t=e.match(Ae);return t?t[2]:null}function ke(e){if(null==e)return null;const t=e.match(Ae);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}async function Pe(e){return"string"==typeof e?te(e)??{data:e}:new Promise((t,r)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(te(n.result)),n.onerror=e=>r(e)})}const Ae=/([^.]*)\.([^/]*)$/},87811:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});class n{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*n._m}getInt(){return this._seed=(n._a*this._seed+n._c)%n._m,this._seed}getFloat(){return this.getInt()/(n._m-1)}getIntRange(e,t){return Math.round(this.getFloatRange(e,t))}getFloatRange(e,t){const r=t-e;return e+this.getInt()/n._m*r}}},92602:(e,t,r)=>{"use strict";r.d(t,{A:()=>o}),r(44208);var n=r(93637);const o={apiKey:void 0,apiKeys:{scopes:[]},applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&((0,n.$N)(o,globalThis.esriConfig,!0),delete o.has),!o.assetsPath){{const e="4.34.0-next.24";o.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}/assets`}o.defaultAssetsPath=o.assetsPath}},93637:(e,t,r)=>{"use strict";r.d(t,{$N:()=>o,i8:()=>i,sM:()=>a,wc:()=>s});var n=r(4718);function o(e,t,r=!1){return l(e,t,r)}function s(e,t){if(null!=t)return t[e]||c(e.split("."),!1,t)}function a(e,t,r){const n=e.split("."),o=n.pop(),s=c(n,!0,r);s&&o&&(s[o]=t)}function i(e,t){if(null==e&&null==t)return!1;if(null==e)return!0;if(null==t)return!0;if("object"==typeof e){if(Array.isArray(e)){const r=t;if(e.length!==r.length)return!0;for(let t=0;t<e.length;t++)if(i(e[t],r[t]))return!0;return!1}if(Object.keys(e).length!==Object.keys(t).length)return!0;for(const r in e)if(i(e[r],t[r]))return!0;return!1}return e!==t}function c(e,t,r){let n=r;for(const r of e){if(null==n)return;if(!(r in n)){if(!t)return;n[r]={}}n=n[r]}return n}function l(e,t,r){return t?Object.keys(t).reduce((e,o)=>{if("__proto__"===o)return e;let s=e[o],a=t[o];return s===a?e:void 0===s?(e[o]=(0,n.o8)(a),e):(Array.isArray(a)||Array.isArray(e)?(s=s?Array.isArray(s)?e[o]=s.slice():e[o]=[s]:e[o]=[],a&&(Array.isArray(a)||(a=[a]),r?a.forEach(e=>{s.includes(e)||s.push(e)}):e[o]=a.slice())):a&&"object"==typeof a?e[o]=l(s,a,r):e.hasOwnProperty(o)&&!t.hasOwnProperty(o)||(e[o]=a),e)},e||{}):e}},97768:(e,t,r)=>{"use strict";function n(e,t){if(null==e)throw new Error(t??"value is None")}function o(e){return e?.destroy(),null}function s(e){return e?.dispose(),null}function a(e){return e?.remove(),null}function i(e){return e?.abort(),null}function c(e){return e?.release(),null}function l(e,t,r){return null!=e&&null!=t?null!=r?r(e,t):e.equals(t):e===t}function f(e,t){let r;return e.some((e,n)=>(r=t(e,n),null!=r)),r??void 0}r.d(t,{CM:()=>l,DC:()=>i,Gz:()=>c,Lw:()=>n,Pb:()=>f,WD:()=>s,pR:()=>o,xt:()=>a})}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,n)=>(r.f[n](e,t),t),[])),r.u=e=>"chunks/"+{13:"55e9b02d70812f7cdac2",36:"12723e79b996969e304e",146:"dc6538a2d5a1e60d0209",177:"e5a9c37de44508e9733b",191:"09b77f82c22530b44daa",217:"2732d965c623a04e199c",224:"30776f451c778fa6e043",309:"c2faddd504c2355ac46e",349:"971c956de1f8dd230d0f",362:"a6a7279b09d7962147ec",364:"d683a97620cd606fa019",369:"af00081b78fc30ac556c",382:"b0e52c3775f05aaf7ff6",390:"41f487713c6278d389a1",397:"a0abe3e54c8a20cafeb3",427:"e756cef14d9750652ef6",432:"909a6218db87cba2c9ba",547:"1cf0fae3f2e848a2a738",563:"7d0c4e1518a6a63a3f87",573:"0c784cd0187822a18f3c",591:"9a23e2dbfe6038ec8a02",603:"ef7fdd5306588c4b4ad2",624:"fdd48334ff0ec2fa484b",647:"eef369952f65378a20f5",655:"6bf43bc3714d7b3878fa",681:"bd7d19ba0c7d9143a455",692:"cefb063f93c4310a3888",708:"5ea03f53d4d64d9e7cae",752:"35aef6fd08b50c4d7dd3",788:"9991bd3c7991bffd8260",807:"48cedef1c926d11164b7",812:"c741e46d6805b65122fa",820:"3c5f07ebe1b09dcdc958",847:"df2012fad20dac17ca33",980:"e6bf5f1345e5ff8614bc",1088:"fdfb5d601d318d6a49f9",1123:"c5986ebe1cad60e730e6",1202:"d2986ddd390227feac85",1204:"9f459805a6698708830a",1210:"8000e2e80fff7752e761",1214:"026fbeb0ff5b9e6c74df",1253:"4cc3eeb0b824c53793d0",1273:"0f4b1a426bf21e99fdb5",1277:"341f514ee342db827653",1312:"6614c642c97d4041bc0e",1384:"57a579b0cbc1bcf0d903",1414:"95a4da3150ad8e8e36d8",1419:"8ea34878a1ef24b4ded3",1427:"b32c1b60896a72e0ae90",1598:"29e2b105f55adafc3a6d",1728:"7a08d6d8e5e430658f3a",1737:"6136bf09950adc46bc33",1784:"6ca764b4baadef5c1515",1867:"30d7d2c7d6e9e5e2ecb9",1878:"65fd971d0574d69cbc26",1882:"4802501ff51b8b475761",1956:"fd0eecec91f3d1f3c1ac",2029:"e9a9174c4d1a0a9effb6",2042:"2a03cdf31a920c86d4b5",2083:"5e805c9e9012dd39ec86",2144:"bffaf1f20f18c75fad4e",2158:"b743847f928edd572e23",2165:"c9c109d43a1e5160955d",2186:"36fe6b8228e622407ec2",2189:"d2ce360961ca4b58666c",2282:"4b89d5b9e35bf79b321e",2288:"7a5a1d01a89383faf4fd",2343:"7b9178c3826f9ef52a00",2372:"21d7f42c2033de987b97",2390:"a34a14fd989dbbd3c2d0",2503:"49085a0b3a74e158f32f",2558:"bc8a49e0172fde44f274",2593:"94d75f3b215e3bd1b4d7",2603:"b4512d62b6cb26fc6b25",2657:"2841888fdbc2770e90c8",2731:"6b0baecbd35d26393dcf",2741:"97324f030738fc0d456b",2763:"fe1902d63f610cebd947",2765:"916691122d7fb38497d6",2893:"6f9f32b7de59b4d9cd97",2944:"3fcd73ba832cb53d3a07",2958:"8f3ce10eacb5bc14a641",2980:"ce291074b0cbebcaf27b",3029:"f050ab9d100012b77bb9",3030:"f3e3c2340452c1d60c95",3054:"0a72894cc936e23ea7c1",3091:"976dd80e318266ab4c2c",3103:"52bd7e64e350df5e6623",3116:"c3213b487c11076985af",3169:"d9d9180689bcf71af00f",3186:"5b276962c46c57155166",3202:"1cc30073f8200b67cff6",3236:"ca62e7ec102a1bb879dc",3299:"44d28849e59f62616e72",3331:"fe9cf96f2cb2063b851f",3359:"3ed7d19bbbad6c4a1cba",3367:"2a6df3f0a166eb886554",3379:"3793f282ddaccd3465f2",3390:"c25e28aab5bee30722cb",3447:"c4f8da6c238eb5e91f91",3492:"82a390be9500b629f6bc",3513:"b98279213f45a0c27600",3543:"d6241c7736d4a86f201f",3561:"f03635ddf56e2ef90e4c",3562:"084236ca316aad980192",3600:"843b6029d4c13115e1ac",3610:"b4bb461955a4c2bce072",3633:"55c903d93b15f4e723d4",3637:"9c40f9ced07d7837e952",3642:"e0a5b499b3ae38c21278",3651:"8eea6251aa09725e654e",3661:"4cc8351c2953f5f3bc2d",3666:"755e2ecd20b6bd1909be",3669:"0202c2ac73354e3970b2",3733:"04c17957c15234ca0321",3747:"fa9658dbfb921f9c13af",3771:"4c2f3e43992a918e4c2d",3813:"0b484224a92b52c34330",3910:"395f589b0929e37ba674",3937:"3629d5e1a8e9bece0ed8",4026:"0f6203ae32663b2b52db",4056:"6c33ecffbc783cb8f944",4097:"f4432ed034c6f139a9c8",4111:"35d238a5a6501f89bed7",4123:"dd9be173cddc16a354ed",4167:"9049c81445cc044286f1",4304:"02dc6e31b1244e5bb785",4383:"56569d0c2cf5c5167651",4399:"12a16f0fd77371d61c2a",4496:"5253cca467fe9bc0a210",4522:"4f691962b96e78cbe1a9",4560:"5bfcb3d87380e7f85b08",4575:"0c33f3f831c865f48a02",4594:"6ce4327f63e6eb92bba8",4654:"666afe669866c44830bd",4697:"919d2fd7ebc0c840a759",4753:"86d6007c45f2aa643ac8",4784:"875c6293767602763bc0",4796:"ca9dfe053505a517bbbb",4813:"d9f206e7ac1fad940be7",4815:"8e91119c5f3d196a26af",4929:"be1f3cac908c28c64401",4990:"e1a20ba7d6279f59adc0",4996:"4f14e78d0560050c1a81",5011:"6a0fbc54638f7de138c1",5122:"8bf04be4052bf148777a",5137:"774cbf14c74504458a6f",5141:"15064c3b21b325d5c2f6",5165:"16a78f5a82f5ca163816",5180:"6648e68f00d28e12bcf9",5257:"8644c54b4f00c53bab80",5323:"c94cc026c4ed330408fb",5335:"f90573c9dc36e51cd588",5356:"c64fa94cba71ba2794e2",5367:"d48af7bc06b4bb176534",5404:"4cea5170939c8d363ef7",5552:"649caffe8f5dbaad0d7b",5605:"234cbc290b074eeb5dd6",5613:"146520d263b910b5bdc7",5655:"dca633ae3bfd4a3f9bb3",5666:"1de633f4866cc0fb08df",5715:"0867aa688fa8938906da",5740:"c0517d02c99128fe603f",5751:"576e408fb0834f3948e8",5804:"6bb5158de43c4b59107f",5874:"a9e17cd93521a7579d02",5897:"3d020f2e454c1e4babee",5902:"ac93b3f1ff15a95d926c",5913:"d875a743e23a0d6b5490",5924:"67c5f1112a7c65e9eeff",5943:"d915d0a30d9beb24bd3a",5962:"e49a135a2933306a6105",5975:"fad577be78560ed6f4f8",6049:"b6b8272a74a5c24a6b86",6052:"4b68783e8d1415d0a171",6061:"63b8193ad90b2ebe6884",6131:"fd8f4eabb8bbc593dd9c",6160:"cc0cb4906e4419f7c4a9",6183:"ba5b24beebeb703b5919",6187:"388873be1dca91ccbc9d",6222:"865fccacf44ae5b70eba",6285:"c5c72c36c9bddcb78916",6298:"242b216d61940aebe8e1",6339:"a9f16323666042a9d47f",6343:"f98689562017583f73ee",6424:"fb5e2b1ced03eef28e96",6468:"aec00f8e356fc7dda399",6650:"7cfba5cec425221962e8",6737:"b9f66d735a7e63417b3d",6742:"9ae18a17f62d91167202",6791:"a2ed7a3cd518dd136ec7",6830:"4c47d327815e281c457e",6875:"4405c765786c895365fb",6903:"53781ccca16e53d4a8c3",7060:"ae6eed26fc932bc08356",7074:"94c5a2cb1d0559274345",7087:"d9a23fb0c6c936d5e8ec",7136:"06bd58c219678315cf5c",7243:"d9f311ac82ae8dabff8f",7301:"2e6ae1ca07df442fc966",7330:"873008572c1f21cea122",7346:"1d75cb1747ffb7b8b050",7360:"0e8181e7fc1386d08ffc",7367:"ce48207997af9605b0f7",7444:"d58563de1392d991e521",7546:"4bce53df4074f4ae0de5",7559:"451555af283b32a10fef",7561:"fd259dd8e3e54fe5ede8",7656:"89d91ce2f566dd3f57f7",7677:"fedbf639a0788417a70f",7721:"d45383d76ba99718b6d9",7817:"57efabab9b47e15ec30b",7836:"d1aeb9fe9eb573beefcc",7848:"a273f80298417edecc07",7883:"66affa0ee7fda288df11",7937:"30fae1f066dc3cd781f1",7982:"d1b363c418a67b087306",7984:"7051bcc178eb512819f6",8010:"a0dfd99dc8f4eac0b7ae",8018:"1c06a8badb547c47b976",8039:"ce7155ae63e7bb74be00",8096:"e06096e532a8dbb31491",8098:"d7056ce482aca45dadbd",8125:"9f18392933c06f1d63b6",8140:"0becc660e8ee6c5d02b5",8189:"fe73e74e3e4278aedcc3",8219:"54a49a25845897a15ab1",8241:"a22e5b2874647fe0d31a",8256:"49dce142ad1ea4c01d00",8263:"92ad9098006568358550",8329:"40c1d65039c8f1d6afa0",8368:"6a14af239b400b0976c5",8373:"cdabea4718a7e7d34cb8",8392:"7ee50f75914d8d650af4",8407:"e7f5ff5318c144baa4e9",8411:"e553383e9791bb10249f",8446:"accff253af360c34e8a8",8487:"7d7f8f2936ddee65e3da",8506:"acb9c166259872828646",8542:"36a2a8b6547604bad2ab",8551:"90145d49a0cec902435c",8628:"856739d12ee9d7154683",8692:"dfa7976085f7408a366c",8714:"809a9055da28c8fa58b0",8812:"920b4def081c78c0d586",8887:"213e82a7e3fa5b253ec1",8902:"c11efbf098866c927607",8916:"20bcd2e6cf02e057ad7d",8948:"080c79d6caca3b6a2db2",8988:"6b4e66eb0cb37f293cf8",8991:"f42155b7a4e6c5e80757",9e3:"26c5675093820b485106",9013:"a5a67216e0d0cee95a55",9041:"8feed8ecfc4878ed2ea3",9062:"f532ff3b4b956f2d92e3",9141:"edead1a123860cc74b1b",9159:"05e80991c0c817ee59b5",9186:"5ce62d9fff80d014d186",9187:"f2b63597ae956db74eb3",9202:"a2d7263f6941b2df4db2",9234:"f328c933bc0367938d70",9239:"43878c01706121f410c6",9263:"8c62cefa7ead4a1997f4",9265:"7000d9158da929a16071",9321:"24ff9dad3fb64ab54970",9331:"4a720f2ed4eb96c3bd1c",9384:"88cbaa91c495d86f4bb0",9402:"f912fca8c875eb1a27f2",9423:"a8a5cdd70db90273a3fc",9432:"41d07f5a550f242d964e",9506:"1afe05047c1b5942ccbd",9547:"d7d5f7fea2bf77f43754",9588:"a69e885336eb5d2729fd",9695:"a7a5b89c2bb69f3af59c",9700:"db298b292a4e43cba72d",9838:"cb3b88959b2f048e54a5",9844:"4ea96aff38bb301dc40d",9867:"aba520714efc01bead36",9875:"32756905bcf11699b3f7",9899:"66757fc16316a5c50e1e",9926:"746c78e1c84f9612d69b",9930:"d8a0eb143b2079d7b6b7",9933:"24fe862b607ec927e07f",9936:"585031826294d5130813",9940:"79c4f10da8360ee60cd2",9945:"9c510df592befb9ff892",9949:"e6a97f9b6f7be8076f85",9953:"0cfded1acf92f89a13cb"}[e]+".js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var o=n.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=n[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={76:1};r.f.i=(t,n)=>{e[t]||importScripts(r.p+r.u(t))};var t=self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[],n=t.push.bind(t);t.push=t=>{var[o,s,a]=t;for(var i in s)r.o(s,i)&&(r.m[i]=s[i]);for(a&&a(r);o.length;)e[o.pop()]=1;n(t)}})(),r(2131);var n=r(61322);RemoteClient=n})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1214],{41214:(e,t,i)=>{i.d(t,{Hg:()=>ye,XJ:()=>ce});var s=i(53966),r=i(86162),o=i(90237),n=i(78888),l=i(4718),a=i(10107),u=(i(44208),i(40608)),p=i(43937),y=i(30524),c=i(92438),d=i(63988),h=i(66344),m=i(65864),f=i(68197);class b{static parse(e,t,i){const s=[],r=[],o=e.split(";");for(let e=0;e<o.length;e++){const n=o[e];if(n){if(n.includes("po:")){const e=n.slice(3).split("|");if(3===e.length){const[t,i,s]=e,o=v(t,i,s);o&&r.push(o)}continue}if(n.includes("|")){for(const e of n.split("|"))if(t.has(e)){s.push(e);break}}else if(t.has(n))s.push(n);else if(0===e){s.length=0,s.push(w(i));break}}}return new b(s,r)}constructor(e,t){this.partNames=e,this.overrides=t}}function g(e,t){if("DashTemplate"===e)return t.split(" ").map(e=>Number(e));if("Color"===e){const e=new f.A(t).toRgba();return[e[0],e[1],e[2],255*e[3]]}return Number(t)}function v(e,t,i){return{primitiveName:e,propertyName:t,value:g(t,i),defaultValue:null}}function w(e){switch(e){case"esriGeometryPolyline":return"Invalid_L";case"esriGeometryPolygon":return"Invalid_A";default:return"Invalid_P"}}var _=i(73681),x=i(55674),S=i(40863),M=i(93397);const A={type:"CIMSimpleLineCallout",lineSymbol:{type:"CIMLineSymbol",symbolLayers:[{type:"CIMSolidStroke",width:.5,color:[0,0,0,255]}]}};class j{constructor(e,t,i,s){this.url=e,this.fieldMap=i,this.dictionaryInfo=s,this._symbolPartCache=new h.q(100),this._evaluator=(async()=>_.n.from(await s,t,i))()}async getSymbolAsync(e,t,i=!0){const s=await this._evaluator,r=t?.fields??(0,x.lL)(e.attributes),o=s.createDictionaryFieldsIndex(r),n=s.evaluate(e,t?.scale??0,o,t?.spatialReference);if(null==n)return null;const l=(0,m.$B)(e.geometry),a=b.parse(n,s.itemNames,l),u="esriGeometryPoint"===l&&!e.geometry?.hasZ;return await this._cimPartsToCIMSymbol(e,a.partNames,a.overrides,u,t,i,o)}async getSymbolForControlString(e,t,i){const s=await this._evaluator,r=b.parse(e,s.itemNames,t),o="esriGeometryPoint"===t&&!i,n=Z(await Promise.all(r.partNames.map(e=>this._getSymbolPart(e))),r.overrides,o);return new S.A({data:n})}async _cimPartsToCIMSymbol(e,t,s,r,o,n,a){const u=t.map(e=>this._getSymbolPart(e,o));let p=await Promise.all(u);if(n&&this.fieldMap&&p.length>0){const{OverrideHelper:t}=await i.e(3937).then(i.bind(i,73937));p=(0,l.o8)(p);for(const i of p)t.applyDictionaryTextOverrides(i,e,this.fieldMap,a,(0,M.bs)(i))}const y=Z(p,s,r);return new S.A({data:y})}async _fetchSymbolPart(e,t){const i=await this.dictionaryInfo,s=(this.url+"/"+i.cimRefTemplateUrl).replaceAll(/\{itemName\}/gi,e),{data:r}=await(0,n.A)(s,{responseType:"json",query:{f:"json"},...t});return r}async _getSymbolPart(e,t){let i=this._symbolPartCache.get(e);return i||(i=this._fetchSymbolPart(e,t),this._symbolPartCache.get(e)),i}}function Z(e,t,i){if(!e||0===e.length)return null;const s={...e[0]};if(e.length>1){s.effects=null,s.symbolLayers=[];for(const t of e){const e=t;if(null!=e.effects)for(const t of e.symbolLayers)null==t.effects?t.effects=e.effects:t.effects.unshift(...e.effects);s.symbolLayers.unshift(...e.symbolLayers)}}return i&&(s.callout=A),{type:"CIMSymbolReference",symbol:s,primitiveOverrides:t}}var I;let D=I=class extends((0,d.h)(c.A)){constructor(e){super(e),this.config=null,this.fieldMap=null,this.scaleExpression=null,this.scaleExpressionTitle=null,this.url=null,this.type="dictionary"}get _loader(){const e=this.getDictionaryInfo();return new j(this.url,this.config,this.fieldMap??{},e)}writeData(e,t){e&&(t.scalingExpressionInfo={expression:e,returnType:"number"})}writeVisualVariables(e,t,i,s){s?.origin||super.writeVisualVariables(e,t,i,s)}clone(){return new I({config:(0,l.o8)(this.config),scaleExpression:this.scaleExpression,scaleExpressionTitle:this.scaleExpressionTitle,fieldMap:(0,l.o8)(this.fieldMap),url:(0,l.o8)(this.url),visualVariables:(0,l.o8)(this.visualVariables)})}async getSymbolAsync(e,t,i=!0){return this._loader.getSymbolAsync(e,t,i)}async getSymbolForControlString(e,t,i){return this._loader.getSymbolForControlString(e,t,i)}getDictionaryInfo(){return this._dictionaryInfoPromise||(this._dictionaryInfoPromise=this._fetchDictionaryInfo()),this._dictionaryInfoPromise}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t),this.scaleExpression&&await(0,y.Dx)(e,t,this.scaleExpression);for(const i in this.fieldMap){const s=this.fieldMap[i];t.has(s)&&e.add(s)}}get arcadeRequired(){return!0}getSymbol(){return null}get symbols(){return[]}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){return`${this.url}-${JSON.stringify(this.fieldMap)}`}async _fetchDictionaryInfo(){const{data:e}=await(0,n.A)(this.url+"/resources/styles/dictionary-info.json",{responseType:"json",query:{f:"json"}});return e}};(0,o._)([(0,a.MZ)({type:j})],D.prototype,"_loader",null),(0,o._)([(0,a.MZ)({type:Object,json:{read:{source:"configuration"},write:{target:"configuration"}}})],D.prototype,"config",void 0),(0,o._)([(0,a.MZ)({type:Object,json:{write:!0}})],D.prototype,"fieldMap",void 0),(0,o._)([(0,a.MZ)({type:String,json:{read:{source:"scalingExpressionInfo.expression"},write:!0}})],D.prototype,"scaleExpression",void 0),(0,o._)([(0,p.K)("scaleExpression")],D.prototype,"writeData",null),(0,o._)([(0,a.MZ)({type:String,json:{read:{source:"scalingExpressionInfo.title"},write:{target:"scalingExpressionInfo.title",overridePolicy(e){return{enabled:!!e&&!!this.scaleExpression}}}}})],D.prototype,"scaleExpressionTitle",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],D.prototype,"url",void 0),(0,o._)([(0,p.K)("visualVariables")],D.prototype,"writeVisualVariables",null),D=I=(0,o._)([(0,u.$)("esri.renderers.DictionaryRenderer")],D);var E,C=i(93223),P=i(25482),N=i(79901),R=(i(87811),i(56507));let V=E=class extends P.A{constructor(e){super(e),this.color=null,this.field=null,this.label=null,this.valueExpression=null,this.valueExpressionTitle=null}castField(e){return null==e?e:"function"==typeof e?(s.A.getLogger(this).error(".field: field must be a string value"),null):(0,R.GX)(e)}getAttributeHash(){return`${this.field}-${this.valueExpression}`}clone(){return new E({color:this.color?.clone(),field:this.field,label:this.label,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,o._)([(0,a.MZ)({type:f.A,json:{type:[Number],write:!0}})],V.prototype,"color",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],V.prototype,"field",void 0),(0,o._)([(0,N.w)("field")],V.prototype,"castField",null),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],V.prototype,"label",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],V.prototype,"valueExpression",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],V.prototype,"valueExpressionTitle",void 0),V=E=(0,o._)([(0,u.$)("esri.renderers.support.AttributeColorInfo")],V);const T=V;var O;let k=O=class extends P.A{constructor(){super(...arguments),this.unit=null}clone(){return new O({unit:this.unit})}};(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],k.prototype,"unit",void 0),k=O=(0,o._)([(0,u.$)("esri.renderers.support.DotDensityLegendOptions")],k);const $=k;var q,L=i(94985),H=i(31593);let F=q=class extends((0,d.h)(c.A)){constructor(e){super(e),this.attributes=null,this.backgroundColor=new f.A([0,0,0,0]),this.dotBlendingEnabled=!0,this.dotShape="square",this.dotSize=1,this.legendOptions=null,this.outline=new H.A,this.dotValue=null,this.referenceScale=null,this.seed=1,this.type="dot-density"}calculateDotValue(e){if(null==this.referenceScale)return this.dotValue;const t=e/this.referenceScale*this.dotValue;return t<1?1:t}getSymbol(){return new L.A({outline:this.outline})}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol()]}getAttributeHash(){return this.attributes?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){return JSON.stringify(this.outline)}clone(){return new q({attributes:(0,l.o8)(this.attributes),backgroundColor:(0,l.o8)(this.backgroundColor),dotBlendingEnabled:(0,l.o8)(this.dotBlendingEnabled),dotShape:(0,l.o8)(this.dotShape),dotSize:(0,l.o8)(this.dotSize),dotValue:(0,l.o8)(this.dotValue),legendOptions:(0,l.o8)(this.legendOptions),outline:(0,l.o8)(this.outline),referenceScale:(0,l.o8)(this.referenceScale),seed:(0,l.o8)(this.seed),visualVariables:(0,l.o8)(this.visualVariables),authoringInfo:(0,l.o8)(this.authoringInfo)})}getControllerHash(){const e=this.attributes?.map(e=>e.field||e.valueExpression||"");return`${e}-${this.outline&&JSON.stringify(this.outline.toJSON())||""}`}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes??[])i.valueExpression&&await(0,y.Dx)(e,t,i.valueExpression),i.field&&e.add(i.field)}};(0,o._)([(0,a.MZ)({type:[T],json:{write:!0}})],F.prototype,"attributes",void 0),(0,o._)([(0,a.MZ)({type:f.A,json:{write:!0}})],F.prototype,"backgroundColor",void 0),(0,o._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"dotBlendingEnabled",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!1}})],F.prototype,"dotShape",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],F.prototype,"dotSize",void 0),(0,o._)([(0,a.MZ)({type:$,json:{write:!0}})],F.prototype,"legendOptions",void 0),(0,o._)([(0,a.MZ)({type:H.A,json:{default:null,write:!0}})],F.prototype,"outline",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],F.prototype,"dotValue",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],F.prototype,"referenceScale",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],F.prototype,"seed",void 0),(0,o._)([(0,C.e)({dotDensity:"dot-density"})],F.prototype,"type",void 0),F=q=(0,o._)([(0,u.$)("esri.renderers.DotDensityRenderer")],F);var z,B=i(90629),J=i(30943);let G=z=class extends P.A{constructor(e){super(e),this.color=null,this.ratio=null}clone(){return new z({color:this.color&&this.color.clone(),ratio:this.ratio})}};(0,o._)([(0,a.MZ)({type:f.A,json:{type:[R.jz],default:null,write:{isRequired:!0}}})],G.prototype,"color",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:{isRequired:!0}}})],G.prototype,"ratio",void 0),G=z=(0,o._)([(0,u.$)("esri.renderers.support.HeatmapColorStop")],G);var K=i(69540);let U=class extends(K.A.ClonableMixin(P.A)){constructor(){super(...arguments),this.minLabel=null,this.maxLabel=null,this.title=null}};(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],U.prototype,"minLabel",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],U.prototype,"maxLabel",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],U.prototype,"title",void 0),U=(0,o._)([(0,u.$)("esri.renderers.support.HeatmapLegendOptions")],U);var X,Q=i(61760),W=i(53930);function Y(e){if(null!=e){const{maxDensity:t,minDensity:i,radius:s}=e;if(null!=t||null!=i||null!=s){const{blurRadius:t,maxPixelIntensity:i,minPixelIntensity:s,...r}=e;return r}}return e}let ee=X=class extends c.A{constructor(e){super(e),this.authoringInfo=null,this.colorStops=[new G({ratio:0,color:new f.A("rgba(255, 140, 0, 0)")}),new G({ratio:.75,color:new f.A("rgba(255, 140, 0, 1)")}),new G({ratio:.9,color:new f.A("rgba(255, 0, 0, 1)")})],this.field=null,this.legendOptions=null,this.maxDensity=.04,this.minDensity=0,this.radius=18,this.referenceScale=0,this.type="heatmap",this.valueExpression=null,this.valueExpressionTitle=null}normalizeCtorArgs(e){return Y(e)}get blurRadius(){return(0,Q.PU)(this.radius)}set blurRadius(e){const t=this.maxPixelIntensity,i=this.minPixelIntensity;this._set("radius",(0,Q.zp)(e)),this._set("maxDensity",t*this._pixelIntensityToDensity),this._set("minDensity",i*this._pixelIntensityToDensity)}get maxPixelIntensity(){return this.maxDensity/this._pixelIntensityToDensity}set maxPixelIntensity(e){this._set("maxDensity",e*this._pixelIntensityToDensity)}get minPixelIntensity(){return this.minDensity/this._pixelIntensityToDensity}set minPixelIntensity(e){this._set("minDensity",e*this._pixelIntensityToDensity)}get _pixelIntensityToDensity(){return 24/(Q.ex**2*this.blurRadius**4)}read(e,t){e=Y(e),super.read(e,t)}getSymbol(){return new W.A}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol()]}async collectRequiredFields(e,t){const i=this.field,s=this.valueExpression;i&&"string"==typeof i&&(0,y.rq)(e,t,i),s&&"string"==typeof s&&await(0,y.Dx)(e,t,s)}getAttributeHash(){return""}getMeshHash(){return`${JSON.stringify(this.colorStops)}.${this.blurRadius}.${this.field}`}clone(){return new X({authoringInfo:this.authoringInfo&&this.authoringInfo.clone(),colorStops:(0,l.o8)(this.colorStops),field:this.field,legendOptions:(0,l.o8)(this.legendOptions),maxDensity:this.maxDensity,minDensity:this.minDensity,radius:this.radius,referenceScale:this.referenceScale,valueExpression:this.valueExpression,valueExpressionTitle:this.valueExpressionTitle})}};(0,o._)([(0,a.MZ)({type:J.A,json:{write:!0,origins:{"web-scene":{write:!1,read:!1}}}})],ee.prototype,"authoringInfo",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],ee.prototype,"blurRadius",null),(0,o._)([(0,a.MZ)({type:[G],json:{write:{isRequired:!0}}})],ee.prototype,"colorStops",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],ee.prototype,"field",void 0),(0,o._)([(0,a.MZ)({type:U,json:{write:!0}})],ee.prototype,"legendOptions",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],ee.prototype,"maxDensity",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],ee.prototype,"maxPixelIntensity",null),(0,o._)([(0,a.MZ)({type:Number,json:{write:!0}})],ee.prototype,"minDensity",void 0),(0,o._)([(0,a.MZ)({type:Number,json:{origins:{"portal-item":{write:!0},"web-map":{write:!0}}}})],ee.prototype,"minPixelIntensity",null),(0,o._)([(0,a.MZ)({type:Number,cast:B.cr,json:{write:!0}})],ee.prototype,"radius",void 0),(0,o._)([(0,a.MZ)({type:Number,range:{min:0},json:{default:0,write:!0}})],ee.prototype,"referenceScale",void 0),(0,o._)([(0,C.e)({heatmap:"heatmap"})],ee.prototype,"type",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-document":{write:!1},"portal-item":{write:!1}}}})],ee.prototype,"valueExpression",void 0),(0,o._)([(0,a.MZ)({type:String})],ee.prototype,"valueExpressionTitle",void 0),(0,o._)([(0,a.MZ)({readOnly:!0})],ee.prototype,"_pixelIntensityToDensity",null),ee=X=(0,o._)([(0,u.$)("esri.renderers.HeatmapRenderer")],ee);var te=i(4576),ie=i(49849);let se=class extends(K.A.ClonableMixin(P.A)){constructor(){super(...arguments),this.color=new f.A([0,0,0,0]),this.label=null,this.threshold=0}};(0,o._)([(0,a.MZ)({type:f.A,json:{write:!0}})],se.prototype,"color",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],se.prototype,"label",void 0),(0,o._)([(0,a.MZ)({type:Number,range:{min:0,max:1},json:{write:!0}})],se.prototype,"threshold",void 0),se=(0,o._)([(0,u.$)("esri.renderers.support.OthersCategory")],se);var re=i(20061),oe=i(62724),ne=i(48940);const le={base:i(2795).A,key:"type",typeMap:{size:ne.A,opacity:oe.A}};let ae=class extends((0,d.h)(K.A.ClonableMixin(c.A))){constructor(e){super(e),this.attributes=null,this.backgroundFillSymbol=null,this.defaultColor=new f.A([0,0,0,0]),this.defaultLabel=null,this.holePercentage=0,this.othersCategory=new se,this.legendOptions=null,this.outline=null,this.size=12,this.type="pie-chart",this.visualVariables=null}getSymbol(){return new W.A({size:this.size?this.size/2+(this.outline?.width||0):0})}async getSymbolAsync(){return this.getSymbol()}get symbols(){return[this.getSymbol(),this.backgroundFillSymbol].filter(te.Ru)}getAttributeHash(){return this.visualVariables?.reduce((e,t)=>e+t.getAttributeHash(),"")??""}getMeshHash(){return this.symbols.reduce((e,t)=>e+JSON.stringify(t),"")}async collectRequiredFields(e,t){await this.collectVVRequiredFields(e,t);for(const i of this.attributes)i.valueExpression&&await(0,y.Dx)(e,t,i.valueExpression),i.field&&e.add(i.field)}};(0,o._)([(0,a.MZ)({type:[T],json:{write:!0}})],ae.prototype,"attributes",void 0),(0,o._)([(0,a.MZ)(ie.As)],ae.prototype,"backgroundFillSymbol",void 0),(0,o._)([(0,a.MZ)({type:f.A,json:{write:!0}})],ae.prototype,"defaultColor",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],ae.prototype,"defaultLabel",void 0),(0,o._)([(0,a.MZ)({type:Number,range:{min:0,max:1},json:{write:!0}})],ae.prototype,"holePercentage",void 0),(0,o._)([(0,a.MZ)({type:se,json:{write:!0}})],ae.prototype,"othersCategory",void 0),(0,o._)([(0,a.MZ)({type:re.A,json:{write:!0}})],ae.prototype,"legendOptions",void 0),(0,o._)([(0,a.MZ)({type:H.A,json:{default:null,write:!0}})],ae.prototype,"outline",void 0),(0,o._)([(0,a.MZ)({type:Number,cast:B.cr,json:{write:!0}})],ae.prototype,"size",void 0),(0,o._)([(0,C.e)({pieChart:"pie-chart"})],ae.prototype,"type",void 0),(0,o._)([(0,a.MZ)({types:[le]})],ae.prototype,"visualVariables",void 0),ae=(0,o._)([(0,u.$)("esri.renderers.PieChartRenderer")],ae);var ue=i(96576),pe=i(93618);const ye={key:"type",base:c.A,typeMap:{heatmap:ee,simple:ue.A,"unique-value":pe.A,"class-breaks":r.A,"dot-density":F,dictionary:D,"pie-chart":ae},errorContext:"renderer"},ce={key:"type",base:c.A,typeMap:{simple:ue.A,"unique-value":pe.A,"class-breaks":r.A,heatmap:ee},errorContext:"renderer",validate:function(e){switch(e.type){case"simple":return function(e){if(e.symbol)return e;s.A.getLogger("esri.renderers.support.types").error("Removed invalid 'simple' renderer without a symbol from web scene.")}(e);case"unique-value":return function(e){const t=e.uniqueValueInfos,i=t?.filter(({symbol:e,label:t},i)=>(e||s.A.getLogger("esri.renderers.support.types").error(`Removed invalid unique value info ([${i}] ${t}) without a symbol from web scene.`),!!e));return i?.length!==t?.length&&(e.uniqueValueInfos=i),e}(e);case"class-breaks":return function(e){const t=e.classBreakInfos,i=t?.filter(({symbol:e,label:t},i)=>(e||s.A.getLogger("esri.renderers.support.types").error(`Removed invalid class break info ([${i}] ${t}) without a symbol from web scene.`),!!e));return i?.length!==t?.length&&(e.classBreakInfos=i),e}(e);case"heatmap":return e}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4026],{18251:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(90237),i=r(69540),s=r(25482),o=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),l=r(40608),u=r(51850);let d=class extends(i.A.ClonableMixin(s.A)){constructor(e){super(e),this.type="local",this.origin=(0,u.vt)()}};(0,n._)([(0,a.e)({local:"local"},{readOnly:!0})],d.prototype,"type",void 0),(0,n._)([(0,o.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],d.prototype,"origin",void 0),d=(0,n._)([(0,l.$)("esri.geometry.support.MeshLocalVertexSpace")],d)},20437:(e,t,r)=>{r.d(t,{A:()=>y});var n,i=r(90237),s=r(66552),o=r(25482),a=r(10107),l=r(56507),u=(r(44208),r(87811),r(93223)),d=r(36005),c=r(40608),h=r(80451),f=r(98453);const p=new s.J({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"});let y=class extends o.A{static{n=this}constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch(e){}return r?p.fromJSON(r.fieldValueType):null}clone(){return new n({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"alias",void 0),(0,i._)([(0,a.MZ)({type:[String,Number],json:{write:{allowNull:!0}}})],y.prototype,"defaultValue",void 0),(0,i._)([(0,a.MZ)()],y.prototype,"description",void 0),(0,i._)([(0,d.w)("description")],y.prototype,"readDescription",null),(0,i._)([(0,a.MZ)({types:h.gK,json:{read:{reader:h.rS},write:!0}})],y.prototype,"domain",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"editable",void 0),(0,i._)([(0,a.MZ)({type:l.jz,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],y.prototype,"length",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],y.prototype,"name",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"nullable",void 0),(0,i._)([(0,u.e)(f.m)],y.prototype,"type",void 0),(0,i._)([(0,a.MZ)()],y.prototype,"valueType",void 0),(0,i._)([(0,d.w)("valueType",["description"])],y.prototype,"readValueType",null),(0,i._)([(0,a.MZ)({type:Boolean,json:{read:!1}})],y.prototype,"visible",void 0),y=n=(0,i._)([(0,c.$)("esri.layers.support.Field")],y)},35982:(e,t,r)=>{r.d(t,{B:()=>l});var n=r(4576),i=r(36563),s=r(53966),o=r(74887),a=r(29953);class l{constructor(e,t,r,n,i={}){this._mainMethod=t,this._transferLists=r,this._listeners=[],this._promise=(0,a.ho)(e,{...i,schedule:n}).then(e=>{if(void 0===this._thread){this._thread=e,this._promise=null,i.hasInitialize&&this.broadcast({},"initialize");for(const e of this._listeners)this._connectListener(e)}else e.close()}),this._promise.catch(t=>s.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${e} worker: ${t}`))}on(e,t){const r={removed:!1,eventName:e,callback:t,threadHandle:null};return this._listeners.push(r),this._connectListener(r),(0,i.hA)(()=>{r.removed=!0,(0,n.TF)(this._listeners,r),this._thread&&null!=r.threadHandle&&r.threadHandle.remove()})}destroy(){this._thread&&(this._thread.close(),this._thread=null),this._promise=null,this._listeners.length=0,this._transferLists={}}invoke(e,t,r){return this.invokeMethod(this._mainMethod,e,t,r)}invokeMethod(e,t,r,n){if(this._thread){const i=this._transferLists[e],s=i?i(t):[];return this._thread.invoke(e,t,{transferList:s,signal:r,priority:n})}return this._promise?this._promise.then(()=>((0,o.Te)(r),this.invokeMethod(e,t,r))):Promise.reject(null)}broadcast(e,t){return this._thread?Promise.all(this._thread.broadcast(t,e)).then(u):this._promise?this._promise.then(()=>this.broadcast(e,t)):Promise.reject()}get promise(){return this._promise}_connectListener(e){this._thread&&this._thread.on(e.eventName,e.callback).then(t=>{e.removed||(e.threadHandle=t)})}}function u(){}},36233:(e,t,r)=>{r.r(t),r.d(t,{destroyContext:()=>x,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>E,filterObbsForModificationsSync:()=>U,initialize:()=>I,interpretObbModificationResults:()=>C,process:()=>S,project:()=>F,setLegacySchema:()=>B,setModifications:()=>N,setModificationsSync:()=>D,test:()=>Z,transformNormals:()=>O});var n,i,s=r(34727),o=r(16930),a=r(95696),l=r(18251),u=r(73354);!function(e){e[e.None=0]="None",e[e.Int16=1]="Int16",e[e.Int32=2]="Int32"}(n||(n={})),function(e){e[e.Replace=0]="Replace",e[e.Outside=1]="Outside",e[e.Inside=2]="Inside",e[e.Finished=3]="Finished"}(i||(i={}));var d=r(2741);function c(e){return(0,d.s)(`esri/libs/i3s/${e}`)}let h;r(53966);var f,p,y,m,g,b,w=r(3694),_=r(51850),v=r(35982);r(98988),r(27993);class A{constructor(e,t,r,n,i,s){this.layout=e,this.interleavedVertexData=t,this.indices=r,this.hasColors=n,this.hasModifications=i,this.positionData=s}}class T{constructor(e,t,r,n,i,s,o){this.componentOffsets=e,this.featureIds=t,this.anchorIds=r,this.anchors=n,this.transformedGeometry=i,this.globalTrafo=s,this.obb=o}}async function S(e){R=await k();const t=[e.geometryBuffer];return{result:V(R,e,t),transferList:t}}async function M(e){R=await k();const t=[e.geometryBuffer],{geometryBuffer:r}=e,n=r.byteLength,i=R._malloc(n),s=new Uint8Array(R.HEAPU8.buffer,i,n);s.set(new Uint8Array(r));const o=R.dracoDecompressPointCloudData(i,s.byteLength);if(R._free(i),o.error.length>0)throw new Error(`i3s.wasm: ${o.error}`);const a=o.featureIds?.length>0?o.featureIds.slice():null,l=o.positions.slice();return a&&t.push(a.buffer),t.push(l.buffer),{result:{positions:l,featureIds:a},transferList:t}}async function E(e){await k(),U(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function N(e){await k(),D(e)}async function B(e){R=await k(),R.setLegacySchema(e.context,e.jsonSchema)}async function F(e){const{localMatrix:t,origin:n,positions:i,vertexSpace:s}=e,u=o.A.fromJSON(e.inSpatialReference),d=o.A.fromJSON(e.outSpatialReference);let c;const[{projectBuffer:h},{initializeProjection:f}]=await Promise.all([Promise.resolve().then(r.bind(r,9762)),Promise.resolve().then(r.bind(r,98988))]);await f(u,d);const p=[0,0,0];if(!h(n,u,0,p,d,0))throw new Error("Failed to project");if("georeferenced"===s.type&&null==s.origin){if(c=new Float64Array(i.length),!h(i,u,0,c,d,0,c.length/3))throw new Error("Failed to project")}else{const e="georeferenced"===s.type?a.A.fromJSON(s):l.A.fromJSON(s),{projectMeshVertexPositions:n}=await Promise.all([r.e(3030),r.e(4594)]).then(r.bind(r,74594)),o=n({vertexAttributes:{position:i},transform:t?{localMatrix:t}:void 0,vertexSpace:e,spatialReference:u},d);if(!o)throw new Error("Failed to project");c=o}const y=c.length,[m,g,b]=p;for(let e=0;e<y;e+=3)c[e]-=m,c[e+1]-=g,c[e+2]-=b;return{result:{projected:c,original:i,projectedOrigin:p},transferList:[c.buffer,i.buffer]}}async function O({normalMatrix:e,normals:t}){const r=new Float32Array(t.length);return(0,u.b)(r,t,e),(0,s.or)(e)&&(0,u.n)(r,r),{result:{transformed:r,original:t},transferList:[r.buffer,t.buffer]}}function x(e){j(e)}let L,R;function D(e){if(!R)return;const t=e.modifications,r=R._malloc(8*t.length),n=new Float64Array(R.HEAPU8.buffer,r,t.length);for(let e=0;e<t.length;++e)n[e]=t[e];R.setModifications(e.context,r,t.length,e.isGeodetic),R._free(r)}function V(e,t,r){const{context:i,globalTrafo:s,mbs:o,obbData:a,elevationOffset:l,geometryBuffer:u,geometryDescriptor:d,indexToVertexProjector:c,vertexToRenderProjector:h}=t,f=e._malloc(u.byteLength),p=e._malloc(33*Float64Array.BYTES_PER_ELEMENT),y=new Uint8Array(e.HEAPU8.buffer,f,u.byteLength);y.set(new Uint8Array(u));const m=new Float64Array(e.HEAPU8.buffer,p,33);P(m,[NaN,NaN,NaN]);let g=m.byteOffset+3*m.BYTES_PER_ELEMENT,b=new Float64Array(m.buffer,g);P(b,s),g+=16*m.BYTES_PER_ELEMENT,b=new Float64Array(m.buffer,g),P(b,o),g+=4*m.BYTES_PER_ELEMENT,a&&(b=new Float64Array(m.buffer,g),P(b,a));const w=d,_={isDraco:!1,isLegacy:!1,color:t.layouts.some(e=>e.some(e=>"color"===e.name)),normal:t.needNormals&&t.layouts.some(e=>e.some(e=>"normalCompressed"===e.name)),uv0:t.layouts.some(e=>e.some(e=>"uv0"===e.name)),uvRegion:t.layouts.some(e=>e.some(e=>"uvRegion"===e.name)),featureIndex:w.featureIndex},v=e.process(i,!!t.obbData,f,y.byteLength,w,_,p,l,c,h,t.normalReferenceFrame);if(e._free(p),e._free(f),v.error.length>0)throw new Error(`i3s.wasm: ${v.error}`);if(v.discarded)return null;const S=v.componentOffsets.length>0?v.componentOffsets.slice():null,M=v.featureIds.length>0?v.featureIds.slice():null,E=v.anchorIds.length>0?Array.from(v.anchorIds):null,N=v.anchors.length>0?Array.from(v.anchors):null,B=v.interleavedVertedData.slice().buffer,F=v.indicesType===n.Int16?new Uint16Array(v.indices.buffer,v.indices.byteOffset,v.indices.byteLength/2).slice():new Uint32Array(v.indices.buffer,v.indices.byteOffset,v.indices.byteLength/4).slice(),O=v.positions.slice(),{buffer:x,byteOffset:L,byteLength:R}=v.positionIndices,D=v.positionIndicesType===n.Int16?new Uint16Array(x,L,R/2).slice():new Uint32Array(x,L,R/4).slice(),V=new A(t.layouts[0],B,F,v.hasColors,v.hasModifications,{data:O,indices:D});return M&&r.push(M.buffer),S&&r.push(S.buffer),r.push(B),r.push(F.buffer),r.push(O.buffer),r.push(D.buffer),new T(S,M,E,N,V,s,v.obb)}function C(e){return 0===e?p.Unmodified:1===e?p.PotentiallyModified:2===e?p.Culled:p.Unknown}function U(e){if(!R)return;const{context:t,buffer:r}=e,n=R._malloc(r.byteLength),i=r.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(R.HEAPU8.buffer,n,i),o=new Float64Array(r);s.set(o),R.filterOBBs(t,n,i),o.set(s),R._free(n)}function j(e){R&&0===R.destroy(e)&&(R=null,L=null,h=null)}function P(e,t){for(let r=0;r<t.length;++r)e[r]=t[r]}async function I(){R||await k()}async function k(){return R||(R=await(L??=(h||(h=new Promise(e=>r.e(2980).then(r.bind(r,82980)).then(e=>e.i).then(({default:t})=>{const r=t({locateFile:c,onRuntimeInitialized:()=>e(r)});delete r.then})).catch(e=>{throw e})),h))),R}v.B,new w.A({deallocator:null}),(0,_.vt)(),r(91829),r(97937),r(584),(b=f||(f={}))[b.Unmodified=0]="Unmodified",b[b.Culled=1]="Culled",b[b.NotChecked=2]="NotChecked",function(e){e[e.Unmodified=0]="Unmodified",e[e.PotentiallyModified=1]="PotentiallyModified",e[e.Culled=2]="Culled",e[e.Unknown=3]="Unknown",e[e.NotChecked=4]="NotChecked"}(p||(p={})),function(e){e[e.Unknown=0]="Unknown",e[e.Uncached=1]="Uncached",e[e.Cached=2]="Cached"}(y||(y={})),function(e){e[e.None=0]="None",e[e.MaxScreenThreshold=1]="MaxScreenThreshold",e[e.ScreenSpaceRelative=2]="ScreenSpaceRelative",e[e.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",e[e.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(m||(m={})),function(e){e[e.Hole=0]="Hole",e[e.Leaf=1]="Leaf"}(g||(g={}));const Z={transform:(e,t)=>R&&V(R,e,t),destroy:j}},39357:(e,t,r)=>{r.d(t,{H:()=>l});var n,i=r(90237),s=r(25482),o=r(10107),a=(r(44208),r(53966),r(87811),r(40608));let l=n=class extends s.A{constructor(e){super(e),this.name=null,this.code=null}clone(){return new n({name:this.name,code:this.code})}};(0,i._)([(0,o.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"name",void 0),(0,i._)([(0,o.MZ)({type:[String,Number],json:{write:{isRequired:!0}}})],l.prototype,"code",void 0),l=n=(0,i._)([(0,a.$)("esri.layers.support.CodedValue")],l)},53177:(e,t,r)=>{r.d(t,{A:()=>c});var n,i=r(90237),s=r(4718),o=r(10107),a=(r(44208),r(53966),r(93223)),l=r(40608),u=r(39357),d=r(76357);let c=class extends d.A{static{n=this}constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){const r=String(e);this.codedValues.some(e=>(String(e.code)===r&&(t=e.name),!!t))}return t}clone(){return new n({codedValues:(0,s.o8)(this.codedValues),name:this.name})}};(0,i._)([(0,o.MZ)({type:[u.H],json:{write:{isRequired:!0}}})],c.prototype,"codedValues",void 0),(0,i._)([(0,a.e)({codedValue:"coded-value"})],c.prototype,"type",void 0),c=n=(0,i._)([(0,l.$)("esri.layers.support.CodedValueDomain")],c)},64272:(e,t,r)=>{r.d(t,{T:()=>h});var n,i=r(90237),s=r(25482),o=r(88930),a=r(10107),l=(r(44208),r(53966),r(87811),r(36005)),u=r(40608),d=r(43937),c=r(98623);let h=class extends s.A{static{n=this}static get allTime(){return f}static get empty(){return p}static fromArray(e){return new n({start:null!=e[0]?new Date(e[0]):e[0],end:null!=e[1]?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(n.allTime)}get isEmpty(){return this.equals(n.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new n({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.lL)(r,e,t));let i=this.end;if(i){const r=(0,o.lL)(i,e,t);i=i.getTime()===r.getTime()?r:(0,o.S1)(r,1,e,t)}return new n({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return n.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,s=e.end?.getTime()??1/0;let o,a;return i>=t&&i<=r?o=i:t>=i&&t<=s&&(o=t),r>=i&&r<=s?a=r:s>=t&&s<=r&&(a=s),null==o||null==a||isNaN(o)||isNaN(a)?n.empty:new n({start:o===-1/0?null:new Date(o),end:a===1/0?null:new Date(a)})}offset(e,t,r=c.qU){if(this.isEmpty||this.isAllTime)return this.clone();const i=new n,{start:s,end:a}=this;return null!=s&&(i.start=(0,o.S1)(s,e,t,r)),null!=a&&(i.end=(0,o.S1)(a,e,t,r)),i}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return f.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new n({start:t,end:r})}};(0,i._)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"end",void 0),(0,i._)([(0,l.w)("end")],h.prototype,"readEnd",null),(0,i._)([(0,d.K)("end")],h.prototype,"writeEnd",null),(0,i._)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isAllTime",null),(0,i._)([(0,a.MZ)({readOnly:!0,json:{read:!1}})],h.prototype,"isEmpty",null),(0,i._)([(0,a.MZ)({type:Date,json:{write:{allowNull:!0}}})],h.prototype,"start",void 0),(0,i._)([(0,l.w)("start")],h.prototype,"readStart",null),(0,i._)([(0,d.K)("start")],h.prototype,"writeStart",null),h=n=(0,i._)([(0,u.$)("esri.time.TimeExtent")],h);const f=new h,p=new h({start:void 0,end:void 0})},68197:(e,t,r)=>{r.d(t,{A:()=>c});var n,i,s=r(40876),o=r(34727),a=r(56507);function l(e){return(0,o.qE)((0,a.Vr)(e),0,255)}function u(e,t){const r=e.toString(16).padStart(2,"0");return t?r.slice(0,1):r}class d{static blendColors(e,t,r,n=new d){return n.r=Math.round(e.r+(t.r-e.r)*r),n.g=Math.round(e.g+(t.g-e.g)*r),n.b=Math.round(e.b+(t.b-e.b)*r),n.a=e.a+(t.a-e.a)*r,n._sanitize()}static fromRgb(e,t){const r=(0,s.lT)(e);return r?d.fromArray(r,t):null}static fromHex(e,t=new d){const r=(0,s.oW)(e);return r?d.fromArray(r,t):null}static fromArray(e,t=new d){return t._set(Number(e[0]),Number(e[1]),Number(e[2]),Number(e[3])),isNaN(t.a)&&(t.a=1),t._sanitize()}static fromString(e,t){const r=(0,s.Eq)(e);return r?d.fromArray(r,t):null}static fromJSON(e){return null!=e?new d([e[0],e[1],e[2],(e[3]??255)/255]):void 0}static toUnitRGB(e){return null!=e?[e.r/255,e.g/255,e.b/255]:null}static toUnitRGBA(e){return null!=e?[e.r/255,e.g/255,e.b/255,null!=e.a?e.a:1]:null}constructor(e){this.r=255,this.g=255,this.b=255,this.a=1,e&&this.setColor(e)}get isBright(){return.299*this.r+.587*this.g+.114*this.b>=127}setColor(e){return"string"==typeof e?d.fromString(e,this):Array.isArray(e)?d.fromArray(e,this):(this._set(e.r??0,e.g??0,e.b??0,e.a??1),e instanceof d||this._sanitize()),this}toRgb(){return[this.r,this.g,this.b]}toRgba(){return[this.r,this.g,this.b,this.a]}toHex(e){const t=e?.capitalize??!1,r=e?.digits??6,n=3===r||4===r,i=4===r||8===r,s=`#${u(this.r,n)}${u(this.g,n)}${u(this.b,n)}${i?u(Math.round(255*this.a),n):""}`;return t?s.toUpperCase():s}toCss(e=!1){const t=this.r+", "+this.g+", "+this.b;return e?`rgba(${t}, ${this.a})`:`rgb(${t})`}toString(){return this.toCss(!0)}toJSON(){return this.toArray()}toArray(e=d.AlphaMode.ALWAYS){const t=l(this.r),r=l(this.g),n=l(this.b);return e===d.AlphaMode.ALWAYS||1!==this.a?[t,r,n,l(255*this.a)]:[t,r,n]}clone(){return new d(this.toRgba())}hash(){return this.r<<24|this.g<<16|this.b<<8|255*this.a}equals(e){return null!=e&&e.r===this.r&&e.g===this.g&&e.b===this.b&&e.a===this.a}_sanitize(){return this.r=(0,s.c1)(this.r),this.g=(0,s.c1)(this.g),this.b=(0,s.c1)(this.b),this.a=(0,s.G1)(this.a),this}_set(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=n}}d.prototype.declaredClass="esri.Color",(i=(n=d||(d={})).AlphaMode||(n.AlphaMode={}))[i.ALWAYS=0]="ALWAYS",i[i.UNLESS_OPAQUE=1]="UNLESS_OPAQUE";const c=d},69540:(e,t,r)=>{r.d(t,{A:()=>h});var n=r(90237),i=r(69622),s=(r(44208),r(4718)),o=(r(53966),r(97768)),a=r(35666),l=r(88620),u=r(40608);const d=e=>{let t=class extends e{clone(e){const t=(0,l.oY)(this);(0,o.Lw)(t,"unable to clone instance of non-accessor class");const r=t.metadata,n=t.store,i={},u=new Map;for(const t in r){const o=r[t],l=n?.originOf(t),d=o.clonable;if(o.readOnly||!1===d||l!==a.Gr.USER&&l!==a.Gr.DEFAULTS&&l!==a.Gr.WEB_MAP&&l!==a.Gr.WEB_SCENE)continue;const c=this[t];let h=null;h="function"==typeof d?d(c,e):"reference"===d?c:(0,s.TU)(c,e),null!=c&&null==h||(l===a.Gr.DEFAULTS?u.set(t,h):i[t]=h)}const d=new(0,Object.getPrototypeOf(this).constructor)(i);if(u.size){const e=(0,l.oY)(d)?.store;if(e)for(const[t,r]of u)e.set(t,r,a.Gr.DEFAULTS)}return d}};return t=(0,n._)([(0,u.$)("esri.core.Clonable")],t),t};let c=class extends(d(i.A)){};c=(0,n._)([(0,u.$)("esri.core.Clonable")],c),(c||(c={})).ClonableMixin=d;const h=c},73354:(e,t,r)=>{r.d(t,{a:()=>c,b:()=>a,c:()=>o,d:()=>i,e:()=>h,f:()=>d,l:()=>u,n:()=>f,t:()=>s});var n=r(40876);function i(e,t,r){s(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function s(e,t,r,n=3,i=n){if(e.length/n!==Math.ceil(t.length/i))return e;const s=e.length/n,o=r[0],a=r[1],l=r[2],u=r[4],d=r[5],c=r[6],h=r[8],f=r[9],p=r[10],y=r[12],m=r[13],g=r[14];let b=0,w=0;for(let r=0;r<s;r++){const r=t[b],s=t[b+1],_=t[b+2];e[w]=o*r+u*s+h*_+y,e[w+1]=a*r+d*s+f*_+m,e[w+2]=l*r+c*s+p*_+g,b+=i,w+=n}return e}function o(e,t,r){a(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)}function a(e,t,r,n=3,i=n){if(e.length/n!==Math.ceil(t.length/i))return;const s=e.length/n,o=r[0],a=r[1],l=r[2],u=r[3],d=r[4],c=r[5],h=r[6],f=r[7],p=r[8];let y=0,m=0;for(let r=0;r<s;r++){const r=t[y],s=t[y+1],g=t[y+2];e[m]=o*r+u*s+h*g,e[m+1]=a*r+d*s+f*g,e[m+2]=l*r+c*s+p*g,y+=i,m+=n}}function l(e,t,r,n=3,i=n){const s=Math.min(e.length/n,t.length/i);let o=0,a=0;for(let l=0;l<s;l++)e[a]=r*t[o],e[a+1]=r*t[o+1],e[a+2]=r*t[o+2],o+=i,a+=n;return e}function u(e,t,r,n){d(e.typedBuffer,t.typedBuffer,r,n,e.typedBufferStride,t.typedBufferStride)}function d(e,t,r,i,s=3,o=s){const a=Math.min(e.length/s,t.length/o);let l=0,u=0;const d=1/n.Tf;for(let n=0;n<a;n++)e[u]=i*(r*t[l])**d,e[u+1]=i*(r*t[l+1])**d,e[u+2]=i*(r*t[l+2])**d,l+=o,u+=s}function c(e,t,r,n=3,i=n){const s=e.length/n;if(s!==Math.ceil(t.length/i))return e;let o=0,a=0;for(let l=0;l<s;l++)e[a]=t[o]+r[0],e[a+1]=t[o+1]+r[1],e[a+2]=t[o+2]+r[2],o+=i,a+=n;return e}function h(e,t){f(e.typedBuffer,t.typedBuffer,e.typedBufferStride,t.typedBufferStride)}function f(e,t,r=3,n=r){const i=Math.min(e.length/r,t.length/n);let s=0,o=0;for(let a=0;a<i;a++){const i=t[s],a=t[s+1],l=t[s+2],u=i*i+a*a+l*l;if(u>0){const t=1/Math.sqrt(u);e[o]=t*i,e[o+1]=t*a,e[o+2]=t*l}s+=n,o+=r}}r(44208),r(53966),Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:d,linearToSRGBView:u,normalize:f,normalizeView:h,scale:l,scaleView:function(e,t,r){l(e.typedBuffer,t.typedBuffer,r,e.typedBufferStride,t.typedBufferStride)},shiftRight:function(e,t,r){const n=Math.min(e.count,t.count),i=e.typedBuffer,s=e.typedBufferStride,o=t.typedBuffer,a=t.typedBufferStride;let l=0,u=0;for(let e=0;e<n;e++)i[u]=o[l]>>r,i[u+1]=o[l+1]>>r,i[u+2]=o[l+2]>>r,l+=a,u+=s},transformMat3:a,transformMat3View:o,transformMat4:s,transformMat4View:i,translate:c},Symbol.toStringTag,{value:"Module"}))},76357:(e,t,r)=>{r.d(t,{A:()=>d});var n=r(90237),i=r(66552),s=r(25482),o=r(10107),a=(r(44208),r(53966),r(87811),r(93223)),l=r(40608);const u=new i.J({inherited:"inherited",codedValue:"coded-value",range:"range"});let d=class extends s.A{constructor(e){super(e),this.name=null,this.type=null}};(0,n._)([(0,o.MZ)({type:String,json:{write:!0}})],d.prototype,"name",void 0),(0,n._)([(0,a.e)(u),(0,o.MZ)({json:{write:{isRequired:!0}}})],d.prototype,"type",void 0),d=(0,n._)([(0,l.$)("esri.layers.support.Domain")],d)},80451:(e,t,r)=>{r.d(t,{rS:()=>p,gK:()=>f}),r(44208);var n,i=r(53177),s=r(76357),o=r(90237),a=(r(53966),r(87811),r(49186),r(93223)),l=r(40608);let u=class extends s.A{static{n=this}constructor(e){super(e),this.type="inherited"}clone(){return new n}};(0,o._)([(0,a.e)({inherited:"inherited"})],u.prototype,"type",void 0),u=n=(0,o._)([(0,l.$)("esri.layers.support.InheritedDomain")],u);var d,c=r(10107);let h=class extends s.A{static{d=this}constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new d({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};(0,o._)([(0,c.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:null!=this.maxValue&&null==this.minValue}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],h.prototype,"maxValue",void 0),(0,o._)([(0,c.MZ)({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],h.prototype,"minValue",void 0),(0,o._)([(0,a.e)({range:"range"})],h.prototype,"type",void 0),h=d=(0,o._)([(0,l.$)("esri.layers.support.RangeDomain")],h);const f={key:"type",base:s.A,typeMap:{range:h,"coded-value":i.A,inherited:u}};function p(e){if(!e?.type)return null;switch(e.type){case"range":return h.fromJSON(e);case"codedValue":return i.A.fromJSON(e);case"inherited":return u.fromJSON(e)}return null}},95696:(e,t,r)=>{r.d(t,{A:()=>d});var n,i=r(90237),s=r(69540),o=r(25482),a=r(10107),l=(r(44208),r(53966),r(87811),r(93223)),u=r(40608);let d=class extends(s.A.ClonableMixin(o.A)){static{n=this}constructor(e){super(e),this.type="georeferenced",this.origin=null}static{this.absolute=new n}};(0,i._)([(0,l.e)({georeferenced:"georeferenced"},{readOnly:!0})],d.prototype,"type",void 0),(0,i._)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],d.prototype,"origin",void 0),d=n=(0,i._)([(0,u.$)("esri.geometry.support.MeshGeoreferencedVertexSpace")],d)},98453:(e,t,r)=>{r.d(t,{m:()=>n});const n=new(r(66552).J)({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})}}]);
|