@arcgis/core 5.2.0-next.88 → 5.2.0-next.89
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/Graphic.js +1 -1
- package/arcade/Dictionary.js +1 -1
- package/arcade/Pixel.js +1 -1
- package/arcade/Voxel.js +1 -1
- package/arcade/debug.js +1 -1
- package/arcade/functions/featuresetstats.js +1 -1
- package/arcade/functions/stats.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/07613ecf13c38ad58b79.js +1 -0
- package/assets/esri/core/workers/chunks/090ea7a131f8f60203ed.js +1 -0
- package/assets/esri/core/workers/chunks/159b16f47665f94a0305.js +1 -0
- package/assets/esri/core/workers/chunks/15f4f7e34e14e3cf52e6.js +1 -0
- package/assets/esri/core/workers/chunks/1bf967c68d0c795d3fb4.js +1 -0
- package/assets/esri/core/workers/chunks/{304a36e862947fdb05c0.js → 20f6e681ccd8bf884b77.js} +1 -1
- package/assets/esri/core/workers/chunks/23addf8b11938e0c96e9.js +1 -0
- package/assets/esri/core/workers/chunks/30d816bdeea00f6fa1ca.js +1 -0
- package/assets/esri/core/workers/chunks/{b6f67302d0d5d57add66.js → 31a0620a6028e94c7532.js} +2 -2
- package/assets/esri/core/workers/chunks/39b6a5222f45cb8dbc94.js +1 -0
- package/assets/esri/core/workers/chunks/3aceedec9abfb2fdfa18.js +1 -0
- package/assets/esri/core/workers/chunks/3f82410d9f701e7ad8eb.js +1 -0
- package/assets/esri/core/workers/chunks/45858d1c6487f4a98e40.js +1 -0
- package/assets/esri/core/workers/chunks/45c1c90ac6c14657f3ff.js +1 -0
- package/assets/esri/core/workers/chunks/46f8c7ae7fb356c3410d.js +1 -0
- package/assets/esri/core/workers/chunks/486f1a3b7269ce6c3911.js +1 -0
- package/assets/esri/core/workers/chunks/4c7264e3f4156f92d613.js +1 -0
- package/assets/esri/core/workers/chunks/{a7727a2377470d586ff9.js → 51c9bd7c03d780fadebc.js} +1 -1
- package/assets/esri/core/workers/chunks/5bf65dbfd9c7a5ea187d.js +1 -0
- package/assets/esri/core/workers/chunks/607acd9f615f87e14075.js +1 -0
- package/assets/esri/core/workers/chunks/62ee6c247f783acabb74.js +1 -0
- package/assets/esri/core/workers/chunks/680557b8832fbdab7f46.js +1 -0
- package/assets/esri/core/workers/chunks/6b84982dfaf084a61b93.js +1 -0
- package/assets/esri/core/workers/chunks/777f2fdf1f4b9f243893.js +1 -0
- package/assets/esri/core/workers/chunks/{4d4ebb4e4d83c1123b63.js → 7e41cee4a0ae75e1490d.js} +1 -1
- package/assets/esri/core/workers/chunks/86c3d3c7015f1cd55fac.js +1 -0
- package/assets/esri/core/workers/chunks/87e0ceb1a64ab08e679a.js +1 -0
- package/assets/esri/core/workers/chunks/{dceaa6b68eee090073b1.js → 94453d075ce02eff4844.js} +1 -1
- package/assets/esri/core/workers/chunks/a176727a1148ca4fb432.js +1 -0
- package/assets/esri/core/workers/chunks/a6d4132a16c51323a38a.js +1 -0
- package/assets/esri/core/workers/chunks/a7e6382ecc91c876117f.js +1 -0
- package/assets/esri/core/workers/chunks/a88bf8ae93077e1b48cf.js +1 -0
- package/assets/esri/core/workers/chunks/bd1a7e95a797e1ed4a7b.js +1 -0
- package/assets/esri/core/workers/chunks/{70dc25f721c0ac5f3660.js → bdfffa5f88b559a4b42d.js} +1 -1
- package/assets/esri/core/workers/chunks/bf11319138facf44752c.js +1 -0
- package/assets/esri/core/workers/chunks/{0b7860a3f18d252b774a.js → c23943e51734254d31e8.js} +1 -1
- package/assets/esri/core/workers/chunks/c88bfa51d2a8a024fc24.js +1 -0
- package/assets/esri/core/workers/chunks/{fc4a5996fc03f6c32030.js → d58d6b55b2749a535eb3.js} +1 -1
- package/assets/esri/core/workers/chunks/{60f490afdbe299f89669.js → d871572997600930e017.js} +1 -1
- package/assets/esri/core/workers/chunks/e50adcfb392adfb3f79c.js +1 -0
- package/assets/esri/core/workers/chunks/eda04911553cf99fb99b.js +1 -0
- package/assets/esri/core/workers/chunks/f3716ce04d09af31cfb1.js +1 -0
- package/assets/esri/core/workers/chunks/f3e53be08ab9dbdf17ae.js +1 -0
- package/assets/esri/core/workers/chunks/{9eb3e6800f5034f1593f.js → f83c3597e9332bd991eb.js} +1 -1
- package/assets/esri/core/workers/chunks/f8a6d8cdcabcd1d511b6.js +1 -0
- package/chunks/array.js +1 -1
- package/chunks/boundedPlane.js +1 -1
- package/chunks/cameraUtilsSpherical.js +1 -1
- package/config.js +1 -1
- package/core/accessorSupport/Property.js +1 -1
- package/geometry/operators/support/projectionTransformation.js +1 -1
- package/geometry/support/convexPolyhedron.js +1 -1
- package/geometry/support/frustum.js +1 -1
- package/geometry/support/plane.js +1 -1
- package/kernel.js +1 -1
- package/layers/graphics/data/FlatFeatureStore.js +1 -1
- package/layers/graphics/data/QueryEngine.js +1 -1
- package/package.json +3 -3
- package/support/revision.js +1 -1
- package/views/2d/engine/vectorTiles/TileManager.js +1 -1
- package/views/2d/engine/webgl/util/Fader.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMeshNormals.js +1 -1
- package/views/3d/layers/i3s/SweptSphereVolume.js +1 -1
- package/views/3d/layers/support/FeatureTileVisibility3D.js +1 -1
- package/views/3d/layers/support/IntegratedMesh3DTilesVertexProcessing.js +1 -1
- package/views/3d/state/Frustum.js +1 -1
- package/views/3d/support/sphericalTileUtils.js +1 -1
- package/views/3d/webgl-engine/lib/Geometry.js +1 -1
- package/views/3d/webgl-engine/lib/LineMaterial.js +2 -0
- package/views/3d/webgl-engine/lib/Material.js +1 -1
- package/views/3d/webgl-engine/lib/PointMaterial.js +2 -0
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/SortedRenderGeometryRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/HeatmapDensityMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/MeasurementArrowMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/NativeLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/interactive/editGeometry/operations/OffsetEdgeVertex.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/popupAdapter.js +1 -1
- package/views/support/geometry3dUtils.js +1 -1
- package/widgets/FeatureTable/support/types.d.ts +3 -1
- package/assets/esri/core/workers/chunks/0439d4f4dfd6e78be97e.js +0 -1
- package/assets/esri/core/workers/chunks/12a3b55195ce3244259d.js +0 -1
- package/assets/esri/core/workers/chunks/19aa4072764937743bd8.js +0 -1
- package/assets/esri/core/workers/chunks/2724900f7992a79fc442.js +0 -1
- package/assets/esri/core/workers/chunks/35d3e60d15294f268992.js +0 -1
- package/assets/esri/core/workers/chunks/37a2be4380796f14fe4e.js +0 -1
- package/assets/esri/core/workers/chunks/414093fa4957d17bf551.js +0 -1
- package/assets/esri/core/workers/chunks/466bb1b69aabaeabad6a.js +0 -1
- package/assets/esri/core/workers/chunks/47e60b2acec18ef37b6c.js +0 -1
- package/assets/esri/core/workers/chunks/4849849fc8330d05a8e6.js +0 -1
- package/assets/esri/core/workers/chunks/4f0804429d8989aa4c51.js +0 -1
- package/assets/esri/core/workers/chunks/55572cefc752b755cf0a.js +0 -1
- package/assets/esri/core/workers/chunks/59cf23cc8f91b5bea31a.js +0 -1
- package/assets/esri/core/workers/chunks/6a4f007f87d9f2a6fbc4.js +0 -1
- package/assets/esri/core/workers/chunks/7c1f989ee3d13dfe7ebd.js +0 -1
- package/assets/esri/core/workers/chunks/7ce9c84f90e9dd1deb38.js +0 -1
- package/assets/esri/core/workers/chunks/7fc3231768ce79e375ae.js +0 -1
- package/assets/esri/core/workers/chunks/7febb434f2de2436435f.js +0 -1
- package/assets/esri/core/workers/chunks/909a85cb6e0e9a3c8567.js +0 -1
- package/assets/esri/core/workers/chunks/922c24b9bb68f4201b03.js +0 -1
- package/assets/esri/core/workers/chunks/9407db0584c730591161.js +0 -1
- package/assets/esri/core/workers/chunks/a0300fac6a06e7d89a52.js +0 -1
- package/assets/esri/core/workers/chunks/ab9927a32350063cb5f0.js +0 -1
- package/assets/esri/core/workers/chunks/adc2620cbe735532004d.js +0 -1
- package/assets/esri/core/workers/chunks/c4f582dec07895d3bb93.js +0 -1
- package/assets/esri/core/workers/chunks/cd8b3c2fc27c239f9954.js +0 -1
- package/assets/esri/core/workers/chunks/d04a01dc1b4947478264.js +0 -1
- package/assets/esri/core/workers/chunks/d6b87134e0d120c68d2f.js +0 -1
- package/assets/esri/core/workers/chunks/db4c9a9103e979292948.js +0 -1
- package/assets/esri/core/workers/chunks/e32a14770e036fce79d9.js +0 -1
- package/assets/esri/core/workers/chunks/eacf216dcd6397c7bd7f.js +0 -1
- package/assets/esri/core/workers/chunks/eff359210893239ecec3.js +0 -1
- package/assets/esri/core/workers/chunks/f210cd8afb86b6eaf7a2.js +0 -1
- package/assets/esri/core/workers/chunks/f250a7aa571889c5ad4b.js +0 -1
- package/assets/esri/core/workers/chunks/f31330d628d7e741bf5b.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1560,8593,8768],{52106(e,t,r){r.d(t,{A:()=>M});var i,n,o=r(32198),s=r(37838),l=r(69540),a=r(51447),p=r(25482),u=r(53966),c=r(36708),d=r(24326),y=r(91429),g=r(12195),m=r(65864),h=r(50498),f=r(55156),v=r(60950),b=r(54339),w=r(94128),S=r(33910);const C=Symbol("meshGeometryHandles");function I(e){if(null==e)return null;const t={};for(const r in e){const i=e[r];i&&(t[r]=i.toJSON())}return 0!==Object.keys(t).length?t:null}let M=class extends((0,l.OU)(p.o)){static{i=w.Z}static{n=this}constructor(e){super(e),this[i]=!0,this.distance=null,this.isAggregate=!1,this.layer=null,this.origin=null,this.sourceLayer=null,this.statisticsAggregatedIds=void 0,this._version=0,Object.defineProperty(this,"uid",{value:(0,d.c)(),configurable:!0}),Object.defineProperty(this,"_lastMeshTransform",{value:{},configurable:!0,writable:!0,enumerable:!1}),arguments.length>1&&(0,a.eF)(u.A.getLogger(this),"Graphic",{version:"4.30"})}set aggregateGeometries(e){const t=this._get("aggregateGeometries");JSON.stringify(t)!==JSON.stringify(e)&&this._set("aggregateGeometries",e)}set attributes(e){const t=this._get("attributes");t!==e&&(this._set("attributes",e),this._notifyLayer("attributes",t,e))}set geometry(e){const t=this._get("geometry");t!==e&&(this._set("geometry",e),this._watchMeshGeometryChanges(),this._notifyLayer("geometry",t,e))}set popupTemplate(e){const t=this._get("popupTemplate");t!==e&&(this._set("popupTemplate",e),this._notifyLayer("popupTemplate",t,e))}set symbol(e){const t=this._get("symbol");t!==e&&(this._set("symbol",e),this._notifyLayer("symbol",t,e))}get version(){return this._version}set visible(e){const t=this._get("visible");t!==e&&(this._set("visible",e),this._notifyLayer("visible",t,e))}cloneShallow(){return new n({aggregateGeometries:this.aggregateGeometries,statisticsAggregatedIds:this.statisticsAggregatedIds,attributes:this.attributes,geometry:this.geometry,isAggregate:this.isAggregate,layer:this.layer,popupTemplate:this.popupTemplate,sourceLayer:this.sourceLayer,symbol:this.symbol,visible:this.visible,origin:this.origin})}getEffectivePopupTemplate(e=!1){if(this.popupTemplate)return this.popupTemplate;const t=(0,v.E_)(this.origin);if(t)return t.popupTemplate??(e?t.defaultPopupTemplate:null)??null;const r=this.origin&&"layer"in this.origin?this.origin.layer:null;for(const t of[r,this.sourceLayer,this.layer])if(t&&"object"==typeof t){if("popupTemplate"in t&&t.popupTemplate)return t.popupTemplate;if(e&&"defaultPopupTemplate"in t&&null!=t.defaultPopupTemplate)return t.defaultPopupTemplate}return null}getAttribute(e){return this.attributes?.[e]}setAttribute(e,t){if(this.attributes){const r=this.getAttribute(e);this.attributes[e]=t,this._notifyLayer("attributes",r,t,e)}else this.attributes={[e]:t}}getObjectId(){const e=(0,f.I)(this.origin);if(e)return(0,b.r)(this,e);const t=this.sourceLayer??this.layer;return t?(0,b.r)(this,t):null}getGlobalId(){const e=(0,f.I)(this.origin);if(e?.globalIdField)return this.getAttribute(e.globalIdField);const t=this.sourceLayer??this.layer;return t&&"globalIdField"in t&&t.globalIdField?this.getAttribute(t.globalIdField):null}toJSON(){const e={aggregateGeometries:I(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,g.W)(this.attributes)?this.attributes.toJSON():{...this.attributes},popupTemplate:this.popupTemplate?.toJSON()??null};return this.statisticsAggregatedIds?.length&&(e.aggregateIds=[...this.statisticsAggregatedIds]),null!=this.distance&&(e.distance=this.distance),e}notifyMeshTransformChanged(e={}){const{geometry:t}=this;if("mesh"===t?.type){const r={origin:t.origin,transform:t.transform};this._notifyLayer("origin-transform",r,r,e.action)}}_notifyLayer(e,t,r,i){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const n={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(n.action=i),"attributes"===e&&(n.attributeName=i),this.layer.graphicChanged(n)}_watchMeshGeometryChanges(){this.removeHandles(C);const e=this.geometry;"mesh"===e?.type&&this.addHandles([(0,c.z7)(()=>e.vertexSpace.origin?{localMatrix:e.transform?.localMatrix,origin:e.vertexSpace.origin}:void 0,({localMatrix:e,origin:t})=>{this._lastMeshTransform.localMatrix===e&&this._lastMeshTransform.origin===t||(this._lastMeshTransform.localMatrix=e,this._lastMeshTransform.origin=t,this.notifyMeshTransformChanged())}),(0,c.z7)(()=>({vertexAttributes:e.vertexAttributes}),()=>{e.vertexSpace.origin?(this._lastMeshTransform.localMatrix=e.transform?.localMatrix,this._lastMeshTransform.origin=e.vertexSpace.origin):(this._lastMeshTransform.localMatrix=void 0,this._lastMeshTransform.origin=void 0),this._notifyLayer("geometry",e,e)},{equals:(e,t)=>e===t,sync:!0})],C)}};(0,o.Cg)([(0,y.MZ)({value:null,json:{read:function(e){if(!e)return null;const t={};for(const r in e){const i=(0,m.rS)(e[r]);i&&(t[r]=i)}return 0!==Object.keys(t).length?t:null}}})],M.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,y.MZ)({value:null})],M.prototype,"attributes",null),(0,o.Cg)([(0,y.MZ)({value:null,types:h.yR,json:{read:m.rS}})],M.prototype,"geometry",null),(0,o.Cg)([(0,y.MZ)()],M.prototype,"distance",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean})],M.prototype,"isAggregate",void 0),(0,o.Cg)([(0,y.MZ)({clonable:!1})],M.prototype,"layer",void 0),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"origin",void 0),(0,o.Cg)([(0,y.MZ)({type:s.A,value:null})],M.prototype,"popupTemplate",null),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],M.prototype,"sourceLayer",void 0),(0,o.Cg)([(0,y.MZ)({json:{name:"aggregateIds",read:e=>e?.map(e=>Array.isArray(e)?JSON.stringify(e):e)}})],M.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,y.MZ)({value:null,types:S.Es})],M.prototype,"symbol",null),(0,o.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],M.prototype,"_version",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean,value:!0})],M.prototype,"visible",null),M=n=(0,o.Cg)([(0,y.$K)("esri.Graphic")],M)},19334(e,t,r){r.d(t,{e:()=>s});var i=r(54639),n=r(14112);class o{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry.toJSON()}toAccessorGeometry(e){return this._geometry}toGxGeometry(e){return e.fromAccessorGeometry(this._geometry)}}function s(e){if(null==e)return null;switch(e.type){case"point":if((0,n.e6)(e))return null;break;case"polygon":if((0,n.Wq)(e))return null;break;case"polyline":if((0,n.IY)(e))return null;break;case"multipoint":if((0,n.DG)(e))return null;break;case"extent":if((0,n.As)(e))return null;break;default:return null}const t=i.R.of(e.type,e.spatialReference,e.hasZ,e.hasM,new o(e));return t.asAccessorGeometry(),t}},36983(e,t,r){r.d(t,{R:()=>p,p:()=>u});var i=r(54639),n=r(14112),o=r(16930),s=r(60408),l=r(65864);class a{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){const t=(0,l.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function p(e,t){if(null==e||"object"!=typeof e)return null;let r=t;if("spatialReference"in e&&(e.spatialReference instanceof o.A?r=e.spatialReference:"object"==typeof e.spatialReference&&null!=e.spatialReference&&(r=new o.A,r.read(e.spatialReference))),null==r)throw new Error("Spatial reference required");return(0,s.fT)(e)?u("point",e,r):(0,s.Rg)(e)?u("polyline",e,r):(0,s.Bi)(e)?u("polygon",e,r):(0,s.U9)(e)?u("multipoint",e,r):(0,s.ZC)(e)?u("extent",e,r):null}function u(e,t,r){if(null==t)return null;let o=!1,s=!1;switch(e){case"point":if((0,n.e6)(t))return null;o=void 0!==t.z,s=void 0!==t.m;break;case"polygon":if((0,n.Wq)(t))return null;o=!0===t.hasZ,s=!0===t.hasM;break;case"polyline":if((0,n.IY)(t))return null;o=!0===t.hasZ,s=!0===t.hasM;break;case"multipoint":if((0,n.DG)(t))return null;o=!0===t.hasZ,s=!0===t.hasM;break;case"extent":if((0,n.As)(t))return null;o=null!=t.zmin&&null!=t.zmax,s=null!=t.mmin&&null!=t.mmax;break;default:throw new Error("Unsupported geometry type: "+t.type)}return i.R.of(e,r,o,s,new a(t))}},14112(e,t,r){function i(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function n(e){if(0===(e.curveRings??e.rings).length)return!0;for(const t of e.curveRings??e.rings)if(t.length>0)return!1;return!0}function o(e){if(0===(e.curvePaths??e.paths).length)return!0;for(const t of e.curvePaths??e.paths)if(t.length>0)return!1;return!0}function s(e){return 0===e.points.length}function l(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>l,DG:()=>s,IY:()=>o,Wq:()=>n,e6:()=>i})},6797(e,t,r){r.d(t,{Ui:()=>d});var i=r(69622),n=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function l(e){return e instanceof i.A}function a(e){return e instanceof n.A?Object.keys(e.items):l(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function p(e,t){return e instanceof n.A?e.items[t]:e[t]}function u(e){return e?e.declaredClass:null}function c(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const i=a(e),n=a(t);if(0===i.length&&0===n.length)return;if(!i.length||!n.length||function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length!==t.length}(e,t))return{type:"complete",oldValue:e,newValue:t};const o=n.filter(e=>!i.includes(e)),d=i.filter(e=>!n.includes(e)),y=i.filter(r=>n.includes(r)&&p(e,r)!==p(t,r)).concat(o,d).sort(),g=u(e);if(g&&s.has(g)&&y.length)return{type:"complete",oldValue:e,newValue:t};let m;const h=l(e)&&l(t);for(const i of y){const n=p(e,i),o=p(t,i);let s;if((h||"function"!=typeof n&&"function"!=typeof o)&&n!==o&&(null!=n||null!=o)){if(r&&r[i]&&"function"==typeof r[i])s=r[i]?.(n,o);else if(n instanceof Date&&o instanceof Date){if(n.getTime()===o.getTime())continue;s={type:"complete",oldValue:n,newValue:o}}else s="object"==typeof n&&"object"==typeof o&&u(n)===u(o)?c(n,o):{type:"complete",oldValue:n,newValue:o};null!=s&&(null!=m?m.diff[i]=s:m={type:"partial",diff:{[i]:s}})}}return m}function d(e,t){if("function"!=typeof e&&"function"!=typeof t&&(null!=e||null!=t))return null==e||null==t||"object"==typeof e&&"object"==typeof t&&u(e)!==u(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},55156(e,t,r){r.d(t,{I:()=>n});const i=Symbol("idFieldsProviderSymbol");function n(e){return(t=e)&&i in t?e[i]:void 0;var t}r.d(t,["e",0,i])},79457(e,t,r){r.r(t),r.d(t,{default:()=>ae});var i=r(32198),n=r(37838),o=r(11254),s=r(69540),l=r(49186),a=r(36563),p=r(4718),u=r(53966),c=r(25728),d=r(17676),y=r(84952),g=r(91429),m=r(56507),h=r(5443),f=r(16930),v=r(50498),b=r(55156),w=r(60950),S=r(89808),C=r(99959);const I=Symbol("isStreamGraphicOrigin");var M;class x extends C.A{get[(M=I,w.ym)](){return this.layer}get[b.e](){return this.layer}get[S.Q](){return this.layer}constructor(e){super(),this[M]=!0,this.type="stream",this.layer=e}get id(){return this.layer.id}}var A,P=r(4146),T=r(18768),E=r(63074),Z=r(69208),_=r(6455),L=r(87718),O=r(56658),j=r(34287),F=r(8303),N=r(54310),R=r(25036),k=r(82935),D=r(63396),U=r(10873),G=r(25747),z=r(15426),K=r(20437),$=r(17036),V=r(30524),J=r(9916),B=r(46499),H=r(39383),q=r(25482);let Y=class extends q.o{static{A=this}constructor(e){super(e),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}clone(){return new A({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],Y.prototype,"age",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],Y.prototype,"ageReceived",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],Y.prototype,"displayCount",void 0),(0,i.Cg)([(0,g.MZ)({type:Number,json:{write:!0}})],Y.prototype,"maxObservations",void 0),Y=A=(0,i.Cg)([(0,g.$K)("esri.layers.support.PurgeOptions")],Y);var W=r(72691),Q=r(65494),X=r(8947),ee=r(41214),te=r(97552),re=r(30291),ie=r(88625),ne=r(59923),oe=r(36005);const se=(0,$.p)();let le=class extends((0,_.FJ)((0,O.J)((0,L.F)((0,E.dM)((0,k.e)((0,D.d)((0,R.j)((0,N.J)((0,T.b)((0,j.q)((0,F.A)((0,c.M)((0,Z.d)((0,s.OU)(P.A))))))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.graphicOrigin=new x(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.outFields=["*"],this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new Y,this.refreshInterval=0,this.screenSizePerspectiveEnabled=!0,this.source=null,this.sourceJSON=null,this.spatialReference=f.A.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.useViewTime=!0,this.webSocketUrl=null,this._debouncedSaveOperations=(0,d.sg)(async(e,t,i)=>{const{save:n,saveAs:o}=await r.e(7301).then(r.bind(r,87301));switch(e){case 0:return n(this,t);case 1:return o(this,i,t)}})}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new l.A("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(d.QP).then(()=>this._fetchService(t))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set featureReduction(e){const t=this._normalizeFeatureReduction(e);this._set("featureReduction",t)}set renderer(e){(0,V.yp)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){t=t.layerDefinition||t;const i=t.drawingInfo?.renderer;if(i){const e=(0,Q.L)(i,t,r)||void 0;return e||u.A.getLogger(this).error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}return(0,z.PD)(t,r)}async connect(e){const[{createConnection:t}]=await Promise.all([Promise.all([r.e(893),r.e(4708)]).then(r.bind(r,60986)),this.load()]),i=e?.spatialReference??this.spatialReference,n=t(this.getStreamConnectionSource(e),i),o=(0,a.vE)([this.on("send-message-to-socket",e=>n.sendMessageToSocket(e)),this.on("send-message-to-client",e=>n.sendMessageToClient(e))]);return n.once("destroy",o.remove),n}getStreamConnectionSource(e){const{customParameters:t=null,definitionExpression:r=null,geometryDefinition:i=null,maxReconnectionAttempts:n=0,maxReconnectionInterval:o=20}=e||this.createConnectionParameters(),s=this.geometryType?v.gy.toJSON(this.geometryType):null,a=this.spatialReference.toJSON();if(this.source){if(!this.timeInfo?.trackIdField)throw new l.A("stream-layer:missing-metadata","TrackIdField required for Kusto data source.");return{type:"kusto",database:this.database,table:this.source.table,trackIdField:this.timeInfo.trackIdField,geometryEncoding:this.source.geometryEncoding.toJSON(),sourceSpatialReference:a,refreshInterval:this.source.refreshInterval}}return this.webSocketUrl?{type:"custom",url:(0,y.An)(this.webSocketUrl),customParameters:t,definitionExpression:r,geometryDefinition:i,geometryType:s,maxReconnectionAttempts:n,maxReconnectionInterval:o,sourceSpatialReference:a}:this.parsedUrl?{type:"geoevent",url:this.parsedUrl,customParameters:t,definitionExpression:r,geometryDefinition:i,geometryType:s,maxReconnectionAttempts:n,maxReconnectionInterval:o,sourceSpatialReference:a}:{type:"client",geometryType:s,sourceSpatialReference:this.spatialReference.toJSON()}}createConnectionParameters(){return{spatialReference:this.spatialReference,customParameters:this.customParameters,definitionExpression:this.definitionExpression,geometryDefinition:this.geometryDefinition,maxReconnectionAttempts:this.maxReconnectionAttempts,maxReconnectionInterval:this.maxReconnectionInterval}}createPopupTemplate(e){return(0,re.tn)(this,e)}createQuery(){const e=new te.A;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let r=null;return this.fields.some(t=>(t.name===e&&(r=t.domain),!!r)),r}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}sendMessageToSocket(e){this.emit("send-message-to-socket",e)}sendMessageToClient(e){this.emit("send-message-to-client",e)}async save(e){return this._debouncedSaveOperations(0,e)}async saveAs(e,t){return this._debouncedSaveOperations(1,t,e)}write(e,t){return this.webSocketUrl?((0,ne.U4)(t,this,"a custom websocket connection cannot be written to web scenes and web maps"),null):this.source?((0,ne.U4)(t,this,"a custom source cannot be written to web scenes and web maps"),null):this.parsedUrl?super.write(e,t):((0,ne.U4)(t,this,"a client-side only connection without a url cannot be written to web scenes and web maps"),null)}async _fetchService(e){if(this.source){const e=await(0,J.ZF)(this.source.workspace,this.source.database,this.source.table,{fields:this.fields,source:this.source,database:this.database});if(this.database=e.database,!e.fields)throw new l.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(this.fields=e.fields,!e.source)throw new l.A("stream-layer:missing-metadata","Unable to infer Kusto source.",{layerInfo:e});if(!e.source.geometryEncoding)throw new l.A("stream-layer:missing-metadata","Unable to infer Kusto geometry encoding.",{layerInfo:e});this.source=e.source}if(this.parsedUrl){if(!this.sourceJSON){const{data:t}=await(0,o.A)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}}else{if(!this.timeInfo?.trackIdField)throw new l.A("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.fields)throw new l.A("stream-layer:missing-metadata","The stream layer fields must be specified.");if(!this.objectIdField){const e=this.fields.find(e=>"oid"===e.type)?.name;e&&(this.objectIdField=e)}if(this.fields.some(e=>e.name===this.objectIdField)||this.fields.push(new K.A({name:this.objectIdField??W.DN,alias:this.objectIdField??W.DN,type:"oid"})),!this.geometryType)throw new l.A("stream-layer:missing-metadata","The stream layer geometryType must be specified.")}return this.read(this.sourceJSON,{origin:"service",portalItem:this.portalItem,portal:this.portalItem?.portal,url:this.parsedUrl}),(0,V.yp)(this.renderer,this.fieldsIndex),(0,V.sv)(this.timeInfo,this.fieldsIndex),this.objectIdField||(this.objectIdField=W.DN),(0,X.L)(this,{origin:"service"})}};(0,i.Cg)([(0,g.MZ)({type:String})],le.prototype,"copyright",void 0),(0,i.Cg)([(0,g.MZ)()],le.prototype,"database",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],le.prototype,"defaultPopupTemplate",null),(0,i.Cg)([(0,g.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],le.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],le.prototype,"displayField",void 0),(0,i.Cg)([(0,g.MZ)({type:ie.A})],le.prototype,"elevationInfo",void 0),(0,i.Cg)([(0,g.MZ)({json:{origins:{"web-map":{read:!1,write:!1},"portal-item":{read:!1,write:!1},"web-scene":{read:!1,write:!1}}}})],le.prototype,"featureReduction",null),(0,i.Cg)([(0,g.MZ)(se.fields)],le.prototype,"fields",void 0),(0,i.Cg)([(0,g.MZ)(se.fieldsIndex)],le.prototype,"fieldsIndex",void 0),(0,i.Cg)([(0,g.MZ)({type:h.A,json:{name:"layerDefinition.definitionGeometry",write:!0}})],le.prototype,"geometryDefinition",void 0),(0,i.Cg)([(0,g.MZ)({type:v.gy.apiValues,json:{read:{reader:v.gy.read}}})],le.prototype,"geometryType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0,clonable:!1})],le.prototype,"graphicOrigin",void 0),(0,i.Cg)([(0,g.MZ)(U.kF)],le.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,g.MZ)({type:[B.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:H.w},write:!0}})],le.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,g.MZ)(U.fV)],le.prototype,"legendEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:["show","hide"],json:{origins:{"portal-item":{read:!1,write:!1}}}})],le.prototype,"listMode",void 0),(0,i.Cg)([(0,g.MZ)({type:m.jz})],le.prototype,"maxReconnectionAttempts",void 0),(0,i.Cg)([(0,g.MZ)({type:m.jz})],le.prototype,"maxReconnectionInterval",void 0),(0,i.Cg)([(0,g.MZ)(U.hG)],le.prototype,"maxScale",void 0),(0,i.Cg)([(0,g.MZ)(U.hn)],le.prototype,"minScale",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],le.prototype,"objectIdField",void 0),(0,i.Cg)([(0,g.MZ)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],le.prototype,"operationalLayerType",void 0),(0,i.Cg)([(0,g.MZ)({readOnly:!0})],le.prototype,"outFields",void 0),(0,i.Cg)([(0,g.MZ)(U.M6)],le.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:n.A,json:{name:"popupInfo",write:!0}})],le.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,g.MZ)({type:Y})],le.prototype,"purgeOptions",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1,write:!1}})],le.prototype,"refreshInterval",void 0),(0,i.Cg)([(0,g.MZ)({types:ee.Hg,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:ee.XJ,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],le.prototype,"renderer",null),(0,i.Cg)([(0,oe.w)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,oe.w)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],le.prototype,"readRenderer",null),(0,i.Cg)([(0,g.MZ)((()=>{const e=(0,p.o8)(U.PY);return e.json.origins["portal-item"]={read:!1,write:!1},e})())],le.prototype,"screenSizePerspectiveEnabled",void 0),(0,i.Cg)([(0,g.MZ)({type:G.A,json:{write:!1}})],le.prototype,"source",void 0),(0,i.Cg)([(0,g.MZ)()],le.prototype,"sourceJSON",void 0),(0,i.Cg)([(0,g.MZ)({type:f.A,json:{origins:{service:{read:{source:"spatialReference"}}}}})],le.prototype,"spatialReference",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1}})],le.prototype,"type",void 0),(0,i.Cg)([(0,g.MZ)(U.OZ)],le.prototype,"url",void 0),(0,i.Cg)([(0,g.MZ)({type:Number})],le.prototype,"updateInterval",void 0),(0,i.Cg)([(0,g.MZ)({json:{read:!1,write:!1}})],le.prototype,"useViewTime",void 0),(0,i.Cg)([(0,g.MZ)({type:String})],le.prototype,"webSocketUrl",void 0),le=(0,i.Cg)([(0,g.$K)("esri.layers.StreamLayer")],le);const ae=le},18768(e,t,r){var i=r(32198),n=r(53966),o=r(91429),s=r(60694);r.d(t,["b",0,e=>{const t=e;let r=class extends t{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,s.qg)(this.url);if(e?.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,s.Jf)(e,n.A.getLogger(this)))}};return(0,i.Cg)([(0,o.MZ)()],r.prototype,"title",null),(0,i.Cg)([(0,o.MZ)({type:String})],r.prototype,"url",null),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.ArcGISService")],r),r}])},69208(e,t,r){var i=r(32198),n=r(91429);r.d(t,["d",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,i.Cg)([(0,n.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},6455(e,t,r){r.d(t,{FJ:()=>f,Dp:()=>v,KV:()=>b});var i=r(32198),n=r(93637),o=r(91429),s=r(89317),l=r(69540),a=r(7762),p=r(25482),u=r(83960),c=r(13069);const d={write:{overridePolicy:(e,t,r)=>({enabled:!r||"scale"===r.filterMode})}};let y=class extends((0,l.OU)(p.o)){constructor(e){super(e),this.id=(0,c.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"id",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:d})],y.prototype,"maxScale",void 0),(0,i.Cg)([(0,o.MZ)({type:Number,json:d})],y.prototype,"minScale",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,i.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"where",void 0),y=(0,i.Cg)([(0,o.$K)("esri.layers.support.DisplayFilter")],y);var g=r(41560),m=r(43937);let h=class extends((0,l.OU)(p.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(a.A.ofType(y)),this.mode="manual"}writeFilters(e,t,r,i){const n=e.toArray();"scale"===this.mode&&n.sort((e,t)=>{const r=(0,u.oW)(t.minScale,e.minScale),i=e.maxScale-t.maxScale;return 0===r?i:r}),t[r]=n.map(e=>e.toJSON(i))}write(e,t){return super.write(e,(0,g.mW)(this,t))}};(0,i.Cg)([(0,o.MZ)({type:String,json:{write:{overridePolicy:(e,t,r)=>({enabled:"manual"===r.filterMode,isRequired:!0})}}})],h.prototype,"activeFilterId",void 0),(0,i.Cg)([(0,o.MZ)({type:a.A.ofType(y),nonNullable:!0,json:{write:!0}})],h.prototype,"filters",void 0),(0,i.Cg)([(0,m.K)("filters")],h.prototype,"writeFilters",null),(0,i.Cg)([(0,o.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],h.prototype,"mode",void 0),h=(0,i.Cg)([(0,o.$K)("esri.layers.support.DisplayFilterInfo")],h);const f=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,i.Cg)([(0,o.MZ)(v)],r.prototype,"displayFilterEnabled",void 0),(0,i.Cg)([(0,o.MZ)(b)],r.prototype,"displayFilterInfo",void 0),r=(0,i.Cg)([(0,o.$K)("esri.layers.mixins.DisplayFilteredLayer")],r),r},v={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:s.K,writer(e,t,r){(0,n.sM)(r,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},b={type:h,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:s.K},origins:{"web-scene":{write:!1,read:!1}}}}},8303(e,t,r){var i=r(32198),n=r(92602),o=r(70333),s=r(11254),l=r(60999),a=r(49186),p=r(36563),u=r(53966),c=r(97768),d=r(17676),y=r(84952),g=r(91429),m=r(77548),h=r(20655),f=r(80812),v=r(41318),b=r(10407),w=r(36005),S=r(43937);const C={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let I=class extends t{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){super.destroy(),this.portalItem=(0,c.pR)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}get portalItem(){return this._get("portalItem")}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new f.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:i}=await r.e(1204).then(r.bind(r,41204));return(0,d.Te)(t),await i({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},t)}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async reloadFromPortal(e){if(!this.loaded||!this.portalItem?.id)return!1;try{const{reload:t}=await r.e(1204).then(r.bind(r,41204)),i=new AbortController,n=(0,p.rE)(i);return this.addHandles(n,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:i.signal})}catch(e){throw(0,d.zf)(e)||u.A.getLogger(this).warn(`Failed to reload layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}finally{this.removeHandles("reloadFromPortal")}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch(e=>((0,d.QP)(e),!0)))}async setUserPrivileges(e,t){if(!n.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:i},content:{updateItem:n}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",i),this._set("userHasUpdateItemPrivileges",n)}catch(e){(0,d.QP)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const i=!o.id?.findCredential(this.url),n=e===r.id;if(n&&r.portal.user)return this._getUserPrivileges(r,i);let s,l;if(n)s=r.portal.url;else try{s=await(0,m.wI)(this.url,t)}catch(e){(0,d.QP)(e)}if(!s||!(0,y.b8)(s,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;l=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const a=!0,p=!1,u=!1;if(!l)return{features:{edit:a,fullEdit:p},content:{updateItem:u}};try{if(n?await r.reload():(r=new f.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,i)}catch(e){(0,d.QP)(e)}return{features:{edit:a,fullEdit:p},content:{updateItem:u}}}_getUserPrivileges(e,t){const r=(0,b.It)(e);return t&&(r.features.edit=!0),r}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,d.QP)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?o.id?.findCredential(this.url):null;if(!t)return!0;const r=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=o.id?.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const i=`${r.owningSystemUrl}/sharing/rest`,n=h.A.getDefault();if(n&&n.loaded&&(0,y.S8)(n.restUrl)===(0,y.S8)(i))return n.user;const a=`${i}/community/self`,p=null!=e?e.signal:null,u=await(0,l.Ke)((0,s.A)(a,{authMode:"no-prompt",query:{f:"json"},signal:p}));return u.ok?v.A.fromJSON(u.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,i=this.portalItem?.id&&(this.portalItem.portal||h.A.getDefault());return r&&i&&!(0,y.ut)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new a.A("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i.Cg)([(0,g.MZ)({type:f.default})],I.prototype,"portalItem",null),(0,i.Cg)([(0,w.w)("web-document","portalItem",["itemId"])],I.prototype,"readPortalItem",null),(0,i.Cg)([(0,S.K)("web-document","portalItem",{itemId:{type:String}})],I.prototype,"writePortalItem",null),(0,i.Cg)([(0,g.MZ)({clonable:!1})],I.prototype,"resourceReferences",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasEditingPrivileges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasFullEditingPrivileges",void 0),(0,i.Cg)([(0,g.MZ)({type:Boolean,readOnly:!0})],I.prototype,"userHasUpdateItemPrivileges",void 0),I=(0,i.Cg)([(0,g.$K)("esri.layers.mixins.PortalLayer")],I),I}])},82935(e,t,r){var i=r(32198),n=r(91429),o=r(89317),s=r(30524),l=r(96184),a=r(73133),p=r(79677),u=r(10184),c=r(36005);const d={type:Boolean,json:{read:{source:"timeAnimation"},write:{target:"timeAnimation",layerContainerTypes:o.K}}};r.d(t,["B",0,d,"e",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.timeExtent=null,this.timeOffset=null,this.useViewTime=!0}readOffset(e,t){const r=t.timeInfo.exportOptions;if(!r)return null;const i=r.timeOffset,n=a.j.fromJSON(r.timeOffsetUnits);return i&&n?new u.A({value:i,unit:n}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,i.Cg)([(0,n.MZ)({type:p.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,i.Cg)([(0,n.MZ)({type:u.A})],r.prototype,"timeOffset",void 0),(0,i.Cg)([(0,c.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,i.Cg)([(0,n.MZ)({value:null,type:l.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,i.Cg)([(0,n.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},63396(e,t,r){r.d(t,{d:()=>C});var i=r(32198),n=r(91429),o=r(60950),s=r(99959);class l extends s.A{constructor(e){super(),this.type="track",this.trackInfoProvider=e}get id(){return this.trackInfoProvider.id}get[o.ym](){return this.trackInfoProvider.trackInfo}}var a=r(37838),p=r(69540),u=r(25482),c=r(93637),d=r(50820),y=r(10873),g=r(46499),m=r(41214);let h=class extends((0,p.OU)(u.o)){constructor(e){super(e),this.labelingInfo=null,this.labelsVisible=!0,this.renderer=null,this.visible=!0}};(0,i.Cg)([(0,n.MZ)({type:[g.A],json:{write:!0}})],h.prototype,"labelingInfo",void 0),(0,i.Cg)([(0,n.MZ)(y.kF)],h.prototype,"labelsVisible",void 0),(0,i.Cg)([(0,n.MZ)({types:m.Hg,json:{write:!0}})],h.prototype,"renderer",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],h.prototype,"visible",void 0),h=(0,i.Cg)([(0,n.$K)("esri.layers.support.TrackPartInfo")],h);var f=r(96576),v=r(59868),b=r(10184),w=r(43937);let S=class extends((0,p.OU)(u.o)){constructor(e){super(e),this.enabled=!0,this.fields=[],this.latestObservations=new h({renderer:new f.A({symbol:v.UK.clone()})}),this.maxDisplayDuration=null,this.maxDisplayObservationsPerTrack=0,this.popupEnabled=!0,this.popupTemplate=null,this.previousObservations=new h({renderer:new f.A({symbol:v.UK.clone()})}),this.trackLines=new h({renderer:new f.A({symbol:v.A7.clone()})}),this.timeField="startTimeField"}writeFields(e,t,r){const i=e.filter(e=>"avg_angle"!==e.statisticType).map(e=>e.toJSON());(0,c.sM)(r,i,t)}};(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],S.prototype,"enabled",void 0),(0,i.Cg)([(0,n.MZ)({type:[d.A],json:{write:!0}})],S.prototype,"fields",void 0),(0,i.Cg)([(0,w.K)("fields")],S.prototype,"writeFields",null),(0,i.Cg)([(0,n.MZ)({type:h,json:{write:!0}})],S.prototype,"latestObservations",void 0),(0,i.Cg)([(0,n.MZ)({type:b.A,json:{write:!0}})],S.prototype,"maxDisplayDuration",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{write:!0}})],S.prototype,"maxDisplayObservationsPerTrack",void 0),(0,i.Cg)([(0,n.MZ)(y.M6)],S.prototype,"popupEnabled",void 0),(0,i.Cg)([(0,n.MZ)({type:a.A,json:{name:"popupInfo",write:!0}})],S.prototype,"popupTemplate",void 0),(0,i.Cg)([(0,n.MZ)({type:h,json:{write:!0}})],S.prototype,"previousObservations",void 0),(0,i.Cg)([(0,n.MZ)({type:h,json:{write:!0}})],S.prototype,"trackLines",void 0),(0,i.Cg)([(0,n.MZ)({type:["timeReceived","startTimeField","endTimeField"],json:{read:!0,write:!0}})],S.prototype,"timeField",void 0),S=(0,i.Cg)([(0,n.$K)("esri.layers.support.TrackInfo")],S);const C=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.trackGraphicOrigin=new l(this),this.trackInfo=null}};return(0,i.Cg)([(0,n.MZ)({readOnly:!0,clonable:!1})],r.prototype,"trackGraphicOrigin",void 0),(0,i.Cg)([(0,n.MZ)({type:S})],r.prototype,"trackInfo",void 0),r=(0,i.Cg)([(0,n.$K)("esri.layers.mixins.TrackableLayer")],r),r}},25747(e,t,r){r.d(t,{A:()=>p});var i=r(32198),n=r(69540),o=r(25482),s=r(91429),l=r(64108),a=r(9075);let p=class extends((0,o.T)(n.Pw)){constructor(e){super(e),this.type="fabric",this.refreshInterval=5e3/6e4}};(0,i.Cg)([(0,s.MZ)({type:["fabric"],readOnly:!0,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"workspace",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"database",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"table",void 0),(0,i.Cg)([(0,s.MZ)({type:a.A,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"geometryEncoding",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{read:!1,write:{ignoreOrigin:!0}}})],p.prototype,"refreshInterval",void 0),p=(0,i.Cg)([(0,l.$)("esri.layers.support.FabricKustoSource")],p)},9075(e,t,r){r.d(t,{A:()=>l});var i=r(32198),n=r(69540),o=r(25482),s=r(91429);let l=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.type="location",this.xField=null,this.yField=null}};(0,i.Cg)([(0,s.MZ)({type:["location"],nonNullable:!0,readOnly:!0,json:{read:!1,write:{isRequired:!0}}})],l.prototype,"type",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"xField",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{isRequired:!0}}})],l.prototype,"yField",void 0),l=(0,i.Cg)([(0,s.$K)("esri.layers.support.GeometryEncodingLocation")],l)},46499(e,t,r){r.d(t,{A:()=>I});var i,n,o=r(32198),s=(r(44208),r(66552)),l=r(25482),a=r(4718),p=r(90629),u=r(91429),c=r(73913),d=r(32730),y=r(77548),g=r(59868),m=r(73838),h=r(33910),f=r(36005),v=r(43937);const b=new s.J({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function w(e,t,r){return{enabled:!(0,y.TU)(r?.layer)}}function S(e){return!e||"service"!==e.origin&&!("map-image"===e.layer?.type)}function C(e){return!!function(e){return"map-image"===e?.type}(e)&&!!e.capabilities?.exportMap?.supportsArcadeExpressionForLabeling}let I=class extends l.o{static{i=d.vK}static{n=this}static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){const e=r(t[i[0]],i[1],i[2]),n=i[3],o=r(t[i[4]],i[5],i[6]);switch(n){case"AND":return e&&o;case"OR":return e||o}}return!1}catch(e){}}constructor(e){super(e),this[i]=!0,this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.symbol=g.Hk,this.useCodedValues=void 0,this.where=null}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,d.D3)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,d.tH)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&S(i))e=new c.A({expression:this.getLabelExpressionArcade()});else if(!e)return;const n=e.toJSON(i);n.expression&&(t[r]=n)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}get repeatLabelDistance(){return this._get("repeatLabelDistance")}set repeatLabelDistance(e){this._set("repeatLabelDistance",e)}getLabelExpression(){return(0,d.XJ)(this)}getLabelExpressionArcade(){return(0,d.BI)(this)}getLabelExpressionSingleField(){return(0,d.rU)(this)}hash(){return JSON.stringify(this)}clone(){return new n({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.o8)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"name",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:w}}}}})],I.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:w}}}}})],I.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&C(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],I.prototype,"labelExpression",void 0),(0,o.Cg)([(0,f.w)("labelExpression")],I.prototype,"readLabelExpression",null),(0,o.Cg)([(0,v.K)("labelExpression")],I.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,u.MZ)({type:c.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return S(e)||C(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],I.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,v.K)("labelExpressionInfo")],I.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,u.MZ)({type:b.apiValues,json:{type:b.jsonValues,read:b.read,write:b.write}})],I.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,u.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],I.prototype,"labelPosition",void 0),(0,o.Cg)([(0,u.MZ)({type:Number})],I.prototype,"maxScale",void 0),(0,o.Cg)([(0,v.K)("maxScale")],I.prototype,"writeMaxScale",null),(0,o.Cg)([(0,u.MZ)({type:Number})],I.prototype,"minScale",void 0),(0,o.Cg)([(0,v.K)("minScale")],I.prototype,"writeMinScale",null),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:w}}}}})],I.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,cast:p.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:w}}}}})],I.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,u.MZ)({types:h.em,json:{origins:{"web-scene":{types:h.Rv,write:m.oO,default:null}},write:m.oO,default:null}})],I.prototype,"symbol",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],I.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],I.prototype,"where",void 0),I=n=(0,o.Cg)([(0,u.$K)("esri.layers.support.LabelClass")],I)},73913(e,t,r){r.d(t,{A:()=>u});var i,n=r(32198),o=r(25482),s=r(91429),l=r(32730),a=r(36005),p=r(43937);let u=class extends o.o{static{i=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,l.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,l.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],u.prototype,"expression",void 0),(0,n.Cg)([(0,a.w)("expression",["expression","value"])],u.prototype,"readExpression",null),(0,n.Cg)([(0,p.K)("expression")],u.prototype,"writeExpression",null),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],u.prototype,"title",void 0),(0,n.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],u.prototype,"value",void 0),u=i=(0,n.Cg)([(0,s.$K)("esri.layers.support.LabelExpressionInfo")],u)},96184(e,t,r){r.d(t,{A:()=>y});var i=r(32198),n=r(69540),o=r(25482),s=r(91429),l=r(79677),a=r(10184),p=r(56400),u=r(36005),c=r(43937);function d(e,t){return a.A.fromJSON({value:e,unit:t})}let y=class extends((0,n.OU)(o.o)){constructor(e){super(e),this.cumulative=!1,this.endField=null,this.fullTimeExtent=null,this.hasLiveData=!1,this.interval=null,this.startField=null,this.timeZone=null,this.trackIdField=null,this.useTime=!0,this.stops=null}readFullTimeExtent(e,t){return t.timeExtent&&Array.isArray(t.timeExtent)&&2===t.timeExtent.length?l.A.fromArray(t.timeExtent):null}writeFullTimeExtent(e,t){null!=e?.start&&null!=e.end?t.timeExtent=e.toArray():t.timeExtent=null}readInterval(e,t){return t.timeInterval&&t.timeIntervalUnits?d(t.timeInterval,t.timeIntervalUnits):t.defaultTimeInterval&&t.defaultTimeIntervalUnits?d(t.defaultTimeInterval,t.defaultTimeIntervalUnits):null}writeInterval(e,t){t.timeInterval=e?.toJSON().value??null,t.timeIntervalUnits=e?.toJSON().unit??null}};(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,i.Cg)([(0,s.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,i.Cg)([(0,u.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,i.Cg)([(0,c.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,i.Cg)([(0,s.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,i.Cg)([(0,u.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,i.Cg)([(0,c.K)("interval")],y.prototype,"writeInterval",null),(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,i.Cg)([(0,s.MZ)((0,p.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,i.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,i.Cg)([(0,s.$K)("esri.layers.support.TimeInfo")],y)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>o});var i=r(34727),n=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const o=function(e){if("manual"===p(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:i}of e.filters)t[0]=Math.max(t[0],u(r)),t[1]=Math.min(t[1],c(i));return t}(e);if(o&&((0,i.gg)(t,o[0])||(0,i.ZH)(r,o[1])))return"";const s=Array.from(l(e,t,r)),a=function(e,t,r){if(0===e.length)return!0;const n=u(e.at(0)?.minScale),o=c(e.at(-1)?.maxScale);if((0,i.ZH)(n,t)||(0,i.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],n=e[t+1];if((0,i.ZH)(u(n.minScale),c(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,n.IW)(e,t),"");return a&&"1=1"!==a?a:""}function*l(e,t,r){if("manual"===p(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const i of e.filters)a(i.minScale,i.maxScale,t,r)&&(yield i)}}function a(e,t,r,n){return e=u(e),r=u(r),t=c(t),!(!(0,i.Sp)(r,e)&&(n??r)>e||(0,i.Hx)(t,r)||void 0!==n&&(0,i.Sp)(n,e))}function p(e){return"mode"in e?e.mode:e.filterMode}function u(e){return e||Number.POSITIVE_INFINITY}function c(e){return e||0}},17036(e,t,r){r.d(t,{p:()=>a});var i=r(44208),n=r(53966),o=r(20437),s=r(95466),l=r(30524);function a(){return{fields:{type:[o.A],value:null,set:function(e){if(e&&(0,i.A)("big-integer-warning-enabled")){const t=e.filter(e=>"big-integer"===e.type||"oid"===e.type&&(e.length||0)>=8);if(t.length){const e=t.map(e=>`'${e.name}'`).join(", ");n.A.getLogger(this).warn("#fields",`Layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}') references big-integer field(s): ${e}, support for which is experimental. Only integers less than ${Number.MAX_SAFE_INTEGER} (Number.MAX_SAFE_INTEGER) are supported.`)}}this._set("fields",e)}},fieldsIndex:{readOnly:!0,get(){return s.A.fromLayer(this)}},outFields:{type:[String],json:{read:!1},set:function(e){this._userOutFields=e,this.notifyChange("outFields")},get:function(){const e=this._userOutFields;if(!e?.length)return null;if(e.includes("*"))return["*"];if(!this.fields)return e;for(const t of e){const r=this.fieldsIndex?.has(t);r||n.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,l.DB)(this.fieldsIndex,e)}}}}},9916(e,t,r){r.d(t,{ZF:()=>p,iD:()=>d,xw:()=>c});var i=r(11254),n=r(49186),o=r(25747),s=r(20437),l=r(9075),a=r(54625);async function p(e,t,r,s,p={}){if(s.database||(s.database=await async function(e,t){const{data:r}=await(0,i.A)(`https://api.fabric.microsoft.com/v1/workspaces/${e}/kqlDatabases/${t}`,{responseType:"json"});if(null==r)throw new n.A("kusto:connection",`KQL database '${t}' was not found in workspace '${e}'`);return r}(e,t)),s.fields?.length||(s.fields=await async function(e,t,r={}){const o=await async function(e,t,r={}){const o=e.properties.queryServiceUri;return function(e){const t=e.Tables[0];if(null==t||0===t.Rows.length)throw new n.A("kusto:invalid-schema-response","Kusto schema response did not include any rows");const[r,i]=t.Rows[0];if("string"!=typeof i)throw new n.A("kusto:invalid-schema-response","Kusto schema response did not include a schema string");return JSON.parse(i)}((await(0,i.A)(`${o}/v1/rest/mgmt`,{responseType:"json",method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify({db:e.displayName,csl:`.show table ${c(t)} schema as json`}),signal:r.signal})).data)}(e,t,r),s=[];for(const e of o.OrderedColumns){const t=u(e);t&&s.push(t)}return s}(s.database,r,p)),s.source||(s.source=new o.A({workspace:e,database:t,table:r})),!s.source.geometryEncoding){const e=(0,a.i_)(s.fields.map(e=>e.name));e.latitudeFieldName&&e.longitudeFieldName&&(s.source.geometryEncoding=new l.A({xField:e.longitudeFieldName,yField:e.latitudeFieldName}))}return s}function u(e){const t=function(e){switch(e){case"bool":return"small-integer";case"guid":case"string":return"string";case"int":return"integer";case"long":return"big-integer";case"real":return"double";case"dynamic":case"datetime":case"decimal":case"timespan":return null}}(e.CslType);return t?new s.A({name:e.Name,type:t}):null}function c(e){return`['${e.replaceAll("'","''")}']`}function d(e){return e.replaceAll("'","''")}},39383(e,t,r){r.d(t,{w:()=>a,z:()=>c});var i=r(49186),n=r(53966),o=r(46499);const s=()=>n.A.getLogger("esri.layers.support.labelingInfo"),l=/\[([^[\]]+)\]/gi;function a(e,t,r){return e?e.map(e=>{const i=new o.A;if(i.read(e,r),i.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;i.labelExpression=i.labelExpression.replaceAll(l,(t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const i=t[e].name;if(i.toLowerCase()===r)return i}return e}(r,e)}]`)}return i}):null}const p=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],u={esriGeometryPoint:p,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:p,esriGeometryEnvelope:null};function c(e,t){const r=[];for(const n of e){const e=n.labelPlacement,o=u[t];if(!n.symbol)return s().warn("No ILabelClass symbol specified."),[];if(!o)return s().error(new i.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(n);else{const i=o[0];e&&s().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${i}`);const l=n.clone();l.labelPlacement=i,r.push(l)}}return r}},54625(e,t,r){r.d(t,{i_:()=>n});var i=r(30524);function n(e,t,r){t=(0,i.rS)(t)?.toLowerCase(),r=(0,i.rS)(r)?.toLowerCase();const n=e.map(e=>e.toLowerCase()),l=t?e[n.indexOf(t)]:null,a=r?e[n.indexOf(r)]:null;return{longitudeFieldName:l||e[n.indexOf(s.find(e=>n.includes(e)))],latitudeFieldName:a||e[n.indexOf(o.find(e=>n.includes(e)))]}}const o=["lat","lat83","latitude","latitude83","latdecdeg","lat_dd","y","ycenter","point_y"],s=["lon","lng","lng83","long","long83","longitude","longitude83","longdecdeg","long_dd","x","xcenter","point_x"];r.d(t,["A0",0,s,"bD",0,o])},72691(e,t,r){r.d(t,["Aw",0,"__esri_time_received__","DN",0,"__esri_stream_id__","EA",0,"__esri_track_part__","Gm",0,"__esri_timestamp__","xq",0,"__esri_track_line__"])},10407(e,t,r){r.d(t,{It:()=>y,LG:()=>s,OM:()=>p,Sm:()=>u,Y:()=>l,bK:()=>a,sQ:()=>c});var i=r(99917),n=r(16930),o=r(28735);function s(e,t){if(!l(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function l(e,t){return!!e.typeKeywords?.includes(t)}function a(e){return l(e,d.HOSTED_SERVICE)}function p(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function u(e,t,r){r?s(e,t):p(e,t)}async function c(e){const t=e.clone().normalize();let r;if(t.length>1)for(const e of t)r?e.width>r.width&&(r=e):r=e;else r=t[0];return async function(e){const t=e.spatialReference;if(t.isWGS84)return e.clone();if(t.isWebMercator)return(0,o.ci)(e);const r=n.A.WGS84;return await(0,i.initializeProjection)(t,r),(0,i.project)(e,r)}(r)}const d={CHARTS:"Charts",CATALOG_LAYER:"CatalogLayer",DYNAMIC:"Dynamic",DEVELOPER_BASEMAP:"DeveloperBasemap",GROUP_LAYER_MAP:"Map",HOSTED_SERVICE:"Hosted Service",JSAPI:"ArcGIS API for JavaScript",LOCAL_SCENE:"ViewingMode-Local",METADATA:"Metadata",MULTI_LAYER:"Multilayer",ORIENTED_IMAGERY_LAYER:"OrientedImageryLayer",PARCEL_FABRIC:"ParcelFabric",SINGLE_LAYER:"Singlelayer",SUBTYPE_GROUP_LAYER:"SubtypeGroupLayer",SUBTYPE_GROUP_TABLE:"SubtypeGroupTable",TABLE:"Table",TILED_IMAGERY:"Tiled Imagery",UTILITY_NETWORK:"UtilityNetwork"};function y(e){const{portal:t,isOrgItem:r,itemControl:i}=e,n=t.user?.privileges;let o=!n||n.includes("features:user:edit"),s=!!r&&!!n?.includes("features:user:fullEdit");const l="update"===i||"admin"===i;return l?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:l}}}r.d(t,["mm",0,d])},8947(e,t,r){r.d(t,{L:()=>s});var i=r(60999),n=r(17676),o=r(67076);async function s(e,t,r){const s=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(s&&"unique-value"===s.type&&s.styleOrigin){const l=await(0,i.Ke)(s.populateFromStyle());if((0,n.Te)(r),!1===l.ok){const r=l.error;t?.messages&&t.messages.push(new o.A("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t?.origin)}}}},98205(e,t,r){r.d(t,{KZ:()=>l,eh:()=>s,gf:()=>o,of:()=>n});const i=Symbol("SizeVariableInstance");function n(e){return null!=e&&"object"==typeof e&&i in e}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function s(e){return e.valueExpression?"expression":e.field&&"string"==typeof e.field?"field":"unknown"}function l(e,t){const r=t||s(e),i=e.valueUnit||"unknown";return"unknown"===r?"constant":e.stops?"stops":null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?"clamped-linear":"unknown"===i?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}r.d(t,["uY",0,i])},41366(e,t,r){var i=r(32198),n=r(66552),o=r(53966),s=r(91429),l=r(93223);const a=(0,n.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),p="percent-of-total",u="field";r.d(t,["K",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.normalizationField=null,this.normalizationMaxValue=null,this.normalizationMinValue=null,this.normalizationTotal=null}get normalizationType(){let e=this._get("normalizationType");const t=!!this.normalizationField,r=null!=this.normalizationTotal;return t||r?(e=t&&u||r&&p||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==u&&e!==p||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,i.Cg)([(0,l.e)(a,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,i.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,a])},93470(e,t,r){const i=[252,146,31,255],n={type:"esriSMS",style:"esriSMSCircle",size:6,color:i,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:i};r.d(t,["Cb",0,n,"HW",0,{type:"esriSLS",style:"esriSLSSolid",color:[0,0,0,255],width:1.5},"JR",0,[153,153,153,255],"JZ",0,{type:"esriTS",color:[255,255,255,255],font:{family:"arial-unicode-ms",size:10,weight:"bold"},horizontalAlignment:"center",kerning:!0,haloColor:[0,0,0,255],haloSize:1,rotated:!1,text:"",xoffset:0,yoffset:0,angle:0},"WR",0,{type:"esriSFS",style:"esriSFSSolid",color:[252,146,31,196],outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[255,255,255,191]}},"b6",0,{type:"esriSFS",style:"esriSFSSolid",color:[0,0,0,255],outline:null},"fT",0,i,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3354,4538],{73354(t,e,n){n.d(e,{a:()=>l,b:()=>a,c:()=>o,d:()=>i,e:()=>f,f:()=>u,l:()=>c,n:()=>m,t:()=>s}),n(44208);var r=n(72727);function o(t,e,n){s(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function s(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),h=Math.min(i,a),c=n[0],u=n[1],l=n[2],f=n[4],m=n[5],d=n[6],p=n[8],y=n[9],g=n[10],M=n[12],_=n[13],b=n[14];let v=0,x=0;for(let n=0;n<h;n++){const n=e[v],r=e[v+1],i=e[v+2];t[x]=c*n+f*r+p*i+M,t[x+1]=u*n+m*r+y*i+_,t[x+2]=l*n+d*r+g*i+b,v+=s,x+=o}return t}function i(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),h=Math.min(i,a),c=n[0],u=n[1],l=n[2],f=n[3],m=n[4],d=n[5],p=n[6],y=n[7],g=n[8];let M=0,_=0;for(let n=0;n<h;n++){const n=e[M],r=e[M+1],i=e[M+2];t[_]=c*n+f*r+p*i,t[_+1]=u*n+m*r+y*i,t[_+2]=l*n+d*r+g*i,M+=s,_+=o}}function h(t,e,n,r=3,o=r){const s=Math.min(t.length/r,e.length/o);let i=0,a=0;for(let h=0;h<s;h++)t[a]=n*e[i],t[a+1]=n*e[i+1],t[a+2]=n*e[i+2],i+=o,a+=r;return t}function c(t,e,n,r){u(t.typedBuffer,e.typedBuffer,n,r,t.typedBufferStride,e.typedBufferStride)}function u(t,e,n,r,o=3,s=o){const i=Math.min(t.length/o,e.length/s);let a=0,h=0;const c=1/2.2;for(let u=0;u<i;u++)t[h]=r*(n*e[a])**c,t[h+1]=r*(n*e[a+1])**c,t[h+2]=r*(n*e[a+2])**c,a+=s,h+=o}function l(t,e,n,o=3,s=o){const i=(0,r.k)(t.length,o,3),a=(0,r.k)(e.length,s,3),h=Math.min(i,a);let c=0,u=0;for(let r=0;r<h;r++)t[u]=e[c]+n[0],t[u+1]=e[c+1]+n[1],t[u+2]=e[c+2]+n[2],c+=s,u+=o;return t}function f(t,e){m(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function m(t,e,n=3,r=n){const o=Math.min(t.length/n,e.length/r);let s=0,i=0;for(let a=0;a<o;a++){const o=e[s],a=e[s+1],h=e[s+2],c=o*o+a*a+h*h;if(c>0){const e=1/Math.sqrt(c);t[i]=e*o,t[i+1]=e*a,t[i+2]=e*h}s+=r,i+=n}}Object.freeze(Object.defineProperty({__proto__:null,linearToSRGB:u,linearToSRGBView:c,normalize:m,normalizeView:f,scale:h,scaleView:function(t,e,n){h(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)},shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),o=t.typedBuffer,s=t.typedBufferStride,i=e.typedBuffer,a=e.typedBufferStride;let h=0,c=0;for(let t=0;t<r;t++)o[c]=i[h]>>n,o[c+1]=i[h+1]>>n,o[c+2]=i[h+2]>>n,h+=a,c+=s},transformMat3:a,transformMat3View:i,transformMat4:s,transformMat4View:o,translate:l},Symbol.toStringTag,{value:"Module"}))},69540(t,e,n){var r=n(32198),o=n(69622),s=(n(44208),n(4718)),i=(n(53966),n(97768)),a=n(88620),h=n(64108);const c=Symbol("ClonableMixin"),u=t=>{var e;const n=t;let o=class extends n{constructor(){super(...arguments),this[e]=!0}static{e=c}clone(t){const e=(0,a.oY)(this);(0,i.Lw)(e,"unable to clone instance of non-accessor class");const n=e.metadata,r=e.store,o={},h=new Map;for(const e in n){const i=n[e],a=r?.originOf(e),c=i.clonable;if(i.readOnly||!1===c||7!==a&&0!==a&&5!==a&&4!==a)continue;const u=this[e];let l=null;if("function"==typeof c)l=c(u,t);else if("reference"===c)l=u;else if(l=(0,s.TU)(u,t),null!=u&&null==l)continue;0===a?h.set(e,l):o[e]=l}const c=new(0,Object.getPrototypeOf(this).constructor)(o);if(h.size){const t=(0,a.oY)(c)?.store;if(t)for(const[e,n]of h)t.set(e,n,0)}return c}};return o=(0,r.Cg)([(0,h.$)("esri.core.Clonable")],o),o},l=u(o.A);n.d(e,["OU",0,u,"Pw",0,l])},95488(t,e,n){n.d(e,{I:()=>o});var r=n(11406);class o extends r.T{notify(){const t=this._observers;if(t&&t.length>0){const e=t.slice();for(const t of e)t.onInvalidated(),t.onCommitted()}}}},9093(t,e,n){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}n.d(e,{o8:()=>o,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:o,create:r,fromValues:function(t,e,n,r,o,s,i,a,h,c,u,l,f,m,d,p){return[t,e,n,r,o,s,i,a,h,c,u,l,f,m,d,p]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["zK",0,s])},51850(t,e,n){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function s(t,e,n){return[t,e,n]}function i(t,e,n){return[t,e,n]}function a(t,e=[0,0,0]){const n=Math.min(3,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e}function h(){return s(1,1,1)}function c(){return s(1,0,0)}function u(){return s(0,1,0)}function l(){return s(0,0,1)}n.d(e,{CN:()=>i,ci:()=>a,fA:()=>s,o8:()=>o,vt:()=>r});const f=[0,0,0],m=h(),d=c(),p=u(),y=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:m,UNIT_X:d,UNIT_Y:p,UNIT_Z:y,ZEROS:f,clone:o,create:r,freeze:i,fromArray:a,fromValues:s,ones:h,unitX:c,unitY:u,unitZ:l,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),n.d(e,["Cb",0,y,"Cw",0,d,"JP",0,p,"Un",0,m,"uY",0,f])},58083(t,e,n){n.d(e,{$0:()=>g,$h:()=>T,B8:()=>u,C:()=>s,D_:()=>a,N9:()=>_,O7:()=>w,Qw:()=>c,Tl:()=>f,X_:()=>S,e$:()=>d,eL:()=>p,hM:()=>M,hZ:()=>i,hs:()=>m,kN:()=>y,l:()=>A,lw:()=>l,mg:()=>h,o1:()=>R,sC:()=>x,t2:()=>I,t5:()=>E,tZ:()=>N,ut:()=>O});var r=n(51850),o=n(34304);function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function i(t,e,n,r,o,s,i,a,h,c,u,l,f,m,d,p,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=i,t[6]=a,t[7]=h,t[8]=c,t[9]=u,t[10]=l,t[11]=f,t[12]=m,t[13]=d,t[14]=p,t[15]=y,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function h(t,e){if(t===e){const n=e[1],r=e[2],o=e[3],s=e[6],i=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=s,t[11]=e[14],t[12]=o,t[13]=i,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){return u(t,e)||a(t),t}function u(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],a=e[5],h=e[6],c=e[7],u=e[8],l=e[9],f=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15],M=n*a-r*i,_=n*h-o*i,b=n*c-s*i,v=r*h-o*a,x=r*c-s*a,S=o*c-s*h,A=u*p-l*d,R=u*y-f*d,w=u*g-m*d,T=l*y-f*p,E=l*g-m*p,C=f*g-m*y;let I=M*C-_*E+b*T+v*w-x*R+S*A;return I?(I=1/I,t[0]=(a*C-h*E+c*T)*I,t[1]=(o*E-r*C-s*T)*I,t[2]=(p*S-y*x+g*v)*I,t[3]=(f*x-l*S-m*v)*I,t[4]=(h*w-i*C-c*R)*I,t[5]=(n*C-o*w+s*R)*I,t[6]=(y*b-d*S-g*_)*I,t[7]=(u*S-f*b+m*_)*I,t[8]=(i*E-a*w+c*A)*I,t[9]=(r*w-n*E-s*A)*I,t[10]=(d*x-p*b+g*M)*I,t[11]=(l*b-u*x-m*M)*I,t[12]=(a*R-i*T-h*A)*I,t[13]=(n*T-r*R+o*A)*I,t[14]=(p*_-d*v-y*M)*I,t[15]=(u*v-l*_+f*M)*I,t):null}function l(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],a=e[4],h=e[5],c=e[6],u=e[7],l=e[8],f=e[9],m=e[10],d=e[11],p=e[12],y=e[13],g=e[14],M=e[15];let _=n[0],b=n[1],v=n[2],x=n[3];return t[0]=_*r+b*a+v*l+x*p,t[1]=_*o+b*h+v*f+x*y,t[2]=_*s+b*c+v*m+x*g,t[3]=_*i+b*u+v*d+x*M,_=n[4],b=n[5],v=n[6],x=n[7],t[4]=_*r+b*a+v*l+x*p,t[5]=_*o+b*h+v*f+x*y,t[6]=_*s+b*c+v*m+x*g,t[7]=_*i+b*u+v*d+x*M,_=n[8],b=n[9],v=n[10],x=n[11],t[8]=_*r+b*a+v*l+x*p,t[9]=_*o+b*h+v*f+x*y,t[10]=_*s+b*c+v*m+x*g,t[11]=_*i+b*u+v*d+x*M,_=n[12],b=n[13],v=n[14],x=n[15],t[12]=_*r+b*a+v*l+x*p,t[13]=_*o+b*h+v*f+x*y,t[14]=_*s+b*c+v*m+x*g,t[15]=_*i+b*u+v*d+x*M,t}function f(t,e,n){const r=n[0],o=n[1],s=n[2];if(e===t)t[12]=e[0]*r+e[4]*o+e[8]*s+e[12],t[13]=e[1]*r+e[5]*o+e[9]*s+e[13],t[14]=e[2]*r+e[6]*o+e[10]*s+e[14],t[15]=e[3]*r+e[7]*o+e[11]*s+e[15];else{const n=e[0],i=e[1],a=e[2],h=e[3],c=e[4],u=e[5],l=e[6],f=e[7],m=e[8],d=e[9],p=e[10],y=e[11];t[0]=n,t[1]=i,t[2]=a,t[3]=h,t[4]=c,t[5]=u,t[6]=l,t[7]=f,t[8]=m,t[9]=d,t[10]=p,t[11]=y,t[12]=n*r+c*o+m*s+e[12],t[13]=i*r+u*o+d*s+e[13],t[14]=a*r+l*o+p*s+e[14],t[15]=h*r+f*o+y*s+e[15]}return t}function m(t,e,n){const r=n[0],o=n[1],s=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*o,t[5]=e[5]*o,t[6]=e[6]*o,t[7]=e[7]*o,t[8]=e[8]*s,t[9]=e[9]*s,t[10]=e[10]*s,t[11]=e[11]*s,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function d(t,e,n,r){let i=r[0],a=r[1],h=r[2],c=Math.sqrt(i*i+a*a+h*h);if(c<=(0,o.FD)())return void s(t,e);c=1/c,i*=c,a*=c,h*=c;const u=Math.sin(n),l=Math.cos(n),f=1-l,m=e[0],d=e[1],p=e[2],y=e[3],g=e[4],M=e[5],_=e[6],b=e[7],v=e[8],x=e[9],S=e[10],A=e[11],R=i*i*f+l,w=a*i*f+h*u,T=h*i*f-a*u,E=i*a*f-h*u,C=a*a*f+l,I=h*a*f+i*u,O=i*h*f+a*u,N=a*h*f-i*u,P=h*h*f+l;t[0]=m*R+g*w+v*T,t[1]=d*R+M*w+x*T,t[2]=p*R+_*w+S*T,t[3]=y*R+b*w+A*T,t[4]=m*E+g*C+v*I,t[5]=d*E+M*C+x*I,t[6]=p*E+_*C+S*I,t[7]=y*E+b*C+A*I,t[8]=m*O+g*N+v*P,t[9]=d*O+M*N+x*P,t[10]=p*O+_*N+S*P,t[11]=y*O+b*N+A*P,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15])}function p(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[4],i=e[5],a=e[6],h=e[7],c=e[8],u=e[9],l=e[10],f=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=s*o+c*r,t[5]=i*o+u*r,t[6]=a*o+l*r,t[7]=h*o+f*r,t[8]=c*o-s*r,t[9]=u*o-i*r,t[10]=l*o-a*r,t[11]=f*o-h*r,t}function y(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function g(t,e,n){if(0===e)return a(t);let r=n[0],s=n[1],i=n[2],h=Math.sqrt(r*r+s*s+i*i);if(h<=(0,o.FD)())return null;h=1/h,r*=h,s*=h,i*=h;const c=Math.sin(e),u=Math.cos(e),l=1-u;return t[0]=r*r*l+u,t[1]=s*r*l+i*c,t[2]=i*r*l-s*c,t[3]=0,t[4]=r*s*l-i*c,t[5]=s*s*l+u,t[6]=i*s*l+r*c,t[7]=0,t[8]=r*i*l+s*c,t[9]=s*i*l-r*c,t[10]=i*i*l+u,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function M(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function _(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,e,n){const r=e[0],o=e[1],s=e[2],i=e[3],a=r+r,h=o+o,c=s+s,u=r*a,l=r*h,f=r*c,m=o*h,d=o*c,p=s*c,y=i*a,g=i*h,M=i*c;return t[0]=1-(m+p),t[1]=l+M,t[2]=f-g,t[3]=0,t[4]=l-M,t[5]=1-(u+p),t[6]=d+y,t[7]=0,t[8]=f+g,t[9]=d-y,t[10]=1-(u+m),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const v=(0,r.vt)();function x(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function S(t,e){const n=e[0],r=e[1],o=e[2],s=e[4],i=e[5],a=e[6],h=e[8],c=e[9],u=e[10];return t[0]=Math.sqrt(n*n+r*r+o*o),t[1]=Math.sqrt(s*s+i*i+a*a),t[2]=Math.sqrt(h*h+c*c+u*u),t}function A(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t}function R(t,e,n,r){const o=e[0],s=e[1],i=e[2],a=e[3],h=o+o,c=s+s,u=i+i,l=o*h,f=o*c,m=o*u,d=s*c,p=s*u,y=i*u,g=a*h,M=a*c,_=a*u,b=r[0],v=r[1],x=r[2];return t[0]=(1-(d+y))*b,t[1]=(f+_)*b,t[2]=(m-M)*b,t[3]=0,t[4]=(f-_)*v,t[5]=(1-(l+y))*v,t[6]=(p+g)*v,t[7]=0,t[8]=(m+M)*x,t[9]=(p-g)*x,t[10]=(1-(l+d))*x,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function w(t,e,n,r,o){const s=e[0],i=e[1],a=e[2],h=e[3],c=s+s,u=i+i,l=a+a,f=s*c,m=s*u,d=s*l,p=i*u,y=i*l,g=a*l,M=h*c,_=h*u,b=h*l,v=r[0],x=r[1],S=r[2],A=o[0],R=o[1],w=o[2],T=(1-(p+g))*v,E=(m+b)*v,C=(d-_)*v,I=(m-b)*x,O=(1-(f+g))*x,N=(y+M)*x,P=(d+_)*S,L=(y-M)*S,D=(1-(f+p))*S;return t[0]=T,t[1]=E,t[2]=C,t[3]=0,t[4]=I,t[5]=O,t[6]=N,t[7]=0,t[8]=P,t[9]=L,t[10]=D,t[11]=0,t[12]=n[0]+A-(T*A+I*R+P*w),t[13]=n[1]+R-(E*A+O*R+L*w),t[14]=n[2]+w-(C*A+N*R+D*w),t[15]=1,t}function T(t,e,n,r,o,s,i){const a=1/(n-e),h=1/(o-r),c=1/(s-i);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*h,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(o+r)*h,t[10]=(i+s)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=i*s*2*c,t[15]=0,t}function E(t,e,n,r){const s=e[0],i=e[1],h=e[2];let c=s-n[0],u=i-n[1],l=h-n[2];const f=(0,o.FD)();if(Math.abs(c)<f&&Math.abs(u)<f&&Math.abs(l)<f)return void a(t);let m=1/Math.sqrt(c*c+u*u+l*l);c*=m,u*=m,l*=m;const d=r[0],p=r[1],y=r[2];let g=p*l-y*u,M=y*c-d*l,_=d*u-p*c;m=Math.sqrt(g*g+M*M+_*_),m?(m=1/m,g*=m,M*=m,_*=m):(g=0,M=0,_=0);let b=u*_-l*M,v=l*g-c*_,x=c*M-u*g;m=Math.sqrt(b*b+v*v+x*x),m?(m=1/m,b*=m,v*=m,x*=m):(b=0,v=0,x=0),t[0]=g,t[1]=b,t[2]=c,t[3]=0,t[4]=M,t[5]=v,t[6]=u,t[7]=0,t[8]=_,t[9]=x,t[10]=l,t[11]=0,t[12]=-(g*s+M*i+_*h),t[13]=-(b*s+v*i+x*h),t[14]=-(c*s+u*i+l*h),t[15]=1}function C(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function I(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function O(t){const e=(0,o.FD)(),n=t[0],r=t[1],s=t[2],i=t[4],a=t[5],h=t[6],c=t[8],u=t[9],l=t[10];return Math.abs(1-(n*n+i*i+c*c))<=e&&Math.abs(1-(r*r+a*a+u*u))<=e&&Math.abs(1-(s*s+h*h+l*l))<=e}function N(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const P=l,L=C;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=e[4],a=e[5],h=e[6],c=e[7],u=e[8],l=e[9],f=e[10],m=e[11],d=e[12],p=e[13],y=e[14],g=e[15];return t[0]=a*(f*g-m*y)-l*(h*g-c*y)+p*(h*m-c*f),t[1]=-(r*(f*g-m*y)-l*(o*g-s*y)+p*(o*m-s*f)),t[2]=r*(h*g-c*y)-a*(o*g-s*y)+p*(o*c-s*h),t[3]=-(r*(h*m-c*f)-a*(o*m-s*f)+l*(o*c-s*h)),t[4]=-(i*(f*g-m*y)-u*(h*g-c*y)+d*(h*m-c*f)),t[5]=n*(f*g-m*y)-u*(o*g-s*y)+d*(o*m-s*f),t[6]=-(n*(h*g-c*y)-i*(o*g-s*y)+d*(o*c-s*h)),t[7]=n*(h*m-c*f)-i*(o*m-s*f)+u*(o*c-s*h),t[8]=i*(l*g-m*p)-u*(a*g-c*p)+d*(a*m-c*l),t[9]=-(n*(l*g-m*p)-u*(r*g-s*p)+d*(r*m-s*l)),t[10]=n*(a*g-c*p)-i*(r*g-s*p)+d*(r*c-s*a),t[11]=-(n*(a*m-c*l)-i*(r*m-s*l)+u*(r*c-s*a)),t[12]=-(i*(l*y-f*p)-u*(a*y-h*p)+d*(a*f-h*l)),t[13]=n*(l*y-f*p)-u*(r*y-o*p)+d*(r*f-o*l),t[14]=-(n*(a*y-h*p)-i*(r*y-o*p)+d*(r*h-o*a)),t[15]=n*(a*f-h*l)-i*(r*f-o*l)+u*(r*h-o*a),t},copy:s,determinant:function(t){const e=t[0],n=t[1],r=t[2],o=t[3],s=t[4],i=t[5],a=t[6],h=t[7],c=t[8],u=t[9],l=t[10],f=t[11],m=t[12],d=t[13],p=t[14],y=t[15];return(e*i-n*s)*(l*y-f*p)-(e*a-r*s)*(u*y-f*d)+(e*h-o*s)*(u*p-l*d)+(n*a-r*i)*(c*y-f*m)-(n*h-o*i)*(c*p-l*m)+(r*h-o*a)*(c*d-u*m)},equals:function(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],i=t[3],a=t[4],h=t[5],c=t[6],u=t[7],l=t[8],f=t[9],m=t[10],d=t[11],p=t[12],y=t[13],g=t[14],M=t[15],_=e[0],b=e[1],v=e[2],x=e[3],S=e[4],A=e[5],R=e[6],w=e[7],T=e[8],E=e[9],C=e[10],I=e[11],O=e[12],N=e[13],P=e[14],L=e[15],D=(0,o.FD)();return Math.abs(n-_)<=D*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(r-b)<=D*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(s-v)<=D*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(i-x)<=D*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-S)<=D*Math.max(1,Math.abs(a),Math.abs(S))&&Math.abs(h-A)<=D*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(c-R)<=D*Math.max(1,Math.abs(c),Math.abs(R))&&Math.abs(u-w)<=D*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(l-T)<=D*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(f-E)<=D*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(m-C)<=D*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(d-I)<=D*Math.max(1,Math.abs(d),Math.abs(I))&&Math.abs(p-O)<=D*Math.max(1,Math.abs(p),Math.abs(O))&&Math.abs(y-N)<=D*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(g-P)<=D*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(M-L)<=D*Math.max(1,Math.abs(M),Math.abs(L))},exactEquals:I,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],o=e[2],s=e[3],i=n+n,a=r+r,h=o+o,c=n*i,u=r*i,l=r*a,f=o*i,m=o*a,d=o*h,p=s*i,y=s*a,g=s*h;return t[0]=1-l-d,t[1]=u+g,t[2]=f-y,t[3]=0,t[4]=u-g,t[5]=1-c-d,t[6]=m+p,t[7]=0,t[8]=f+y,t[9]=m-p,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=v,r=-e[0],o=-e[1],s=-e[2],i=e[3],a=e[4],h=e[5],c=e[6],u=e[7],l=r*r+o*o+s*s+i*i;return l>0?(n[0]=2*(a*i+u*r+h*s-c*o)/l,n[1]=2*(h*i+u*o+c*r-a*s)/l,n[2]=2*(c*i+u*s+a*o-h*r)/l):(n[0]=2*(a*i+u*r+h*s-c*o),n[1]=2*(h*i+u*o+c*r-a*s),n[2]=2*(c*i+u*s+a*o-h*r)),b(t,e,n),t},fromRotation:g,fromRotationTranslation:b,fromRotationTranslationScale:R,fromRotationTranslationScaleOrigin:w,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:y,fromXRotation:M,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:_,frustum:T,getRotation:A,getScale:S,getTranslation:x,hasIdentityRotation:N,identity:a,invert:u,invertOrIdentity:c,isOrthoNormal:O,lookAt:E,mul:P,multiply:l,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,o,s,i){const a=1/(e-n),h=1/(r-o),c=1/(s-i);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*h,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+n)*a,t[13]=(o+r)*h,t[14]=(i+s)*c,t[15]=1,t},perspective:function(t,e,n,r,o){const s=1/Math.tan(e/2);let i;return t[0]=s/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=o&&o!==1/0?(i=1/(r-o),t[10]=(o+r)*i,t[14]=2*o*r*i):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const o=Math.tan(e.upDegrees*Math.PI/180),s=Math.tan(e.downDegrees*Math.PI/180),i=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),h=2/(i+a),c=2/(o+s);return t[0]=h,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(i-a)*h*.5,t[9]=(o-s)*c*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:d,rotateX:p,rotateY:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],a=e[2],h=e[3],c=e[8],u=e[9],l=e[10],f=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o-c*r,t[1]=i*o-u*r,t[2]=a*o-l*r,t[3]=h*o-f*r,t[8]=s*r+c*o,t[9]=i*r+u*o,t[10]=a*r+l*o,t[11]=h*r+f*o,t},rotateZ:function(t,e,n){const r=Math.sin(n),o=Math.cos(n),s=e[0],i=e[1],a=e[2],h=e[3],c=e[4],u=e[5],l=e[6],f=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=s*o+c*r,t[1]=i*o+u*r,t[2]=a*o+l*r,t[3]=h*o+f*r,t[4]=c*o-s*r,t[5]=u*o-i*r,t[6]=l*o-a*r,t[7]=f*o-h*r,t},scale:m,set:i,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:L,subtract:C,targetTo:function(t,e,n,r){const o=e[0],s=e[1],i=e[2],a=r[0],h=r[1],c=r[2];let u=o-n[0],l=s-n[1],f=i-n[2],m=u*u+l*l+f*f;m>0&&(m=1/Math.sqrt(m),u*=m,l*=m,f*=m);let d=h*f-c*l,p=c*u-a*f,y=a*l-h*u;return m=d*d+p*p+y*y,m>0&&(m=1/Math.sqrt(m),d*=m,p*=m,y*=m),t[0]=d,t[1]=p,t[2]=y,t[3]=0,t[4]=l*y-f*p,t[5]=f*d-u*y,t[6]=u*p-l*d,t[7]=0,t[8]=u,t[9]=l,t[10]=f,t[11]=0,t[12]=o,t[13]=s,t[14]=i,t[15]=1,t},translate:f,transpose:h},Symbol.toStringTag,{value:"Module"}))},35522(t,e,n){n.d(e,{$A:()=>R,Bw:()=>s,C:()=>i,Cc:()=>w,DI:()=>x,Io:()=>M,Ln:()=>g,Om:()=>A,Qr:()=>l,Re:()=>c,S8:()=>S,T9:()=>p,WQ:()=>h,Z0:()=>T,_S:()=>m,aI:()=>L,ei:()=>E,fw:()=>I,gL:()=>C,hG:()=>_,hZ:()=>a,hs:()=>y,jk:()=>d,lw:()=>u,m3:()=>b,oW:()=>D,t2:()=>P,tn:()=>f,ze:()=>v});var r=n(51850),o=n(34304);function s(t){const e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function a(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function h(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function u(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function f(t,e){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t}function m(t,e){return t[0]=Math.sign(e[0]),t[1]=Math.sign(e[1]),t[2]=Math.sign(e[2]),t}function d(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function p(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function g(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)}function _(t,e){const n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o}function b(t){const e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function v(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function x(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){const n=e[0],r=e[1],o=e[2];let s=n*n+r*r+o*o;return s>0&&(s=1/Math.sqrt(s),t[0]=e[0]*s,t[1]=e[1]*s,t[2]=e[2]*s),t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function R(t,e,n){const r=e[0],o=e[1],s=e[2],i=n[0],a=n[1],h=n[2];return t[0]=o*h-s*a,t[1]=s*i-r*h,t[2]=r*a-o*i,t}function w(t,e,n,r){const o=e[0],s=e[1],i=e[2];return t[0]=o+r*(n[0]-o),t[1]=s+r*(n[1]-s),t[2]=i+r*(n[2]-i),t}function T(t,e,n){const r=e[0],o=e[1],s=e[2];return t[0]=n[0]*r+n[4]*o+n[8]*s+n[12],t[1]=n[1]*r+n[5]*o+n[9]*s+n[13],t[2]=n[2]*r+n[6]*o+n[10]*s+n[14],t}function E(t,e,n){const r=e[0],o=e[1],s=e[2];return t[0]=r*n[0]+o*n[3]+s*n[6],t[1]=r*n[1]+o*n[4]+s*n[7],t[2]=r*n[2]+o*n[5]+s*n[8],t}function C(t,e,n){return I(t,e,n[0],n[1],n[2],n[3])}function I(t,e,n,r,o,s){const i=e[0],a=e[1],h=e[2],c=r*h-o*a,u=o*i-n*h,l=n*a-r*i,f=r*l-o*u,m=o*c-n*l,d=n*u-r*c,p=2*s;return t[0]=i+c*p+2*f,t[1]=a+u*p+2*m,t[2]=h+l*p+2*d,t}const O=(0,r.vt)(),N=(0,r.vt)();function P(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function L(t,e){if(t===e)return!0;const n=t[0],r=t[1],s=t[2],i=e[0],a=e[1],h=e[2],c=(0,o.FD)();return Math.abs(n-i)<=c*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-h)<=c*Math.max(1,Math.abs(s),Math.abs(h))}function D(t,e,n){const r=n[0]-e[0],o=n[1]-e[1],s=n[2]-e[2];let i=r*r+o*o+s*s;return i>0?(i=1/Math.sqrt(i),t[0]=r*i,t[1]=o*i,t[2]=s*i,t):(t[0]=0,t[1]=0,t[2]=0,t)}const B=c,G=u,U=l,F=M,j=_,k=s,Z=b;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:h,angle:function(t,e){S(O,t),S(N,e);const n=A(O,N);return n>1?0:n<-1?Math.PI:Math.acos(n)},bezier:function(t,e,n,r,o,s){const i=1-s,a=i*i,h=s*s,c=a*i,u=3*s*a,l=3*h*i,f=h*s;return t[0]=e[0]*c+n[0]*u+r[0]*l+o[0]*f,t[1]=e[1]*c+n[1]*u+r[1]*l+o[1]*f,t[2]=e[2]*c+n[2]*u+r[2]*l+o[2]*f,t},ceil:function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},clamp:function(t,e=0,n=1){return t[0]=Math.min(Math.max(t[0],e),n),t[1]=Math.min(Math.max(t[1],e),n),t[2]=Math.min(Math.max(t[2],e),n),t},copy:i,cross:R,crossAndNormalize:function(t,e,n){const r=e[0],o=e[1],s=e[2],i=n[0],a=n[1],h=n[2],c=o*h-s*a,u=s*i-r*h,l=r*a-o*i,f=Math.sqrt(c*c+u*u+l*l);return t[0]=c/f,t[1]=u/f,t[2]=l/f,t},direction:D,dist:F,distance:M,div:U,divide:l,dot:A,equals:L,exactEquals:P,floor:function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},hermite:function(t,e,n,r,o,s){const i=s*s,a=i*(2*s-3)+1,h=i*(s-2)+s,c=i*(s-1),u=i*(3-2*s);return t[0]=e[0]*a+n[0]*h+r[0]*c+o[0]*u,t[1]=e[1]*a+n[1]*h+r[1]*c+o[1]*u,t[2]=e[2]*a+n[2]*h+r[2]*c+o[2]*u,t},inverse:x,len:k,length:s,lerp:w,max:p,min:d,mul:G,multiply:u,negate:v,normalize:S,random:function(t,e=1){const n=o.Ov,r=2*n()*Math.PI,s=2*n()-1,i=Math.sqrt(1-s*s)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=s*e,t},rotateX:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[0],s[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),s[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateY:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),s[1]=o[1],s[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},rotateZ:function(t,e,n,r){const o=[],s=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],s[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),s[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),s[2]=o[2],t[0]=s[0]+n[0],t[1]=s[1]+n[1],t[2]=s[2]+n[2],t},round:function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},scale:y,scaleAndAdd:g,scaleTo:function(t,e){return y(t,t,e/k(t))},set:a,sign:m,sqrDist:j,sqrLen:Z,squaredDistance:_,squaredLength:b,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:B,subtract:c,transformMat3:E,transformMat4:T,transformMat4Z:function(t,e){return e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]},transformQuat:C,transformQuatValues:I},Symbol.toStringTag,{value:"Module"})),n.d(e,["Il",0,k,"jb",0,B,"lo",0,j,"uE",0,Z])},83027(t,e,n){const r=n(29953).ho;n.d(e,["h",0,r])},35982(t,e,n){n.d(e,{B:()=>u});var r=n(4576),o=n(71511),s=n(36563),i=n(53966),a=n(97768),h=n(17676),c=n(83027);class u{constructor(t,e,n,r,o={}){this._mainMethod=e,this._transferLists=n,this._listeners=[],this._onClientConnectedHandle=null,this._destroyed=!1,this._promise=(0,c.h)(t,{...o,schedule:r}).then(t=>{null!=this._thread||this._destroyed?t.close():(this._thread=t,this._promise=null,this._onClientConnectedHandle=this._thread.onClientConnected(t=>{o.hasInitialize&&t.invoke("initialize",{}).catch(()=>{});for(const e of this._listeners)this._connectListenerToClient(e,t);this._onClientConnected(t)}))}),this._promise.catch(e=>i.A.getLogger("esri.core.workers.WorkerHandle").error(`Failed to initialize ${t} worker: ${e}`))}on(t,e){const n=new l(t,e);return this._listeners.push(n),this._connectListener(n),(0,s.hA)(()=>{(0,r.TF)(this._listeners,n),n.destroy()})}[Symbol.dispose](){this.destroy()}destroy(){this._onClientConnectedHandle=(0,a.xt)(this._onClientConnectedHandle),this._thread&&(this._thread.close(),this._thread=null),this._promise=null;for(const t of this._listeners)t.destroy();this._listeners.length=0,this._transferLists={},this._destroyed=!0}invoke(t,e,n){return this.invokeMethod(this._mainMethod,t,e,n)}invokeMethod(t,e,n,r){if(this._thread){const o=this._transferLists[t],s=o?o(e):[];return this._thread.invoke(t,e,{transferList:s,signal:n,jobPriority:r})}return this._promise?this._promise.then(()=>((0,h.Te)(n),this.invokeMethod(t,e,n))):Promise.reject((0,h.NK)())}broadcast(t,e){return this._thread?Promise.all(this._thread.broadcast(e,t)).then(f):this._promise?this._promise.then(()=>this.broadcast(t,e)):Promise.reject((0,h.NK)())}get promise(){return this._promise}_onClientConnected(t){}_connectListener(t){this._thread&&t.add(this._thread.on(t.eventName,t.callback))}_connectListenerToClient(t,e){t.add(e.on(t.eventName,t.callback))}}class l{constructor(t,e){this.eventName=t,this.callback=e,this._handles=new o.A}add(t){this._handles.add(t)}destroy(){this._handles.destroy()}}function f(){}},48526(t,e,n){n.d(e,{A:()=>y});var r,o=n(32198),s=n(4576),i=n(4718),a=n(91429),h=n(5443),c=n(91075),u=n(86738),l=n(16930),f=n(90634),m=n(47610),d=n(56993),p=n(43937);let y=r=class extends c.A{constructor(t){super(function(t){if(!t)return;let{points:e,hasM:n,hasZ:r,spatialReference:o}=t;switch(e??=[],e?.at(0)?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return o??=l.A.WGS84,{...t,hasM:n,hasZ:r,points:e,spatialReference:o}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new h.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,e){e.points=(0,i.o8)(this.points)}clone(){const{points:t,spatialReference:e,hasM:n,hasZ:o}=this;return new r({points:(0,i.o8)(t),spatialReference:e.clone(),hasM:n,hasZ:o})}equals(t){if(this===t)return!0;if(null==t)return!1;const e=this.spatialReference,n=t.spatialReference;return null!=e==(null!=n)&&!(null!=e&&null!=n&&!e.equals(n))&&(0,s.aI)(this.points,t.points,m.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const e=this.points[t],n={x:e[0],y:e[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(n.z=e[2],r=3),this.hasM&&(n.m=e[r]),new u.A(n)}removePoint(t){if(!this._validateInputs(t))return null;const e=new u.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),e}setPoint(t,e){return this._validateInputs(t)?((0,d.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.points[t]=e,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,o.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"cache",null),(0,o.Cg)([(0,a.MZ)({readOnly:!0})],y.prototype,"extent",null),(0,o.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],y.prototype,"points",void 0),(0,o.Cg)([(0,p.K)("points")],y.prototype,"writePoints",null),y=r=(0,o.Cg)([(0,a.$K)("esri.geometry.Multipoint")],y),y.prototype.toJSON.isDefaultToJSON=!0},82799(t,e,n){n.d(e,{A:()=>d});var r,o=n(32198),s=n(4718),i=n(91429),a=n(5443),h=n(91075),c=n(86738),u=n(16930),l=n(90634),f=n(56993),m=n(43937);let d=r=class extends h.A{constructor(t){super(function(t){if(!t)return;let{paths:e,hasM:n,hasZ:r,spatialReference:o}=t;switch(e??=[],function(t){return"number"==typeof t[0]?.[0]}(e)&&(e=[e]),e[0]?.[0]?.length){case 4:r??=!0,n??=!0;break;case 3:r??=!0!==n,n??=!r;break;default:r??=!1,n??=!1}return o??=u.A.WGS84,{...t,hasM:n,hasZ:r,paths:e,spatialReference:o}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,e){e.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,l.Z3)(this),{spatialReference:e}=this;return t?new a.A({...t,spatialReference:e}):null}writePaths(t,e){e.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const e=this.paths,n=e.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let e=0,n=t.length;e<n;e++)r[e]=t[e].toArray();e[n]=r}else e[n]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,e){if(!this._validateInputs(t,e))return null;const n=this.paths[t][e],r=this.hasZ,o=this.hasM;return r&&!o?new c.A(n[0],n[1],n[2],void 0,this.spatialReference):o&&!r?new c.A(n[0],n[1],void 0,n[2],this.spatialReference):r&&o?new c.A(n[0],n[1],n[2],n[3],this.spatialReference):new c.A(n[0],n[1],this.spatialReference)}insertPoint(t,e,n){return this._validateInputs(t,e,!0)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t].splice(e,0,n),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const e=this.paths.splice(t,1)[0],n=this.spatialReference,r=e.map(t=>new c.A(t,n));return this.notifyChange("paths"),r}removePoint(t,e){if(!this._validateInputs(t,e))return null;const n=new c.A(this.paths[t].splice(e,1)[0],this.spatialReference);return this.notifyChange("paths"),n}setPoint(t,e,n){return this._validateInputs(t,e)?((0,f.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.paths[t][e]=n,this.notifyChange("paths"),this):this}_validateInputs(t,e,n=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=e){const r=this.paths[t];if(n&&(e<0||e>r.length))return!1;if(!n&&(e<0||e>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,o.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,o.Cg)([(0,i.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,o.Cg)([(0,m.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,o.Cg)([(0,i.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,o.Cg)([(0,i.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,o.Cg)([(0,m.K)("paths")],d.prototype,"writePaths",null),d=r=(0,o.Cg)([(0,i.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},65806(t,e,n){n.d(e,{g:()=>i});var r=n(51850),o=n(99917),s=n(9762);function i(t,e,n,r){if((0,o.canProjectWithoutEngine)(t.spatialReference,n))return a[0]=t.x,a[1]=t.y,a[2]=t.z??0,(0,s.projectBuffer)(a,t.spatialReference,0,e,n,0);const i=(0,o.tryProject)(t,n,r);return!!i&&(e[0]=i.x,e[1]=i.y,e[2]=i.z??0,!0)}const a=(0,r.vt)()},27993(t,e,n){n.d(e,{F:()=>a});var r=n(99917),o=n(16930),s=n(9762),i=n(65806);function a(t,e,n,o){return!(null==e||null==o||t.length<2)&&((0,r.canProjectWithoutEngine)(e,o)?(0,s.projectBuffer)(t,e,0,n,o,0,1):(h.x=t[0],h.y=t[1],h.z=t[2],h.spatialReference=e,(0,i.g)(h,n,o)))}const h={x:0,y:0,z:0,hasZ:!0,hasM:!1,spatialReference:o.A.WGS84,type:"point"}},4197(t,e,n){n.d(e,{Vj:()=>u,cj:()=>c,jh:()=>s,l5:()=>a,yH:()=>h});var r=n(34275),o=n(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function i(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function h(t,e){if(0===e.length)return i(t);if(0===t.length)return i(e);const n=s(t.length+e.length);for(let e=0;e<t.length;++e)n[e]=t[e];for(let r=0;r<e.length;++r)n[t.length+r]=e[r];return n}function c(t){return[...t]}function u(t){const e=(0,o.vt)();for(let n=0;n<16;++n)e[n]=t[n];return e}},95696(t,e,n){n.d(e,{A:()=>c});var r,o=n(32198),s=n(69540),i=n(25482),a=n(91429),h=n(93223);let c=class extends((0,s.OU)(i.o)){static{r=this}constructor(t){super(t),this.type="georeferenced",this.origin=null}static{this.absolute=new r}};(0,o.Cg)([(0,h.e)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),(0,o.Cg)([(0,a.MZ)({type:[Number],nonNullable:!1,json:{write:!0}})],c.prototype,"origin",void 0),c=r=(0,o.Cg)([(0,a.$K)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c)},18251(t,e,n){n.d(e,{A:()=>c});var r=n(32198),o=n(69540),s=n(25482),i=n(91429),a=n(51850),h=n(93223);let c=class extends((0,o.OU)(s.o)){constructor(t){super(t),this.type="local",this.origin=(0,a.vt)()}};(0,r.Cg)([(0,h.e)({local:"local"},{readOnly:!0})],c.prototype,"type",void 0),(0,r.Cg)([(0,i.MZ)({type:[Number],nonNullable:!0,json:{write:!0}})],c.prototype,"origin",void 0),c=(0,r.Cg)([(0,i.$K)("esri.geometry.support.MeshLocalVertexSpace")],c)},72727(t,e,n){function r(t,e,n){if(e<=0)return 0;const r=t-n;return r<0?0:Math.floor(r/e)+1}n.d(e,{k:()=>r}),n(53966)},60408(t,e,n){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function o(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function i(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function h(t){return"object"==typeof t&&"vertexAttributes"in t}function c(t){return t?s(t)?"esriGeometryPoint":i(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":o(t)?"esriGeometryMultipoint":null:null}function u(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function l(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}n.d(e,{$B:()=>c,Bi:()=>a,Pv:()=>u,Rg:()=>i,U9:()=>o,W0:()=>l,ZC:()=>r,fT:()=>s,uW:()=>h})},80754(t,e,n){n.d(e,{kS:()=>c,kd:()=>h});var r=n(82799),o=n(16930),s=n(60408),i=n(52006);const a={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new r.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator}),minus180Line:new r.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:o.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new r.A({paths:[[[180,-180],[180,180]]],spatialReference:o.A.WGS84}),minus180Line:new r.A({paths:[[[-180,-180],[-180,180]]],spatialReference:o.A.WGS84})}};function h(t,e){return Math.ceil((t-e)/(2*e))}function c(t,e){if((0,i.Ed)(t))for(const n of function(t){return(0,s.Bi)(t)?t.curveRings:t.curvePaths}(t))for(const t of n){if((0,i.aO)(t)){const[n,r]=t.c;n[0]+=e,r[0]+=e;continue}if((0,i.FG)(t)){const[n,r]=t.a;n[0]+=e,r[0]+=e;continue}if((0,i.n1)(t)){const[n,r,o]=t.b;n[0]+=e,r[0]+=e,o[0]+=e;continue}t[0]+=e}for(const n of function(t){return(0,s.Bi)(t)?t.rings:t.paths}(t))for(const t of n)t[0]+=e;return t}n.d(e,["j7",0,a])},89056(t,e,n){n.d(e,{b3:()=>l,jZ:()=>u});var r=n(12195),o=n(19419),s=n(537),i=n(95108),a=n(60408),h=n(80754),c=n(21325);function u(t){return f(t,!0)}function l(t){return f(t,!1)}function f(t,e){if(null==t)return null;const n=t.spatialReference,o=(0,c.Vp)(n),i=(0,r.W)(t)?t.toJSON():t;if(!o)return i;const u=(0,c.K8)(n)?102100:4326,l=h.j7[u].maxX,f=h.j7[u].minX;if((0,a.fT)(i))return d(i,l,f);if((0,a.U9)(i))return i.points=i.points.map(t=>d(t,l,f)),i;if((0,a.ZC)(i))return m(i,o);if((0,a.Bi)(i)||(0,a.Rg)(i)){const t=(0,s.Rg)(b,i),n={xmin:t[0],ymin:t[1],xmax:t[2],ymax:t[3]},r=(0,h.kd)(n.xmin,f)*(2*l),o=0===r?i:(0,h.kS)(i,r);return n.xmin+=r,n.xmax+=r,n.xmax>l?M(o,l,e):n.xmin<f?M(o,f,e):o}return i}function m(t,e){if(!e)return t;const n=function(t,e){const n=[],{ymin:r,ymax:o,xmin:s,xmax:i}=t,a=t.xmax-t.xmin,[h,c]=e.valid,{x:u,frameId:l}=p(t.xmin,e),{x:f,frameId:m}=p(t.xmax,e),d=u===f&&a>0;if(a>2*c){const t={xmin:s<i?u:f,ymin:r,xmax:c,ymax:o},e={xmin:h,ymin:r,xmax:s<i?f:u,ymax:o},a={xmin:0,ymin:r,xmax:c,ymax:o},d={xmin:h,ymin:r,xmax:0,ymax:o},p=[],g=[];y(t,a)&&p.push(l),y(t,d)&&g.push(l),y(e,a)&&p.push(m),y(e,d)&&g.push(m);for(let t=l+1;t<m;t++)p.push(t),g.push(t);n.push(new _(t,[l]),new _(e,[m]),new _(a,p),new _(d,g))}else u>f||d?n.push(new _({xmin:u,ymin:r,xmax:c,ymax:o},[l]),new _({xmin:h,ymin:r,xmax:f,ymax:o},[m])):n.push(new _({xmin:u,ymin:r,xmax:f,ymax:o},[l]));return n}(t,e).map(t=>t.extent);return n.length<2?n[0]||t:n.length>2?(t.xmin=e.valid[0],t.xmax=e.valid[1],t):{rings:n.map(t=>[[t.xmin,t.ymin],[t.xmin,t.ymax],[t.xmax,t.ymax],[t.xmax,t.ymin],[t.xmin,t.ymin]])}}function d(t,e,n){if(Array.isArray(t)){const r=t[0];if(r>e){const n=(0,h.kd)(r,e);t[0]=r+n*(-2*e)}else if(r<n){const e=(0,h.kd)(r,n);t[0]=r+e*(-2*n)}}else{const r=t.x;if(r>e){const n=(0,h.kd)(r,e);t.x+=n*(-2*e)}else if(r<n){const e=(0,h.kd)(r,n);t.x+=e*(-2*n)}}return t}function p(t,e){const[n,r]=e.valid,o=2*r;let s,i=0;return t>r?(s=Math.ceil(Math.abs(t-r)/o),t-=s*o,i=s):t<n&&(s=Math.ceil(Math.abs(t-n)/o),t+=s*o,i=-s),{x:t,frameId:i}}function y(t,e){const{xmin:n,ymin:r,xmax:o,ymax:s}=e;return g(t,n,r)&&g(t,n,s)&&g(t,o,s)&&g(t,o,r)}function g(t,e,n){return e>=t.xmin&&e<=t.xmax&&n>=t.ymin&&n<=t.ymax}function M(t,e,n=!0){const r=!(0,a.Rg)(t);if(r&&(0,i.m3)(t),n)return(new v).cut(t,e);const o=r?t.rings:t.paths,s=r?4:2,h=o.length,c=-2*e;for(let t=0;t<h;t++){const e=o[t];if(e&&e.length>=s){const t=[];for(const[n,...r]of e)t.push([n+c,...r]);o.push(t)}}return r?t.rings=o:t.paths=o,t}class _{constructor(t,e){this.extent=t,this.frameIds=e}}const b=(0,o.vt)();class v{constructor(){this._linesIn=[],this._linesOut=[]}cut(t,e){let n;if(this._xCut=e,t.rings)this._closed=!0,n=t.rings,this._minPts=4;else{if(!t.paths)return null;this._closed=!1,n=t.paths,this._minPts=2}for(const t of n){if(!t||t.length<this._minPts)continue;let e=!0;for(const n of t)e?(this.moveTo(n),e=!1):this.lineTo(n);this._closed&&this.close()}this._pushLineIn(),this._pushLineOut(),n=[];for(const t of this._linesIn)t&&t.length>=this._minPts&&n.push(t);const r=-2*this._xCut;for(const t of this._linesOut)if(t&&t.length>=this._minPts){for(const e of t)e[0]+=r;n.push(t)}return this._closed?t.rings=n:t.paths=n,t}moveTo(t){this._pushLineIn(),this._pushLineOut(),this._prevSide=this._side(t[0]),this._moveTo(t,this._prevSide),this._prevPt=t,this._firstPt=t}lineTo(t){const e=this._side(t[0]);if(e*this._prevSide===-1){const n=this._intersect(this._prevPt,t);this._lineTo(n,0),this._prevSide=0,this._lineTo(t,e)}else this._lineTo(t,e);this._prevSide=e,this._prevPt=t}close(){const t=this._firstPt,e=this._prevPt;t[0]===e[0]&&t[1]===e[1]||this.lineTo(t),this._checkClosingPt(this._lineIn),this._checkClosingPt(this._lineOut)}_moveTo(t,e){this._closed?(this._lineIn.push(x(t,e<=0?t[0]:this._xCut)),this._lineOut.push(x(t,e>=0?t[0]:this._xCut))):(e<=0&&this._lineIn.push(t.slice()),e>=0&&this._lineOut.push(t.slice()))}_lineTo(t,e){this._closed?(S(this._lineIn,t,e<=0?t[0]:this._xCut),S(this._lineOut,t,e>=0?t[0]:this._xCut)):e<0?(0===this._prevSide&&this._pushLineOut(),this._lineIn.push(t.slice())):e>0?(0===this._prevSide&&this._pushLineIn(),this._lineOut.push(t.slice())):this._prevSide<0?(this._lineIn.push(t.slice()),this._lineOut.push(t.slice())):this._prevSide>0&&(this._lineOut.push(t.slice()),this._lineIn.push(t.slice()))}_checkClosingPt(t){const e=t.length;e>3&&t[0][0]===this._xCut&&t[e-2][0]===this._xCut&&t[1][0]===this._xCut&&(t[0]=t[e-2].slice(),t.pop())}_side(t){return t<this._xCut?-1:t>this._xCut?1:0}_intersect(t,e){const n=(this._xCut-t[0])/(e[0]-t[0]),r=[this._xCut,t[1]+n*(e[1]-t[1])],o=Math.min(t.length,e.length);for(let s=2;s<o;s++)r.push(t[s]+n*(e[s]-t[s]));return r}_pushLineIn(){this._lineIn&&this._lineIn.length>=this._minPts&&this._linesIn.push(this._lineIn),this._lineIn=[]}_pushLineOut(){this._lineOut&&this._lineOut.length>=this._minPts&&this._linesOut.push(this._lineOut),this._lineOut=[]}}function x(t,e){const n=t.slice();return n[0]=e,n}function S(t,e,n){const r=t.length;r>1&&t[r-1][0]===n&&t[r-2][0]===n?t[r-1]=x(e,n):t.push(x(e,n))}},97770(t,e,n){n.d(e,{Ey:()=>N,F8:()=>O,J2:()=>T,Yq:()=>C,_m:()=>E,iS:()=>I,wj:()=>P});var r=n(66552),o=n(73444),s=n(98623),i=n(34747);const a={dateStyle:void 0,year:void 0,month:void 0,day:void 0,weekday:void 0},h={timeStyle:void 0,hour12:void 0,hourCycle:void 0,hour:void 0,minute:void 0,second:void 0},c={timeZone:"UTC"},u={year:"numeric",month:"numeric",day:"numeric"},l={year:"numeric",month:"long",day:"numeric"},f={year:"numeric",month:"short",day:"numeric"},m={year:"numeric",month:"long",weekday:"long",day:"numeric"},d={hour:"numeric",minute:"numeric"},p={...d,second:"numeric"},y={hourCycle:"h23"},g={...d,...y},M={...p,...y},_={"short-date":u,"short-date-short-time":{...u,...d},"short-date-short-time-24":{...u,...g},"short-date-long-time":{...u,...p},"short-date-long-time-24":{...u,...M},"short-date-le":u,"short-date-le-short-time":{...u,...d},"short-date-le-short-time-24":{...u,...g},"short-date-le-long-time":{...u,...p},"short-date-le-long-time-24":{...u,...M},"long-month-day-year":l,"long-month-day-year-short-time":{...l,...d},"long-month-day-year-short-time-24":{...l,...g},"long-month-day-year-long-time":{...l,...p},"long-month-day-year-long-time-24":{...l,...M},"day-short-month-year":f,"day-short-month-year-short-time":{...f,...d},"day-short-month-year-short-time-24":{...f,...g},"day-short-month-year-long-time":{...f,...p},"day-short-month-year-long-time-24":{...f,...M},"long-date":m,"long-date-short-time":{...m,...d},"long-date-short-time-24":{...m,...g},"long-date-long-time":{...m,...p},"long-date-long-time-24":{...m,...M},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":d,"long-time":p},b=(0,r.O)()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),v={ar:"ar-u-nu-latn-ca-gregory",nn:"no-NN"},x=new Intl.DateTimeFormat("bs",{month:"long"}).formatToParts(new Date(2025,2)),S=x.find(({type:t})=>"month"===t)?.value.toLowerCase();function A(){const t=(0,o.lR)();return(t&&v[t])??(0,o.QC)()}"mart"!==S&&(v.bs="sr-Latn-CS");let R=new WeakMap;const w=_["short-date-short-time"];function T(t){return _[t]}function E(t){const{dateStyle:e,timeStyle:n,hour12:r,year:o,month:s}=t,i={};return e?i.dateStyle=e:o&&(i.year=o,i.month=s||void 0),n&&!i.year&&(i.timeStyle=n,i.hour12="auto"===r?void 0:"always"===r),i}function C(t,e=w){return function(t){let e=R.get(t);if(!e){const n=A(),r=P(t.timeZone??"system"),o={...t,timeZone:r};e=new Intl.DateTimeFormat(n,o),R.set(t,e)}return e}(e).format(t)}function I(t,e=w){return C(new Date(t),{...e,...c,...h})}function O(t,e=w){return C(new Date(`1970-01-01T${t}Z`),{...e,...c,...a})}function N(t,e=w){const n=i.c9.fromISO(t,{setZone:!0});if(!n.isValid)return t;if(e.timeZone)return C(n.toJSDate(),e);const r=0===n.offset?"UTC":e.timeZone,o={...e,timeZone:r};return n.toLocaleString(o,{locale:A()})}function P(t){switch(t){case"system":return s.N;case s.L:return"UTC";default:return t}}(0,o.Ml)(()=>{R=new WeakMap}),n.d(e,["_v",0,b])},73444(t,e,n){n.d(e,{JK:()=>h,Ml:()=>y,QC:()=>l,lR:()=>u,oQ:()=>d});var r=n(36563);let o;n(44208);const s=globalThis.esriConfig?.locale,i=globalThis.document?.documentElement;function a(){const t=i?.getAttribute("lang"),e=globalThis.navigator?.language;return s??t??e??"en"}function h(){return void 0===o&&(o=a()),o}const c=/^(?<language>[a-z]{2,3})(?:-(?<extlang>[a-z]{3}))?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;function u(t=h()){return f(t)?.language}function l(t=h()){const e=f(t);return e?.language&&e?.extlang?t.replace(`${e.language}-`,""):t}function f(t=h()){return c.exec(t)?.groups}const m=[];function d(t){return m.push(t),(0,r.hA)(()=>{m.splice(m.indexOf(t),1)})}new Map;const p=[];function y(t){return p.push(t),(0,r.hA)(()=>p.splice(p.indexOf(t),1))}function g(){const t=a();o!==t&&([...p].forEach(e=>e(t)),o=t,[...m].forEach(e=>e(t)))}globalThis.addEventListener?.("languagechange",g),i&&new MutationObserver(()=>{g()}).observe(i,{attributeFilter:["lang"]})},98623(t,e,n){const r=Intl.DateTimeFormat().resolvedOptions().timeZone;n.d(e,["L",0,"unknown","N",0,r])},89606(t,e,n){n.d(e,{GN:()=>l,MU:()=>u,yf:()=>m});var r=n(35522),o=n(51850),s=n(10614),i=n(63907),a=n(74038);class h{constructor(t,e){this.data=t,this.indices=e}}class c{constructor(t,e,n,r,o){this.indices=t,this.packedNormals=e,this.appendedVertexToOriginal=n,this.outputVertexCount=r,this.appendedVertexCount=o}}function u(t,e,n,c,u){return!c||n.some(({name:t})=>"normal"===t||"normalCompressed"===t)?function(t,e,n,i){const a=new h(t.slice().buffer,e);if(!i)return a;const c=n[0].stride,u=a.data.byteLength/c;for(const t of n)if("normalCompressed"===t.name){const{offset:e}=t,n=new Int16Array(a.data),h=(0,o.vt)();for(let t=0;t<u;++t)(0,s.Tz)(h,n,t,c/2,e/2),(0,r.ei)(h,h,i),(0,s.aT)(n,t,h[0],h[1],h[2],c/2,e/2)}else if("normal"===t.name){const{offset:e}=t,n=new Float32Array(a.data),s=(0,o.vt)();for(let t=0;t<u;++t){const o=(t*c+e)/4;s[0]=n[o],s[1]=n[o+1],s[2]=n[o+2],(0,r.ei)(s,s,i),n[o]=s[0],n[o+1]=s[1],n[o+2]=s[2]}}return a}(t,e,n,u):function(t,e,n,r){const o=n[0].stride,s=o/4,h=new Float32Array(t.buffer,t.byteOffset,t.byteLength/4),c=t.byteLength/o,u=1<n.length?n[1].offset/4:s,m=o+4;n.forEach((t,e)=>{t.stride=m,e>=1&&(t.offset+=4)}),n.splice(1,0,new a._("normalCompressed",2,i.pe.SHORT,12,m,!0));const d=l(e,h,s,r);return f(h,c,u,o,m,d)}(t,e,n,u)}function l(t,e,n,r){const o=t.length/3,s=e.length/n,{faceNormals:i,faceAreas:a,faceEdges:h,edgeFaces:c,vertexFaces:u,vertexFaceCountAndOffset:l}=function(t,e,n,r,o,s){const i=new Float32Array(3*o),a=new Float32Array(o),h=new Uint32Array(3*o),c=new Int32Array(3*o*2),u=3*o,l=new Uint32Array(u),f=new Uint32Array(2*n);for(let t=0;t<o;++t){const e=3*t;for(let t=0;t<3;++t)++f[2*r[e+t]]}{let t=0;for(let e=0;e<n;++e){const n=2*e;f[n+1]=t,t+=f[n]}for(let t=0;t<o;++t){const e=3*t;for(let n=0;n<3;++n)l[f[2*r[e+n]+1]++]=t}for(let t=0;t<n;++t)f[2*t+1]-=f[2*t]}let m=0;const d=new Uint32Array(2*u*2),p=new Uint32Array(2*n);for(let t=0;t<n;++t){const e=2*t,n=4*f[e+1];p[e]=n,p[e+1]=n}function y(t,e,n){const r=Math.min(t,e),o=Math.max(t,e),s=t<e?0:1,i=2*r,a=p[i],h=p[i+1];let u=-1;for(let t=a;t<h;t+=2)if(d[t]===o){u=d[t+1];break}return-1===u&&(u=m++,d[h]=o,d[h+1]=u,p[i+1]=h+2,c[2*u+(1-s)]=-1),c[2*u+s]=n,u}for(let n=0;n<r.length;n+=3){const o=r[n],c=o*e,u=t[c],l=t[c+1],f=t[c+2],m=r[n+1],d=m*e,p=t[d],g=t[d+1],M=t[d+2],_=r[n+2],b=_*e,v=u-p,x=l-g,S=f-M,A=u-t[b],R=l-t[b+1],w=f-t[b+2],T=x*w-S*R,E=S*A-v*w,C=v*R-x*A,I=Math.sqrt(T*T+E*E+C*C)||1,O=n/3;a[O]=.5*I;const N=1/I;if(s){const t=s[0]*T+s[3]*E+s[6]*C,e=s[1]*T+s[4]*E+s[7]*C,n=s[2]*T+s[5]*E+s[8]*C;i[3*O]=t*N,i[3*O+1]=e*N,i[3*O+2]=n*N}else i[3*O]=T*N,i[3*O+1]=E*N,i[3*O+2]=C*N;const P=y(o,m,O),L=y(m,_,O),D=y(_,o,O);h[3*O]=P,h[3*O+1]=L,h[3*O+2]=D}return{faceNormals:i,faceAreas:a,faceEdges:h,vertexFaces:l,vertexFaceCountAndOffset:f,edgeFaces:c}}(e,n,s,t,o,r);return function(t,e,n,r,o,s){const i=new Uint8Array(e),a=new Uint32Array(e),h=new Uint32Array(3*e);let c=0;const u=new Uint32Array(e);let l=0;for(let e=0;e<t.length;e+=3){const t=e/3;if(1===i[t])continue;i[t]=1;const f=n[3*t],m=n[3*t+1],d=n[3*t+2];for(l=0,u[l++]=t,h[0]=o[3*t],h[1]=o[3*t+1],h[2]=o[3*t+2],c=3,a[t]=t+1;c>0;){const e=h[--c];for(let r=0;r<2;++r){const y=s[2*e+r];if(-1===y||a[y]===t+1)continue;a[y]=t+1;const g=n[3*y],M=n[3*y+1],_=n[3*y+2];if(Math.abs(1-(f*g+m*M+d*_))<p){u[l++]=y,i[y]=1;for(let t=0;t<3;++t){const n=o[3*y+t];n!==e&&(h[c++]=n)}}}}if(l>1){let t=0,e=0,o=0,s=0;for(let i=0;i<l;++i){const a=u[i],h=r[a];t+=h,e+=n[3*a]*h,o+=n[3*a+1]*h,s+=n[3*a+2]*h}const i=Math.sqrt(e*e+o*o+s*s)||1;e/=i,o/=i,s/=i;for(let i=0;i<l;++i){const a=u[i];n[3*a]=e,n[3*a+1]=o,n[3*a+2]=s,r[a]=t}}}}(t,o,i,a,h,c),d(o,s,t,i,a,u,l)}function f(t,e,n,r,o,s){const i=r/4,a=o/4,c=s.outputVertexCount,u=new Float32Array(c*a),l=new Uint32Array(u.buffer),f=new Uint32Array(t.buffer,t.byteOffset,t.length);return function(t,e,n,r,o,s,i){for(let a=0;a<s;++a){const s=a*o,h=a*e;for(let e=0;e<n;++e)t[h+e]=r[s+e];t[h+n]=i[a];for(let e=n;e<o;++e)t[h+e+1]=r[s+e]}}(l,a,n,f,i,e,s.packedNormals),m(l,a,n,f,i,e,c,s.appendedVertexToOriginal,s.packedNormals,!0),new h(u.buffer,s.indices)}function m(t,e,n,r,o,s,i,a,h,c){for(let u=s;u<i;++u){const i=a[u-s]*o,l=u*e;for(let e=0;e<o;++e)t[l+e+(c&&e>=n?1:0)]=r[i+e];t[l+n]=h[u]}}function d(t,e,n,r,o,s,i){const a=3*t,h=new(a<256?Uint8Array:a<65536?Uint16Array:Uint32Array)(n);let u=e;const l=new(e<256?Uint8Array:e<65536?Uint16Array:Uint32Array)(a-e),f=new ArrayBuffer(4*a),m=new Int16Array(f),d=new Uint32Array(f);let p=0,g=0;const M=new Uint32Array(t);let _=0;const b=1-y;for(let t=0;t<e;++t){p=i[2*t+1],g=p+i[2*t];let n=t;for(;p<g;){{const t=s[--g],e=3*t,i=r[e],a=r[e+1],h=r[e+2];_=0,M[_++]=t;let c=p;for(;c<g;){const t=s[c],e=3*t;if(i*r[e]+a*r[e+1]+h*r[e+2]>b){M[_++]=t;const e=--g;if(c<e){s[c]=s[e];continue}}++c}let u=0,l=0,f=0;if(1===_)u=i,l=a,f=h;else{for(let t=0;t<_;++t){const e=M[t],n=o[e],s=3*e;u+=r[s]*n,l+=r[s+1]*n,f+=r[s+2]*n}const t=Math.sqrt(u*u+l*l+f*f)||1;u/=t,l/=t,f/=t}{const t=1/(Math.abs(u)+Math.abs(l)+Math.abs(f)),e=u*t,r=l*t;let o=e,s=r;f<=0&&(o=(e>=0?1:-1)*(1-Math.abs(r)),s=(r>=0?1:-1)*(1-Math.abs(e)));const i=2*n,a=Math.round(32767*o),h=Math.round(32767*s);m[i]=a<-32767?-32767:a>32767?32767:a,m[i+1]=h<-32767?-32767:h>32767?32767:h}}if(n!==t)for(let e=0;e<_;++e){const r=3*M[e];h[r]===t&&(h[r]=n),h[r+1]===t&&(h[r+1]=n),h[r+2]===t&&(h[r+2]=n)}if(p>=g)break;n=u++,l[n-e]=t}}return new c(h,d,l,u,u-e)}const p=.04,y=.8},94715(t,e,n){n.r(e),n.d(e,{destroyContext:()=>A,dracoDecompressPointCloudData:()=>M,filterObbsForModifications:()=>_,filterObbsForModificationsSync:()=>I,initialize:()=>P,interpretObbModificationResults:()=>C,process:()=>g,project:()=>x,setLegacySchema:()=>v,setModifications:()=>b,setModificationsSync:()=>T,test:()=>D,transformNormals:()=>S});var r=n(34727),o=n(77690),s=n(29242),i=n(58083),a=n(9093),h=n(16930),c=n(4197),u=n(95696),l=n(18251),f=n(73354),m=n(2741);let d;var p=n(89606),y=n(98697);async function g(t){w=await L();const e=[t.geometryBuffer];return{result:E(w,t,e),transferList:e}}async function M(t){w=await L();const e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,o=w._malloc(r),s=new Uint8Array(w.HEAPU8.buffer,o,r);s.set(new Uint8Array(n));const i=w.dracoDecompressPointCloudData(o,s.byteLength);if(w._free(o),i.error.length>0)throw new Error(`i3s.wasm: ${i.error}`);const a=i.featureIds?.length>0?i.featureIds.slice():null,h=i.positions.slice();return a&&e.push(a.buffer),e.push(h.buffer),{result:{positions:h,featureIds:a},transferList:e}}async function _(t){await L(),I(t);const e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function b(t){await L(),T(t)}async function v(t){w=await L(),w.setLegacySchema(t.context,t.jsonSchema)}async function x(t){const{localMatrix:e,origin:r,positions:o,vertexSpace:s}=t,i=h.A.fromJSON(t.inSpatialReference),a=h.A.fromJSON(t.outSpatialReference),f=e?(0,c.Vj)(e):void 0,m=(0,c.cj)(r);let d;const[{projectBuffer:p},{initializeProjection:y}]=await Promise.all([Promise.resolve().then(n.bind(n,9762)),Promise.resolve().then(n.bind(n,99917))]);await y(i,a);const g=[0,0,0];if(!p(m,i,0,g,a,0))throw new Error("Failed to project");if("georeferenced"===s.type&&null==s.origin){if(d=new Float64Array(o.length),!p(o,i,0,d,a,0,d.length/3))throw new Error("Failed to project")}else{const t="georeferenced"===s.type?u.A.fromJSON(s):l.A.fromJSON(s),{projectMeshVertexPositions:e}=await Promise.all([n.e(6860),n.e(4406)]).then(n.bind(n,74594)),r=e({vertexAttributes:{position:o},transform:f?{localMatrix:f}:void 0,vertexSpace:t,spatialReference:i},a);if(!r)throw new Error("Failed to project");d=r}const M=d.length,[_,b,v]=g;for(let t=0;t<M;t+=3)d[t]-=_,d[t+1]-=b,d[t+2]-=v;return{result:{projected:d,original:o,projectedOrigin:g},transferList:[d.buffer,o.buffer]}}async function S({normalMatrix:t,normals:e}){const n=new Float32Array(e.length);return(0,f.b)(n,e,t),(0,r.or)(t)&&(0,f.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function A(t){O(t)}let R,w;function T(t){if(!w)return;const e=t.modifications,n=w._malloc(8*e.length),r=new Float64Array(w.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];w.setModifications(t.context,n,e.length,t.isGeodetic),w._free(n)}function E(t,e,n){const{context:r,globalTrafo:h,geometryElevationOffset:c,mbs:u,obbData:l,layouts:f,needNormals:m,computeNormals:d,elevationOffset:g,planetRadiusInGlobalMode:M,geometryBuffer:_,geometryDescriptor:b,geometryData:v,indexToVertexProjector:x,vertexToRenderProjector:S,normalReferenceFrame:A}=e,R=t._malloc(_.byteLength),w=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),T=new Uint8Array(t.HEAPU8.buffer,R,_.byteLength);T.set(new Uint8Array(_));const E=new Float64Array(t.HEAPU8.buffer,w,33);N(E,[NaN,NaN,NaN],0);let C=3;N(E,h,C),C+=16,N(E,u.center,C),C+=3,E[C++]=u.radius,l&&N(E,l,C++);const I={isDraco:!1,isLegacy:!1,color:f.some(t=>t.some(t=>"color"===t.name)),normal:m&&f.some(t=>t.some(t=>"normalCompressed"===t.name)),uv0:f.some(t=>t.some(t=>"uv0"===t.name)),uvRegion:f.some(t=>t.some(t=>"uvRegion"===t.name)),featureIndex:b.featureIndex},O=t.process(r,!!l,R,T.byteLength,b,I,w,g,x,S,A);if(t._free(w),t._free(R),O.error.length>0)throw new Error(`i3s.wasm: ${O.error}`);if(O.discarded)return null;const P=O.componentOffsets.length>0?O.componentOffsets.slice():null,L=O.featureIds.length>0?O.featureIds.slice():null,D=O.anchorIds.length>0?Array.from(O.anchorIds):null,B=O.anchors.length>0?Array.from(O.anchors):null,G=1===O.indicesType?new Uint16Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/2).slice():new Uint32Array(O.indices.buffer,O.indices.byteOffset,O.indices.byteLength/4).slice(),U=f[0].slice(),F=(0,o.z0)((0,s.vt)(),h),j=(0,p.MU)(O.interleavedVertedData,G,U,d&&!I.normal,F),k=O.positions.slice(),Z=function(t,e,n,r,o){const s=n?(0,a.o8)(n):(0,a.vt)();(0,i.lw)(s,e,s);const h=s[0],c=s[1],u=s[2],l=s[4],f=s[5],m=s[6],d=s[8],p=s[9],y=s[10],g=s[12],M=s[13],_=s[14];let b=1/0,v=-1/0;for(let e=0;e<t.length;e+=3){const n=t[e],s=t[e+1],i=t[e+2],a=n*u+s*m+i*y+_;let x=0;if(r>0){const t=n*h+s*l+i*d+g,e=n*c+s*f+i*p+M;x=Math.sqrt(t*t+e*e+a*a)-r}else x=a;x-=o,b=Math.min(b,x),v=Math.max(v,x)}return{minElevation:b,maxElevation:v}}(k,h,v?.geometries[0]?.transformation,M,c),{buffer:H,byteOffset:q,byteLength:z}=O.positionIndices,Y=1===O.positionIndicesType?new Uint16Array(H,q,z/2).slice():new Uint32Array(H,q,z/4).slice(),V=new y._b(U,j.data,j.indices,O.hasColors,O.hasModifications,{data:k,indices:Y});return L&&n.push(L.buffer),P&&n.push(P.buffer),n.push(j.data),n.push(j.indices.buffer),n.push(k.buffer),n.push(Y.buffer),new y.sQ(P,L,D,B,V,h,O.obb,Z.minElevation,Z.maxElevation)}function C(t){return 0===t?0:1===t?1:2===t?2:3}function I(t){if(!w)return;const{context:e,buffer:n}=t,r=w._malloc(n.byteLength),o=n.byteLength/Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(w.HEAPU8.buffer,r,o),i=new Float64Array(n);s.set(i),w.filterOBBs(e,r,o),i.set(s),w._free(r)}function O(t){0===w?.destroy(t)&&(w=null,R=null,d=null)}function N(t,e,n){for(let r=0;r<e.length;++r)t[r+n]=e[r]}async function P(){w||await L()}async function L(){return w||(w=await(R??=(d??=(async()=>{const t=await n.e(2980).then(n.bind(n,82980));return await t.default({locateFile:t=>(0,m.s)(`esri/libs/i3s/${t}`)})})(),d))),w}const D={transform:(t,e)=>w&&E(w,t,e),destroy:O}},98697(t,e,n){n.d(e,{H1:()=>M,Ir:()=>p,_b:()=>l,sQ:()=>f});var r=n(53966),o=n(15142),s=n(51850),i=n(35982),a=n(39829),h=n(99917),c=n(27993),u=n(89056);class l{constructor(t,e,n,r,o,s){this.layout=t,this.interleavedVertexData=e,this.indices=n,this.hasColors=r,this.hasModifications=o,this.positionData=s}}class f{constructor(t,e,n,r,o,s,i,a,h){this.componentOffsets=t,this.featureIds=e,this.anchorIds=n,this.anchors=r,this.transformedGeometry=o,this.globalTrafo=s,this.obb=i,this.geometryMinElevation=a,this.geometryMaxElevation=h}}i.B;const m=new o.A({deallocator:null}),d=(0,s.vt)();function p(t,e,n,o=!1){m.clear();let s=1/0,i=1/0,c=-1/0,l=-1/0,f=!1;for(const t of e){const e="clip"===t.type?2:"mask"===t.type?1:0,d=t.geometry,p=d.spatialReference??n;if(p!==n&&!(0,h.canProjectWithoutEngine)(p,n)){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:d});continue}let M=d.rings;if(p!==n){const t=y(d.rings,p,n);if(null==t){r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-projection-failed","Can't project modification polygon into layer spatial reference, ignoring modification",{polygon:d});continue}M=t}const _=M;if(o){const t=(0,u.jZ)(new a.A({rings:M,spatialReference:n}));null!=t&&(M=t.rings)}const b=1===_.length&&M.length>1?[...M.map(t=>[t]),_]:[M];if(b.some(t=>0===t.length||t.some(t=>t.length<3||t.some(t=>!g(t)))))r.A.getLogger("esri.views.3d.layers.SceneLayerWorkerHandle").warn("im-modification-invalid-polygon","Ignoring invalid modification polygon (empty ring, fewer than 3 vertices, or non-finite coordinates).",{polygon:d});else{f||=1===e;for(const t of b){m.push(e),m.push(t.length);for(const e of t){m.push(e.length);for(const t of e){const e=t[2]??0;m.push(t[0]),m.push(t[1]),m.push(e),s=Math.min(s,t[0]),i=Math.min(i,t[1]),c=Math.max(c,t[0]),l=Math.max(l,t[1])}}}}}if(null!=t)if(f){const e=1e-4;m.push(2),m.push(2),m.push(4),m.push(s-e),m.push(i-e),m.push(0),m.push(c+e),m.push(i-e),m.push(0),m.push(c+e),m.push(l+e),m.push(0),m.push(s-e),m.push(l+e),m.push(0),m.push(4),m.push(t[0]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[3]),m.push(0),m.push(t[0]),m.push(t[3]),m.push(0)}else m.push(1),m.push(1),m.push(4),m.push(t[0]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[1]),m.push(0),m.push(t[2]),m.push(t[3]),m.push(0),m.push(t[0]),m.push(t[3]),m.push(0);m.push(3);const d=new Float64Array(m.length);for(let t=0;t<m.length;++t)d[t]=m.at(t);return d}function y(t,e,n){const r=[];for(const o of t){const t=[];for(const r of o){if(!(0,c.F)(r,e,d,n)||!g(d))return null;t.push([d[0],d[1],d[2]])}r.push(t)}return r}function g(t){return Number.isFinite(t[0])&&Number.isFinite(t[1])&&(null==t[2]||Number.isFinite(t[2]))}function M(t,e){let n=0;for(const r of e){const e=r.geometry,o=e.rings.length,s=e.rings.some(t=>t.length<3);if(0!==o&&!s){n+=1,n+=1;for(let r=0;r<e.rings.length;++r){const o=e.rings[r];n+=1;for(let s=0;s<o.length;++s){const o=[t[n+0],t[n+1],t[n+2]];n+=3,e.setPoint(r,s,o)}}}}}},10614(t,e,n){n.d(e,{Tz:()=>i,aT:()=>s});var r=n(34727),o=n(35522);function s(t,e,n,r,o,s=2,i=0){const h=1/(Math.abs(n)+Math.abs(r)+Math.abs(o)),c=n*h,u=r*h,l=o<=0?(c>=0?1:-1)*(1-Math.abs(u)):c,f=o<=0?(u>=0?1:-1)*(1-Math.abs(c)):u,m=e*s+i;t[m]=a(l),t[m+1]=a(f)}function i(t,e,n,r=2,s=0){const i=n*r+s,a=h(e[i]),c=h(e[i+1]),u=1-Math.abs(a)-Math.abs(c);return t[2]=u,u<0?(t[0]=(a>=0?1:-1)*(1-Math.abs(c)),t[1]=(c>=0?1:-1)*(1-Math.abs(a))):(t[0]=a,t[1]=c),(0,o.S8)(t,t)}function a(t){return(0,r.qE)(Math.round(32767*t),-32767,32767)}function h(t){return(0,r.qE)(t/32767,-1,1)}n(51850)},74038(t,e,n){n.d(e,{_:()=>r});class r{constructor(t,e,n,r,o,s=!1,i=0,a=!1){this.name=t,this.count=e,this.type=n,this.offset=r,this.stride=o,this.normalized=s,this.divisor=i,this.integer=a}}},63907(t,e,n){const r={BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,HALF_FLOAT:5131},o={RGBA4:32854,R16F:33325,RG16F:33327,RGB32F:34837,RGBA16F:34842,R32F:33326,RG32F:33328,RGBA32F:34836,R11F_G11F_B10F:35898,RGB8:32849,RGBA8:32856,RGB5_A1:32855,R8:33321,RG8:33323,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,RGB16F:34843,RGB9_E5:35901,SRGB8:35905,SRGB8_ALPHA8:35907,RGB565:36194,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,RGB10_A2:32857,RGB10_A2UI:36975},s=Object.values(o),i={FLOAT:r.FLOAT,UNSIGNED_BYTE:r.UNSIGNED_BYTE,UNSIGNED_INT_24_8:34042,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,BYTE:r.BYTE,UNSIGNED_SHORT:r.UNSIGNED_SHORT,SHORT:r.SHORT,UNSIGNED_INT:r.UNSIGNED_INT,INT:r.INT,HALF_FLOAT:5131,UNSIGNED_INT_2_10_10_10_REV:33640,UNSIGNED_INT_10F_11F_11F_REV:35899,UNSIGNED_INT_5_9_9_9_REV:35902,FLOAT_32_UNSIGNED_INT_24_8_REV:36269};n.d(e,["CQ",0,{COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497},"H0",0,o,"SB",0,{DEPTH_COMPONENT16:33189,DEPTH_COMPONENT24:33190,DEPTH_COMPONENT32F:36012},"WR",0,{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},"XN",0,s,"iE",0,{DEPTH24_STENCIL8:35056,DEPTH32F_STENCIL8:36013},"ld",0,i,"pe",0,r,"vt",0,{Texture:0,TileTexture:1,BufferObject:2,VertexArrayObject:3,Shader:4,Program:5,FramebufferObject:6,Renderbuffer:7,TransformFeedback:8,Sync:9,UNCOUNTED:10,LinesOfCode:10,Uniform:11,COUNT:12}])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3730],{79608(t,n,e){e.d(n,{A:()=>f});var r=e(32198),i=e(69540),s=e(91429);let o=class extends i.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)()],o.prototype,"type",void 0),o=(0,r.Cg)([(0,s.$K)("esri.analysis.support.AnalysisOriginWebScene")],o);const a=o;var u=e(69622),c=e(4902),h=e(25482);let l=0,f=class extends((0,h.T)((0,i.OU)((0,c.s)(u.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${l++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const n=this.parent;if(null!=n)switch(n.type){case"line-of-sight":case"dimension":case"viewshed":n.releaseAnalysis(this);break;case"2d":case"3d":n.analyses.includes(this)&&n.analyses.remove(this)}this._set("parent",t)}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)({type:String,constructOnly:!0,clonable:!1})],f.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({clonable:!1,value:null})],f.prototype,"parent",null),(0,r.Cg)([(0,s.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":a}}})],f.prototype,"origin",void 0),f=(0,r.Cg)([(0,s.$K)("esri.analysis.Analysis")],f)},91715(t,n,e){e.d(n,{xH:()=>s,N1:()=>a}),e(35522);var r=e(51850),i=e(71351);function s(t,n){return o(t)===o(n)}function o(t){if(null==t)return null;const n=null!=t.layer?t.layer.id:"";let e=null;return e=null!=t.objectId?t.objectId:null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid,null==e?null:`o-${n}-${e}`}e(58083),e(70328),e(77548),e(6867),e(49718),(0,r.vt)();const a={json:{write:{writer:function(t,n){null!=t?.layer?.objectIdField&&null!=t.attributes&&(n.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}},clonable:"reference"};(0,i.vt)(),(0,r.vt)()},80200(t,n,e){e.d(n,{d:()=>l});const r={Base64:0,Hex:1,String:2,Raw:3};function i(t,n){const e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}function s(t,n,e,r,s,o){return i(function(t,n){return t<<n|t>>>32-n}(i(i(n,t),i(r,o)),s),e)}function o(t,n,e,r,i,o,a){return s(n&e|~n&r,t,n,i,o,a)}function a(t,n,e,r,i,o,a){return s(n&r|e&~r,t,n,i,o,a)}function u(t,n,e,r,i,o,a){return s(n^e^r,t,n,i,o,a)}function c(t,n,e,r,i,o,a){return s(e^(n|~r),t,n,i,o,a)}function h(t,n){t[n>>5]|=128<<n%32,t[14+(n+64>>>9<<4)]=n;let e=1732584193,r=-271733879,s=-1732584194,h=271733878;for(let n=0;n<t.length;n+=16){const l=e,f=r,p=s,d=h;e=o(e,r,s,h,t[n],7,-680876936),h=o(h,e,r,s,t[n+1],12,-389564586),s=o(s,h,e,r,t[n+2],17,606105819),r=o(r,s,h,e,t[n+3],22,-1044525330),e=o(e,r,s,h,t[n+4],7,-176418897),h=o(h,e,r,s,t[n+5],12,1200080426),s=o(s,h,e,r,t[n+6],17,-1473231341),r=o(r,s,h,e,t[n+7],22,-45705983),e=o(e,r,s,h,t[n+8],7,1770035416),h=o(h,e,r,s,t[n+9],12,-1958414417),s=o(s,h,e,r,t[n+10],17,-42063),r=o(r,s,h,e,t[n+11],22,-1990404162),e=o(e,r,s,h,t[n+12],7,1804603682),h=o(h,e,r,s,t[n+13],12,-40341101),s=o(s,h,e,r,t[n+14],17,-1502002290),r=o(r,s,h,e,t[n+15],22,1236535329),e=a(e,r,s,h,t[n+1],5,-165796510),h=a(h,e,r,s,t[n+6],9,-1069501632),s=a(s,h,e,r,t[n+11],14,643717713),r=a(r,s,h,e,t[n],20,-373897302),e=a(e,r,s,h,t[n+5],5,-701558691),h=a(h,e,r,s,t[n+10],9,38016083),s=a(s,h,e,r,t[n+15],14,-660478335),r=a(r,s,h,e,t[n+4],20,-405537848),e=a(e,r,s,h,t[n+9],5,568446438),h=a(h,e,r,s,t[n+14],9,-1019803690),s=a(s,h,e,r,t[n+3],14,-187363961),r=a(r,s,h,e,t[n+8],20,1163531501),e=a(e,r,s,h,t[n+13],5,-1444681467),h=a(h,e,r,s,t[n+2],9,-51403784),s=a(s,h,e,r,t[n+7],14,1735328473),r=a(r,s,h,e,t[n+12],20,-1926607734),e=u(e,r,s,h,t[n+5],4,-378558),h=u(h,e,r,s,t[n+8],11,-2022574463),s=u(s,h,e,r,t[n+11],16,1839030562),r=u(r,s,h,e,t[n+14],23,-35309556),e=u(e,r,s,h,t[n+1],4,-1530992060),h=u(h,e,r,s,t[n+4],11,1272893353),s=u(s,h,e,r,t[n+7],16,-155497632),r=u(r,s,h,e,t[n+10],23,-1094730640),e=u(e,r,s,h,t[n+13],4,681279174),h=u(h,e,r,s,t[n],11,-358537222),s=u(s,h,e,r,t[n+3],16,-722521979),r=u(r,s,h,e,t[n+6],23,76029189),e=u(e,r,s,h,t[n+9],4,-640364487),h=u(h,e,r,s,t[n+12],11,-421815835),s=u(s,h,e,r,t[n+15],16,530742520),r=u(r,s,h,e,t[n+2],23,-995338651),e=c(e,r,s,h,t[n],6,-198630844),h=c(h,e,r,s,t[n+7],10,1126891415),s=c(s,h,e,r,t[n+14],15,-1416354905),r=c(r,s,h,e,t[n+5],21,-57434055),e=c(e,r,s,h,t[n+12],6,1700485571),h=c(h,e,r,s,t[n+3],10,-1894986606),s=c(s,h,e,r,t[n+10],15,-1051523),r=c(r,s,h,e,t[n+1],21,-2054922799),e=c(e,r,s,h,t[n+8],6,1873313359),h=c(h,e,r,s,t[n+15],10,-30611744),s=c(s,h,e,r,t[n+6],15,-1560198380),r=c(r,s,h,e,t[n+13],21,1309151649),e=c(e,r,s,h,t[n+4],6,-145523070),h=c(h,e,r,s,t[n+11],10,-1120210379),s=c(s,h,e,r,t[n+2],15,718787259),r=c(r,s,h,e,t[n+9],21,-343485551),e=i(e,l),r=i(r,f),s=i(s,p),h=i(h,d)}return[e,r,s,h]}function l(t,n=r.Hex){const e=n||r.Base64,i=h(function(t){const n=[];for(let e=0,r=8*t.length;e<r;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}(t),8*t.length);switch(e){case r.Raw:return i;case r.Hex:return function(t){const n="0123456789abcdef",e=[];for(let r=0,i=4*t.length;r<i;r++)e.push(n.charAt(t[r>>2]>>r%4*8+4&15)+n.charAt(t[r>>2]>>r%4*8&15));return e.join("")}(i);case r.String:return function(t){const n=[];for(let e=0,r=32*t.length;e<r;e+=8)n.push(String.fromCharCode(t[e>>5]>>>e%32&255));return n.join("")}(i);case r.Base64:return function(t){const n=[];for(let e=0,r=4*t.length;e<r;e+=3){const r=(t[e>>2]>>e%4*8&255)<<16|(t[e+1>>2]>>(e+1)%4*8&255)<<8|t[e+2>>2]>>(e+2)%4*8&255;for(let i=0;i<4;i++)8*e+6*i>32*t.length?n.push("="):n.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-i)&63))}return n.join("")}(i)}}e.d(n,["T",0,r])},4341(t,n,e){e.d(n,{I:()=>i});var r=e(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},87024(t,n,e){e.d(n,{P:()=>p});var r=e(49186),i=e(80200),s=e(76553),o=e(84952),a=e(13069),u=e(96156),c=e(35666),h=e(10107),l=e(85648),f=e(97159);function p(t){const n=t?.origins??[void 0];return(e,r)=>{const i=function(t,n,e){if("resource"===t?.type)return function(t,n,e){const r=(0,u.z4)(n,e);return{type:String,read:(t,n,e)=>{const i=(0,f.r)(t,n,e);return r.type===String?i:"function"==typeof r.type?new r.type({url:i}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(n,i,a,u){if(!u?.resources)return"string"==typeof n?void(i[a]=(0,f.t)(n,u)):void(i[a]=n.write({},u));const h=function(t){return null==t?null:"string"==typeof t?t:t.url}(n),p=(0,f.t)(h,{...u,verifyItemRelativeUrls:u?.verifyItemRelativeUrls?{writtenUrls:u.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),g=r.type!==String&&(!(0,s.H)(this)||u?.origin&&this.originIdOf(e)>(0,c.aB)(u.origin)),y={object:this,propertyName:e,value:n,targetUrl:p,dest:i,targetPropertyName:a,context:u,params:t};u?.portalItem&&p&&!(0,o.oP)(p)?g&&t?.contentAddressed?d(y):g?function(t){const{context:n,targetUrl:e,params:r,value:i,dest:s,targetPropertyName:a}=t;if(!n.portalItem)return;const u=n.portalItem.resourceFromPath(e),c=M(i,e,n),h=(0,l.n)(c),f=(0,o.Zo)(u.path),p=r?.compress??!1;h===f?(n.resources&&m({...t,resource:u,content:c,compress:p,updates:n.resources.toUpdate}),s[a]=e):d(t)}(y):function({context:t,targetUrl:n,dest:e,targetPropertyName:r}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),e[r]=n)}(y):u?.portalItem&&(null==p||null!=(0,f.i)(p)||(0,o.w8)(p)||g)?d(y):i[a]=p}}}}(t,n,e);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:n}=f.b;return{read:t,write:n}}}}(t,e,r);for(const t of n){const n=(0,h.rM)(e,t,r);for(const t in i)n[t]=i[t]}}}function d(t){const{targetUrl:n,params:e,value:s,context:u,dest:c,targetPropertyName:h}=t;if(!u.portalItem)return;const p=(0,f.p)(n),d=M(s,n,u);if(e?.contentAddressed&&"json"!==d.type)return void u.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${h}" is trying to serializing a resource with content of type ${d.type} with content addressing. Content addressing is only supported for json resources.`,{content:d}));const g=e?.contentAddressed&&"json"===d.type?(0,i.d)(d.jsonString):p?.filename??(0,a.lk)(),y=(0,o.fj)(e?.prefix??p?.prefix,g),b=`${y}.${(0,l.n)(d)}`;if(e?.contentAddressed&&u.resources&&"json"===d.type){const t=u.resources.toKeep.find(({resource:t})=>t.path===b)??u.resources.toAdd.find(({resource:t})=>t.path===b);if(t)return void(c[h]=t.resource.itemRelativeUrl)}const v=u.portalItem.resourceFromPath(b);(0,o.w8)(n)&&u.resources&&u.resources.pendingOperations.push((0,o.tk)(n).then(t=>{v.path=`${y}.${(0,l.n)({type:"blob",blob:t})}`,c[h]=v.itemRelativeUrl}).catch(()=>{}));const _=e?.compress??!1;u.resources&&m({...t,resource:v,content:d,compress:_,updates:u.resources.toAdd}),c[h]=v.itemRelativeUrl}function m({object:t,propertyName:n,updates:e,resource:r,content:i,compress:s}){e.push({resource:r,content:i,compress:s,finish:e=>{!function(t,n,e){"string"==typeof t[n]?t[n]=e.url:t[n].url=e.url}(t,n,e)}})}function M(t,n,e){return"string"==typeof t?{type:"url",url:n}:{type:"json",jsonString:JSON.stringify(t.toJSON(e))}}},62885(t,n,e){e.d(n,{H:()=>s,V:()=>i});var r=e(7762);function i(t,n,e=r.A){return n||(n=new e),n===t||n.destroyed||(n.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?n.addMany(t):t&&n.add(t)),n;var i}function s(t){return t}},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r,i,s,o,a,u,c,h,l,f,p,d,m){return[t,n,e,r,i,s,o,a,u,c,h,l,f,p,d,m]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},82534(t,n,e){function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>i,vt:()=>r});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},48163(t,n,e){function r(){return[0,0]}function i(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function o(){return s(1,1)}function a(){return s(-1,-1)}function u(){return s(1,0)}function c(){return s(0,1)}e.d(n,{fA:()=>s,o8:()=>i,vt:()=>r});const h=o(),l=a(),f=u(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:l,ONES:h,UNIT_X:f,UNIT_Y:p,ZEROS:[0,0],clone:i,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:s,negativeOnes:a,ones:o,unitX:u,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,l,"Un",0,h])},91829(t,n,e){function r(){return[0,0,0,0]}function i(t,n,e,r){return[t,n,e,r]}function s(){return i(1,1,1,1)}function o(){return i(1,0,0,0)}function a(){return i(0,1,0,0)}function u(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>i,vt:()=>r});const h=[0,0,0,0],l=s(),f=o(),p=a(),d=u(),m=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_W:m,UNIT_X:f,UNIT_Y:p,UNIT_Z:d,ZEROS:h,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,ones:s,unitW:c,unitX:o,unitY:a,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,l,"uY",0,h])},58083(t,n,e){e.d(n,{$0:()=>g,$h:()=>j,B8:()=>h,C:()=>s,D_:()=>a,N9:()=>b,O7:()=>P,Qw:()=>c,Tl:()=>f,X_:()=>x,e$:()=>d,eL:()=>m,hM:()=>y,hZ:()=>o,hs:()=>p,kN:()=>M,l:()=>w,lw:()=>l,mg:()=>u,o1:()=>A,sC:()=>I,t2:()=>S,t5:()=>R,tZ:()=>q,ut:()=>O});var r=e(51850),i=e(34304);function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function o(t,n,e,r,i,s,o,a,u,c,h,l,f,p,d,m,M){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=u,t[8]=c,t[9]=h,t[10]=l,t[11]=f,t[12]=p,t[13]=d,t[14]=m,t[15]=M,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,n){if(t===n){const e=n[1],r=n[2],i=n[3],s=n[6],o=n[7],a=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=s,t[11]=n[14],t[12]=i,t[13]=o,t[14]=a}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function c(t,n){return h(t,n)||a(t),t}function h(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],u=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],d=n[12],m=n[13],M=n[14],g=n[15],y=e*a-r*o,b=e*u-i*o,v=e*c-s*o,_=r*u-i*a,I=r*c-s*a,x=i*c-s*u,w=h*m-l*d,A=h*M-f*d,P=h*g-p*d,j=l*M-f*m,R=l*g-p*m,C=f*g-p*M;let S=y*C-b*R+v*j+_*P-I*A+x*w;return S?(S=1/S,t[0]=(a*C-u*R+c*j)*S,t[1]=(i*R-r*C-s*j)*S,t[2]=(m*x-M*I+g*_)*S,t[3]=(f*I-l*x-p*_)*S,t[4]=(u*P-o*C-c*A)*S,t[5]=(e*C-i*P+s*A)*S,t[6]=(M*v-d*x-g*b)*S,t[7]=(h*x-f*v+p*b)*S,t[8]=(o*R-a*P+c*w)*S,t[9]=(r*P-e*R-s*w)*S,t[10]=(d*I-m*v+g*y)*S,t[11]=(l*v-h*I-p*y)*S,t[12]=(a*A-o*j-u*w)*S,t[13]=(e*j-r*A+i*w)*S,t[14]=(m*b-d*_-M*y)*S,t[15]=(h*_-l*b+f*y)*S,t):null}function l(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=n[9],p=n[10],d=n[11],m=n[12],M=n[13],g=n[14],y=n[15];let b=e[0],v=e[1],_=e[2],I=e[3];return t[0]=b*r+v*a+_*l+I*m,t[1]=b*i+v*u+_*f+I*M,t[2]=b*s+v*c+_*p+I*g,t[3]=b*o+v*h+_*d+I*y,b=e[4],v=e[5],_=e[6],I=e[7],t[4]=b*r+v*a+_*l+I*m,t[5]=b*i+v*u+_*f+I*M,t[6]=b*s+v*c+_*p+I*g,t[7]=b*o+v*h+_*d+I*y,b=e[8],v=e[9],_=e[10],I=e[11],t[8]=b*r+v*a+_*l+I*m,t[9]=b*i+v*u+_*f+I*M,t[10]=b*s+v*c+_*p+I*g,t[11]=b*o+v*h+_*d+I*y,b=e[12],v=e[13],_=e[14],I=e[15],t[12]=b*r+v*a+_*l+I*m,t[13]=b*i+v*u+_*f+I*M,t[14]=b*s+v*c+_*p+I*g,t[15]=b*o+v*h+_*d+I*y,t}function f(t,n,e){const r=e[0],i=e[1],s=e[2];if(n===t)t[12]=n[0]*r+n[4]*i+n[8]*s+n[12],t[13]=n[1]*r+n[5]*i+n[9]*s+n[13],t[14]=n[2]*r+n[6]*i+n[10]*s+n[14],t[15]=n[3]*r+n[7]*i+n[11]*s+n[15];else{const e=n[0],o=n[1],a=n[2],u=n[3],c=n[4],h=n[5],l=n[6],f=n[7],p=n[8],d=n[9],m=n[10],M=n[11];t[0]=e,t[1]=o,t[2]=a,t[3]=u,t[4]=c,t[5]=h,t[6]=l,t[7]=f,t[8]=p,t[9]=d,t[10]=m,t[11]=M,t[12]=e*r+c*i+p*s+n[12],t[13]=o*r+h*i+d*s+n[13],t[14]=a*r+l*i+m*s+n[14],t[15]=u*r+f*i+M*s+n[15]}return t}function p(t,n,e){const r=e[0],i=e[1],s=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=n[7]*i,t[8]=n[8]*s,t[9]=n[9]*s,t[10]=n[10]*s,t[11]=n[11]*s,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function d(t,n,e,r){let o=r[0],a=r[1],u=r[2],c=Math.sqrt(o*o+a*a+u*u);if(c<=(0,i.FD)())return void s(t,n);c=1/c,o*=c,a*=c,u*=c;const h=Math.sin(e),l=Math.cos(e),f=1-l,p=n[0],d=n[1],m=n[2],M=n[3],g=n[4],y=n[5],b=n[6],v=n[7],_=n[8],I=n[9],x=n[10],w=n[11],A=o*o*f+l,P=a*o*f+u*h,j=u*o*f-a*h,R=o*a*f-u*h,C=a*a*f+l,S=u*a*f+o*h,O=o*u*f+a*h,q=a*u*f-o*h,N=u*u*f+l;t[0]=p*A+g*P+_*j,t[1]=d*A+y*P+I*j,t[2]=m*A+b*P+x*j,t[3]=M*A+v*P+w*j,t[4]=p*R+g*C+_*S,t[5]=d*R+y*C+I*S,t[6]=m*R+b*C+x*S,t[7]=M*R+v*C+w*S,t[8]=p*O+g*q+_*N,t[9]=d*O+y*q+I*N,t[10]=m*O+b*q+x*N,t[11]=M*O+v*q+w*N,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function m(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[4],o=n[5],a=n[6],u=n[7],c=n[8],h=n[9],l=n[10],f=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=s*i+c*r,t[5]=o*i+h*r,t[6]=a*i+l*r,t[7]=u*i+f*r,t[8]=c*i-s*r,t[9]=h*i-o*r,t[10]=l*i-a*r,t[11]=f*i-u*r,t}function M(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function g(t,n,e){if(0===n)return a(t);let r=e[0],s=e[1],o=e[2],u=Math.sqrt(r*r+s*s+o*o);if(u<=(0,i.FD)())return null;u=1/u,r*=u,s*=u,o*=u;const c=Math.sin(n),h=Math.cos(n),l=1-h;return t[0]=r*r*l+h,t[1]=s*r*l+o*c,t[2]=o*r*l-s*c,t[3]=0,t[4]=r*s*l-o*c,t[5]=s*s*l+h,t[6]=o*s*l+r*c,t[7]=0,t[8]=r*o*l+s*c,t[9]=s*o*l-r*c,t[10]=o*o*l+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function y(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function v(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=r+r,u=i+i,c=s+s,h=r*a,l=r*u,f=r*c,p=i*u,d=i*c,m=s*c,M=o*a,g=o*u,y=o*c;return t[0]=1-(p+m),t[1]=l+y,t[2]=f-g,t[3]=0,t[4]=l-y,t[5]=1-(h+m),t[6]=d+M,t[7]=0,t[8]=f+g,t[9]=d-M,t[10]=1-(h+p),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const _=(0,r.vt)();function I(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function x(t,n){const e=n[0],r=n[1],i=n[2],s=n[4],o=n[5],a=n[6],u=n[8],c=n[9],h=n[10];return t[0]=Math.sqrt(e*e+r*r+i*i),t[1]=Math.sqrt(s*s+o*o+a*a),t[2]=Math.sqrt(u*u+c*c+h*h),t}function w(t,n){const e=n[0]+n[5]+n[10];let r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function A(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=n[3],u=i+i,c=s+s,h=o+o,l=i*u,f=i*c,p=i*h,d=s*c,m=s*h,M=o*h,g=a*u,y=a*c,b=a*h,v=r[0],_=r[1],I=r[2];return t[0]=(1-(d+M))*v,t[1]=(f+b)*v,t[2]=(p-y)*v,t[3]=0,t[4]=(f-b)*_,t[5]=(1-(l+M))*_,t[6]=(m+g)*_,t[7]=0,t[8]=(p+y)*I,t[9]=(m-g)*I,t[10]=(1-(l+d))*I,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function P(t,n,e,r,i){const s=n[0],o=n[1],a=n[2],u=n[3],c=s+s,h=o+o,l=a+a,f=s*c,p=s*h,d=s*l,m=o*h,M=o*l,g=a*l,y=u*c,b=u*h,v=u*l,_=r[0],I=r[1],x=r[2],w=i[0],A=i[1],P=i[2],j=(1-(m+g))*_,R=(p+v)*_,C=(d-b)*_,S=(p-v)*I,O=(1-(f+g))*I,q=(M+y)*I,N=(d+b)*x,Z=(M-y)*x,T=(1-(f+m))*x;return t[0]=j,t[1]=R,t[2]=C,t[3]=0,t[4]=S,t[5]=O,t[6]=q,t[7]=0,t[8]=N,t[9]=Z,t[10]=T,t[11]=0,t[12]=e[0]+w-(j*w+S*A+N*P),t[13]=e[1]+A-(R*w+O*A+Z*P),t[14]=e[2]+P-(C*w+q*A+T*P),t[15]=1,t}function j(t,n,e,r,i,s,o){const a=1/(e-n),u=1/(i-r),c=1/(s-o);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*u,t[6]=0,t[7]=0,t[8]=(e+n)*a,t[9]=(i+r)*u,t[10]=(o+s)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*s*2*c,t[15]=0,t}function R(t,n,e,r){const s=n[0],o=n[1],u=n[2];let c=s-e[0],h=o-e[1],l=u-e[2];const f=(0,i.FD)();if(Math.abs(c)<f&&Math.abs(h)<f&&Math.abs(l)<f)return void a(t);let p=1/Math.sqrt(c*c+h*h+l*l);c*=p,h*=p,l*=p;const d=r[0],m=r[1],M=r[2];let g=m*l-M*h,y=M*c-d*l,b=d*h-m*c;p=Math.sqrt(g*g+y*y+b*b),p?(p=1/p,g*=p,y*=p,b*=p):(g=0,y=0,b=0);let v=h*b-l*y,_=l*g-c*b,I=c*y-h*g;p=Math.sqrt(v*v+_*_+I*I),p?(p=1/p,v*=p,_*=p,I*=p):(v=0,_=0,I=0),t[0]=g,t[1]=v,t[2]=c,t[3]=0,t[4]=y,t[5]=_,t[6]=h,t[7]=0,t[8]=b,t[9]=I,t[10]=l,t[11]=0,t[12]=-(g*s+y*o+b*u),t[13]=-(v*s+_*o+I*u),t[14]=-(c*s+h*o+l*u),t[15]=1}function C(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function S(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function O(t){const n=(0,i.FD)(),e=t[0],r=t[1],s=t[2],o=t[4],a=t[5],u=t[6],c=t[8],h=t[9],l=t[10];return Math.abs(1-(e*e+o*o+c*c))<=n&&Math.abs(1-(r*r+a*a+h*h))<=n&&Math.abs(1-(s*s+u*u+l*l))<=n}function q(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const N=l,Z=C;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},adjoint:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],u=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],d=n[12],m=n[13],M=n[14],g=n[15];return t[0]=a*(f*g-p*M)-l*(u*g-c*M)+m*(u*p-c*f),t[1]=-(r*(f*g-p*M)-l*(i*g-s*M)+m*(i*p-s*f)),t[2]=r*(u*g-c*M)-a*(i*g-s*M)+m*(i*c-s*u),t[3]=-(r*(u*p-c*f)-a*(i*p-s*f)+l*(i*c-s*u)),t[4]=-(o*(f*g-p*M)-h*(u*g-c*M)+d*(u*p-c*f)),t[5]=e*(f*g-p*M)-h*(i*g-s*M)+d*(i*p-s*f),t[6]=-(e*(u*g-c*M)-o*(i*g-s*M)+d*(i*c-s*u)),t[7]=e*(u*p-c*f)-o*(i*p-s*f)+h*(i*c-s*u),t[8]=o*(l*g-p*m)-h*(a*g-c*m)+d*(a*p-c*l),t[9]=-(e*(l*g-p*m)-h*(r*g-s*m)+d*(r*p-s*l)),t[10]=e*(a*g-c*m)-o*(r*g-s*m)+d*(r*c-s*a),t[11]=-(e*(a*p-c*l)-o*(r*p-s*l)+h*(r*c-s*a)),t[12]=-(o*(l*M-f*m)-h*(a*M-u*m)+d*(a*f-u*l)),t[13]=e*(l*M-f*m)-h*(r*M-i*m)+d*(r*f-i*l),t[14]=-(e*(a*M-u*m)-o*(r*M-i*m)+d*(r*u-i*a)),t[15]=e*(a*f-u*l)-o*(r*f-i*l)+h*(r*u-i*a),t},copy:s,determinant:function(t){const n=t[0],e=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=t[6],u=t[7],c=t[8],h=t[9],l=t[10],f=t[11],p=t[12],d=t[13],m=t[14],M=t[15];return(n*o-e*s)*(l*M-f*m)-(n*a-r*s)*(h*M-f*d)+(n*u-i*s)*(h*m-l*d)+(e*a-r*o)*(c*M-f*p)-(e*u-i*o)*(c*m-l*p)+(r*u-i*a)*(c*d-h*p)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],o=t[3],a=t[4],u=t[5],c=t[6],h=t[7],l=t[8],f=t[9],p=t[10],d=t[11],m=t[12],M=t[13],g=t[14],y=t[15],b=n[0],v=n[1],_=n[2],I=n[3],x=n[4],w=n[5],A=n[6],P=n[7],j=n[8],R=n[9],C=n[10],S=n[11],O=n[12],q=n[13],N=n[14],Z=n[15],T=(0,i.FD)();return Math.abs(e-b)<=T*Math.max(1,Math.abs(e),Math.abs(b))&&Math.abs(r-v)<=T*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(s-_)<=T*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(o-I)<=T*Math.max(1,Math.abs(o),Math.abs(I))&&Math.abs(a-x)<=T*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(u-w)<=T*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(c-A)<=T*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(h-P)<=T*Math.max(1,Math.abs(h),Math.abs(P))&&Math.abs(l-j)<=T*Math.max(1,Math.abs(l),Math.abs(j))&&Math.abs(f-R)<=T*Math.max(1,Math.abs(f),Math.abs(R))&&Math.abs(p-C)<=T*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(d-S)<=T*Math.max(1,Math.abs(d),Math.abs(S))&&Math.abs(m-O)<=T*Math.max(1,Math.abs(m),Math.abs(O))&&Math.abs(M-q)<=T*Math.max(1,Math.abs(M),Math.abs(q))&&Math.abs(g-N)<=T*Math.max(1,Math.abs(g),Math.abs(N))&&Math.abs(y-Z)<=T*Math.max(1,Math.abs(y),Math.abs(Z))},exactEquals:S,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=e+e,a=r+r,u=i+i,c=e*o,h=r*o,l=r*a,f=i*o,p=i*a,d=i*u,m=s*o,M=s*a,g=s*u;return t[0]=1-l-d,t[1]=h+g,t[2]=f-M,t[3]=0,t[4]=h-g,t[5]=1-c-d,t[6]=p+m,t[7]=0,t[8]=f+M,t[9]=p-m,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=_,r=-n[0],i=-n[1],s=-n[2],o=n[3],a=n[4],u=n[5],c=n[6],h=n[7],l=r*r+i*i+s*s+o*o;return l>0?(e[0]=2*(a*o+h*r+u*s-c*i)/l,e[1]=2*(u*o+h*i+c*r-a*s)/l,e[2]=2*(c*o+h*s+a*i-u*r)/l):(e[0]=2*(a*o+h*r+u*s-c*i),e[1]=2*(u*o+h*i+c*r-a*s),e[2]=2*(c*o+h*s+a*i-u*r)),v(t,n,e),t},fromRotation:g,fromRotationTranslation:v,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:P,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:M,fromXRotation:y,fromYRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:b,frustum:j,getRotation:w,getScale:x,getTranslation:I,hasIdentityRotation:q,identity:a,invert:h,invertOrIdentity:c,isOrthoNormal:O,lookAt:R,mul:N,multiply:l,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},ortho:function(t,n,e,r,i,s,o){const a=1/(n-e),u=1/(r-i),c=1/(s-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+e)*a,t[13]=(i+r)*u,t[14]=(o+s)*c,t[15]=1,t},perspective:function(t,n,e,r,i){const s=1/Math.tan(n/2);let o;return t[0]=s/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const i=Math.tan(n.upDegrees*Math.PI/180),s=Math.tan(n.downDegrees*Math.PI/180),o=Math.tan(n.leftDegrees*Math.PI/180),a=Math.tan(n.rightDegrees*Math.PI/180),u=2/(o+a),c=2/(i+s);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-a)*u*.5,t[9]=(i-s)*c*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},rotate:d,rotateX:m,rotateY:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[0],o=n[1],a=n[2],u=n[3],c=n[8],h=n[9],l=n[10],f=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*i-c*r,t[1]=o*i-h*r,t[2]=a*i-l*r,t[3]=u*i-f*r,t[8]=s*r+c*i,t[9]=o*r+h*i,t[10]=a*r+l*i,t[11]=u*r+f*i,t},rotateZ:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[0],o=n[1],a=n[2],u=n[3],c=n[4],h=n[5],l=n[6],f=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*i+c*r,t[1]=o*i+h*r,t[2]=a*i+l*r,t[3]=u*i+f*r,t[4]=c*i-s*r,t[5]=h*i-o*r,t[6]=l*i-a*r,t[7]=f*i-u*r,t},scale:p,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:Z,subtract:C,targetTo:function(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=r[0],u=r[1],c=r[2];let h=i-e[0],l=s-e[1],f=o-e[2],p=h*h+l*l+f*f;p>0&&(p=1/Math.sqrt(p),h*=p,l*=p,f*=p);let d=u*f-c*l,m=c*h-a*f,M=a*l-u*h;return p=d*d+m*m+M*M,p>0&&(p=1/Math.sqrt(p),d*=p,m*=p,M*=p),t[0]=d,t[1]=m,t[2]=M,t[3]=0,t[4]=l*M-f*m,t[5]=f*d-h*M,t[6]=h*m-l*d,t[7]=0,t[8]=h,t[9]=l,t[10]=f,t[11]=0,t[12]=i,t[13]=s,t[14]=o,t[15]=1,t},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>A,Bw:()=>s,C:()=>o,Cc:()=>P,DI:()=>I,Io:()=>y,Ln:()=>g,Om:()=>w,Qr:()=>l,Re:()=>c,S8:()=>x,T9:()=>m,WQ:()=>u,Z0:()=>j,_S:()=>p,aI:()=>Z,ei:()=>R,fw:()=>S,gL:()=>C,hG:()=>b,hZ:()=>a,hs:()=>M,jk:()=>d,lw:()=>h,m3:()=>v,oW:()=>T,t2:()=>N,tn:()=>f,ze:()=>_});var r=e(51850),i=e(34304);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function a(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function h(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function l(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function p(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function d(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function m(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function M(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function g(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function y(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function v(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function _(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function I(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const e=n[0],r=n[1],i=n[2];let s=e*e+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function w(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function A(t,n,e){const r=n[0],i=n[1],s=n[2],o=e[0],a=e[1],u=e[2];return t[0]=i*u-s*a,t[1]=s*o-r*u,t[2]=r*a-i*o,t}function P(t,n,e,r){const i=n[0],s=n[1],o=n[2];return t[0]=i+r*(e[0]-i),t[1]=s+r*(e[1]-s),t[2]=o+r*(e[2]-o),t}function j(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=e[0]*r+e[4]*i+e[8]*s+e[12],t[1]=e[1]*r+e[5]*i+e[9]*s+e[13],t[2]=e[2]*r+e[6]*i+e[10]*s+e[14],t}function R(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=r*e[0]+i*e[3]+s*e[6],t[1]=r*e[1]+i*e[4]+s*e[7],t[2]=r*e[2]+i*e[5]+s*e[8],t}function C(t,n,e){return S(t,n,e[0],e[1],e[2],e[3])}function S(t,n,e,r,i,s){const o=n[0],a=n[1],u=n[2],c=r*u-i*a,h=i*o-e*u,l=e*a-r*o,f=r*l-i*h,p=i*c-e*l,d=e*h-r*c,m=2*s;return t[0]=o+c*m+2*f,t[1]=a+h*m+2*p,t[2]=u+l*m+2*d,t}const O=(0,r.vt)(),q=(0,r.vt)();function N(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function Z(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],o=n[0],a=n[1],u=n[2],c=(0,i.FD)();return Math.abs(e-o)<=c*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-u)<=c*Math.max(1,Math.abs(s),Math.abs(u))}function T(t,n,e){const r=e[0]-n[0],i=e[1]-n[1],s=e[2]-n[2];let o=r*r+i*i+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=i*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const D=c,U=h,z=l,F=y,$=b,E=s,V=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(t,n){x(O,t),x(q,n);const e=w(O,q);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,i,s){const o=1-s,a=o*o,u=s*s,c=a*o,h=3*s*a,l=3*u*o,f=u*s;return t[0]=n[0]*c+e[0]*h+r[0]*l+i[0]*f,t[1]=n[1]*c+e[1]*h+r[1]*l+i[1]*f,t[2]=n[2]*c+e[2]*h+r[2]*l+i[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:o,cross:A,crossAndNormalize:function(t,n,e){const r=n[0],i=n[1],s=n[2],o=e[0],a=e[1],u=e[2],c=i*u-s*a,h=s*o-r*u,l=r*a-i*o,f=Math.sqrt(c*c+h*h+l*l);return t[0]=c/f,t[1]=h/f,t[2]=l/f,t},direction:T,dist:F,distance:y,div:z,divide:l,dot:w,equals:Z,exactEquals:N,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,i,s){const o=s*s,a=o*(2*s-3)+1,u=o*(s-2)+s,c=o*(s-1),h=o*(3-2*s);return t[0]=n[0]*a+e[0]*u+r[0]*c+i[0]*h,t[1]=n[1]*a+e[1]*u+r[1]*c+i[1]*h,t[2]=n[2]*a+e[2]*u+r[2]*c+i[2]*h,t},inverse:I,len:E,length:s,lerp:P,max:m,min:d,mul:U,multiply:h,negate:_,normalize:x,random:function(t,n=1){const e=i.Ov,r=2*e()*Math.PI,s=2*e()-1,o=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=s*n,t},rotateX:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:M,scaleAndAdd:g,scaleTo:function(t,n){return M(t,t,n/E(t))},set:a,sign:p,sqrDist:$,sqrLen:V,squaredDistance:b,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:D,subtract:c,transformMat3:R,transformMat4:j,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:C,transformQuatValues:S},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,E,"jb",0,D,"lo",0,$,"uE",0,V,"xg",0,F])},78955(t,n,e){e.d(n,{Bw:()=>M,C:()=>i,Cc:()=>v,LI:()=>f,Om:()=>b,S8:()=>y,T9:()=>l,WQ:()=>o,Z0:()=>_,aI:()=>x,hG:()=>m,hZ:()=>s,hs:()=>p,jk:()=>h,m3:()=>g,t2:()=>I});var r=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function s(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t}function o(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function a(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function u(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function h(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t}function l(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function f(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function d(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],s=n[3]-t[3];return Math.sqrt(e*e+r*r+i*i+s*s)}function m(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],s=n[3]-t[3];return e*e+r*r+i*i+s*s}function M(t){const n=t[0],e=t[1],r=t[2],i=t[3];return Math.sqrt(n*n+e*e+r*r+i*i)}function g(t){const n=t[0],e=t[1],r=t[2],i=t[3];return n*n+e*e+r*r+i*i}function y(t,n){const e=n[0],r=n[1],i=n[2],s=n[3];let o=e*e+r*r+i*i+s*s;return o>0&&(o=1/Math.sqrt(o),t[0]=e*o,t[1]=r*o,t[2]=i*o,t[3]=s*o),t}function b(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function v(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=n[3];return t[0]=i+r*(e[0]-i),t[1]=s+r*(e[1]-s),t[2]=o+r*(e[2]-o),t[3]=a+r*(e[3]-a),t}function _(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3];return t[0]=e[0]*r+e[4]*i+e[8]*s+e[12]*o,t[1]=e[1]*r+e[5]*i+e[9]*s+e[13]*o,t[2]=e[2]*r+e[6]*i+e[10]*s+e[14]*o,t[3]=e[3]*r+e[7]*i+e[11]*s+e[15]*o,t}function I(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function x(t,n){const e=t[0],i=t[1],s=t[2],o=t[3],a=n[0],u=n[1],c=n[2],h=n[3],l=(0,r.FD)();return Math.abs(e-a)<=l*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(i-u)<=l*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(s-c)<=l*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(o-h)<=l*Math.max(1,Math.abs(o),Math.abs(h))}const w=a,A=u,P=c,j=d,R=m,C=M,S=g;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:i,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:j,distance:d,div:P,divide:c,dot:b,equals:x,exactEquals:I,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:C,length:M,lerp:v,max:l,min:h,mul:A,multiply:u,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:y,random:function(t,n=1){const e=r.Ov;let i,s,o,a,u,c;do{i=2*e()-1,s=2*e()-1,u=i*i+s*s}while(u>=1);do{o=2*e()-1,a=2*e()-1,c=o*o+a*a}while(c>=1);const h=Math.sqrt((1-u)/c);return t[0]=n*i,t[1]=n*s,t[2]=n*o*h,t[3]=n*a*h,t},round:f,scale:p,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:s,sqrDist:R,sqrLen:S,squaredDistance:m,squaredLength:g,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:w,subtract:a,transformMat4:_,transformQuat:function(t,n,e){const r=n[0],i=n[1],s=n[2],o=e[0],a=e[1],u=e[2],c=e[3],h=c*r+a*s-u*i,l=c*i+u*r-o*s,f=c*s+o*i-a*r,p=-o*r-a*i-u*s;return t[0]=h*c+p*-o+l*-u-f*-a,t[1]=l*c+p*-a+f*-o-h*-u,t[2]=f*c+p*-u+h*-a-l*-o,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},56512(t,n,e){function r(t){let n,e,r=[],i=!1;return function(...s){return i&&n===this&&function(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(t[e]!==n[e])return!1;return!0}(s,r)||(e=t.apply(this,s),n=this,r=s,i=!0),e}}e.d(n,{B:()=>r})},76553(t,n,e){function r(t){return t&&"getAtOrigin"in t&&"originOf"in t}e.d(n,{H:()=>r})},13069(t,n,e){e.d(n,{AG:()=>a,lk:()=>i,vD:()=>o,yS:()=>s});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const n=n=>t[n].toString(16).padStart(4,"0");return n(0)+n(1)+"-"+n(2)+"-"+n(3)+"-"+n(4)+"-"+n(5)+n(6)+n(7)}function s(){return`{${i().toUpperCase()}}`}function o(){return`{${i()}}`}function a(t){const n=t.toUpperCase();return t.startsWith("{")?n:`{${n}}`}},48526(t,n,e){e.d(n,{A:()=>M});var r,i=e(32198),s=e(4576),o=e(4718),a=e(91429),u=e(5443),c=e(91075),h=e(86738),l=e(16930),f=e(90634),p=e(47610),d=e(56993),m=e(43937);let M=r=class extends c.A{constructor(t){super(function(t){if(!t)return;let{points:n,hasM:e,hasZ:r,spatialReference:i}=t;switch(n??=[],n?.at(0)?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return i??=l.A.WGS84,{...t,hasM:e,hasZ:r,points:n,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new u.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,n){n.points=(0,o.o8)(this.points)}clone(){const{points:t,spatialReference:n,hasM:e,hasZ:i}=this;return new r({points:(0,o.o8)(t),spatialReference:n.clone(),hasM:e,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;return null!=n==(null!=e)&&!(null!=n&&null!=e&&!n.equals(e))&&(0,s.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(e.z=n[2],r=3),this.hasM&&(e.m=n[r]),new h.A(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new h.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,d.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],M.prototype,"points",void 0),(0,i.Cg)([(0,m.K)("points")],M.prototype,"writePoints",null),M=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],M),M.prototype.toJSON.isDefaultToJSON=!0},82799(t,n,e){e.d(n,{A:()=>d});var r,i=e(32198),s=e(4718),o=e(91429),a=e(5443),u=e(91075),c=e(86738),h=e(16930),l=e(90634),f=e(56993),p=e(43937);let d=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:n,hasM:e,hasZ:r,spatialReference:i}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return i??=h.A.WGS84,{...t,hasM:e,hasZ:r,paths:n,spatialReference:i}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,n){n.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,l.Z3)(this),{spatialReference:n}=this;return t?new a.A({...t,spatialReference:n}):null}writePaths(t,n){n.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let n=0,e=t.length;n<e;n++)r[n]=t[n].toArray();n[e]=r}else n[e]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],r=this.hasZ,i=this.hasM;return r&&!i?new c.A(e[0],e[1],e[2],void 0,this.spatialReference):i&&!r?new c.A(e[0],e[1],void 0,e[2],this.spatialReference):r&&i?new c.A(e[0],e[1],e[2],e[3],this.spatialReference):new c.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,r=n.map(t=>new c.A(t,e));return this.notifyChange("paths"),r}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new c.A(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const r=this.paths[t];if(e&&(n<0||n>r.length))return!1;if(!e&&(n<0||n>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,i.Cg)([(0,p.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,i.Cg)([(0,p.K)("paths")],d.prototype,"writePaths",null),d=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},4197(t,n,e){e.d(n,{Vj:()=>h,cj:()=>c,jh:()=>s,l5:()=>a,yH:()=>u});var r=e(34275),i=e(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function u(t,n){if(0===n.length)return o(t);if(0===t.length)return o(n);const e=s(t.length+n.length);for(let n=0;n<t.length;++n)e[n]=t[n];for(let r=0;r<n.length;++r)e[t.length+r]=n[r];return e}function c(t){return[...t]}function h(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},70328(t,n,e){e.d(n,{BI:()=>j,C:()=>o,DC:()=>f,Ej:()=>b,Ie:()=>A,Jt:()=>P,Lu:()=>_,Ne:()=>I,RF:()=>l,TF:()=>g,VL:()=>d,aI:()=>C,fA:()=>a,gE:()=>c,gX:()=>y,hZ:()=>w,iT:()=>p,is:()=>R,pg:()=>v,uJ:()=>M,vI:()=>x,vY:()=>u,vt:()=>s,w1:()=>h,yr:()=>m}),e(35522);var r=e(5443),i=(e(19419),e(4197));function s(t=O){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,n){for(let e=0;e<6;e++)t[e]=n[e];return t}function a(t,n,e,r,i,o,a=s()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a[4]=i,a[5]=o,a}function u(t,n=s()){return function(t,n,e,r=s()){return w(r,S),function(t,n,e=0,r=n.length/3){let i=t[0],s=t[1],o=t[2],a=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),s=Math.min(s,n[e+3*t+1]),o=Math.min(o,n[e+3*t+2]),a=Math.max(a,n[e+3*t]),u=Math.max(u,n[e+3*t+1]),c=Math.max(c,n[e+3*t+2]);t[0]=i,t[1]=s,t[2]=o,t[3]=a,t[4]=u,t[5]=c}(r,t,n,e),r}(t,0,t.length/3,n)}function c(t,n=(0,i.jh)(24)){const[e,r,s,o,a,u]=t;return n[0]=e,n[1]=r,n[2]=s,n[3]=e,n[4]=r,n[5]=u,n[6]=e,n[7]=a,n[8]=s,n[9]=e,n[10]=a,n[11]=u,n[12]=o,n[13]=r,n[14]=s,n[15]=o,n[16]=r,n[17]=u,n[18]=o,n[19]=a,n[20]=s,n[21]=o,n[22]=a,n[23]=u,n}function h(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function l(t,n,e=t){e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e[4]=Math.max(t[4],n[4]),e[5]=Math.max(t[5],n[5])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function p(t,[n,e,r]){!function(t,n,e,r){t[0]=Math.min(t[0],n),t[1]=Math.min(t[1],e),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],n),t[4]=Math.max(t[4],e),t[5]=Math.max(t[5],r)}(t,n,e,r)}function d(t){return t[0]>=t[3]?0:t[3]-t[0]}function m(t){return t[1]>=t[4]?0:t[4]-t[1]}function M(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){const n=d(t),e=M(t),r=m(t);return n*n+e*e+r*r}function y(t,n=[0,0,0]){return n[0]=t[0]+d(t)/2,n[1]=t[1]+m(t)/2,n[2]=t[2]+M(t)/2,n}function b(t,n=[0,0,0]){return n[0]=d(t),n[1]=m(t),n[2]=M(t),n}function v(t,n){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function _(t,n){return n[0]=t[3],n[1]=t[4],n[2]=t[5],n}function I(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function x(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function w(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function A(t){return t?w(t,S):s(S)}function P(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function j(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function R(t){return 6===t.length}function C(t,n,e){if(null==t||null==n)return t===n;if(!R(t)||!R(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const S=[1/0,1/0,1/0,-1/0,-1/0,-1/0],O=[0,0,0,0,0,0];s(),e.d(n,["qv",0,S,"v_",0,O])},60408(t,n,e){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function u(t){return"object"==typeof t&&"vertexAttributes"in t}function c(t){return t?s(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function h(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function l(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}e.d(n,{$B:()=>c,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>i,W0:()=>l,ZC:()=>r,fT:()=>s,uW:()=>u})},71351(t,n,e){e.d(n,{C:()=>h,Cr:()=>l,LV:()=>c,fA:()=>f,vt:()=>a}),e(4576);var r=e(4341),i=(e(77690),e(29242)),s=e(35522),o=e(51850);function a(t){return t?u((0,o.o8)(t.origin),(0,o.o8)(t.direction)):u((0,o.vt)(),(0,o.vt)())}function u(t,n){return{origin:t,direction:n}}function c(t,n){const e=p.get();return e.origin=t,e.direction=n,e}function h(t,n=a()){return f(t.origin,t.direction,n)}function l(t,n,e=a()){return(0,s.C)(e.origin,t),(0,s.Re)(e.direction,n,t),e}function f(t,n,e=a()){return(0,s.C)(e.origin,t),(0,s.C)(e.direction,n),e}e(32114);const p=new r.I(()=>a());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,i.vt)()},32114(t,n,e){e.d(n,{Rc:()=>p,rq:()=>l,Km:()=>f}),e(44208);var r=e(26390),i=e(29242),s=e(9093),o=e(82534),a=e(48163),u=e(51850),c=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(u.vt)}static createVec4f64(){return new h(c.vt)}static createMat3f64(){return new h(i.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(o.vt)}get test(){}}h.createVec2f64();const l=h.createVec3f64(),f=h.createVec4f64(),p=(h.createMat3f64(),h.createMat4f64());h.createQuatf64()},85648(t,n,e){e.d(n,{n:()=>i});var r=e(84952);function i(t){return s[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const n=(0,r.Zo)(t);return u[n]||o}(t.url)}(t)]||a}const s={},o="text/plain",a=s[o],u={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in u)s[u[t]]=t},24212(t,n,e){e.d(n,{$7:()=>u,B:()=>a,M7:()=>l,XF:()=>h,tW:()=>c,w7:()=>o});var r=e(56512),i=e(86211),s=e(16271);function o(t,n){return function(t,n){return n?.mode?n.mode:function(t){return t?f:p}(t).mode}(null==t||(t.hasZ??!1),n)}function a(t,n,e){return e&&e.mode!==n?`${t} only support ${n} elevation mode`:null}function u(t,n,e){return e?.mode===n?`${t} do not support ${n} elevation mode`:null}function c(t,n){return null!=n?.featureExpressionInfo&&"0"!==n.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function h(t,n){n&&t.warn(".elevationInfo=",n)}function l(t){return(t?.offset??0)*(0,s.Ao)(t?.unit)}(0,r.B)((t,n,e)=>{if(!t)return 0;if("decimal-degrees"===n)return 0;const r="unknown"!==n&&n?n:"meters",s=(0,i.mq)(e);return s?(0,i.oU)(t,r,s):0});const f={mode:"absolute-height",offset:0},p={mode:"on-the-ground",offset:null}},49718(t,n,e){e(51850),e(6867).w_},6867(t,n,e){e.d(n,{w_:()=>l});var r=e(58083),i=e(9093),s=e(35522),o=e(51850),a=e(78955),u=e(91829),c=e(71351);class h{constructor(){this.intersector=4}get distance(){return this._distance}get renderDistance(){return this._renderDistance}_init(){this._distance=this._renderDistance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4}_setBase(t,n,e,r=null,i=null,s=null){this.intersector=t,this._distance=e,this._renderDistance=r,this.target=n,this.drapedLayerOrder=i,this.renderPriority=s}}class l extends h{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,s.hs)(p,this.ray.direction,this.distance),(0,s.Bw)(p))}withinDistance(t){return!!f(this)&&null!=this.distanceInRenderSpace&&this.distanceInRenderSpace<=t}getIntersectionPoint(t){return!!f(this)&&((0,s.hs)(p,this.ray.direction,this.distance),(0,s.WQ)(t,this.ray.origin,p),!0)}getTransformedNormal(t){return(0,s.C)(d,this.normal),d[3]=0,(0,a.Z0)(d,d,this.transformation),(0,s.C)(t,d),(0,s.S8)(t,t)}constructor(t){super(),this.normal=(0,o.vt)(),this.transformation=(0,i.vt)(),this._ray=(0,c.vt)(),this.init(t)}init(t){super._init(),t&&(0,c.C)(t,this._ray)}set(t,n,e,a,u,c,h,l){this._setBase(t,n,e,a,h,l),(0,s.C)(this.normal,u??o.Cb),(0,r.C)(this.transformation,c??i.zK)}copy(t){this._setBase(t.intersector,t.target,t.distance,t.renderDistance,t.drapedLayerOrder,t.renderPriority),(0,c.C)(t.ray,this._ray),(0,s.C)(this.normal,t.normal),(0,r.C)(this.transformation,t.transformation)}}function f(t){return null!=t?.distance&&null!=t?.renderDistance}const p=(0,o.vt)(),d=(0,u.vt)()},78553(t,n,e){e.d(n,{D:()=>s,p:()=>i});var r=e(56507);function i(t){const n=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(n,100))}function s(t){const n=1-t/100;return Math.max(0,Math.min(n,1))}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3730],{79608(t,n,e){e.d(n,{A:()=>f});var r=e(32198),i=e(69540),s=e(91429);let o=class extends i.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)()],o.prototype,"type",void 0),o=(0,r.Cg)([(0,s.$K)("esri.analysis.support.AnalysisOriginWebScene")],o);const a=o;var u=e(69622),c=e(4902),h=e(25482);let l=0,f=class extends((0,h.T)((0,i.OU)((0,c.s)(u.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${l++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){const n=this.parent;if(null!=n)switch(n.type){case"line-of-sight":case"dimension":case"viewshed":n.releaseAnalysis(this);break;case"2d":case"3d":n.analyses.includes(this)&&n.analyses.remove(this)}this._set("parent",t)}equals(t){return this.type===t.type}};(0,r.Cg)([(0,s.MZ)({type:String,constructOnly:!0,clonable:!1})],f.prototype,"id",void 0),(0,r.Cg)([(0,s.MZ)({clonable:!1,value:null})],f.prototype,"parent",null),(0,r.Cg)([(0,s.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":a}}})],f.prototype,"origin",void 0),f=(0,r.Cg)([(0,s.$K)("esri.analysis.Analysis")],f)},91715(t,n,e){e.d(n,{xH:()=>s,N1:()=>a}),e(35522);var r=e(51850),i=e(71351);function s(t,n){return o(t)===o(n)}function o(t){if(null==t)return null;const n=null!=t.layer?t.layer.id:"";let e=null;return e=null!=t.objectId?t.objectId:null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid,null==e?null:`o-${n}-${e}`}e(58083),e(70328),e(77548),e(6867),e(49718),(0,r.vt)();const a={json:{write:{writer:function(t,n){null!=t?.layer?.objectIdField&&null!=t.attributes&&(n.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}},clonable:"reference"};(0,i.vt)(),(0,r.vt)()},80200(t,n,e){e.d(n,{d:()=>l});const r={Base64:0,Hex:1,String:2,Raw:3};function i(t,n){const e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}function s(t,n,e,r,s,o){return i(function(t,n){return t<<n|t>>>32-n}(i(i(n,t),i(r,o)),s),e)}function o(t,n,e,r,i,o,a){return s(n&e|~n&r,t,n,i,o,a)}function a(t,n,e,r,i,o,a){return s(n&r|e&~r,t,n,i,o,a)}function u(t,n,e,r,i,o,a){return s(n^e^r,t,n,i,o,a)}function c(t,n,e,r,i,o,a){return s(e^(n|~r),t,n,i,o,a)}function h(t,n){t[n>>5]|=128<<n%32,t[14+(n+64>>>9<<4)]=n;let e=1732584193,r=-271733879,s=-1732584194,h=271733878;for(let n=0;n<t.length;n+=16){const l=e,f=r,p=s,d=h;e=o(e,r,s,h,t[n],7,-680876936),h=o(h,e,r,s,t[n+1],12,-389564586),s=o(s,h,e,r,t[n+2],17,606105819),r=o(r,s,h,e,t[n+3],22,-1044525330),e=o(e,r,s,h,t[n+4],7,-176418897),h=o(h,e,r,s,t[n+5],12,1200080426),s=o(s,h,e,r,t[n+6],17,-1473231341),r=o(r,s,h,e,t[n+7],22,-45705983),e=o(e,r,s,h,t[n+8],7,1770035416),h=o(h,e,r,s,t[n+9],12,-1958414417),s=o(s,h,e,r,t[n+10],17,-42063),r=o(r,s,h,e,t[n+11],22,-1990404162),e=o(e,r,s,h,t[n+12],7,1804603682),h=o(h,e,r,s,t[n+13],12,-40341101),s=o(s,h,e,r,t[n+14],17,-1502002290),r=o(r,s,h,e,t[n+15],22,1236535329),e=a(e,r,s,h,t[n+1],5,-165796510),h=a(h,e,r,s,t[n+6],9,-1069501632),s=a(s,h,e,r,t[n+11],14,643717713),r=a(r,s,h,e,t[n],20,-373897302),e=a(e,r,s,h,t[n+5],5,-701558691),h=a(h,e,r,s,t[n+10],9,38016083),s=a(s,h,e,r,t[n+15],14,-660478335),r=a(r,s,h,e,t[n+4],20,-405537848),e=a(e,r,s,h,t[n+9],5,568446438),h=a(h,e,r,s,t[n+14],9,-1019803690),s=a(s,h,e,r,t[n+3],14,-187363961),r=a(r,s,h,e,t[n+8],20,1163531501),e=a(e,r,s,h,t[n+13],5,-1444681467),h=a(h,e,r,s,t[n+2],9,-51403784),s=a(s,h,e,r,t[n+7],14,1735328473),r=a(r,s,h,e,t[n+12],20,-1926607734),e=u(e,r,s,h,t[n+5],4,-378558),h=u(h,e,r,s,t[n+8],11,-2022574463),s=u(s,h,e,r,t[n+11],16,1839030562),r=u(r,s,h,e,t[n+14],23,-35309556),e=u(e,r,s,h,t[n+1],4,-1530992060),h=u(h,e,r,s,t[n+4],11,1272893353),s=u(s,h,e,r,t[n+7],16,-155497632),r=u(r,s,h,e,t[n+10],23,-1094730640),e=u(e,r,s,h,t[n+13],4,681279174),h=u(h,e,r,s,t[n],11,-358537222),s=u(s,h,e,r,t[n+3],16,-722521979),r=u(r,s,h,e,t[n+6],23,76029189),e=u(e,r,s,h,t[n+9],4,-640364487),h=u(h,e,r,s,t[n+12],11,-421815835),s=u(s,h,e,r,t[n+15],16,530742520),r=u(r,s,h,e,t[n+2],23,-995338651),e=c(e,r,s,h,t[n],6,-198630844),h=c(h,e,r,s,t[n+7],10,1126891415),s=c(s,h,e,r,t[n+14],15,-1416354905),r=c(r,s,h,e,t[n+5],21,-57434055),e=c(e,r,s,h,t[n+12],6,1700485571),h=c(h,e,r,s,t[n+3],10,-1894986606),s=c(s,h,e,r,t[n+10],15,-1051523),r=c(r,s,h,e,t[n+1],21,-2054922799),e=c(e,r,s,h,t[n+8],6,1873313359),h=c(h,e,r,s,t[n+15],10,-30611744),s=c(s,h,e,r,t[n+6],15,-1560198380),r=c(r,s,h,e,t[n+13],21,1309151649),e=c(e,r,s,h,t[n+4],6,-145523070),h=c(h,e,r,s,t[n+11],10,-1120210379),s=c(s,h,e,r,t[n+2],15,718787259),r=c(r,s,h,e,t[n+9],21,-343485551),e=i(e,l),r=i(r,f),s=i(s,p),h=i(h,d)}return[e,r,s,h]}function l(t,n=r.Hex){const e=n||r.Base64,i=h(function(t){const n=[];for(let e=0,r=8*t.length;e<r;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}(t),8*t.length);switch(e){case r.Raw:return i;case r.Hex:return function(t){const n="0123456789abcdef",e=[];for(let r=0,i=4*t.length;r<i;r++)e.push(n.charAt(t[r>>2]>>r%4*8+4&15)+n.charAt(t[r>>2]>>r%4*8&15));return e.join("")}(i);case r.String:return function(t){const n=[];for(let e=0,r=32*t.length;e<r;e+=8)n.push(String.fromCharCode(t[e>>5]>>>e%32&255));return n.join("")}(i);case r.Base64:return function(t){const n=[];for(let e=0,r=4*t.length;e<r;e+=3){const r=(t[e>>2]>>e%4*8&255)<<16|(t[e+1>>2]>>(e+1)%4*8&255)<<8|t[e+2>>2]>>(e+2)%4*8&255;for(let i=0;i<4;i++)8*e+6*i>32*t.length?n.push("="):n.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-i)&63))}return n.join("")}(i)}}e.d(n,["T",0,r])},4341(t,n,e){e.d(n,{I:()=>i});var r=e(26390);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,s));t++)this._items.push(this._allocator())}}const s=1024},87024(t,n,e){e.d(n,{P:()=>p});var r=e(49186),i=e(80200),s=e(76553),o=e(84952),a=e(13069),u=e(96156),c=e(35666),h=e(10107),l=e(85648),f=e(97159);function p(t){const n=t?.origins??[void 0];return(e,r)=>{const i=function(t,n,e){if("resource"===t?.type)return function(t,n,e){const r=(0,u.z4)(n,e);return{type:String,read:(t,n,e)=>{const i=(0,f.r)(t,n,e);return r.type===String?i:"function"==typeof r.type?new r.type({url:i}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(n,i,a,u){if(!u?.resources)return"string"==typeof n?void(i[a]=(0,f.t)(n,u)):void(i[a]=n.write({},u));const h=function(t){return null==t?null:"string"==typeof t?t:t.url}(n),p=(0,f.t)(h,{...u,verifyItemRelativeUrls:u?.verifyItemRelativeUrls?{writtenUrls:u.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),y=r.type!==String&&(!(0,s.H)(this)||u?.origin&&this.originIdOf(e)>(0,c.aB)(u.origin)),g={object:this,propertyName:e,value:n,targetUrl:p,dest:i,targetPropertyName:a,context:u,params:t};u?.portalItem&&p&&!(0,o.oP)(p)?y&&t?.contentAddressed?d(g):y?function(t){const{context:n,targetUrl:e,params:r,value:i,dest:s,targetPropertyName:a}=t;if(!n.portalItem)return;const u=n.portalItem.resourceFromPath(e),c=M(i,e,n),h=(0,l.n)(c),f=(0,o.Zo)(u.path),p=r?.compress??!1;h===f?(n.resources&&m({...t,resource:u,content:c,compress:p,updates:n.resources.toUpdate}),s[a]=e):d(t)}(g):function({context:t,targetUrl:n,dest:e,targetPropertyName:r}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),e[r]=n)}(g):u?.portalItem&&(null==p||null!=(0,f.i)(p)||(0,o.w8)(p)||y)?d(g):i[a]=p}}}}(t,n,e);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{const{read:t,write:n}=f.b;return{read:t,write:n}}}}(t,e,r);for(const t of n){const n=(0,h.rM)(e,t,r);for(const t in i)n[t]=i[t]}}}function d(t){const{targetUrl:n,params:e,value:s,context:u,dest:c,targetPropertyName:h}=t;if(!u.portalItem)return;const p=(0,f.p)(n),d=M(s,n,u);if(e?.contentAddressed&&"json"!==d.type)return void u.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${h}" is trying to serializing a resource with content of type ${d.type} with content addressing. Content addressing is only supported for json resources.`,{content:d}));const y=e?.contentAddressed&&"json"===d.type?(0,i.d)(d.jsonString):p?.filename??(0,a.lk)(),g=(0,o.fj)(e?.prefix??p?.prefix,y),b=`${g}.${(0,l.n)(d)}`;if(e?.contentAddressed&&u.resources&&"json"===d.type){const t=u.resources.toKeep.find(({resource:t})=>t.path===b)??u.resources.toAdd.find(({resource:t})=>t.path===b);if(t)return void(c[h]=t.resource.itemRelativeUrl)}const v=u.portalItem.resourceFromPath(b);(0,o.w8)(n)&&u.resources&&u.resources.pendingOperations.push((0,o.tk)(n).then(t=>{v.path=`${g}.${(0,l.n)({type:"blob",blob:t})}`,c[h]=v.itemRelativeUrl}).catch(()=>{}));const _=e?.compress??!1;u.resources&&m({...t,resource:v,content:d,compress:_,updates:u.resources.toAdd}),c[h]=v.itemRelativeUrl}function m({object:t,propertyName:n,updates:e,resource:r,content:i,compress:s}){e.push({resource:r,content:i,compress:s,finish:e=>{!function(t,n,e){"string"==typeof t[n]?t[n]=e.url:t[n].url=e.url}(t,n,e)}})}function M(t,n,e){return"string"==typeof t?{type:"url",url:n}:{type:"json",jsonString:JSON.stringify(t.toJSON(e))}}},62885(t,n,e){e.d(n,{H:()=>s,V:()=>i});var r=e(7762);function i(t,n,e=r.A){return n||(n=new e),n===t||n.destroyed||(n.removeAll(),(i=t)&&(Array.isArray(i)||"items"in i&&Array.isArray(i.items))?n.addMany(t):t&&n.add(t)),n;var i}function s(t){return t}},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>i,vt:()=>r});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r,i,s,o,a,u,c,h,l,f,p,d,m){return[t,n,e,r,i,s,o,a,u,c,h,l,f,p,d,m]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},82534(t,n,e){function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>i,vt:()=>r});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,s])},48163(t,n,e){function r(){return[0,0]}function i(t){return[t[0],t[1]]}function s(t,n){return[t,n]}function o(){return s(1,1)}function a(){return s(-1,-1)}function u(){return s(1,0)}function c(){return s(0,1)}e.d(n,{fA:()=>s,o8:()=>i,vt:()=>r});const h=o(),l=a(),f=u(),p=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:l,ONES:h,UNIT_X:f,UNIT_Y:p,ZEROS:[0,0],clone:i,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){const e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:s,negativeOnes:a,ones:o,unitX:u,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,l,"Un",0,h])},91829(t,n,e){function r(){return[0,0,0,0]}function i(t,n,e,r){return[t,n,e,r]}function s(){return i(1,1,1,1)}function o(){return i(1,0,0,0)}function a(){return i(0,1,0,0)}function u(){return i(0,0,1,0)}function c(){return i(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>i,vt:()=>r});const h=[0,0,0,0],l=s(),f=o(),p=a(),d=u(),m=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:l,UNIT_W:m,UNIT_X:f,UNIT_Y:p,UNIT_Z:d,ZEROS:h,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,ones:s,unitW:c,unitX:o,unitY:a,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,l,"uY",0,h])},58083(t,n,e){e.d(n,{$0:()=>y,$h:()=>j,B8:()=>h,C:()=>s,D_:()=>a,N9:()=>b,O7:()=>P,Qw:()=>c,Tl:()=>f,X_:()=>x,e$:()=>d,eL:()=>m,hM:()=>g,hZ:()=>o,hs:()=>p,kN:()=>M,l:()=>w,lw:()=>l,mg:()=>u,o1:()=>A,sC:()=>I,t2:()=>S,t5:()=>R,tZ:()=>q,ut:()=>O});var r=e(51850),i=e(34304);function s(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function o(t,n,e,r,i,s,o,a,u,c,h,l,f,p,d,m,M){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t[4]=s,t[5]=o,t[6]=a,t[7]=u,t[8]=c,t[9]=h,t[10]=l,t[11]=f,t[12]=p,t[13]=d,t[14]=m,t[15]=M,t}function a(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function u(t,n){if(t===n){const e=n[1],r=n[2],i=n[3],s=n[6],o=n[7],a=n[11];t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=e,t[6]=n[9],t[7]=n[13],t[8]=r,t[9]=s,t[11]=n[14],t[12]=i,t[13]=o,t[14]=a}else t[0]=n[0],t[1]=n[4],t[2]=n[8],t[3]=n[12],t[4]=n[1],t[5]=n[5],t[6]=n[9],t[7]=n[13],t[8]=n[2],t[9]=n[6],t[10]=n[10],t[11]=n[14],t[12]=n[3],t[13]=n[7],t[14]=n[11],t[15]=n[15];return t}function c(t,n){return h(t,n)||a(t),t}function h(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],u=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],d=n[12],m=n[13],M=n[14],y=n[15],g=e*a-r*o,b=e*u-i*o,v=e*c-s*o,_=r*u-i*a,I=r*c-s*a,x=i*c-s*u,w=h*m-l*d,A=h*M-f*d,P=h*y-p*d,j=l*M-f*m,R=l*y-p*m,C=f*y-p*M;let S=g*C-b*R+v*j+_*P-I*A+x*w;return S?(S=1/S,t[0]=(a*C-u*R+c*j)*S,t[1]=(i*R-r*C-s*j)*S,t[2]=(m*x-M*I+y*_)*S,t[3]=(f*I-l*x-p*_)*S,t[4]=(u*P-o*C-c*A)*S,t[5]=(e*C-i*P+s*A)*S,t[6]=(M*v-d*x-y*b)*S,t[7]=(h*x-f*v+p*b)*S,t[8]=(o*R-a*P+c*w)*S,t[9]=(r*P-e*R-s*w)*S,t[10]=(d*I-m*v+y*g)*S,t[11]=(l*v-h*I-p*g)*S,t[12]=(a*A-o*j-u*w)*S,t[13]=(e*j-r*A+i*w)*S,t[14]=(m*b-d*_-M*g)*S,t[15]=(h*_-l*b+f*g)*S,t):null}function l(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=n[4],u=n[5],c=n[6],h=n[7],l=n[8],f=n[9],p=n[10],d=n[11],m=n[12],M=n[13],y=n[14],g=n[15];let b=e[0],v=e[1],_=e[2],I=e[3];return t[0]=b*r+v*a+_*l+I*m,t[1]=b*i+v*u+_*f+I*M,t[2]=b*s+v*c+_*p+I*y,t[3]=b*o+v*h+_*d+I*g,b=e[4],v=e[5],_=e[6],I=e[7],t[4]=b*r+v*a+_*l+I*m,t[5]=b*i+v*u+_*f+I*M,t[6]=b*s+v*c+_*p+I*y,t[7]=b*o+v*h+_*d+I*g,b=e[8],v=e[9],_=e[10],I=e[11],t[8]=b*r+v*a+_*l+I*m,t[9]=b*i+v*u+_*f+I*M,t[10]=b*s+v*c+_*p+I*y,t[11]=b*o+v*h+_*d+I*g,b=e[12],v=e[13],_=e[14],I=e[15],t[12]=b*r+v*a+_*l+I*m,t[13]=b*i+v*u+_*f+I*M,t[14]=b*s+v*c+_*p+I*y,t[15]=b*o+v*h+_*d+I*g,t}function f(t,n,e){const r=e[0],i=e[1],s=e[2];if(n===t)t[12]=n[0]*r+n[4]*i+n[8]*s+n[12],t[13]=n[1]*r+n[5]*i+n[9]*s+n[13],t[14]=n[2]*r+n[6]*i+n[10]*s+n[14],t[15]=n[3]*r+n[7]*i+n[11]*s+n[15];else{const e=n[0],o=n[1],a=n[2],u=n[3],c=n[4],h=n[5],l=n[6],f=n[7],p=n[8],d=n[9],m=n[10],M=n[11];t[0]=e,t[1]=o,t[2]=a,t[3]=u,t[4]=c,t[5]=h,t[6]=l,t[7]=f,t[8]=p,t[9]=d,t[10]=m,t[11]=M,t[12]=e*r+c*i+p*s+n[12],t[13]=o*r+h*i+d*s+n[13],t[14]=a*r+l*i+m*s+n[14],t[15]=u*r+f*i+M*s+n[15]}return t}function p(t,n,e){const r=e[0],i=e[1],s=e[2];return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*i,t[5]=n[5]*i,t[6]=n[6]*i,t[7]=n[7]*i,t[8]=n[8]*s,t[9]=n[9]*s,t[10]=n[10]*s,t[11]=n[11]*s,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function d(t,n,e,r){let o=r[0],a=r[1],u=r[2],c=Math.sqrt(o*o+a*a+u*u);if(c<=(0,i.FD)())return void s(t,n);c=1/c,o*=c,a*=c,u*=c;const h=Math.sin(e),l=Math.cos(e),f=1-l,p=n[0],d=n[1],m=n[2],M=n[3],y=n[4],g=n[5],b=n[6],v=n[7],_=n[8],I=n[9],x=n[10],w=n[11],A=o*o*f+l,P=a*o*f+u*h,j=u*o*f-a*h,R=o*a*f-u*h,C=a*a*f+l,S=u*a*f+o*h,O=o*u*f+a*h,q=a*u*f-o*h,N=u*u*f+l;t[0]=p*A+y*P+_*j,t[1]=d*A+g*P+I*j,t[2]=m*A+b*P+x*j,t[3]=M*A+v*P+w*j,t[4]=p*R+y*C+_*S,t[5]=d*R+g*C+I*S,t[6]=m*R+b*C+x*S,t[7]=M*R+v*C+w*S,t[8]=p*O+y*q+_*N,t[9]=d*O+g*q+I*N,t[10]=m*O+b*q+x*N,t[11]=M*O+v*q+w*N,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function m(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[4],o=n[5],a=n[6],u=n[7],c=n[8],h=n[9],l=n[10],f=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=s*i+c*r,t[5]=o*i+h*r,t[6]=a*i+l*r,t[7]=u*i+f*r,t[8]=c*i-s*r,t[9]=h*i-o*r,t[10]=l*i-a*r,t[11]=f*i-u*r,t}function M(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function y(t,n,e){if(0===n)return a(t);let r=e[0],s=e[1],o=e[2],u=Math.sqrt(r*r+s*s+o*o);if(u<=(0,i.FD)())return null;u=1/u,r*=u,s*=u,o*=u;const c=Math.sin(n),h=Math.cos(n),l=1-h;return t[0]=r*r*l+h,t[1]=s*r*l+o*c,t[2]=o*r*l-s*c,t[3]=0,t[4]=r*s*l-o*c,t[5]=s*s*l+h,t[6]=o*s*l+r*c,t[7]=0,t[8]=r*o*l+s*c,t[9]=s*o*l-r*c,t[10]=o*o*l+h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function g(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=e,t[7]=0,t[8]=0,t[9]=-e,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function v(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3],a=r+r,u=i+i,c=s+s,h=r*a,l=r*u,f=r*c,p=i*u,d=i*c,m=s*c,M=o*a,y=o*u,g=o*c;return t[0]=1-(p+m),t[1]=l+g,t[2]=f-y,t[3]=0,t[4]=l-g,t[5]=1-(h+m),t[6]=d+M,t[7]=0,t[8]=f+y,t[9]=d-M,t[10]=1-(h+p),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const _=(0,r.vt)();function I(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function x(t,n){const e=n[0],r=n[1],i=n[2],s=n[4],o=n[5],a=n[6],u=n[8],c=n[9],h=n[10];return t[0]=Math.sqrt(e*e+r*r+i*i),t[1]=Math.sqrt(s*s+o*o+a*a),t[2]=Math.sqrt(u*u+c*c+h*h),t}function w(t,n){const e=n[0]+n[5]+n[10];let r=0;return e>0?(r=2*Math.sqrt(e+1),t[3]=.25*r,t[0]=(n[6]-n[9])/r,t[1]=(n[8]-n[2])/r,t[2]=(n[1]-n[4])/r):n[0]>n[5]&&n[0]>n[10]?(r=2*Math.sqrt(1+n[0]-n[5]-n[10]),t[3]=(n[6]-n[9])/r,t[0]=.25*r,t[1]=(n[1]+n[4])/r,t[2]=(n[8]+n[2])/r):n[5]>n[10]?(r=2*Math.sqrt(1+n[5]-n[0]-n[10]),t[3]=(n[8]-n[2])/r,t[0]=(n[1]+n[4])/r,t[1]=.25*r,t[2]=(n[6]+n[9])/r):(r=2*Math.sqrt(1+n[10]-n[0]-n[5]),t[3]=(n[1]-n[4])/r,t[0]=(n[8]+n[2])/r,t[1]=(n[6]+n[9])/r,t[2]=.25*r),t}function A(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=n[3],u=i+i,c=s+s,h=o+o,l=i*u,f=i*c,p=i*h,d=s*c,m=s*h,M=o*h,y=a*u,g=a*c,b=a*h,v=r[0],_=r[1],I=r[2];return t[0]=(1-(d+M))*v,t[1]=(f+b)*v,t[2]=(p-g)*v,t[3]=0,t[4]=(f-b)*_,t[5]=(1-(l+M))*_,t[6]=(m+y)*_,t[7]=0,t[8]=(p+g)*I,t[9]=(m-y)*I,t[10]=(1-(l+d))*I,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function P(t,n,e,r,i){const s=n[0],o=n[1],a=n[2],u=n[3],c=s+s,h=o+o,l=a+a,f=s*c,p=s*h,d=s*l,m=o*h,M=o*l,y=a*l,g=u*c,b=u*h,v=u*l,_=r[0],I=r[1],x=r[2],w=i[0],A=i[1],P=i[2],j=(1-(m+y))*_,R=(p+v)*_,C=(d-b)*_,S=(p-v)*I,O=(1-(f+y))*I,q=(M+g)*I,N=(d+b)*x,Z=(M-g)*x,T=(1-(f+m))*x;return t[0]=j,t[1]=R,t[2]=C,t[3]=0,t[4]=S,t[5]=O,t[6]=q,t[7]=0,t[8]=N,t[9]=Z,t[10]=T,t[11]=0,t[12]=e[0]+w-(j*w+S*A+N*P),t[13]=e[1]+A-(R*w+O*A+Z*P),t[14]=e[2]+P-(C*w+q*A+T*P),t[15]=1,t}function j(t,n,e,r,i,s,o){const a=1/(e-n),u=1/(i-r),c=1/(s-o);return t[0]=2*s*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*s*u,t[6]=0,t[7]=0,t[8]=(e+n)*a,t[9]=(i+r)*u,t[10]=(o+s)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*s*2*c,t[15]=0,t}function R(t,n,e,r){const s=n[0],o=n[1],u=n[2];let c=s-e[0],h=o-e[1],l=u-e[2];const f=(0,i.FD)();if(Math.abs(c)<f&&Math.abs(h)<f&&Math.abs(l)<f)return void a(t);let p=1/Math.sqrt(c*c+h*h+l*l);c*=p,h*=p,l*=p;const d=r[0],m=r[1],M=r[2];let y=m*l-M*h,g=M*c-d*l,b=d*h-m*c;p=Math.sqrt(y*y+g*g+b*b),p?(p=1/p,y*=p,g*=p,b*=p):(y=0,g=0,b=0);let v=h*b-l*g,_=l*y-c*b,I=c*g-h*y;p=Math.sqrt(v*v+_*_+I*I),p?(p=1/p,v*=p,_*=p,I*=p):(v=0,_=0,I=0),t[0]=y,t[1]=v,t[2]=c,t[3]=0,t[4]=g,t[5]=_,t[6]=h,t[7]=0,t[8]=b,t[9]=I,t[10]=l,t[11]=0,t[12]=-(y*s+g*o+b*u),t[13]=-(v*s+_*o+I*u),t[14]=-(c*s+h*o+l*u),t[15]=1}function C(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[4]=n[4]-e[4],t[5]=n[5]-e[5],t[6]=n[6]-e[6],t[7]=n[7]-e[7],t[8]=n[8]-e[8],t[9]=n[9]-e[9],t[10]=n[10]-e[10],t[11]=n[11]-e[11],t[12]=n[12]-e[12],t[13]=n[13]-e[13],t[14]=n[14]-e[14],t[15]=n[15]-e[15],t}function S(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]&&t[9]===n[9]&&t[10]===n[10]&&t[11]===n[11]&&t[12]===n[12]&&t[13]===n[13]&&t[14]===n[14]&&t[15]===n[15]}function O(t){const n=(0,i.FD)(),e=t[0],r=t[1],s=t[2],o=t[4],a=t[5],u=t[6],c=t[8],h=t[9],l=t[10];return Math.abs(1-(e*e+o*o+c*c))<=n&&Math.abs(1-(r*r+a*a+h*h))<=n&&Math.abs(1-(s*s+u*u+l*l))<=n}function q(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const N=l,Z=C;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t[9]=n[9]+e[9],t[10]=n[10]+e[10],t[11]=n[11]+e[11],t[12]=n[12]+e[12],t[13]=n[13]+e[13],t[14]=n[14]+e[14],t[15]=n[15]+e[15],t},adjoint:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=n[4],a=n[5],u=n[6],c=n[7],h=n[8],l=n[9],f=n[10],p=n[11],d=n[12],m=n[13],M=n[14],y=n[15];return t[0]=a*(f*y-p*M)-l*(u*y-c*M)+m*(u*p-c*f),t[1]=-(r*(f*y-p*M)-l*(i*y-s*M)+m*(i*p-s*f)),t[2]=r*(u*y-c*M)-a*(i*y-s*M)+m*(i*c-s*u),t[3]=-(r*(u*p-c*f)-a*(i*p-s*f)+l*(i*c-s*u)),t[4]=-(o*(f*y-p*M)-h*(u*y-c*M)+d*(u*p-c*f)),t[5]=e*(f*y-p*M)-h*(i*y-s*M)+d*(i*p-s*f),t[6]=-(e*(u*y-c*M)-o*(i*y-s*M)+d*(i*c-s*u)),t[7]=e*(u*p-c*f)-o*(i*p-s*f)+h*(i*c-s*u),t[8]=o*(l*y-p*m)-h*(a*y-c*m)+d*(a*p-c*l),t[9]=-(e*(l*y-p*m)-h*(r*y-s*m)+d*(r*p-s*l)),t[10]=e*(a*y-c*m)-o*(r*y-s*m)+d*(r*c-s*a),t[11]=-(e*(a*p-c*l)-o*(r*p-s*l)+h*(r*c-s*a)),t[12]=-(o*(l*M-f*m)-h*(a*M-u*m)+d*(a*f-u*l)),t[13]=e*(l*M-f*m)-h*(r*M-i*m)+d*(r*f-i*l),t[14]=-(e*(a*M-u*m)-o*(r*M-i*m)+d*(r*u-i*a)),t[15]=e*(a*f-u*l)-o*(r*f-i*l)+h*(r*u-i*a),t},copy:s,determinant:function(t){const n=t[0],e=t[1],r=t[2],i=t[3],s=t[4],o=t[5],a=t[6],u=t[7],c=t[8],h=t[9],l=t[10],f=t[11],p=t[12],d=t[13],m=t[14],M=t[15];return(n*o-e*s)*(l*M-f*m)-(n*a-r*s)*(h*M-f*d)+(n*u-i*s)*(h*m-l*d)+(e*a-r*o)*(c*M-f*p)-(e*u-i*o)*(c*m-l*p)+(r*u-i*a)*(c*d-h*p)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],o=t[3],a=t[4],u=t[5],c=t[6],h=t[7],l=t[8],f=t[9],p=t[10],d=t[11],m=t[12],M=t[13],y=t[14],g=t[15],b=n[0],v=n[1],_=n[2],I=n[3],x=n[4],w=n[5],A=n[6],P=n[7],j=n[8],R=n[9],C=n[10],S=n[11],O=n[12],q=n[13],N=n[14],Z=n[15],T=(0,i.FD)();return Math.abs(e-b)<=T*Math.max(1,Math.abs(e),Math.abs(b))&&Math.abs(r-v)<=T*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(s-_)<=T*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(o-I)<=T*Math.max(1,Math.abs(o),Math.abs(I))&&Math.abs(a-x)<=T*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(u-w)<=T*Math.max(1,Math.abs(u),Math.abs(w))&&Math.abs(c-A)<=T*Math.max(1,Math.abs(c),Math.abs(A))&&Math.abs(h-P)<=T*Math.max(1,Math.abs(h),Math.abs(P))&&Math.abs(l-j)<=T*Math.max(1,Math.abs(l),Math.abs(j))&&Math.abs(f-R)<=T*Math.max(1,Math.abs(f),Math.abs(R))&&Math.abs(p-C)<=T*Math.max(1,Math.abs(p),Math.abs(C))&&Math.abs(d-S)<=T*Math.max(1,Math.abs(d),Math.abs(S))&&Math.abs(m-O)<=T*Math.max(1,Math.abs(m),Math.abs(O))&&Math.abs(M-q)<=T*Math.max(1,Math.abs(M),Math.abs(q))&&Math.abs(y-N)<=T*Math.max(1,Math.abs(y),Math.abs(N))&&Math.abs(g-Z)<=T*Math.max(1,Math.abs(g),Math.abs(Z))},exactEquals:S,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,n){const e=n[0],r=n[1],i=n[2],s=n[3],o=e+e,a=r+r,u=i+i,c=e*o,h=r*o,l=r*a,f=i*o,p=i*a,d=i*u,m=s*o,M=s*a,y=s*u;return t[0]=1-l-d,t[1]=h+y,t[2]=f-M,t[3]=0,t[4]=h-y,t[5]=1-c-d,t[6]=p+m,t[7]=0,t[8]=f+M,t[9]=p-m,t[10]=1-c-l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=_,r=-n[0],i=-n[1],s=-n[2],o=n[3],a=n[4],u=n[5],c=n[6],h=n[7],l=r*r+i*i+s*s+o*o;return l>0?(e[0]=2*(a*o+h*r+u*s-c*i)/l,e[1]=2*(u*o+h*i+c*r-a*s)/l,e[2]=2*(c*o+h*s+a*i-u*r)/l):(e[0]=2*(a*o+h*r+u*s-c*i),e[1]=2*(u*o+h*i+c*r-a*s),e[2]=2*(c*o+h*s+a*i-u*r)),v(t,n,e),t},fromRotation:y,fromRotationTranslation:v,fromRotationTranslationScale:A,fromRotationTranslationScaleOrigin:P,fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=n[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:M,fromXRotation:g,fromYRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=0,t[2]=-e,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=e,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:b,frustum:j,getRotation:w,getScale:x,getTranslation:I,hasIdentityRotation:q,identity:a,invert:h,invertOrIdentity:c,isOrthoNormal:O,lookAt:R,mul:N,multiply:l,multiplyScalar:function(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t[4]=n[4]*e,t[5]=n[5]*e,t[6]=n[6]*e,t[7]=n[7]*e,t[8]=n[8]*e,t[9]=n[9]*e,t[10]=n[10]*e,t[11]=n[11]*e,t[12]=n[12]*e,t[13]=n[13]*e,t[14]=n[14]*e,t[15]=n[15]*e,t},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t[9]=n[9]+e[9]*r,t[10]=n[10]+e[10]*r,t[11]=n[11]+e[11]*r,t[12]=n[12]+e[12]*r,t[13]=n[13]+e[13]*r,t[14]=n[14]+e[14]*r,t[15]=n[15]+e[15]*r,t},ortho:function(t,n,e,r,i,s,o){const a=1/(n-e),u=1/(r-i),c=1/(s-o);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+e)*a,t[13]=(i+r)*u,t[14]=(o+s)*c,t[15]=1,t},perspective:function(t,n,e,r,i){const s=1/Math.tan(n/2);let o;return t[0]=s/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const i=Math.tan(n.upDegrees*Math.PI/180),s=Math.tan(n.downDegrees*Math.PI/180),o=Math.tan(n.leftDegrees*Math.PI/180),a=Math.tan(n.rightDegrees*Math.PI/180),u=2/(o+a),c=2/(i+s);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-a)*u*.5,t[9]=(i-s)*c*.5,t[10]=r/(e-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*e/(e-r),t[15]=0,t},rotate:d,rotateX:m,rotateY:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[0],o=n[1],a=n[2],u=n[3],c=n[8],h=n[9],l=n[10],f=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*i-c*r,t[1]=o*i-h*r,t[2]=a*i-l*r,t[3]=u*i-f*r,t[8]=s*r+c*i,t[9]=o*r+h*i,t[10]=a*r+l*i,t[11]=u*r+f*i,t},rotateZ:function(t,n,e){const r=Math.sin(e),i=Math.cos(e),s=n[0],o=n[1],a=n[2],u=n[3],c=n[4],h=n[5],l=n[6],f=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=s*i+c*r,t[1]=o*i+h*r,t[2]=a*i+l*r,t[3]=u*i+f*r,t[4]=c*i-s*r,t[5]=h*i-o*r,t[6]=l*i-a*r,t[7]=f*i-u*r,t},scale:p,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:Z,subtract:C,targetTo:function(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=r[0],u=r[1],c=r[2];let h=i-e[0],l=s-e[1],f=o-e[2],p=h*h+l*l+f*f;p>0&&(p=1/Math.sqrt(p),h*=p,l*=p,f*=p);let d=u*f-c*l,m=c*h-a*f,M=a*l-u*h;return p=d*d+m*m+M*M,p>0&&(p=1/Math.sqrt(p),d*=p,m*=p,M*=p),t[0]=d,t[1]=m,t[2]=M,t[3]=0,t[4]=l*M-f*m,t[5]=f*d-h*M,t[6]=h*m-l*d,t[7]=0,t[8]=h,t[9]=l,t[10]=f,t[11]=0,t[12]=i,t[13]=s,t[14]=o,t[15]=1,t},translate:f,transpose:u},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>A,Bw:()=>s,C:()=>o,Cc:()=>P,DI:()=>I,Io:()=>g,Ln:()=>y,Om:()=>w,Qr:()=>l,Re:()=>c,S8:()=>x,T9:()=>m,WQ:()=>u,Z0:()=>j,_S:()=>p,aI:()=>Z,ei:()=>R,fw:()=>S,gL:()=>C,hG:()=>b,hZ:()=>a,hs:()=>M,jk:()=>d,lw:()=>h,m3:()=>v,oW:()=>T,t2:()=>N,tn:()=>f,ze:()=>_});var r=e(51850),i=e(34304);function s(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function a(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function u(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t}function c(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t}function h(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t}function l(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(t,n){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function p(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function d(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t}function m(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function M(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function y(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return Math.sqrt(e*e+r*r+i*i)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2];return e*e+r*r+i*i}function v(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function _(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function I(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function x(t,n){const e=n[0],r=n[1],i=n[2];let s=e*e+r*r+i*i;return s>0&&(s=1/Math.sqrt(s),t[0]=n[0]*s,t[1]=n[1]*s,t[2]=n[2]*s),t}function w(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function A(t,n,e){const r=n[0],i=n[1],s=n[2],o=e[0],a=e[1],u=e[2];return t[0]=i*u-s*a,t[1]=s*o-r*u,t[2]=r*a-i*o,t}function P(t,n,e,r){const i=n[0],s=n[1],o=n[2];return t[0]=i+r*(e[0]-i),t[1]=s+r*(e[1]-s),t[2]=o+r*(e[2]-o),t}function j(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=e[0]*r+e[4]*i+e[8]*s+e[12],t[1]=e[1]*r+e[5]*i+e[9]*s+e[13],t[2]=e[2]*r+e[6]*i+e[10]*s+e[14],t}function R(t,n,e){const r=n[0],i=n[1],s=n[2];return t[0]=r*e[0]+i*e[3]+s*e[6],t[1]=r*e[1]+i*e[4]+s*e[7],t[2]=r*e[2]+i*e[5]+s*e[8],t}function C(t,n,e){return S(t,n,e[0],e[1],e[2],e[3])}function S(t,n,e,r,i,s){const o=n[0],a=n[1],u=n[2],c=r*u-i*a,h=i*o-e*u,l=e*a-r*o,f=r*l-i*h,p=i*c-e*l,d=e*h-r*c,m=2*s;return t[0]=o+c*m+2*f,t[1]=a+h*m+2*p,t[2]=u+l*m+2*d,t}const O=(0,r.vt)(),q=(0,r.vt)();function N(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function Z(t,n){if(t===n)return!0;const e=t[0],r=t[1],s=t[2],o=n[0],a=n[1],u=n[2],c=(0,i.FD)();return Math.abs(e-o)<=c*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(r-a)<=c*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(s-u)<=c*Math.max(1,Math.abs(s),Math.abs(u))}function T(t,n,e){const r=e[0]-n[0],i=e[1]-n[1],s=e[2]-n[2];let o=r*r+i*i+s*s;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=i*o,t[2]=s*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const D=c,U=h,z=l,F=g,$=b,E=s,V=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:u,angle:function(t,n){x(O,t),x(q,n);const e=w(O,q);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,i,s){const o=1-s,a=o*o,u=s*s,c=a*o,h=3*s*a,l=3*u*o,f=u*s;return t[0]=n[0]*c+e[0]*h+r[0]*l+i[0]*f,t[1]=n[1]*c+e[1]*h+r[1]*l+i[1]*f,t[2]=n[2]*c+e[2]*h+r[2]*l+i[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:o,cross:A,crossAndNormalize:function(t,n,e){const r=n[0],i=n[1],s=n[2],o=e[0],a=e[1],u=e[2],c=i*u-s*a,h=s*o-r*u,l=r*a-i*o,f=Math.sqrt(c*c+h*h+l*l);return t[0]=c/f,t[1]=h/f,t[2]=l/f,t},direction:T,dist:F,distance:g,div:z,divide:l,dot:w,equals:Z,exactEquals:N,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t},hermite:function(t,n,e,r,i,s){const o=s*s,a=o*(2*s-3)+1,u=o*(s-2)+s,c=o*(s-1),h=o*(3-2*s);return t[0]=n[0]*a+e[0]*u+r[0]*c+i[0]*h,t[1]=n[1]*a+e[1]*u+r[1]*c+i[1]*h,t[2]=n[2]*a+e[2]*u+r[2]*c+i[2]*h,t},inverse:I,len:E,length:s,lerp:P,max:m,min:d,mul:U,multiply:h,negate:_,normalize:x,random:function(t,n=1){const e=i.Ov,r=2*e()*Math.PI,s=2*e()-1,o=Math.sqrt(1-s*s)*n;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=s*n,t},rotateX:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0],s[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),s[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateY:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),s[1]=i[1],s[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},rotateZ:function(t,n,e,r){const i=[],s=[];return i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2],s[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),s[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),s[2]=i[2],t[0]=s[0]+e[0],t[1]=s[1]+e[1],t[2]=s[2]+e[2],t},round:function(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t},scale:M,scaleAndAdd:y,scaleTo:function(t,n){return M(t,t,n/E(t))},set:a,sign:p,sqrDist:$,sqrLen:V,squaredDistance:b,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:D,subtract:c,transformMat3:R,transformMat4:j,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:C,transformQuatValues:S},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,E,"jb",0,D,"lo",0,$,"uE",0,V])},78955(t,n,e){e.d(n,{Bw:()=>M,C:()=>i,Cc:()=>v,LI:()=>f,Om:()=>b,S8:()=>g,T9:()=>l,WQ:()=>o,Z0:()=>_,aI:()=>x,hG:()=>m,hZ:()=>s,hs:()=>p,jk:()=>h,m3:()=>y,t2:()=>I});var r=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function s(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=r,t[3]=i,t}function o(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function a(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t}function u(t,n,e){return t[0]=n[0]*e[0],t[1]=n[1]*e[1],t[2]=n[2]*e[2],t[3]=n[3]*e[3],t}function c(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t[3]=n[3]/e[3],t}function h(t,n,e){return t[0]=Math.min(n[0],e[0]),t[1]=Math.min(n[1],e[1]),t[2]=Math.min(n[2],e[2]),t[3]=Math.min(n[3],e[3]),t}function l(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function f(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t[3]=n[3]*e,t}function d(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],s=n[3]-t[3];return Math.sqrt(e*e+r*r+i*i+s*s)}function m(t,n){const e=n[0]-t[0],r=n[1]-t[1],i=n[2]-t[2],s=n[3]-t[3];return e*e+r*r+i*i+s*s}function M(t){const n=t[0],e=t[1],r=t[2],i=t[3];return Math.sqrt(n*n+e*e+r*r+i*i)}function y(t){const n=t[0],e=t[1],r=t[2],i=t[3];return n*n+e*e+r*r+i*i}function g(t,n){const e=n[0],r=n[1],i=n[2],s=n[3];let o=e*e+r*r+i*i+s*s;return o>0&&(o=1/Math.sqrt(o),t[0]=e*o,t[1]=r*o,t[2]=i*o,t[3]=s*o),t}function b(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function v(t,n,e,r){const i=n[0],s=n[1],o=n[2],a=n[3];return t[0]=i+r*(e[0]-i),t[1]=s+r*(e[1]-s),t[2]=o+r*(e[2]-o),t[3]=a+r*(e[3]-a),t}function _(t,n,e){const r=n[0],i=n[1],s=n[2],o=n[3];return t[0]=e[0]*r+e[4]*i+e[8]*s+e[12]*o,t[1]=e[1]*r+e[5]*i+e[9]*s+e[13]*o,t[2]=e[2]*r+e[6]*i+e[10]*s+e[14]*o,t[3]=e[3]*r+e[7]*i+e[11]*s+e[15]*o,t}function I(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function x(t,n){const e=t[0],i=t[1],s=t[2],o=t[3],a=n[0],u=n[1],c=n[2],h=n[3],l=(0,r.FD)();return Math.abs(e-a)<=l*Math.max(1,Math.abs(e),Math.abs(a))&&Math.abs(i-u)<=l*Math.max(1,Math.abs(i),Math.abs(u))&&Math.abs(s-c)<=l*Math.max(1,Math.abs(s),Math.abs(c))&&Math.abs(o-h)<=l*Math.max(1,Math.abs(o),Math.abs(h))}const w=a,A=u,P=c,j=d,R=m,C=M,S=y;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:i,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:j,distance:d,div:P,divide:c,dot:b,equals:x,exactEquals:I,floor:function(t,n){return t[0]=Math.floor(n[0]),t[1]=Math.floor(n[1]),t[2]=Math.floor(n[2]),t[3]=Math.floor(n[3]),t},inverse:function(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t[3]=1/n[3],t},len:C,length:M,lerp:v,max:l,min:h,mul:A,multiply:u,negate:function(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=-n[3],t},normalize:g,random:function(t,n=1){const e=r.Ov;let i,s,o,a,u,c;do{i=2*e()-1,s=2*e()-1,u=i*i+s*s}while(u>=1);do{o=2*e()-1,a=2*e()-1,c=o*o+a*a}while(c>=1);const h=Math.sqrt((1-u)/c);return t[0]=n*i,t[1]=n*s,t[2]=n*o*h,t[3]=n*a*h,t},round:f,scale:p,scaleAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t},set:s,sqrDist:R,sqrLen:S,squaredDistance:m,squaredLength:y,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:w,subtract:a,transformMat4:_,transformQuat:function(t,n,e){const r=n[0],i=n[1],s=n[2],o=e[0],a=e[1],u=e[2],c=e[3],h=c*r+a*s-u*i,l=c*i+u*r-o*s,f=c*s+o*i-a*r,p=-o*r-a*i-u*s;return t[0]=h*c+p*-o+l*-u-f*-a,t[1]=l*c+p*-a+f*-o-h*-u,t[2]=f*c+p*-u+h*-a-l*-o,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},56512(t,n,e){function r(t){let n,e,r=[],i=!1;return function(...s){return i&&n===this&&function(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(t[e]!==n[e])return!1;return!0}(s,r)||(e=t.apply(this,s),n=this,r=s,i=!0),e}}e.d(n,{B:()=>r})},76553(t,n,e){function r(t){return t&&"getAtOrigin"in t&&"originOf"in t}e.d(n,{H:()=>r})},13069(t,n,e){e.d(n,{AG:()=>a,lk:()=>i,vD:()=>o,yS:()=>s});const r="randomUUID"in crypto;function i(){if(r)return crypto.randomUUID();const t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;const n=n=>t[n].toString(16).padStart(4,"0");return n(0)+n(1)+"-"+n(2)+"-"+n(3)+"-"+n(4)+"-"+n(5)+n(6)+n(7)}function s(){return`{${i().toUpperCase()}}`}function o(){return`{${i()}}`}function a(t){const n=t.toUpperCase();return t.startsWith("{")?n:`{${n}}`}},48526(t,n,e){e.d(n,{A:()=>M});var r,i=e(32198),s=e(4576),o=e(4718),a=e(91429),u=e(5443),c=e(91075),h=e(86738),l=e(16930),f=e(90634),p=e(47610),d=e(56993),m=e(43937);let M=r=class extends c.A{constructor(t){super(function(t){if(!t)return;let{points:n,hasM:e,hasZ:r,spatialReference:i}=t;switch(n??=[],n?.at(0)?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return i??=l.A.WGS84,{...t,hasM:e,hasZ:r,points:n,spatialReference:i}}(t)),this.points=[],this.type="multipoint"}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){const t=(0,f.ge)(this);return t?new u.A({...t,spatialReference:this.spatialReference}):null}writePoints(t,n){n.points=(0,o.o8)(this.points)}clone(){const{points:t,spatialReference:n,hasM:e,hasZ:i}=this;return new r({points:(0,o.o8)(t),spatialReference:n.clone(),hasM:e,hasZ:i})}equals(t){if(this===t)return!0;if(null==t)return!1;const n=this.spatialReference,e=t.spatialReference;return null!=n==(null!=e)&&!(null!=n&&null!=e&&!n.equals(e))&&(0,s.aI)(this.points,t.points,p.v6)}addPoint(t){return(0,d.h)(this,t),Array.isArray(t)?this.points.push(t):this.points.push(t.toArray()),this.notifyChange("points"),this}getPoint(t){if(!this._validateInputs(t))return null;const n=this.points[t],e={x:n[0],y:n[1],spatialReference:this.spatialReference};let r=2;return this.hasZ&&(e.z=n[2],r=3),this.hasM&&(e.m=n[r]),new h.A(e)}removePoint(t){if(!this._validateInputs(t))return null;const n=new h.A(this.points.splice(t,1)[0],this.spatialReference);return this.notifyChange("points"),n}setPoint(t,n){return this._validateInputs(t)?((0,d.h)(this,n),Array.isArray(n)||(n=n.toArray()),this.points[t]=n,this.notifyChange("points"),this):this}toJSON(t){return this.write({},t)}_validateInputs(t){return null!=t&&t>=0&&t<this.points.length}};(0,i.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"cache",null),(0,i.Cg)([(0,a.MZ)({readOnly:!0})],M.prototype,"extent",null),(0,i.Cg)([(0,a.MZ)({type:[[Number]],json:{write:{isRequired:!0}}})],M.prototype,"points",void 0),(0,i.Cg)([(0,m.K)("points")],M.prototype,"writePoints",null),M=r=(0,i.Cg)([(0,a.$K)("esri.geometry.Multipoint")],M),M.prototype.toJSON.isDefaultToJSON=!0},82799(t,n,e){e.d(n,{A:()=>d});var r,i=e(32198),s=e(4718),o=e(91429),a=e(5443),u=e(91075),c=e(86738),h=e(16930),l=e(90634),f=e(56993),p=e(43937);let d=r=class extends u.A{constructor(t){super(function(t){if(!t)return;let{paths:n,hasM:e,hasZ:r,spatialReference:i}=t;switch(n??=[],function(t){return"number"==typeof t[0]?.[0]}(n)&&(n=[n]),n[0]?.[0]?.length){case 4:r??=!0,e??=!0;break;case 3:r??=!0!==e,e??=!r;break;default:r??=!1,e??=!1}return i??=h.A.WGS84,{...t,hasM:e,hasZ:r,paths:n,spatialReference:i}}(t)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(t,n){n.curvePaths=(0,s.o8)(t)}get extent(){const t=(0,l.Z3)(this),{spatialReference:n}=this;return t?new a.A({...t,spatialReference:n}):null}writePaths(t,n){n.paths=(0,s.o8)(this.paths)}addPath(t){if(!t)return;const n=this.paths,e=n.length;if(function(t){return!Array.isArray(t[0])}(t)){const r=[];for(let n=0,e=t.length;n<e;n++)r[n]=t[n].toArray();n[e]=r}else n[e]=t.slice();return this.notifyChange("paths"),this}clone(){const t=new r;return t.spatialReference=this.spatialReference,t.paths=(0,s.o8)(this.paths),t.curvePaths=(0,s.o8)(this.curvePaths),t.hasZ=this.hasZ,t.hasM=this.hasM,t}getPoint(t,n){if(!this._validateInputs(t,n))return null;const e=this.paths[t][n],r=this.hasZ,i=this.hasM;return r&&!i?new c.A(e[0],e[1],e[2],void 0,this.spatialReference):i&&!r?new c.A(e[0],e[1],void 0,e[2],this.spatialReference):r&&i?new c.A(e[0],e[1],e[2],e[3],this.spatialReference):new c.A(e[0],e[1],this.spatialReference)}insertPoint(t,n,e){return this._validateInputs(t,n,!0)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t].splice(n,0,e),this.notifyChange("paths"),this):this}removePath(t){if(!this._validateInputs(t,null))return null;const n=this.paths.splice(t,1)[0],e=this.spatialReference,r=n.map(t=>new c.A(t,e));return this.notifyChange("paths"),r}removePoint(t,n){if(!this._validateInputs(t,n))return null;const e=new c.A(this.paths[t].splice(n,1)[0],this.spatialReference);return this.notifyChange("paths"),e}setPoint(t,n,e){return this._validateInputs(t,n)?((0,f.h)(this,e),Array.isArray(e)||(e=e.toArray()),this.paths[t][n]=e,this.notifyChange("paths"),this):this}_validateInputs(t,n,e=!1){if(null==t||t<0||t>=this.paths.length)return!1;if(null!=n){const r=this.paths[t];if(e&&(n<0||n>r.length))return!1;if(!e&&(n<0||n>=r.length))return!1}return!0}toJSON(t){return this.write({},t)}};(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"cache",null),(0,i.Cg)([(0,o.MZ)({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],d.prototype,"curvePaths",void 0),(0,i.Cg)([(0,p.K)("curvePaths")],d.prototype,"writeCurvePaths",null),(0,i.Cg)([(0,o.MZ)({readOnly:!0})],d.prototype,"extent",null),(0,i.Cg)([(0,o.MZ)({type:[[[Number]]],json:{write:{isRequired:!0}}})],d.prototype,"paths",void 0),(0,i.Cg)([(0,p.K)("paths")],d.prototype,"writePaths",null),d=r=(0,i.Cg)([(0,o.$K)("esri.geometry.Polyline")],d),d.prototype.toJSON.isDefaultToJSON=!0},4197(t,n,e){e.d(n,{Vj:()=>h,cj:()=>c,jh:()=>s,l5:()=>a,yH:()=>u});var r=e(34275),i=e(9093);function s(t){return t<=1024?new Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function a(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function u(t,n){if(0===n.length)return o(t);if(0===t.length)return o(n);const e=s(t.length+n.length);for(let n=0;n<t.length;++n)e[n]=t[n];for(let r=0;r<n.length;++r)e[t.length+r]=n[r];return e}function c(t){return[...t]}function h(t){const n=(0,i.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},70328(t,n,e){e.d(n,{BI:()=>j,C:()=>o,DC:()=>f,Ej:()=>b,Ie:()=>A,Jt:()=>P,Lu:()=>_,Ne:()=>I,RF:()=>l,TF:()=>y,VL:()=>d,aI:()=>C,fA:()=>a,gE:()=>c,gX:()=>g,hZ:()=>w,iT:()=>p,is:()=>R,pg:()=>v,uJ:()=>M,vI:()=>x,vY:()=>u,vt:()=>s,w1:()=>h,yr:()=>m}),e(35522);var r=e(5443),i=(e(19419),e(4197));function s(t=O){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,n){for(let e=0;e<6;e++)t[e]=n[e];return t}function a(t,n,e,r,i,o,a=s()){return a[0]=t,a[1]=n,a[2]=e,a[3]=r,a[4]=i,a[5]=o,a}function u(t,n=s()){return function(t,n,e,r=s()){return w(r,S),function(t,n,e=0,r=n.length/3){let i=t[0],s=t[1],o=t[2],a=t[3],u=t[4],c=t[5];for(let t=0;t<r;t++)i=Math.min(i,n[e+3*t]),s=Math.min(s,n[e+3*t+1]),o=Math.min(o,n[e+3*t+2]),a=Math.max(a,n[e+3*t]),u=Math.max(u,n[e+3*t+1]),c=Math.max(c,n[e+3*t+2]);t[0]=i,t[1]=s,t[2]=o,t[3]=a,t[4]=u,t[5]=c}(r,t,n,e),r}(t,0,t.length/3,n)}function c(t,n=(0,i.jh)(24)){const[e,r,s,o,a,u]=t;return n[0]=e,n[1]=r,n[2]=s,n[3]=e,n[4]=r,n[5]=u,n[6]=e,n[7]=a,n[8]=s,n[9]=e,n[10]=a,n[11]=u,n[12]=o,n[13]=r,n[14]=s,n[15]=o,n[16]=r,n[17]=u,n[18]=o,n[19]=a,n[20]=s,n[21]=o,n[22]=a,n[23]=u,n}function h(t,n){const e=isFinite(t[2])||isFinite(t[5]);return new r.A(e?{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}:{xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function l(t,n,e=t){e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e[4]=Math.max(t[4],n[4]),e[5]=Math.max(t[5],n[5])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function p(t,[n,e,r]){!function(t,n,e,r){t[0]=Math.min(t[0],n),t[1]=Math.min(t[1],e),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],n),t[4]=Math.max(t[4],e),t[5]=Math.max(t[5],r)}(t,n,e,r)}function d(t){return t[0]>=t[3]?0:t[3]-t[0]}function m(t){return t[1]>=t[4]?0:t[4]-t[1]}function M(t){return t[2]>=t[5]?0:t[5]-t[2]}function y(t){const n=d(t),e=M(t),r=m(t);return n*n+e*e+r*r}function g(t,n=[0,0,0]){return n[0]=t[0]+d(t)/2,n[1]=t[1]+m(t)/2,n[2]=t[2]+M(t)/2,n}function b(t,n=[0,0,0]){return n[0]=d(t),n[1]=m(t),n[2]=M(t),n}function v(t,n){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function _(t,n){return n[0]=t[3],n[1]=t[4],n[2]=t[5],n}function I(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function x(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function w(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function A(t){return t?w(t,S):s(S)}function P(t,n){return t[0]=n[0],t[1]=n[1],t[2]=Number.NEGATIVE_INFINITY,t[3]=n[2],t[4]=n[3],t[5]=Number.POSITIVE_INFINITY,t}function j(t,n,e,r,i){return t[0]=n,t[1]=e,t[2]=Number.NEGATIVE_INFINITY,t[3]=r,t[4]=i,t[5]=Number.POSITIVE_INFINITY,t}function R(t){return 6===t.length}function C(t,n,e){if(null==t||null==n)return t===n;if(!R(t)||!R(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const S=[1/0,1/0,1/0,-1/0,-1/0,-1/0],O=[0,0,0,0,0,0];s(),e.d(n,["qv",0,S,"v_",0,O])},60408(t,n,e){function r(t){return void 0!==t.xmin&&void 0!==t.ymin&&void 0!==t.xmax&&void 0!==t.ymax}function i(t){return void 0!==t.points}function s(t){return void 0!==t.x&&void 0!==t.y}function o(t){return void 0!==t.paths||void 0!==t.curvePaths}function a(t){return void 0!==t.rings||void 0!==t.curveRings}function u(t){return"object"==typeof t&&"vertexAttributes"in t}function c(t){return t?s(t)?"esriGeometryPoint":o(t)?"esriGeometryPolyline":a(t)?"esriGeometryPolygon":r(t)?"esriGeometryEnvelope":i(t)?"esriGeometryMultipoint":null:null}function h(t){return null!=t&&("hasZ"in t&&t.hasZ||"z"in t&&null!=t.z)}function l(t){return null!=t&&("hasM"in t&&t.hasM||"m"in t&&null!=t.m)}e.d(n,{$B:()=>c,Bi:()=>a,Pv:()=>h,Rg:()=>o,U9:()=>i,W0:()=>l,ZC:()=>r,fT:()=>s,uW:()=>u})},71351(t,n,e){e.d(n,{C:()=>h,Cr:()=>l,LV:()=>c,fA:()=>f,vt:()=>a}),e(4576);var r=e(4341),i=(e(77690),e(29242)),s=e(35522),o=e(51850);function a(t){return t?u((0,o.o8)(t.origin),(0,o.o8)(t.direction)):u((0,o.vt)(),(0,o.vt)())}function u(t,n){return{origin:t,direction:n}}function c(t,n){const e=p.get();return e.origin=t,e.direction=n,e}function h(t,n=a()){return f(t.origin,t.direction,n)}function l(t,n,e=a()){return(0,s.C)(e.origin,t),(0,s.Re)(e.direction,n,t),e}function f(t,n,e=a()){return(0,s.C)(e.origin,t),(0,s.C)(e.direction,n),e}e(32114);const p=new r.I(()=>a());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,i.vt)()},32114(t,n,e){e.d(n,{Rc:()=>p,rq:()=>l,Km:()=>f}),e(44208);var r=e(26390),i=e(29242),s=e(9093),o=e(82534),a=e(48163),u=e(51850),c=e(91829);class h{constructor(t){this._create=t,this._items=new Array,this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){const t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new h(a.vt)}static createVec3f64(){return new h(u.vt)}static createVec4f64(){return new h(c.vt)}static createMat3f64(){return new h(i.vt)}static createMat4f64(){return new h(s.vt)}static createQuatf64(){return new h(o.vt)}get test(){}}h.createVec2f64();const l=h.createVec3f64(),f=h.createVec4f64(),p=(h.createMat3f64(),h.createMat4f64());h.createQuatf64()},85648(t,n,e){e.d(n,{n:()=>i});var r=e(84952);function i(t){return s[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){const n=(0,r.Zo)(t);return u[n]||o}(t.url)}(t)]||a}const s={},o="text/plain",a=s[o],u={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(const t in u)s[u[t]]=t},24212(t,n,e){e.d(n,{$7:()=>u,B:()=>a,M7:()=>l,XF:()=>h,tW:()=>c,w7:()=>o});var r=e(56512),i=e(86211),s=e(16271);function o(t,n){return function(t,n){return n?.mode?n.mode:function(t){return t?f:p}(t).mode}(null==t||(t.hasZ??!1),n)}function a(t,n,e){return e&&e.mode!==n?`${t} only support ${n} elevation mode`:null}function u(t,n,e){return e?.mode===n?`${t} do not support ${n} elevation mode`:null}function c(t,n){return null!=n?.featureExpressionInfo&&"0"!==n.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function h(t,n){n&&t.warn(".elevationInfo=",n)}function l(t){return(t?.offset??0)*(0,s.Ao)(t?.unit)}(0,r.B)((t,n,e)=>{if(!t)return 0;if("decimal-degrees"===n)return 0;const r="unknown"!==n&&n?n:"meters",s=(0,i.mq)(e);return s?(0,i.oU)(t,r,s):0});const f={mode:"absolute-height",offset:0},p={mode:"on-the-ground",offset:null}},49718(t,n,e){e(51850),e(6867).w_},6867(t,n,e){e.d(n,{w_:()=>l});var r=e(58083),i=e(9093),s=e(35522),o=e(51850),a=e(78955),u=e(91829),c=e(71351);class h{constructor(){this.intersector=4}get distance(){return this._distance}get renderDistance(){return this._renderDistance}_init(){this._distance=this._renderDistance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4}_setBase(t,n,e,r=null,i=null,s=null){this.intersector=t,this._distance=e,this._renderDistance=r,this.target=n,this.drapedLayerOrder=i,this.renderPriority=s}}class l extends h{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,s.hs)(p,this.ray.direction,this.distance),(0,s.Bw)(p))}withinDistance(t){return!!f(this)&&null!=this.distanceInRenderSpace&&this.distanceInRenderSpace<=t}getIntersectionPoint(t){return!!f(this)&&((0,s.hs)(p,this.ray.direction,this.distance),(0,s.WQ)(t,this.ray.origin,p),!0)}getTransformedNormal(t){return(0,s.C)(d,this.normal),d[3]=0,(0,a.Z0)(d,d,this.transformation),(0,s.C)(t,d),(0,s.S8)(t,t)}constructor(t){super(),this.normal=(0,o.vt)(),this.transformation=(0,i.vt)(),this._ray=(0,c.vt)(),this.init(t)}init(t){super._init(),t&&(0,c.C)(t,this._ray)}set(t,n,e,a,u,c,h,l){this._setBase(t,n,e,a,h,l),(0,s.C)(this.normal,u??o.Cb),(0,r.C)(this.transformation,c??i.zK)}copy(t){this._setBase(t.intersector,t.target,t.distance,t.renderDistance,t.drapedLayerOrder,t.renderPriority),(0,c.C)(t.ray,this._ray),(0,s.C)(this.normal,t.normal),(0,r.C)(this.transformation,t.transformation)}}function f(t){return null!=t?.distance&&null!=t?.renderDistance}const p=(0,o.vt)(),d=(0,u.vt)()},78553(t,n,e){e.d(n,{D:()=>s,p:()=>i});var r=e(56507);function i(t){const n=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(n,100))}function s(t){const n=1-t/100;return Math.max(0,Math.min(n,1))}}}]);
|