@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,5411,7745,9397],{52106(e,t,r){r.d(t,{A:()=>I});var n,i,o=r(32198),s=r(37838),a=r(69540),l=r(51447),u=r(25482),p=r(53966),c=r(36708),d=r(24326),y=r(91429),f=r(12195),h=r(65864),m=r(50498),g=r(55156),w=r(60950),b=r(54339),v=r(94128),S=r(33910);const C=Symbol("meshGeometryHandles");function x(e){if(null==e)return null;const t={};for(const r in e){const n=e[r];n&&(t[r]=n.toJSON())}return 0!==Object.keys(t).length?t:null}let I=class extends((0,a.OU)(u.o)){static{n=v.Z}static{i=this}constructor(e){super(e),this[n]=!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,l.eF)(p.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 i({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,w.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,g.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,g.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:x(this.aggregateGeometries),geometry:this.geometry?.toJSON()??null,symbol:this.symbol?.toJSON()??null,attributes:(0,f.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,n){if(this._version++,!this.layer||!("graphicChanged"in this.layer))return;const i={graphic:this,property:e,oldValue:t,newValue:r};"origin-transform"===e&&(i.action=n),"attributes"===e&&(i.attributeName=n),this.layer.graphicChanged(i)}_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 n=(0,h.rS)(e[r]);n&&(t[r]=n)}return 0!==Object.keys(t).length?t:null}}})],I.prototype,"aggregateGeometries",null),(0,o.Cg)([(0,y.MZ)({value:null})],I.prototype,"attributes",null),(0,o.Cg)([(0,y.MZ)({value:null,types:m.yR,json:{read:h.rS}})],I.prototype,"geometry",null),(0,o.Cg)([(0,y.MZ)()],I.prototype,"distance",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean})],I.prototype,"isAggregate",void 0),(0,o.Cg)([(0,y.MZ)({clonable:!1})],I.prototype,"layer",void 0),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],I.prototype,"origin",void 0),(0,o.Cg)([(0,y.MZ)({type:s.A,value:null})],I.prototype,"popupTemplate",null),(0,o.Cg)([(0,y.MZ)({clonable:"reference"})],I.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)}})],I.prototype,"statisticsAggregatedIds",void 0),(0,o.Cg)([(0,y.MZ)({value:null,types:S.Es})],I.prototype,"symbol",null),(0,o.Cg)([(0,y.MZ)({clonable:!1,json:{read:!1,write:!1}})],I.prototype,"_version",void 0),(0,o.Cg)([(0,y.MZ)({type:Boolean,value:!0})],I.prototype,"visible",null),I=i=(0,o.Cg)([(0,y.$K)("esri.Graphic")],I)},19334(e,t,r){r.d(t,{e:()=>s});var n=r(54639),i=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,i.e6)(e))return null;break;case"polygon":if((0,i.Wq)(e))return null;break;case"polyline":if((0,i.IY)(e))return null;break;case"multipoint":if((0,i.DG)(e))return null;break;case"extent":if((0,i.As)(e))return null;break;default:return null}const t=n.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:()=>u,p:()=>p});var n=r(54639),i=r(14112),o=r(16930),s=r(60408),a=r(65864);class l{constructor(e){this._geometry=e}toJsonGeometry(){return this._geometry}toAccessorGeometry(e){const t=(0,a.rS)(this._geometry);return t.spatialReference=e,t}toGxGeometry(e){return e.fromJsonGeometry(this._geometry)}}function u(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)?p("point",e,r):(0,s.Rg)(e)?p("polyline",e,r):(0,s.Bi)(e)?p("polygon",e,r):(0,s.U9)(e)?p("multipoint",e,r):(0,s.ZC)(e)?p("extent",e,r):null}function p(e,t,r){if(null==t)return null;let o=!1,s=!1;switch(e){case"point":if((0,i.e6)(t))return null;o=void 0!==t.z,s=void 0!==t.m;break;case"polygon":if((0,i.Wq)(t))return null;o=!0===t.hasZ,s=!0===t.hasM;break;case"polyline":if((0,i.IY)(t))return null;o=!0===t.hasZ,s=!0===t.hasM;break;case"multipoint":if((0,i.DG)(t))return null;o=!0===t.hasZ,s=!0===t.hasM;break;case"extent":if((0,i.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 n.R.of(e,r,o,s,new l(t))}},14112(e,t,r){function n(e){return"NaN"===e.x||null===e.x||isNaN(e.x)}function i(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 a(e){return"NaN"===e.xmin||null===e.xmin||isNaN(e.xmin)}r.d(t,{As:()=>a,DG:()=>s,IY:()=>o,Wq:()=>i,e6:()=>n})},6797(e,t,r){r.d(t,{Ui:()=>d});var n=r(69622),i=r(7762),o=r(88620);const s=new Set(["esri.Color","esri.portal.Portal","esri.symbols.support.Symbol3DAnchorPosition2D","esri.symbols.support.Symbol3DAnchorPosition3D"]);function a(e){return e instanceof n.A}function l(e){return e instanceof i.A?Object.keys(e.items):a(e)?(0,o.oY)(e).keys():e?Object.keys(e):[]}function u(e,t){return e instanceof i.A?e.items[t]:e[t]}function p(e){return e?e.declaredClass:null}function c(e,t){const r=e.diff;if(r&&"function"==typeof r)return r(e,t);const n=l(e),i=l(t);if(0===n.length&&0===i.length)return;if(!n.length||!i.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=i.filter(e=>!n.includes(e)),d=n.filter(e=>!i.includes(e)),y=n.filter(r=>i.includes(r)&&u(e,r)!==u(t,r)).concat(o,d).sort(),f=p(e);if(f&&s.has(f)&&y.length)return{type:"complete",oldValue:e,newValue:t};let h;const m=a(e)&&a(t);for(const n of y){const i=u(e,n),o=u(t,n);let s;if((m||"function"!=typeof i&&"function"!=typeof o)&&i!==o&&(null!=i||null!=o)){if(r&&r[n]&&"function"==typeof r[n])s=r[n]?.(i,o);else if(i instanceof Date&&o instanceof Date){if(i.getTime()===o.getTime())continue;s={type:"complete",oldValue:i,newValue:o}}else s="object"==typeof i&&"object"==typeof o&&p(i)===p(o)?c(i,o):{type:"complete",oldValue:i,newValue:o};null!=s&&(null!=h?h.diff[n]=s:h={type:"partial",diff:{[n]:s}})}}return h}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&&p(e)!==p(t)?{type:"complete",oldValue:e,newValue:t}:c(e,t)}},67482(e,t,r){function n(e){return null!==i(e)}function i(e){return function(e){const t=o.exec(e);if(!t?.groups)return null;const r=t.groups,n=+r.year,i=+r.month-1,s=+r.day,a=+(r.hours??"0"),l=+(r.minutes??"0"),u=+(r.seconds??"0");if(a>23)return null;if(l>59)return null;if(u>59)return null;const p=r.ms??"0",c=p?+p.padEnd(3,"0").slice(0,3):0;let d;if(r.isUTC||!r.offsetSign)d=Date.UTC(n,i,s,a,l,u,c);else{const e=+r.offsetHours,t=+r.offsetMinutes;d=6e4*("+"===r.offsetSign?-1:1)*(60*e+t)+Date.UTC(n,i,s,a,l,u,c)}return Number.isNaN(d)?null:d}(e)??function(e){const t=new Date(e),r=t.getTime();return Number.isNaN(r)?null:e.toLowerCase()===t.toUTCString().toLowerCase()?r:null}(e)??function(e){if(!s.test(e))return null;const t=new Date(e);return Number.isNaN(t.getTime())?null:t.getTime()-6e4*t.getTimezoneOffset()}(e)}r.d(t,{C:()=>n,_:()=>i});const o=/^(?:(?<year>-?\d{4,})-(?<month>\d{2})-(?<day>\d{2}))(?:T(?<hours>\d{2}):(?<minutes>\d{2}):(?<seconds>\d{2})(?:\.(?<ms>\d+))?)?(?:(?<isUTC>Z)|(?:(?<offsetSign>\+|-)(?<offsetHours>\d{2}):(?<offsetMinutes>\d{2})))?$/,s=/^((\d{1,2}[/-]\d{1,2}[/-]\d{4})|(\d{4}[/-]\d{1,2}[/-]\d{1,2}))( \d{1,2}:\d{1,2}:\d{1,2}( ((AM)|(PM)))?)?$/i},69397(e,t,r){r.d(t,{Qf:()=>a,Qh:()=>o,lM:()=>i});var n=r(34275);function i(e){if(!e)return 0;let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=s(e[r],!1));return t}function o(e){if(!e)return 0;if("number"==typeof e[0])return a(e);if(Array.isArray(e))return function(e){const t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=p;for(let n=0;n<t;n++)r+=s(e[n]);return r}(e);let t=u;for(const r in e)e.hasOwnProperty(r)&&(t+=s(e[r]));return t}function s(e,t=!0){switch(typeof e){case"object":return t?o(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function a(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+c:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return p+e.length*t}const u=32,p=16,c=145},83027(e,t,r){const n=r(29953).ho;r.d(t,["h",0,n])},55156(e,t,r){r.d(t,{I:()=>i});const n=Symbol("idFieldsProviderSymbol");function i(e){return(t=e)&&n in t?e[n]:void 0;var t}r.d(t,["e",0,n])},21901(e,t,r){r.r(t),r.d(t,{default:()=>ie});var n=r(32198),i=r(37838),o=r(25728),s=r(93637),a=r(84952),l=r(91429),u=r(56507),p=r(5443),c=r(16930),d=r(50498),y=r(55156),f=r(60950),h=r(89808),m=r(99959);const g=Symbol("isWFSGraphicOrigin");var w;class b extends m.A{get[(w=g,f.ym)](){return this.layer}get[y.e](){return this.layer}get[h.Q](){return this.layer}constructor(e){super(),this[w]=!0,this.type="wfs",this.layer=e}get id(){return this.layer.id}}var v=r(4146),S=r(49186),C=r(44208),x=r(92474),I=r(53966),T=r(17676),M=r(83027),A=r(64714),P=r(34322),F=r(37745),E=r(22671);r(98623);let N=class extends x.x_{constructor(){super(...arguments),this._connection=null,this._workerHandler=null,this.capabilities=(0,A.f)(!1,!1),this.type="wfs",this.refresh=(0,T.sg)(async()=>{await this.load();const e={customParameters:this.layer.customParameters,maxRecordCount:this.layer.maxRecordCount,maxTotalRecordCount:this.layer.maxTotalRecordCount,maxPageCount:this.layer.maxPageCount},{extent:t}=await this._workerHandler.refresh(e);return t&&(this.sourceJSON.extent=t),{dataChanged:!0,updates:{extent:this.sourceJSON.extent}}})}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this._startWorker({signal:t})),Promise.resolve(this)}destroy(){this._connection?.close(),this._connection=null,this._workerHandler=null}async openPorts(){return await this.load(),this._connection.openPorts()}async queryFeatures(e,t={}){const r=await this.queryFeaturesJSON(e,t);return E.A.fromJSON(r)}async queryFeaturesJSON(e,t={}){return await this.load(t),this._workerHandler.queryFeatures(e?e.toJSON():void 0,t)}async queryFeatureCount(e,t={}){return await this.load(t),this._workerHandler.queryFeatureCount(e?e.toJSON():void 0,t)}async queryObjectIds(e,t={}){return await this.load(t),this._workerHandler.queryObjectIds(e?e.toJSON():void 0,t)}async queryExtent(e,t={}){await this.load(t);const r=await this._workerHandler.queryExtent(e?e.toJSON():void 0,t);return{count:r.count,extent:p.A.fromJSON(r.extent)}}async querySnapping(e,t={}){return await this.load(t),this._workerHandler.querySnapping(e,t)}async queryAttributeBins(e,t={}){await this.load(t);const r=await this._workerHandler.queryAttributeBins(e?.toJSON(),t);return F.default.fromJSON(r)}async _createLoadOptions(e){const{url:t,customParameters:r,name:n,namespaceUri:i,fields:o,geometryType:s,maxRecordCount:a,maxPageCount:l,maxTotalRecordCount:u,swapXY:p}=this.layer,c="defaults"===this.layer.originOf("spatialReference")?void 0:this.layer.spatialReference;if(!t)throw new S.A("wfs-layer:missing-url","WFSLayer must be created with a url");this.wfsCapabilities||(this.wfsCapabilities=await(0,P.Fu)(t,{customParameters:r,...e}));const y=["fields","geometryType","name","namespaceUri","swapXY"].some(e=>null==this.layer[e]),f=y?await(0,P.O8)(this.wfsCapabilities,n,i,{spatialReference:c,customParameters:r,signal:e?.signal}):{...(0,P.YW)(o??[]),geometryType:s,name:n,namespaceUri:i,spatialReference:c,swapXY:p},h=(0,P.mG)(this.wfsCapabilities.readFeatureTypes(),f.name,f.namespaceUri),m=d.gy.toJSON(f.geometryType),{operations:g}=this.wfsCapabilities,w=g.GetFeature.url,b=g.GetFeature.outputFormat;return{customParameters:r,featureType:h,fields:f.fields?.map(e=>e.toJSON())??[],geometryField:f.geometryField,geometryType:m,getFeatureUrl:w,getFeatureOutputFormat:b,maxRecordCount:a,maxPageCount:l,maxTotalRecordCount:u,objectIdField:f.objectIdField,spatialReference:f.spatialReference?.toJSON(),swapXY:!!f.swapXY}}async _startWorker(e){const[t,r]=await(0,T.Lx)([this._createLoadOptions(e),(0,M.h)("WFSSourceWorker",{...e,strategy:(0,C.A)("feature-layers-workers")?"dedicated":"local",registryTarget:this})]),n=t.error||r.error||null,i=r.value||null;if(n)throw i&&i.close(),n;const o=t.value;this._connection=r.value,this._workerHandler=this._connection.createInvokeProxy();const s=await this._workerHandler.load(o,e);for(const e of s.warnings)I.A.getLogger(this.layer).warn("#load()",`${e.message} (title: '${this.layer.title||"no title"}', id: '${this.layer.id??"no id"}')`,{warning:e});this.sourceJSON={dateFieldsTimeReference:{timeZoneIANA:"UTC"},extent:s.extent,fields:o.fields,geometryType:o.geometryType,objectIdField:o.objectIdField,geometryField:o.geometryField,drawingInfo:(0,A.F0)(o.geometryType),name:o.featureType.title,wfsInfo:{name:o.featureType.name,featureUrl:o.getFeatureUrl,maxFeatures:o.maxRecordCount,swapXY:o.swapXY,supportedSpatialReferences:o.featureType.supportedSpatialReferences,version:"2.0.0",wfsNamespace:o.featureType.namespaceUri}}}};(0,n.Cg)([(0,l.MZ)()],N.prototype,"capabilities",void 0),(0,n.Cg)([(0,l.MZ)({constructOnly:!0})],N.prototype,"layer",void 0),(0,n.Cg)([(0,l.MZ)()],N.prototype,"sourceJSON",void 0),(0,n.Cg)([(0,l.MZ)()],N.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)()],N.prototype,"wfsCapabilities",void 0),N=(0,n.Cg)([(0,l.$K)("esri.layers.graphics.sources.WFSSource")],N);var O,R=r(63074),Z=r(69208),L=r(6455),j=r(87718),G=r(56658),_=r(34287),k=r(32756),U=r(8303),D=r(54310),z=r(25036),q=r(82935),V=r(10873),$=r(15426),B=r(20437),J=r(17036),W=r(30524),Y=r(46499),H=r(39383),K=r(41214),Q=r(97552),X=r(30291),ee=r(56400),te=r(43937);const re=(0,J.p)();let ne=O=class extends((0,k.fY)((0,L.FJ)((0,Z.d)((0,G.J)((0,j.F)((0,R.dM)((0,D.J)((0,z.j)((0,_.q)((0,U.A)((0,o.M)(v.A)))))))))))){static fromWFSLayerInfo(e){const{customParameters:t,fields:r,geometryField:n,geometryType:i,name:o,namespaceUri:s,objectIdField:a,spatialReference:l,swapXY:u,url:p,wfsCapabilities:c}=e;return new O({customParameters:t,fields:r,geometryField:n,geometryType:i,name:o,namespaceUri:s,objectIdField:a,spatialReference:l,swapXY:u,url:p,wfsCapabilities:c})}constructor(e){super(e),this.copyright=null,this.customParameters=null,this.dateFieldsTimeZone=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.featureUrl=void 0,this.fields=null,this.fieldsIndex=null,this.fullExtent=null,this.geometryType=null,this.graphicOrigin=new b(this),this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.objectIdField=null,this.operationalLayerType="WFS",this.maxRecordCount=3e3,this.maxPageCount=10,this.maxTotalRecordCount=2e5,this.mode=0,this.name=null,this.namespaceUri=null,this.outFields=null,this.popupEnabled=!0,this.popupTemplate=null,this.screenSizePerspectiveEnabled=!0,this.source=new N({layer:this}),this.spatialReference=c.A.WGS84,this.spatialReferences=[4326],this.swapXY=void 0,this.title="WFS",this.type="wfs",this.url=null,this.useViewTime=!0,this.version=void 0}destroy(){this.source?.destroy()}load(e){return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WFS"]},e).then(()=>this.source.load(e)).then(()=>{this.read(this.source.sourceJSON,{origin:"service",url:this.parsedUrl}),["objectIdField","fields","spatialReference","name","namespaceUri"].forEach(e=>this.revertToOrigin(e,"service")),(0,W.yp)(this.renderer,this.fieldsIndex)})),Promise.resolve(this)}get capabilities(){return this.source?.capabilities}get createQueryVersion(){return this.commitProperty("definitionExpression"),this.commitProperty("geometryType"),this.commitProperty("capabilities"),(this._get("createQueryVersion")||0)+1}get defaultPopupTemplate(){return this.createPopupTemplate()}writeFields(e,t,r){const n=e.filter(e=>e.name!==P.i5);this.geometryField&&n.unshift(new B.A({name:this.geometryField,alias:this.geometryField,type:"geometry"})),(0,s.sM)(r,n.map(e=>e.toJSON()),t)}get parsedUrl(){return(0,a.An)(this.url)}set renderer(e){(0,W.yp)(e,this.fieldsIndex),this._set("renderer",e)}get wfsCapabilities(){return this.source?.wfsCapabilities}set wfsCapabilities(e){this.source&&(this.source.wfsCapabilities=e)}createPopupTemplate(e){return(0,X.tn)(this,e)}createQuery(){return new Q.A({returnGeometry:!0,outFields:["*"],where:this.definitionExpression||"1=1"})}getFieldDomain(e,t){return this.getField(e)?.domain}getField(e){return this.fieldsIndex?.get(e)}queryFeatures(e,t){return this.load().then(()=>this.source.queryFeatures(Q.A.from(e)||this.createQuery(),t)).then(e=>{if(e?.features)for(const t of e.features)t.layer=t.sourceLayer=this,t.origin=this.graphicOrigin;return e})}queryObjectIds(e,t){return this.load().then(()=>this.source.queryObjectIds(Q.A.from(e)||this.createQuery(),t))}queryFeatureCount(e,t){return this.load().then(()=>this.source.queryFeatureCount(Q.A.from(e)||this.createQuery(),t))}queryExtent(e,t){return this.load().then(()=>this.source.queryExtent(Q.A.from(e)||this.createQuery(),t))}async queryAttributeBins(e,t){const{source:n,capabilities:i}=await this.load();(0,$.ZJ)(e,i,"WFSLayer");const o=await r.e(4575).then(r.bind(r,14575)),s=await n.queryAttributeBins(o.default.from(e),t);if(s.features)for(const e of s.features)e.layer=e.sourceLayer=this;return s}async hasDataChanged(){try{const{dataChanged:e,updates:t}=await this.source.refresh();return null!=t&&this.read(t,{origin:"service",url:this.parsedUrl,ignoreDefaults:!0}),e}catch{}return!1}};(0,n.Cg)([(0,l.MZ)({readOnly:!0})],ne.prototype,"capabilities",null),(0,n.Cg)([(0,l.MZ)({type:String})],ne.prototype,"copyright",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],ne.prototype,"createQueryVersion",null),(0,n.Cg)([(0,l.MZ)({json:{name:"wfsInfo.customParameters",write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0),ignoreOrigin:!0})}}})],ne.prototype,"customParameters",void 0),(0,n.Cg)([(0,l.MZ)((0,ee.P6)("dateFieldsTimeReference"))],ne.prototype,"dateFieldsTimeZone",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],ne.prototype,"defaultPopupTemplate",null),(0,n.Cg)([(0,l.MZ)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],ne.prototype,"definitionExpression",void 0),(0,n.Cg)([(0,l.MZ)({type:String})],ne.prototype,"displayField",void 0),(0,n.Cg)([(0,l.MZ)(V.Yj)],ne.prototype,"elevationInfo",void 0),(0,n.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{name:"wfsInfo.featureUrl",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"featureUrl",void 0),(0,n.Cg)([(0,l.MZ)({type:[B.A],json:{name:"layerDefinition.fields",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"fields"}}}})],ne.prototype,"fields",void 0),(0,n.Cg)([(0,te.K)("fields")],ne.prototype,"writeFields",null),(0,n.Cg)([(0,l.MZ)(re.fieldsIndex)],ne.prototype,"fieldsIndex",void 0),(0,n.Cg)([(0,l.MZ)({type:p.A,json:{name:"extent"}})],ne.prototype,"fullExtent",void 0),(0,n.Cg)([(0,l.MZ)()],ne.prototype,"geometryField",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{read:{source:"layerDefinition.geometryType",reader:d.gy.read},write:{target:"layerDefinition.geometryType",writer:d.gy.write,ignoreOrigin:!0},origins:{service:{read:d.gy.read}}}})],ne.prototype,"geometryType",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0,clonable:!1})],ne.prototype,"graphicOrigin",void 0),(0,n.Cg)([(0,l.MZ)({type:String})],ne.prototype,"id",void 0),(0,n.Cg)([(0,l.MZ)(V.kF)],ne.prototype,"labelsVisible",void 0),(0,n.Cg)([(0,l.MZ)({type:[Y.A],json:{name:"layerDefinition.drawingInfo.labelingInfo",read:{reader:H.w},write:!0}})],ne.prototype,"labelingInfo",void 0),(0,n.Cg)([(0,l.MZ)(V.fV)],ne.prototype,"legendEnabled",void 0),(0,n.Cg)([(0,l.MZ)({type:["show","hide"]})],ne.prototype,"listMode",void 0),(0,n.Cg)([(0,l.MZ)({type:String})],ne.prototype,"objectIdField",void 0),(0,n.Cg)([(0,l.MZ)({type:["WFS"]})],ne.prototype,"operationalLayerType",void 0),(0,n.Cg)([(0,l.MZ)({type:u.jz,json:{name:"wfsInfo.maxFeatures",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"maxRecordCount",void 0),(0,n.Cg)([(0,l.MZ)({type:u.jz})],ne.prototype,"maxPageCount",void 0),(0,n.Cg)([(0,l.MZ)({type:u.jz})],ne.prototype,"maxTotalRecordCount",void 0),(0,n.Cg)([(0,l.MZ)({type:[0],readOnly:!0,json:{origins:{"web-map":{write:{ignoreOrigin:!0,isRequired:!0}}}}})],ne.prototype,"mode",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{name:"wfsInfo.name",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"name",void 0),(0,n.Cg)([(0,l.MZ)({type:String,json:{name:"wfsInfo.wfsNamespace",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"namespaceUri",void 0),(0,n.Cg)([(0,l.MZ)(V.Ih)],ne.prototype,"opacity",void 0),(0,n.Cg)([(0,l.MZ)(re.outFields)],ne.prototype,"outFields",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],ne.prototype,"parsedUrl",null),(0,n.Cg)([(0,l.MZ)(V.M6)],ne.prototype,"popupEnabled",void 0),(0,n.Cg)([(0,l.MZ)({type:i.A,json:{name:"popupInfo",write:!0}})],ne.prototype,"popupTemplate",void 0),(0,n.Cg)([(0,l.MZ)({types:K.Hg,json:{origins:{service:{name:"drawingInfo.renderer"},"web-scene":{types:K.XJ,name:"layerDefinition.drawingInfo.renderer",write:!0}},name:"layerDefinition.drawingInfo.renderer",write:{ignoreOrigin:!0}}})],ne.prototype,"renderer",null),(0,n.Cg)([(0,l.MZ)(V.PY)],ne.prototype,"screenSizePerspectiveEnabled",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0})],ne.prototype,"source",void 0),(0,n.Cg)([(0,l.MZ)({type:c.A,json:{name:"layerDefinition.spatialReference",write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"extent.spatialReference"}}}})],ne.prototype,"spatialReference",void 0),(0,n.Cg)([(0,l.MZ)({readOnly:!0,type:[u.jz],json:{name:"wfsInfo.supportedSpatialReferences",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"spatialReferences",void 0),(0,n.Cg)([(0,l.MZ)({type:Boolean,value:!1,json:{name:"wfsInfo.swapXY",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"swapXY",void 0),(0,n.Cg)([(0,l.MZ)({json:{write:{ignoreOrigin:!0,isRequired:!0},origins:{service:{name:"name"}}}})],ne.prototype,"title",void 0),(0,n.Cg)([(0,l.MZ)({json:{read:!1},readOnly:!0})],ne.prototype,"type",void 0),(0,n.Cg)([(0,l.MZ)(V.OZ)],ne.prototype,"url",void 0),(0,n.Cg)([(0,l.MZ)(q.B)],ne.prototype,"useViewTime",void 0),(0,n.Cg)([(0,l.MZ)({type:String,readOnly:!0,json:{name:"wfsInfo.version",write:{ignoreOrigin:!0,isRequired:!0}}})],ne.prototype,"version",void 0),(0,n.Cg)([(0,l.MZ)()],ne.prototype,"wfsCapabilities",null),ne=O=(0,n.Cg)([(0,l.$K)("esri.layers.WFSLayer")],ne);const ie=ne},43334(e,t,r){r.d(t,{N3:()=>a,Om:()=>s});var n=r(69397),i=r(27647),o=r(92722);class s{constructor(e,t,r,n,i=0,o=null,s=null){this.geometry=e,this.attributes=t,this.centroid=r,this.objectId=n,this.displayId=i,this.distance=o,this.vertexCount=s}static fromJSON(e){const t=e.geometry?o.A.fromJSON(e.geometry):null,r=e.centroid?o.A.fromJSON(e.centroid):null,n=e.objectId;return new s(t,e.attributes,r,n,void 0,e.distance,e.vertexCount)}weakClone(){return new s(this.geometry,this.attributes,this.centroid,this.objectId,this.displayId,this.distance,this.vertexCount)}clone(){return new s(this.geometry?.clone(),{...this.attributes},this.centroid?.clone(),this.objectId,this.displayId,this.distance,this.vertexCount)}ensureCentroid(e){return this.centroid??=(0,i.Q)(this.geometry),this.centroid}get usedMemory(){return 128+(0,n.lM)(this.attributes)+(this.geometry?.usedMemory??0)}}function a(e){return!!e.geometry?.coords?.length}},58512(e,t,r){r.d(t,{A:()=>n});class n{constructor(){this.globalIdFieldName=null,this.geohashFieldName=null,this.geometryProperties=null,this.geometryType=null,this.spatialReference=null,this.hasZ=!1,this.hasM=!1,this.features=[],this.fields=[],this.transform=null,this.exceededTransferLimit=!1,this.uniqueIdField=null,this.queryGeometryType=null,this.queryGeometry=null}weakClone(){const e=new n;return e.globalIdFieldName=this.globalIdFieldName,e.geohashFieldName=this.geohashFieldName,e.geometryProperties=this.geometryProperties,e.geometryType=this.geometryType,e.spatialReference=this.spatialReference,e.hasZ=this.hasZ,e.hasM=this.hasM,e.features=this.features,e.fields=this.fields,e.transform=this.transform,e.exceededTransferLimit=this.exceededTransferLimit,e.uniqueIdField=this.uniqueIdField,e.queryGeometry=this.queryGeometry,e.queryGeometryType=this.queryGeometryType,e}}},92722(e,t,r){r.d(t,{A:()=>i});var n=r(69397);class i{constructor(e=[],t=[],r=!1,n=!1){this.lengths=e??[],this.coords=t??[],this.hasZ=r,this.hasM=n}static fromJSON({lengths:e,coords:t,hasZ:r,hasM:n}){return new i(e,t,r||!1,n||!1)}static fromRect([e,t,r,n]){const o=r-e,s=n-t;return new i([5],[e,t,o,0,0,s,-o,0,0,-s])}get isPoint(){return 0===this.lengths.length&&this.coords.length>=2}get maxLength(){return Math.max(...this.lengths)}get size(){return this.isPoint?1:this.lengths.reduce((e,t)=>e+t,0)}get usedMemory(){return 64+(0,n.Qf)(this.lengths,this.coords)}get stride(){return 2+(this.hasZ?1:0)+(this.hasM?1:0)}area(){if(this.isPoint)return 0;let e=0,t=0;for(const r of this.lengths){if(r<3)continue;const{stride:n}=this;let i=this.coords[n*t],o=this.coords[n*t+1];for(let s=1;s<r;s+=1){const r=n*(t+s),a=this.coords[r],l=this.coords[r+1];e+=-.5*(a-i)*(l+o),i=a,o=l}t+=r}return e}forEachVertex(e){let t=0;if(this.isPoint)return e(this.coords[0],this.coords[1]);const{stride:r}=this;for(const n of this.lengths){for(let i=0;i<n;i++){const n=r*(t+i);e(this.coords[n],this.coords[n+1])}t+=n}}deltaDecode(){const e=this.clone(),{coords:t,lengths:r}=e;let n=0;const{stride:i}=this;for(const e of r){for(let r=1;r<e;r++){const e=i*(n+r);t[e]+=t[e-i],t[e+1]+=t[e+1-i]}n+=e}return e}clone(e){if(this.isPoint)return new i([],Array.from(this.coords.slice(0,this.stride)),this.hasZ,this.hasM);const t=Array.from(this.lengths),{stride:r,size:n}=this,o=this.coords.slice(0,n*r);return e?(e.set(o),new i(t,e,this.hasZ,this.hasM)):new i(t,Array.from(o),this.hasZ,this.hasM)}justXY(){const{stride:e,size:t}=this;if(2===e)return this;const r=new Array(t*e);for(let t=0,n=0;t<r.length;t+=e)r[n++]=this.coords[t],r[n++]=this.coords[t+1];return new i(this.lengths,r,!1,!1)}}},27647(e,t,r){r.d(t,{Q:()=>o});var n=r(92722);function i(e,t){return e?t?4:3:t?3:2}function o(e){if(null==e)return null;if(!e?.lengths.length)return null;const{lengths:t,coords:r,stride:i,hasZ:o,hasM:l}=e,u=new n.A([],[],o,!1),p=u.coords,c=[],d=o?[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY]:[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];let y=0;for(const e of t){const t=s(d,r,y,e,o,l);t&&c.push(t),y+=e*i}if(c.sort((e,t)=>{let r=e[2]-t[2];return 0===r&&o&&(r=e[4]-t[4]),r}),c.length){let e=6*c[0][2];p[0]=c[0][0]/e,p[1]=c[0][1]/e,o&&(e=6*c[0][4],p[2]=0!==e?c[0][3]/e:0),(p[0]<d[0]||p[0]>d[1]||p[1]<d[2]||p[1]>d[3]||o&&(p[2]<d[4]||p[2]>d[5]))&&(p.length=0)}if(!p.length){const n=e.lengths[0]?a(r,0,t[0],o,l):null;if(!n)return null;p[0]=n[0],p[1]=n[1],o&&(p[2]=n[2]??0)}return u}function s(e,t,r,n,o,s){const a=i(o,s);let l=r,u=r+a,p=0,c=0,d=0,y=0,f=0;for(let r=0,i=n-1;r<i;r++,l+=a,u+=a){const r=t[l],n=t[l+1],i=t[l+2],s=t[u],a=t[u+1],h=t[u+2];let m=r*a-s*n;y+=m,p+=(r+s)*m,c+=(n+a)*m,o&&(m=r*h-s*i,d+=(i+h)*m,f+=m),r<e[0]&&(e[0]=r),r>e[1]&&(e[1]=r),n<e[2]&&(e[2]=n),n>e[3]&&(e[3]=n),o&&(i<e[4]&&(e[4]=i),i>e[5]&&(e[5]=i))}if(y>0&&(y*=-1),f>0&&(f*=-1),!y)return null;const h=[p,c,.5*y];return o&&(h[3]=d,h[4]=.5*f),h}function a(e,t,r,n,o){const s=i(n,o);let a=t,d=t+s,y=0,f=0,h=0,m=0;for(let t=0,i=r-1;t<i;t++,a+=s,d+=s){const t=e[a],r=e[a+1],i=e[a+2],o=e[d],s=e[d+1],g=e[d+2],w=n?u(t,r,i,o,s,g):l(t,r,o,s);if(w)if(y+=w,n){const e=c(t,r,i,o,s,g);f+=w*e[0],h+=w*e[1],m+=w*e[2]}else{const e=p(t,r,o,s);f+=w*e[0],h+=w*e[1]}}return y>0?n?[f/y,h/y,m/y]:[f/y,h/y]:r>0?n?[e[t],e[t+1],e[t+2]]:[e[t],e[t+1]]:null}function l(e,t,r,n){const i=r-e,o=n-t;return Math.sqrt(i*i+o*o)}function u(e,t,r,n,i,o){const s=n-e,a=i-t,l=o-r;return Math.sqrt(s*s+a*a+l*l)}function p(e,t,r,n){return[e+.5*(r-e),t+.5*(n-t)]}function c(e,t,r,n,i,o){return[e+.5*(n-e),t+.5*(i-t),r+.5*(o-r)]}},99352(e,t,r){r.d(t,["F",0,{supportsStatistics:!0,supportsPercentileStatistics:!0,supportsSpatialAggregationStatistics:!0,supportedSpatialAggregationStatistics:{envelope:!0,centroid:!0,convexHull:!0},supportsStatisticsAggregatedIds:!0,supportsCentroid:!0,supportsCentroidOnDegeneratedQuantizedGeometry:!0,supportsCacheHint:!0,supportsCurrentUser:!1,supportsDegeneratedQuantizedGeometry:!1,supportsDistance:!0,supportsOutDistance:!1,supportsDistinct:!0,supportsExtent:!0,supportsGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsPaginationOnAggregatedQueries:!1,supportsQuantization:!0,supportsQuantizationEditMode:!1,supportsQueryGeometry:!0,supportsResultType:!0,supportsReturnMesh:!1,supportsReturnExceededLimitGeometries:!1,supportsSqlExpression:!0,supportsMaxRecordCountFactor:!1,supportsStandardizedQueriesOnly:!0,supportsTopFeaturesQuery:!1,supportsQueryByAnonymous:!0,supportsQueryByOthers:!0,supportsHistoricMoment:!1,supportsFormatPBF:!1,supportsFormatPBFWithCurves:!1,supportsDisjointSpatialRelationship:!0,supportsDefaultSpatialReference:!1,supportsFullTextSearch:!1,supportsCompactGeometry:!1,maxRecordCountFactor:void 0,maxRecordCount:void 0,maxUniqueIDCount:void 0,relativeTimeBinWindow:0,standardMaxRecordCount:void 0,standardMaxRecordCountNoGeometry:void 0,tileMaxRecordCount:void 0,supportsTrueCurve:!1},"P",0,{supportsDate:!0,supportsFixedInterval:!0,supportsAutoInterval:!0,supportsFixedBoundaries:!0,supportsStackBy:!0,supportsSplitBy:!0,supportsSnapToData:!1,supportsReturnFullIntervalBin:!1,supportsFirstDayOfWeek:!1,supportsNormalization:!0,supportedStatistics:{count:!0,sum:!0,avg:!0,var:!0,stddev:!0,min:!0,max:!0,percentileContinuous:!0,percentileDiscrete:!0,envelope:!0,centroid:!0,convexHull:!0},supportedNormalizationTypes:{field:!0,log:!0,naturalLog:!0,percentOfTotal:!0,squareRoot:!0}}])},90708(e,t,r){r.d(t,{Ap:()=>A,B2:()=>m,DF:()=>C,Di:()=>R,E2:()=>O,IE:()=>h,Nl:()=>D,PR:()=>T,Rk:()=>W,Ux:()=>L,Ye:()=>F,ZF:()=>_,aQ:()=>B,jH:()=>U,jQ:()=>$,kz:()=>z,oN:()=>Z,q3:()=>k,qN:()=>x,zv:()=>j});var n=r(49186),i=r(53966),o=r(97768),s=r(70328),a=r(19419),l=r(60408),u=r(43334),p=r(58512),c=r(92722),d=r(54339);const y=()=>i.A.getLogger("esri.layers.graphics.featureConversionUtils"),f={esriGeometryPoint:0,esriGeometryPolyline:2,esriGeometryPolygon:3,esriGeometryMultipoint:0,esriGeometryMultiPatch:3,esriGeometryEnvelope:0};function h({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function m({scale:e,translate:t},r){return Math.round((t[1]-r)/e[1])}function g({scale:e,translate:t},r){return Math.round((r-t[0])/e[0])}function w({scale:e,translate:t},r){return Math.round((r-t[1])/e[1])}function b({scale:e,translate:t},r,n){return r*e[n]+t[n]}function v(e,t,r){return t&&(e.hasZ=!0),r&&(e.hasM=!0),e}function S(e,t,r,n){if(t&&n&&e!==r)return(t,r,n,i)=>{n[i++]=t[r++],n[i++]=t[r++],e?r++:n[i++]=0,n[i++]=t[r++]??0};const i=2+(r?1:0)+(n?1:0),o=i-((!e&&r?1:0)+(!t&&n?1:0));return(e,t,r,n)=>{for(let s=0;s<i;++s)r[n++]=s<o?e[t++]??0:0}}function C(e,t,r){if(!e)return null;const{coords:n,hasZ:i,hasM:o}=e,[s,a]=n,l=i?n[2]:0,u=o?n[2+(i?1:0)]:0;return{x:s,y:a,z:t?l:void 0,m:r?u:void 0}}function x(e,t=(0,l.Pv)(e),r=(0,l.W0)(e)){const{x:n,y:i,z:o,m:s}=e,a=[n,i];return t&&a.push(o??0),r&&a.push(s??0),new c.A([],a,t,r)}function I(e,t,r){if(null==e)return null;const{coords:n,stride:i,hasZ:o,hasM:s}=e,a=S(o,s,t,r),l=[];for(let e=0;e<n.length;e+=i){const t=[];a(n,e,t,0),l.push(t)}return v({points:l},t,r)}function T(e,t=(0,l.Pv)(e),r=(0,l.W0)(e)){const{points:n,hasZ:i,hasM:o}=e,s=new c.A([n.length],[],t,r),{coords:a,stride:u}=s;let p=0;const d=S(i??!1,o??!1,t,r);for(const e of n)d(e,0,a,p),p+=u;return s}function M(e,t,r){if(!e)return null;const{coords:n,lengths:i,stride:o,hasZ:s,hasM:a}=e;let l=0;const u=S(s,a,t,r),p=[];for(const e of i){const t=[];for(let r=0;r<e;r++){const e=[];u(n,l,e,0),l+=o,t.push(e)}p.push(t)}return v({paths:p},t,r)}function A(e,t=(0,l.Pv)(e),r=(0,l.W0)(e)){const{paths:n,hasZ:i,hasM:o}=e,s=S(i??!1,o??!1,t,r),a=new c.A([],[],t,r),{lengths:u,coords:p,stride:d}=a;let y=0;for(const e of n){for(const t of e)s(t,0,p,y),y+=d;u.push(e.length)}return a}function P(e,t,r){if(!e)return null;const{coords:n,lengths:i,stride:o,hasZ:s,hasM:a}=e;let l=0;const u=S(s,a,t,r),p=[];for(const e of i){const t=[];for(let r=0;r<e;r++){const e=[];u(n,l,e,0),l+=o,t.push(e)}p.push(t)}return v({rings:p},t,r)}function F(e,t=(0,l.Pv)(e),r=(0,l.W0)(e)){const{rings:n,hasZ:i,hasM:o}=e,s=new c.A([],[],t,r),{lengths:a,coords:u,stride:p}=s;let d=0;const y=S(i??!1,o??!1,t,r);for(const e of n){for(const t of e)y(t,0,u,d),d+=p;a.push(e.length)}return s}const E=[],N=[];function O(e,t,r,n,i){E[0]=e;const[o]=R(N,E,t,r,n,i);return Y(E),Y(N),o}function R(e,t,r,i,o,s){if(Y(e),!r){for(const r of t){const t=(0,d.W)(r,s);e.push(new u.Om(null,r.attributes,null,t,void 0,r.distance,r.vertexCount))}return e}switch(r){case"esriGeometryPoint":return function(e,t,r,n,i){for(const o of t){const{geometry:t,attributes:s,centroid:a}=o,p=(0,l.Pv)(t),c=(0,l.W0)(t);e.push(new u.Om(t?x(t,r&&p,n&&c):null,s,a?x(a,!1,!1):null,(0,d.W)(o,i),o.displayId,o.distance,o.vertexCount))}return e}(e,t,i,o,s);case"esriGeometryMultipoint":return function(e,t,r,n,i){for(const o of t){const{geometry:t,attributes:s}=o,a=(0,l.Pv)(t),p=(0,l.W0)(t);e.push(new u.Om(t?T(t,r&&a,n&&p):null,s,null,(0,d.W)(o,i),o.displayId,o.distance,o.vertexCount))}return e}(e,t,i,o,s);case"esriGeometryPolyline":return function(e,t,r,n,i){for(const o of t){const{geometry:t,attributes:s,centroid:a}=o,p=(0,l.Pv)(t),c=(0,l.W0)(t);e.push(new u.Om(t?A(t,r&&p,n&&c):null,s,a?x(a,!1,!1):null,(0,d.W)(o,i),o.displayId,o.distance,o.vertexCount))}return e}(e,t,i,o,s);case"esriGeometryPolygon":case"esriGeometryMultiPatch":return function(e,t,r,n,i){for(const o of t){const{geometry:t,attributes:s,centroid:a}=o,p=(0,l.Pv)(t),c=(0,l.W0)(t);e.push(new u.Om(t?F(t,r&&p,n&&c):null,s,a?x(a,!1,!1):null,(0,d.W)(o,i),o.displayId,o.distance,o.vertexCount))}return e}(e,t,i,o,s);default:y().error("convertToFeatureSet:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${r}'`)),Y(e)}return e}function Z(e,t,r,n){N[0]=e,G(E,N,t,r,n);const i=E[0];return Y(E),Y(N),i}function L(e,t=(0,l.Pv)(e),r=(0,l.W0)(e)){return null==e?null:(0,l.fT)(e)?x(e,t,r):(0,l.Bi)(e)?F(e,t,r):(0,l.Rg)(e)?A(e,t,r):(0,l.U9)(e)?T(e,t,r):void y().error("convertFromGeometry:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${e}'`))}function j(e,t,r,i){if(null==e)return null;const o="coords"in e?e:e.geometry;if(null==o)return null;switch(t){case"esriGeometryPoint":return C(o,r,i);case"esriGeometryMultipoint":return I(o,r,i);case"esriGeometryPolyline":return M(o,r,i);case"esriGeometryPolygon":return P(o,r,i);default:return y().error("convertToGeometry:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${t}'`)),null}}function G(e,t,r,i,o){if(Y(e),null==r)return function(e,t){for(const r of t)e.push({attributes:r.attributes});return e}(e,t);switch(r){case"esriGeometryPoint":return function(e,t,r,n){for(const{geometry:i,attributes:o}of t)e.push({attributes:o,geometry:C(i,r,n)});return e}(e,t,i,o);case"esriGeometryMultipoint":return function(e,t,r,n){for(const{geometry:i,attributes:o}of t)e.push({geometry:i&&I(i,r,n),attributes:o});return e}(e,t,i,o);case"esriGeometryPolyline":return function(e,t,r,n){for(const{geometry:i,attributes:o}of t)e.push({geometry:i&&M(i,r,n),attributes:o});return e}(e,t,i,o);case"esriGeometryPolygon":return function(e,t,r,n){for(const{geometry:i,attributes:o,centroid:s}of t){const t=P(i,r,n),a=C(s,!1,!1);e.push(s?{geometry:t,attributes:o,centroid:a}:{geometry:t,attributes:o})}return e}(e,t,i,o);default:y().error("convertToFeatureSet:unknown-geometry",new n.A("internal:geometry",`Unable to parse unknown geometry type '${r}'`))}return e}function _(e){const{spatialReference:t,transform:r,fields:n,hasM:i,hasZ:o,features:s,geometryType:a,exceededTransferLimit:l,queryGeometry:u,queryGeometryType:p}=e,c={features:G([],s,a,o,i),fields:n,geometryType:a,spatialReference:t,queryGeometry:j(u,p,o,i)};return r&&(c.transform=r),l&&(c.exceededTransferLimit=l),i&&(c.hasM=i),o&&(c.hasZ=o),c}function k(e,t){const r=new p.A,{hasM:n,hasZ:i,features:o,spatialReference:s,geometryType:a,exceededTransferLimit:l,transform:u,fields:c,globalIdFieldName:d}=e;return c&&(r.fields=c),r.geometryType=a??null,r.spatialReference=s??null,o&&R(r.features,o,a,i,n,t),l&&(r.exceededTransferLimit=l),n&&(r.hasM=n),i&&(r.hasZ=i),u&&(r.transform=u),d&&(r.globalIdFieldName=d),r}function U(e,t){const{geometryType:r,features:n}=t;if(!e)return t;for(let t=0;t<n.length;t++){const i=n[t],o=i.weakClone();o.geometry=D(i.geometry,r,e),o.centroid=D(i.centroid,"esriGeometryPoint",e),n[t]=o}return t.transform=e,t}function D(e,t,r,n,i,o=!1){if(null==e)return null;if(!e?.coords.length)return null;const s=f[t],{coords:a,lengths:l,stride:u,hasZ:p,hasM:d}=e;n??=p,i??=d;const y=new c.A([],[],n,i),b=y.stride,v=S(p,d,n,i);let C=0;const x=[0,0,0,0].slice(b),I=o?g:h,T=o?w:m;function M(){v(a,C,x,0),C+=u,x[0]=I(r,x[0]),x[1]=T(r,x[1])}if(e.isPoint)return M(),y.coords.push(...x),y;let A=0;for(const e of l){if(e<s)continue;let t=1;M(),y.coords.push(...x);let[r,n]=x;for(let i=1;i<e;i++){M();const[e,i]=x;r===e&&n===i||(o||(x[0]-=r,x[1]-=n),y.coords.push(...x),r=e,n=i,t++)}t>=s?(y.lengths.push(t),A=y.coords.length):Y(y.coords,A)}return Y(y.coords,A),y.coords.length?y:null}function z(e,t,r,n=e.hasZ,i=e.hasM){if(!e.coords.length)return null;const o=f[t],{coords:s,lengths:a,stride:l,hasZ:u,hasM:p}=e,d=new c.A([],[],n,i),y=d.stride,h=S(u,p,n,i);if(e.isPoint)return h(s,0,d.coords,0),d;let m=0;const g=r*r;for(const e of a){if(e<o){m+=e*l;continue}const t=d.coords.length/y,r=m,n=m+(e-1)*l;h(s,r,d.coords,d.coords.length),V(d.coords,s,l,g,h,r,n),h(s,n,d.coords,d.coords.length);const i=d.coords.length/y-t;i>=o?d.lengths.push(i):Y(d.coords,t*y),m+=e*l}return d.coords.length?d:null}function q(e,t,r,n){const i=e[t],o=e[t+1],s=e[r],a=e[r+1],l=e[n],u=e[n+1];let p=s,c=a,d=l-p,y=u-c;if(0!==d||0!==y){const e=((i-p)*d+(o-c)*y)/(d*d+y*y);e>1?(p=l,c=u):e>0&&(p+=d*e,c+=y*e)}return d=i-p,y=o-c,d*d+y*y}function V(e,t,r,n,i,o,s){let a,l=n,u=0;for(let e=o+r;e<s;e+=r)a=q(t,e,o,s),a>l&&(u=e,l=a);l>n&&(u-o>r&&V(e,t,r,n,i,o,u),i(t,u,e,e.length),s-u>r&&V(e,t,r,n,i,u,s))}function $(e,t){if(!t?.coords?.length)return null;let r=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY,o=Number.NEGATIVE_INFINITY;const{coords:l,stride:u}=t;for(let e=0;e<l.length;e+=u){const t=l[e],s=l[e+1];r=Math.min(r,t),i=Math.max(i,t),n=Math.min(n,s),o=Math.max(o,s)}return(0,s.is)(e)?(0,s.BI)(e,r,n,i,o):(0,a.fA)(r,n,i,o,e),e}function B(e,t){const{coords:r,lengths:n,stride:i,hasZ:s,hasM:a}=e;if(!r.length)return void(n.length=0);(0,o.Lw)(t);const{originPosition:l,scale:u,translate:p}=t,c=H;c.originPosition=l;const d=c.scale;d[0]=u[0]??1,d[1]=-(u[1]??1),d[2]=u[2]??1,d[3]=u[3]??1;const y=c.translate;if(y[0]=p[0]??0,y[1]=p[1]??0,y[2]=p[2]??0,y[3]=p[3]??0,a&&!s&&(d[2]=d[3],y[2]=y[3]),!n.length){for(let e=0;e<i;++e)r[e]=b(c,r[e],e);return void(n.length=0)}let f=0;for(let e=0;e<n.length;e++){const t=n[e];n[e]=t;for(let e=0;e<i;++e)r[f+e]=b(c,r[f+e],e);let o=r[f],s=r[f+1];f+=i;for(let e=1;e<t;e++,f+=i){o+=r[f]*d[0],s+=r[f+1]*d[1],r[f]=o,r[f+1]=s;for(let e=2;e<i;++e)r[f+e]=b(c,r[f+e],e)}}}function J(e,t,r,n){let i=0,o=e[n*t],s=e[n*(t+1)];for(let a=1;a<r;a++){const r=o+e[n*(t+a)],l=s+e[n*(t+a)+1],u=(r-o)*(l+s);o=r,s=l,i+=u}return.5*i}function W(e,t){const{coords:r,lengths:n}=e;let i=0,o=0;for(let e=0;e<n.length;e++){const s=n[e];o+=J(r,i,s,t),i+=s}return Math.abs(o)}function Y(e,t=0){e.length!==t&&(e.length=t)}const H={originPosition:"lowerLeft",scale:[1,1,1,1],translate:[0,0,0,0]}},85113(e,t,r){r.d(t,{BM:()=>T,bd:()=>M,sO:()=>I,xD:()=>c});var n=r(67482),i=r(49186),o=r(21325),s=r(90708),a=r(43334),l=r(92722),u=r(30524);const p={LineString:"esriGeometryPolyline",MultiLineString:"esriGeometryPolyline",MultiPoint:"esriGeometryMultipoint",Point:"esriGeometryPoint",Polygon:"esriGeometryPolygon",MultiPolygon:"esriGeometryPolygon"};function c(e){return p[e]}function*d(e){switch(e.type){case"Feature":yield e;break;case"FeatureCollection":for(const t of e.features)t&&(yield t)}}function*y(e){if(e)switch(e.type){case"Point":yield e.coordinates;break;case"LineString":case"MultiPoint":yield*e.coordinates;break;case"MultiLineString":case"Polygon":for(const t of e.coordinates)yield*t;break;case"MultiPolygon":for(const t of e.coordinates)for(const e of t)yield*e}}function f(e){for(const t of e)if(t.length>2)return!0;return!1}function h(e){let t=0;for(let r=0;r<e.length;r++){const n=e[r],i=e[(r+1)%e.length];t+=n[0]*i[1]-i[0]*n[1]}return t<=0}function m(e){const t=e[0],r=e[e.length-1];t[0]===r[0]&&t[1]===r[1]&&t[2]===r[2]||e.push(t)}function g(e,t){const{coordinates:r,type:n}=e,i=t.hasZ??!1,o=!0;switch(n){case"Point":return new l.A([],[...r],i,!1);case"LineString":return(0,s.Ap)({paths:[r],hasZ:o},i,!1);case"MultiLineString":return(0,s.Ap)({paths:r,hasZ:o},i,!1);case"MultiPoint":return(0,s.PR)({points:r,hasZ:o},i,!1);case"Polygon":case"MultiPolygon":{const e=new l.A([],[],i,!1);for(const t of"Polygon"===n?[r]:r){w(e,t[0],i);for(let r=1;r<t.length;r++)b(e,t[r],i)}return e}}}function w(e,t,r){m(t),function(e){return!h(e)}(t)?S(e,t,r):v(e,t,r)}function b(e,t,r){m(t),function(e){return h(e)}(t)?S(e,t,r):v(e,t,r)}function v(e,t,r){for(const n of t)C(e,n,r);e.lengths.push(t.length)}function S(e,t,r){for(let n=t.length-1;n>=0;n--)C(e,t[n],r);e.lengths.push(t.length)}function C(e,[t,r,n],i){e.coords.push(t,r),i&&e.coords.push(n||0)}function x(e){switch(typeof e){case"string":return(0,n.C)(e)?"esriFieldTypeDate":"esriFieldTypeString";case"number":return"esriFieldTypeDouble";default:return"unknown"}}function I(e,t=4326){if(!e)throw new i.A("geojson-layer:empty","GeoJSON data is empty");if("Feature"!==e.type&&"FeatureCollection"!==e.type)throw new i.A("geojson-layer:unsupported-geojson-object","missing or not supported GeoJSON object type",{data:e});const{crs:r}=e;if(!r)return;const n="string"==typeof r?r:"name"===r.type?r.properties.name:"EPSG"===r.type?r.properties.code:null,s=(0,o.oT)({wkid:t})?new RegExp(".*(CRS84H?|4326)$","i"):new RegExp(`.*(${t})$`,"i");if(!n||!s.test(n))throw new i.A("geojson:unsupported-crs","unsupported GeoJSON 'crs' member",{crs:r})}function T(e,t={}){const r=[],n=new Set,i=new Set;let o,s=!1,a=null,l=!1,{geometryType:p=null}=t;for(const t of d(e)){const{geometry:e,properties:d,id:h}=t;if((!e||(p||(p=c(e.type)),c(e.type)===p))&&(s||(s=f(y(e))),l||(l=null!=h,l&&(o=typeof h,d&&(a=Object.keys(d).filter(e=>d[e]===h)))),d&&a&&l&&null!=h&&(a.length>1?a=a.filter(e=>d[e]===h):1===a.length&&(a=d[a[0]]===h?a:[])),d))for(const e in d){if(n.has(e))continue;const t=x(d[e]);if("unknown"===t){i.add(e);continue}i.delete(e),n.add(e);const o=(0,u.rS)(e);o&&r.push({name:o,alias:e,type:t})}}const h=(0,u.rS)(1===a?.length&&a[0]||null)??void 0;if(h)for(const e of r)if(e.name===h&&(0,u.WA)(e)){e.type="esriFieldTypeOID";break}return{fields:r,geometryType:p,hasZ:s,objectIdFieldName:h,objectIdFieldType:o,unknownFields:Array.from(i)}}function M(e,t){return Array.from(function*(e,t={}){const{geometryType:r,objectIdField:n}=t;for(const i of e){const{geometry:e,properties:o,id:s}=i;if(e&&c(e.type)!==r)continue;const l=o||{};let u;n&&(u=l[n],null==s||u||(l[n]=u=s)),yield new a.Om(e&&g(e,t),l,null,u)}}(d(e),t))}},64714(e,t,r){r.d(t,{F0:()=>a,Vx:()=>p,e2:()=>d,f:()=>y});var n=r(44208),i=r(4718),o=r(99352),s=r(93470);function a(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?s.Cb:"esriGeometryPolyline"===e?s.yM:s.WR}}}const l=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function p(e,t){if((0,n.A)("esri-csp-restrictions"))return()=>t?{[t]:null,...e}:{...e};try{let r="";t&&(r+=`this${c(t)} = null;`);for(const t in e)r+=`this${c(t)} = ${JSON.stringify(e[t])};`;const n=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${r};\n }\n }\n `)();return()=>new n}catch(r){return()=>t?{[t]:null,...e}:{...e}}}function c(e){return l.test(e)?`.${e}`:`[${JSON.stringify(e)}]`}function d(e={}){return[{name:"New Feature",description:"",prototype:{attributes:(0,i.o8)(e)}}]}function y(e,t){return{analytics:{supportsCacheHint:!1},attachment:null,data:{isVersioned:!1,isBranchVersioned:!1,supportedCurveTypes:[],supportsAttachment:!1,supportsM:!1,supportsTrueCurve:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryBins:!0,supportsQueryPivot:!1,supportsQueryAnalytics:!1,supportsQueryAttachments:!1,supportsQueryTopFeatures:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0,supportsAsyncConvert3D:!1},query:o.F,queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0,supportsCacheHint:!1},queryTopFeatures:{supportsCacheHint:!1},queryAttributeBins:o.P,editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsTrueCurveUpdate:t,supportsTrueCurveUpdateByTrueCurveClientsOnly:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1,supportsAsyncApplyEdits:!1,zDefault:void 0}}}},69208(e,t,r){var n=r(32198),i=r(91429);r.d(t,["d",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.customParameters=null}};return(0,n.Cg)([(0,i.MZ)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],r.prototype,"customParameters",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.CustomParametersMixin")],r),r}])},6455(e,t,r){r.d(t,{FJ:()=>g,Dp:()=>w,KV:()=>b});var n=r(32198),i=r(93637),o=r(91429),s=r(89317),a=r(69540),l=r(7762),u=r(25482),p=r(83960),c=r(13069);const d={write:{overridePolicy:(e,t,r)=>({enabled:!r||"scale"===r.filterMode})}};let y=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.id=(0,c.lk)(),this.maxScale=0,this.minScale=0,this.title="",this.where=null}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"id",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:d})],y.prototype,"maxScale",void 0),(0,n.Cg)([(0,o.MZ)({type:Number,json:d})],y.prototype,"minScale",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"title",void 0),(0,n.Cg)([(0,o.MZ)({type:String,json:{write:!0}})],y.prototype,"where",void 0),y=(0,n.Cg)([(0,o.$K)("esri.layers.support.DisplayFilter")],y);var f=r(41560),h=r(43937);let m=class extends((0,a.OU)(u.o)){constructor(e){super(e),this.activeFilterId=null,this.filters=new(l.A.ofType(y)),this.mode="manual"}writeFilters(e,t,r,n){const i=e.toArray();"scale"===this.mode&&i.sort((e,t)=>{const r=(0,p.oW)(t.minScale,e.minScale),n=e.maxScale-t.maxScale;return 0===r?n:r}),t[r]=i.map(e=>e.toJSON(n))}write(e,t){return super.write(e,(0,f.mW)(this,t))}};(0,n.Cg)([(0,o.MZ)({type:String,json:{write:{overridePolicy:(e,t,r)=>({enabled:"manual"===r.filterMode,isRequired:!0})}}})],m.prototype,"activeFilterId",void 0),(0,n.Cg)([(0,o.MZ)({type:l.A.ofType(y),nonNullable:!0,json:{write:!0}})],m.prototype,"filters",void 0),(0,n.Cg)([(0,h.K)("filters")],m.prototype,"writeFilters",null),(0,n.Cg)([(0,o.MZ)({type:["manual","scale"],nonNullable:!0,json:{name:"filterMode",write:!0}})],m.prototype,"mode",void 0),m=(0,n.Cg)([(0,o.$K)("esri.layers.support.DisplayFilterInfo")],m);const g=e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.displayFilterEnabled=!0,this.displayFilterInfo=null}};return(0,n.Cg)([(0,o.MZ)(w)],r.prototype,"displayFilterEnabled",void 0),(0,n.Cg)([(0,o.MZ)(b)],r.prototype,"displayFilterInfo",void 0),r=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.DisplayFilteredLayer")],r),r},w={type:Boolean,json:{name:"layerDefinition.disableDisplayFilter",read:{reader:e=>!e},write:{layerContainerTypes:s.K,writer(e,t,r){(0,i.sM)(r,!e,t)}},origins:{"web-scene":{write:!1,read:!1}}}},b={type:m,json:{name:"layerDefinition.displayFilterInfo",write:{enabled:!0,allowNull:!0,layerContainerTypes:s.K},origins:{"web-scene":{write:!1,read:!1}}}}},32756(e,t,r){r.d(t,{Rr:()=>a});var n=r(32198),i=r(93637),o=r(91429),s=r(91880);function a(e,t,r){if(!e)return null;const n=e.find(e=>!!e.field);if(!n)return null;const i=new s.A;return i.read(n,r),[i]}const l={type:[s.A],json:{origins:{"web-scene":{write:!1,read:!1}},name:"layerDefinition.orderBy",read:{reader:a},write:{writer:function(e,t,r,n){const o=e.find(e=>!!e.field);o&&(0,i.sM)(r,[o.toJSON()],t)}}}};r.d(t,["fY",0,e=>{const t=e;let r=class extends t{constructor(){super(...arguments),this.orderBy=null}};return(0,n.Cg)([(0,o.MZ)(l)],r.prototype,"orderBy",void 0),r=(0,n.Cg)([(0,o.$K)("esri.layers.mixins.OrderedLayer")],r),r},"ne",0,l])},8303(e,t,r){var n=r(32198),i=r(92602),o=r(70333),s=r(11254),a=r(60999),l=r(49186),u=r(36563),p=r(53966),c=r(97768),d=r(17676),y=r(84952),f=r(91429),h=r(77548),m=r(20655),g=r(80812),w=r(41318),b=r(10407),v=r(36005),S=r(43937);const C={credential:null,user:null};r.d(t,["A",0,e=>{const t=e;let x=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 g.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:n}=await r.e(1204).then(r.bind(r,41204));return(0,d.Te)(t),await n({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)||p.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)),n=new AbortController,i=(0,u.rE)(n);return this.addHandles(i,"reloadFromPortal"),await t({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap,populateGroupLayer:e.populateGroupLayer},{signal:n.signal})}catch(e){throw(0,d.zf)(e)||p.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(!i.A.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:n},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",n),this._set("userHasUpdateItemPrivileges",i)}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 n=!o.id?.findCredential(this.url),i=e===r.id;if(i&&r.portal.user)return this._getUserPrivileges(r,n);let s,a;if(i)s=r.portal.url;else try{s=await(0,h.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;a=await(o.id?.getCredential(`${s}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,d.QP)(e)}const l=!0,u=!1,p=!1;if(!a)return{features:{edit:l,fullEdit:u},content:{updateItem:p}};try{if(i?await r.reload():(r=new g.default({id:e,portal:{url:s}}),await r.load(t)),r.portal.user)return this._getUserPrivileges(r,n)}catch(e){(0,d.QP)(e)}return{features:{edit:l,fullEdit:u},content:{updateItem:p}}}_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 n=`${r.owningSystemUrl}/sharing/rest`,i=m.A.getDefault();if(i&&i.loaded&&(0,y.S8)(i.restUrl)===(0,y.S8)(n))return i.user;const l=`${n}/community/self`,u=null!=e?e.signal:null,p=await(0,a.Ke)((0,s.A)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return p.ok?w.A.fromJSON(p.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,n=this.portalItem?.id&&(this.portalItem.portal||m.A.getDefault());return r&&n&&!(0,y.ut)(n.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.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,n.Cg)([(0,f.MZ)({type:g.default})],x.prototype,"portalItem",null),(0,n.Cg)([(0,v.w)("web-document","portalItem",["itemId"])],x.prototype,"readPortalItem",null),(0,n.Cg)([(0,S.K)("web-document","portalItem",{itemId:{type:String}})],x.prototype,"writePortalItem",null),(0,n.Cg)([(0,f.MZ)({clonable:!1})],x.prototype,"resourceReferences",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasFullEditingPrivileges",void 0),(0,n.Cg)([(0,f.MZ)({type:Boolean,readOnly:!0})],x.prototype,"userHasUpdateItemPrivileges",void 0),x=(0,n.Cg)([(0,f.$K)("esri.layers.mixins.PortalLayer")],x),x}])},82935(e,t,r){var n=r(32198),i=r(91429),o=r(89317),s=r(30524),a=r(96184),l=r(73133),u=r(79677),p=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 n=r.timeOffset,i=l.j.fromJSON(r.timeOffsetUnits);return n&&i?new p.A({value:n,unit:i}):null}get timeInfo(){return this._get("timeInfo")}set timeInfo(e){(0,s.sv)(e,this.fieldsIndex),this._set("timeInfo",e)}};return(0,n.Cg)([(0,i.MZ)({type:u.A,json:{write:!1}})],r.prototype,"timeExtent",void 0),(0,n.Cg)([(0,i.MZ)({type:p.A})],r.prototype,"timeOffset",void 0),(0,n.Cg)([(0,c.w)("service","timeOffset",["timeInfo.exportOptions"])],r.prototype,"readOffset",null),(0,n.Cg)([(0,i.MZ)({value:null,type:a.A,json:{write:!0,origins:{"web-document":{read:!1,write:!1},"portal-item":{read:!1,write:!1}}}})],r.prototype,"timeInfo",null),(0,n.Cg)([(0,i.MZ)(d)],r.prototype,"useViewTime",void 0),r=(0,n.Cg)([(0,i.$K)("esri.layers.mixins.TemporalLayer")],r),r}])},34322(e,t,r){r.d(t,{E:()=>L,Fu:()=>C,O8:()=>P,UH:()=>k,YW:()=>F,mG:()=>A,x$:()=>R});var n=r(11254),i=r(49186),o=r(5479),s=r(84952),a=r(5443),l=r(99917),u=r(16930),p=r(21325),c=r(50498),d=r(85113),y=r(13043),f=r(60694),h=r(20437),m=r(30524);const g="xlink:href",w="2.0.0",b="__esri_wfs_id__",v="wfs-layer:feature-type-not-found",S="wfs-layer:unknown-geometry-type";async function C(e,t){const r=function(e){const t=j(e);(function(e){const t=e.firstElementChild?.getAttribute("version");if(t&&t!==w)throw new i.A("wfs-layer:unsupported-wfs-version",`Unsupported WFS version ${t}. Supported version: ${w}`)})(t),_(t);const r=t.firstElementChild,n=(0,o.PP)(function(e){return(0,y.i)(e,{FeatureTypeList:{FeatureType:e=>{const t={typeName:"undefined:undefined",name:"",title:"",description:"",extent:null,namespacePrefix:"",namespaceUri:"",defaultSpatialReference:4326,supportedSpatialReferences:[]},r=new Set;return(0,y.p)(e,{Name:e=>{const{name:r,prefix:n}=G(e.textContent);t.typeName=`${n}:${r}`,t.name=r,t.namespacePrefix=n,t.namespaceUri=e.lookupNamespaceURI(n)},Abstract:e=>{t.description=e.textContent},Title:e=>{t.title=e.textContent},WGS84BoundingBox:e=>{t.extent=a.A.fromJSON(function(e){let t,r,n,i;for(const o of e.children)switch(o.localName){case"LowerCorner":[t,r]=o.textContent.split(" ").map(e=>Number.parseFloat(e));break;case"UpperCorner":[n,i]=o.textContent.split(" ").map(e=>Number.parseFloat(e))}return{xmin:t,ymin:r,xmax:n,ymax:i,spatialReference:p.KK}}(e))},DefaultCRS:e=>{const n=M(e);n&&(t.defaultSpatialReference=n,r.add(n))},OtherCRS:e=>{const t=M(e);t&&r.add(t)}}),t.title||(t.title=t.name),r.add(4326),t.supportedSpatialReferences.push(...r),t}}})}(r));return{operations:T(r),get featureTypes(){return Array.from(n())},readFeatureTypes:n}}((await(0,n.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetCapabilities",VERSION:w,...t?.customParameters},signal:t?.signal})).data);return function(e,t){(0,s.m3)(e)&&((0,s.FX)(e,t.operations.DescribeFeatureType.url,!0)&&(t.operations.DescribeFeatureType.url=(0,s.lM)(t.operations.DescribeFeatureType.url)),(0,s.FX)(e,t.operations.GetFeature.url,!0)&&(t.operations.GetFeature.url=(0,s.lM)(t.operations.GetFeature.url)))}(e,r),r}const x=["json","application/json; subtype=geojson; charset=utf-8","application/json; subtype=geojson","application/json","geojson","application/geo+json"];function I(e){for(const t of x){const r=e.findIndex(e=>e.toLowerCase()===t);if(r>=0)return e[r]}return null}function T(e){let t=!0;const r={GetCapabilities:{url:""},DescribeFeatureType:{url:""},GetFeature:{url:"",outputFormat:null,supportsPagination:!1}},n=[],o=[];if((0,y.p)(e,{OperationsMetadata:{Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&n.push(e)}}}},Operation:e=>{switch(e.getAttribute("name")){case"GetCapabilities":return{DCP:{HTTP:{Get:e=>{r.GetCapabilities.url=e.getAttribute(g)}}}};case"DescribeFeatureType":return{DCP:{HTTP:{Get:e=>{r.DescribeFeatureType.url=e.getAttribute(g)}}}};case"GetFeature":return{DCP:{HTTP:{Get:e=>{r.GetFeature.url=e.getAttribute(g)}}},Parameter:e=>{if("outputformat"===e.getAttribute("name")?.toLowerCase())return{AllowedValues:{Value:({textContent:e})=>{e&&o.push(e)}}}}}}},Constraint:e=>{switch(e.getAttribute("name")){case"KVPEncoding":return{DefaultValue:e=>{t="true"===e.textContent.toLowerCase()}};case"ImplementsResultPaging":return{DefaultValue:e=>{r.GetFeature.supportsPagination="true"===e.textContent.toLowerCase()}}}}}}),r.GetFeature.outputFormat=I(o)??I(n),!t)throw new i.A("wfs-layer:kvp-encoding-not-supported","WFS service doesn't support key/value pair (KVP) encoding");if(null==r.GetFeature.outputFormat)throw new i.A("wfs-layer:geojson-not-supported","WFS service doesn't support GeoJSON output format");return r}function M(e){const t=parseInt(e.textContent?.match(/(?<wkid>\d+$)/i)?.groups?.wkid??"",10);if(!Number.isNaN(t))return t}function A(e,t,r){return(0,o.I6)(e,e=>r?e.name===t&&e.namespaceUri===r:e.typeName===t||e.name===t)}async function P(e,t,r,n={}){const{featureType:o,extent:s}=await async function(e,t,r,n={}){const o=e.readFeatureTypes(),s=t?A(o,t,r):o.next().value,{spatialReference:a=new u.A({wkid:s?.defaultSpatialReference})}=n;if(null==s)throw t?new i.A(v,`The type '${t}' could not be found in the service`):new i.A("wfs-layer:empty-service","The service is empty");let c=s.extent;if(c&&!(0,p.aI)(c.spatialReference,a))try{await(0,l.initializeProjection)(c.spatialReference,a,void 0,n),c=(0,l.project)(c,a)}catch{throw new i.A("wfs-layer:unsupported-spatial-reference","Projection not supported")}return{extent:c,spatialReference:a,featureType:s}}(e,t,r,n),{spatialReference:a}=k(e.operations.GetFeature.url,o,n.spatialReference),{fields:c,geometryType:d,swapXY:y,objectIdField:f,geometryField:h}=await async function(e,t,r,n={}){const{typeName:o}=t,[s,a]=await Promise.allSettled([N(e.operations.DescribeFeatureType.url,o,n),E(e,o,r,n)]),l=e=>new i.A("wfs-layer:getWFSLayerTypeInfo-error",`An error occurred while getting info about the feature type '${o}'`,{error:e});if("rejected"===s.status)throw l(s.reason);if("rejected"===a.status)throw l(a.reason);const{fields:u,errors:p}=s.value??{},c=s.value?.geometryType||a.value?.geometryType,d=a.value?.swapXY??!1;if(null==c)throw new i.A(S,`The geometry type could not be determined for type '${o}`,{typeName:o,geometryType:c,fields:u,errors:p});return{...F(u??[]),geometryType:c,swapXY:d}}(e,o,a,n);return{url:e.operations.GetCapabilities.url,name:o.name,namespaceUri:o.namespaceUri,fields:c,geometryField:h,geometryType:d,objectIdField:f,spatialReference:n.spatialReference??new u.A({wkid:o.defaultSpatialReference}),extent:s,swapXY:y,wfsCapabilities:e,customParameters:n.customParameters}}function F(e){const t=e.find(e=>"geometry"===e.type);let r=e.find(e=>"oid"===e.type);return e=e.filter(e=>"geometry"!==e.type),r||(r=new h.A({name:b,type:"oid",alias:b}),e.unshift(r)),{geometryField:t?.name??null,objectIdField:r.name,fields:e}}async function E(e,t,r,i={}){let o,s=!1;const[a,l]=await Promise.all([R(e.operations.GetFeature.url,t,r,e.operations.GetFeature.outputFormat,{...i,count:1}),(0,n.A)(e.operations.GetFeature.url,{responseType:"text",query:Z(t,r,void 0,{...i,count:1}),signal:i?.signal})]),u="FeatureCollection"===a.type&&a.features[0]?.geometry;if(u){let e;switch(o=c.gy.fromJSON((0,d.xD)(u.type)),u.type){case"Point":e=u.coordinates;break;case"LineString":case"MultiPoint":e=u.coordinates[0];break;case"MultiLineString":case"Polygon":e=u.coordinates[0][0];break;case"MultiPolygon":e=u.coordinates[0][0][0]}const t=/<[^>]*pos[^>]*> *(-?\d+(?:\.\d+)?) (-?\d+(?:\.\d+)?)/.exec(l.data);if(t){const r=e[0].toFixed(3),n=e[1].toFixed(3),i=parseFloat(t[1]).toFixed(3);r===parseFloat(t[2]).toFixed(3)&&n===i&&(s=!0)}}return{geometryType:o,swapXY:s}}async function N(e,t,r){return function(e,t){const{name:r}=G(e),n=j(t);_(n);const s=(0,o.I6)((0,y.i)(n.firstElementChild,{element:e=>e}),e=>e.getAttribute("name")===r);if(null!=s){const e=s.getAttribute("type"),t=e?(0,o.I6)((0,y.i)(n.firstElementChild,{complexType:e=>e}),t=>t.getAttribute("name")===G(e).name):(0,o.I6)((0,y.i)(s,{complexType:e=>e}),()=>!0);if(t)return function(e){const t=[],r=[];let n;const o=(0,y.i)(e,{complexContent:{extension:{sequence:{element:e=>e}}}});for(const s of o){const o=s.getAttribute("name");if(!o)continue;let a,l;if(s.hasAttribute("type")?a=G(s.getAttribute("type")).name:(0,y.p)(s,{simpleType:{restriction:e=>(a=G(e.getAttribute("base")).name,{maxLength:e=>{l=+e.getAttribute("value")}})}}),!a)continue;const u="true"===s.getAttribute("nillable");let p=!1;switch(a.toLowerCase()){case"integer":case"nonpositiveinteger":case"negativeinteger":case"long":case"int":case"short":case"byte":case"nonnegativeinteger":case"unsignedlong":case"unsignedint":case"unsignedshort":case"unsignedbyte":case"positiveinteger":r.push(new h.A({name:o,alias:o,type:"integer",nullable:u,length:(0,m._b)("integer")}));break;case"float":case"double":case"decimal":r.push(new h.A({name:o,alias:o,type:"double",nullable:u,length:(0,m._b)("double")}));break;case"boolean":case"string":case"gyearmonth":case"gyear":case"gmonthday":case"gday":case"gmonth":case"anyuri":case"qname":case"notation":case"normalizedstring":case"token":case"language":case"idrefs":case"entities":case"nmtoken":case"nmtokens":case"name":case"ncname":case"id":case"idref":case"entity":case"duration":case"time":r.push(new h.A({name:o,alias:o,type:"string",nullable:u,length:l??(0,m._b)("string")}));break;case"datetime":case"date":r.push(new h.A({name:o,alias:o,type:"date",nullable:u,length:l??(0,m._b)("date")}));break;case"pointpropertytype":n="point",p=!0;break;case"multipointpropertytype":n="multipoint",p=!0;break;case"curvepropertytype":case"multicurvepropertytype":case"multilinestringpropertytype":n="polyline",p=!0;break;case"surfacepropertytype":case"multisurfacepropertytype":case"multipolygonpropertytype":n="polygon",p=!0;break;case"geometrypropertytype":case"multigeometrypropertytype":p=!0,t.push(new i.A(S,`geometry type '${a}' is not supported`,{type:(new XMLSerializer).serializeToString(e)}));break;default:t.push(new i.A("wfs-layer:unknown-field-type",`Unknown field type '${a}'`,{type:(new XMLSerializer).serializeToString(e)}))}p&&r.push(new h.A({name:o,alias:o,type:"geometry",nullable:u}))}for(const e of r)if("integer"===e.type&&!e.nullable&&O.has(e.name.toLowerCase())){e.type="oid";break}return{geometryType:n,fields:r,errors:t}}(t)}throw new i.A(v,`Type '${e}' not found in document`,{document:(new XMLSerializer).serializeToString(n)})}(t,(await(0,n.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"DescribeFeatureType",VERSION:w,TYPENAME:t,TYPENAMES:t,...r?.customParameters},signal:r?.signal})).data)}const O=new Set(["objectid","fid"]);async function R(e,t,r,o,s){let{data:a}=await(0,n.A)(e,{responseType:"text",query:Z(t,r,o,s),signal:s?.signal});a=a.replaceAll(/": +(-?\d+),(\d+)(,)?/g,'": $1.$2$3');try{return JSON.parse(a)}catch(e){throw new i.A("wfs-layer:malformed-json","Error while parsing the response",{response:a,error:e})}}function Z(e,t,r,n){const i="number"==typeof t?t:t.wkid;return{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:w,TYPENAMES:e,OUTPUTFORMAT:r,SRSNAME:"EPSG:"+i,STARTINDEX:n?.startIndex,COUNT:n?.count,...n?.customParameters}}async function L(e,t,r){const i=await(0,n.A)(e,{responseType:"text",query:{SERVICE:"WFS",REQUEST:"GetFeature",VERSION:w,TYPENAMES:t,RESULTTYPE:"hits",...r?.customParameters},signal:r?.signal}),o=/numberMatched=["'](?<numberMatched>\d+)["']/gi.exec(i.data);if(o?.groups)return+o.groups.numberMatched}function j(e){return(new DOMParser).parseFromString(e.trim(),"text/xml")}function G(e){const[t,r]=e.split(":");return{prefix:r?t:"",name:r??t}}function _(e){let t="",r="";if((0,y.p)(e.firstElementChild,{Exception:e=>(t=e.getAttribute("exceptionCode"),{ExceptionText:e=>{r=e.textContent}})}),t)throw new i.A(`wfs-layer:${t}`,r)}function k(e,t,r){const n={wkid:t.defaultSpatialReference},i=null!=r?.wkid?{wkid:r.wkid}:n;return{spatialReference:i,getFeatureSpatialReference:(0,f.Fi)(e)||i.wkid&&t.supportedSpatialReferences.includes(i.wkid)?{wkid:i.wkid}:{wkid:t.defaultSpatialReference}}}r.d(t,["i5",0,b])},13043(e,t,r){function n(e,t){if(e&&t)for(const r of e.children)if(r.localName in t){const e=t[r.localName];if("function"==typeof e){const t=e(r);t&&n(r,t)}else n(r,e)}}function*i(e,t){for(const r of e.children)if(r.localName in t){const e=t[r.localName];"function"==typeof e?yield e(r):yield*i(r,e)}}r.d(t,{i:()=>i,p:()=>n})},46499(e,t,r){r.d(t,{A:()=>x});var n,i,o=r(32198),s=(r(44208),r(66552)),a=r(25482),l=r(4718),u=r(90629),p=r(91429),c=r(73913),d=r(32730),y=r(77548),f=r(59868),h=r(73838),m=r(33910),g=r(36005),w=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 v(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 x=class extends a.o{static{n=d.vK}static{i=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 n=e.split(" ");if(3===n.length)return r(t[n[0]],n[1],n[2]);if(7===n.length){const e=r(t[n[0]],n[1],n[2]),i=n[3],o=r(t[n[4]],n[5],n[6]);switch(i){case"AND":return e&&o;case"OR":return e||o}}return!1}catch(e){}}constructor(e){super(e),this[n]=!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=f.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,n){if(null==e&&null!=this.labelExpression&&S(n))e=new c.A({expression:this.getLabelExpressionArcade()});else if(!e)return;const i=e.toJSON(n);i.expression&&(t[r]=i)}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 i({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,l.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,l.o8)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"name",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1},"portal-item":{default:!1,write:{overridePolicy:v}}}}})],x.prototype,"allowOverrun",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1},"portal-item":{default:"static",write:{overridePolicy:v}}}}})],x.prototype,"deconflictionStrategy",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===r?.origin&&C(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],x.prototype,"labelExpression",void 0),(0,o.Cg)([(0,g.w)("labelExpression")],x.prototype,"readLabelExpression",null),(0,o.Cg)([(0,w.K)("labelExpression")],x.prototype,"writeLabelExpression",null),(0,o.Cg)([(0,p.MZ)({type:c.A,json:{write:{overridePolicy:(e,t,r)=>function(e){return S(e)||C(e?.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],x.prototype,"labelExpressionInfo",void 0),(0,o.Cg)([(0,w.K)("labelExpressionInfo")],x.prototype,"writeLabelExpressionInfo",null),(0,o.Cg)([(0,p.MZ)({type:b.apiValues,json:{type:b.jsonValues,read:b.read,write:b.write}})],x.prototype,"labelPlacement",void 0),(0,o.Cg)([(0,p.MZ)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],x.prototype,"labelPosition",void 0),(0,o.Cg)([(0,p.MZ)({type:Number})],x.prototype,"maxScale",void 0),(0,o.Cg)([(0,w.K)("maxScale")],x.prototype,"writeMaxScale",null),(0,o.Cg)([(0,p.MZ)({type:Number})],x.prototype,"minScale",void 0),(0,o.Cg)([(0,w.K)("minScale")],x.prototype,"writeMinScale",null),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:v}}}}})],x.prototype,"repeatLabel",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,cast:u.cr,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:{overridePolicy:v}}}}})],x.prototype,"repeatLabelDistance",null),(0,o.Cg)([(0,p.MZ)({types:m.em,json:{origins:{"web-scene":{types:m.Rv,write:h.oO,default:null}},write:h.oO,default:null}})],x.prototype,"symbol",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],x.prototype,"useCodedValues",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],x.prototype,"where",void 0),x=i=(0,o.Cg)([(0,p.$K)("esri.layers.support.LabelClass")],x)},73913(e,t,r){r.d(t,{A:()=>p});var n,i=r(32198),o=r(25482),s=r(91429),a=r(32730),l=r(36005),u=r(43937);let p=class extends o.o{static{n=this}constructor(e){super(e),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,a.mX)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,a.mX)(this.value)),null!=e&&(t[r]=e)}clone(){return new n({expression:this.expression,title:this.title,value:this.value})}};(0,i.Cg)([(0,s.MZ)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],p.prototype,"expression",void 0),(0,i.Cg)([(0,l.w)("expression",["expression","value"])],p.prototype,"readExpression",null),(0,i.Cg)([(0,u.K)("expression")],p.prototype,"writeExpression",null),(0,i.Cg)([(0,s.MZ)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],p.prototype,"title",void 0),(0,i.Cg)([(0,s.MZ)({json:{read:!1,write:!1}})],p.prototype,"value",void 0),p=n=(0,i.Cg)([(0,s.$K)("esri.layers.support.LabelExpressionInfo")],p)},91880(e,t,r){r.d(t,{A:()=>u});var n,i=r(32198),o=r(66552),s=r(25482),a=r(91429);const l=new o.J({asc:"ascending",desc:"descending"});let u=class extends s.o{static{n=this}constructor(e){super(e),this.field=null,this.valueExpression=null,this.order="ascending"}clone(){return new n({field:this.field,valueExpression:this.valueExpression,order:this.order})}};(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],u.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0,origins:{"web-scene":{read:!1,write:!1}}}})],u.prototype,"valueExpression",void 0),(0,i.Cg)([(0,a.MZ)({type:l.apiValues,json:{type:l.jsonValues,read:l.read,write:l.write}})],u.prototype,"order",void 0),u=n=(0,i.Cg)([(0,a.$K)("esri.layers.support.OrderByInfo")],u)},96184(e,t,r){r.d(t,{A:()=>y});var n=r(32198),i=r(69540),o=r(25482),s=r(91429),a=r(79677),l=r(10184),u=r(56400),p=r(36005),c=r(43937);function d(e,t){return l.A.fromJSON({value:e,unit:t})}let y=class extends((0,i.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?a.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,n.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.timeDataCumulative",write:!0}})],y.prototype,"cumulative",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"endTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"endField",void 0),(0,n.Cg)([(0,s.MZ)({type:a.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"fullTimeExtent",void 0),(0,n.Cg)([(0,p.w)("fullTimeExtent",["timeExtent"])],y.prototype,"readFullTimeExtent",null),(0,n.Cg)([(0,c.K)("fullTimeExtent")],y.prototype,"writeFullTimeExtent",null),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{write:!0}})],y.prototype,"hasLiveData",void 0),(0,n.Cg)([(0,s.MZ)({type:l.A,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"interval",void 0),(0,n.Cg)([(0,p.w)("interval",["timeInterval","timeIntervalUnits","defaultTimeInterval","defaultTimeIntervalUnits"])],y.prototype,"readInterval",null),(0,n.Cg)([(0,c.K)("interval")],y.prototype,"writeInterval",null),(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"startTimeField",write:{enabled:!0,allowNull:!0}}})],y.prototype,"startField",void 0),(0,n.Cg)([(0,s.MZ)((0,u.P6)("timeReference",!0))],y.prototype,"timeZone",void 0),(0,n.Cg)([(0,s.MZ)({type:String,json:{write:{enabled:!0,allowNull:!0}}})],y.prototype,"trackIdField",void 0),(0,n.Cg)([(0,s.MZ)({type:Boolean,json:{name:"exportOptions.useTime",write:!0}})],y.prototype,"useTime",void 0),(0,n.Cg)([(0,s.MZ)({type:[Date],json:{read:!1}})],y.prototype,"stops",void 0),y=(0,n.Cg)([(0,s.$K)("esri.layers.support.TimeInfo")],y)},41560(e,t,r){r.d(t,{Ch:()=>s,mW:()=>o});var n=r(34727),i=r(39516);function o(e,t){return{...t,filterMode:e.mode}}function s(e,t,r){const o=function(e){if("manual"===u(e))return null;const t=[Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY];for(const{minScale:r,maxScale:n}of e.filters)t[0]=Math.max(t[0],p(r)),t[1]=Math.min(t[1],c(n));return t}(e);if(o&&((0,n.gg)(t,o[0])||(0,n.ZH)(r,o[1])))return"";const s=Array.from(a(e,t,r)),l=function(e,t,r){if(0===e.length)return!0;const i=p(e.at(0)?.minScale),o=c(e.at(-1)?.maxScale);if((0,n.ZH)(i,t)||(0,n.gg)(o,r))return!0;for(let t=0;t<e.length-1;t++){const r=e[t],i=e[t+1];if((0,n.ZH)(p(i.minScale),c(r.maxScale)))return!0}return!1}(s,t,r)?"1=1":s.map(e=>e.where||"1=1").reduce((e,t)=>(0,i.IW)(e,t),"");return l&&"1=1"!==l?l:""}function*a(e,t,r){if("manual"===u(e)){const t=e.filters.find(t=>t.id===e.activeFilterId);t&&(yield t)}else{"object"==typeof t&&(t=t.scale);for(const n of e.filters)l(n.minScale,n.maxScale,t,r)&&(yield n)}}function l(e,t,r,i){return e=p(e),r=p(r),t=c(t),!(!(0,n.Sp)(r,e)&&(i??r)>e||(0,n.Hx)(t,r)||void 0!==i&&(0,n.Sp)(i,e))}function u(e){return"mode"in e?e.mode:e.filterMode}function p(e){return e||Number.POSITIVE_INFINITY}function c(e){return e||0}},17036(e,t,r){r.d(t,{p:()=>l});var n=r(44208),i=r(53966),o=r(20437),s=r(95466),a=r(30524);function l(){return{fields:{type:[o.A],value:null,set:function(e){if(e&&(0,n.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(", ");i.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||i.A.getLogger("esri.layers.support.fieldProperties").error("field-attributes-layer:invalid-field",`Invalid field ${t} found in outFields`,{layer:this,outFields:e})}return(0,a.DB)(this.fieldsIndex,e)}}}}},39383(e,t,r){r.d(t,{w:()=>l,z:()=>c});var n=r(49186),i=r(53966),o=r(46499);const s=()=>i.A.getLogger("esri.layers.support.labelingInfo"),a=/\[([^[\]]+)\]/gi;function l(e,t,r){return e?e.map(e=>{const n=new o.A;if(n.read(e,r),n.labelExpression){const e=t.fields||t.layerDefinition?.fields||this.fields;n.labelExpression=n.labelExpression.replaceAll(a,(t,r)=>`[${function(e,t){if(!t)return e;const r=e.toLowerCase();for(let e=0;e<t.length;e++){const n=t[e].name;if(n.toLowerCase()===r)return n}return e}(r,e)}]`)}return n}):null}const u=["above-right","above-center","above-left","center-center","center-left","center-right","below-center","below-left","below-right"],p={esriGeometryPoint:u,esriGeometryMultiPatch:["always-horizontal"],esriGeometryPolygon:["always-horizontal"],esriGeometryPolyline:["center-along","above-along","below-along"],esriGeometryMultipoint:u,esriGeometryEnvelope:null};function c(e,t){const r=[];for(const i of e){const e=i.labelPlacement,o=p[t];if(!i.symbol)return s().warn("No ILabelClass symbol specified."),[];if(!o)return s().error(new n.A("labeling:unsupported-geometry-type",`Unable to create labels for layer, geometry type '${t}' is not supported`)),[];if(o.includes(e))r.push(i);else{const n=o[0];e&&s().warn(`Found invalid label placement type ${e} for ${t}. Defaulting to ${n}`);const a=i.clone();a.labelPlacement=n,r.push(a)}}return r}},10407(e,t,r){r.d(t,{It:()=>y,LG:()=>s,OM:()=>u,Sm:()=>p,Y:()=>a,bK:()=>l,sQ:()=>c});var n=r(99917),i=r(16930),o=r(28735);function s(e,t){if(!a(e,t)){const r=e.typeKeywords;r?r.push(t):e.typeKeywords=[t]}}function a(e,t){return!!e.typeKeywords?.includes(t)}function l(e){return a(e,d.HOSTED_SERVICE)}function u(e,t){const r=e.typeKeywords;if(r){const e=r.indexOf(t);e>-1&&r.splice(e,1)}}function p(e,t,r){r?s(e,t):u(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=i.A.WGS84;return await(0,n.initializeProjection)(t,r),(0,n.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:n}=e,i=t.user?.privileges;let o=!i||i.includes("features:user:edit"),s=!!r&&!!i?.includes("features:user:fullEdit");const a="update"===n||"admin"===n;return a?s=o=!0:s&&(o=!0),{features:{edit:o,fullEdit:s},content:{updateItem:a}}}r.d(t,["mm",0,d])},98205(e,t,r){r.d(t,{KZ:()=>a,eh:()=>s,gf:()=>o,of:()=>i});const n=Symbol("SizeVariableInstance");function i(e){return null!=e&&"object"==typeof e&&n 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 a(e,t){const r=t||s(e),n=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"===n?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?"proportional":"additive":"identity":"real-world-size"}r.d(t,["uY",0,n])},37745(e,t,r){r.r(t),r.d(t,{default:()=>d});var n,i=r(32198),o=r(52106),s=r(4718),a=r(91429);let l=class extends o.A{static{n=this}constructor(e){super(e),this.stackedAttributes=null}cloneShallow(){return new n(Object.assign({stackedAttributes:this.stackedAttributes},super.cloneShallow()))}toJSON(){return{...super.toJSON(),stackedAttributes:(0,s.o8)(this.stackedAttributes)}}};(0,i.Cg)([(0,a.MZ)()],l.prototype,"stackedAttributes",void 0),l=n=(0,i.Cg)([(0,a.$K)("esri.AttributeBinsGraphic")],l);var u=r(69540),p=r(22671),c=r(36005);let d=class extends((0,u.OU)(p.A)){constructor(e){super(e),this.features=[]}readFeatures(e,t){return this.readFeaturesWithClass(e,t,l)}};(0,i.Cg)([(0,a.MZ)({type:[l],json:{write:!0}})],d.prototype,"features",void 0),(0,i.Cg)([(0,c.w)("features")],d.prototype,"readFeatures",null),d=(0,i.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsFeatureSet")],d)},22671(e,t,r){r.d(t,{A:()=>w});var n,i=r(32198),o=r(52106),s=r(66552),a=r(25482),l=r(4718),u=r(91429),p=r(16930),c=r(60408),d=r(65864),y=r(50498),f=r(20437),h=r(36005),m=r(43937);const g=new s.J({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh","":null});let w=n=class extends a.o{constructor(e){super(e),this.displayFieldName=null,this.exceededTransferLimit=!1,this.features=[],this.fields=null,this.geometryType=null,this.hasM=!1,this.hasZ=!1,this.queryGeometry=null,this.spatialReference=null}readFeatures(e,t){return this.readFeaturesWithClass(e,t,o.A)}writeGeometryType(e,t,r,n){if(e)return void g.write(e,t,r,n);const{features:i}=this;if(i)for(const e of i)if(null!=e?.geometry)return void g.write(e.geometry.type,t,r,n)}readQueryGeometry(e,t){if(!e)return null;const r=!!e.spatialReference,n=(0,d.rS)(e);return n&&!r&&t.spatialReference&&(n.spatialReference=p.A.fromJSON(t.spatialReference)),n}writeSpatialReference(e,t){if(e)return void(t.spatialReference=e.toJSON());const{features:r}=this;if(r)for(const e of r)if(e&&null!=e.geometry&&e.geometry.spatialReference)return void(t.spatialReference=e.geometry.spatialReference.toJSON())}clone(){return new n(this.cloneProperties())}cloneProperties(){return(0,l.o8)({displayFieldName:this.displayFieldName,exceededTransferLimit:this.exceededTransferLimit,features:this.features,fields:this.fields,geometryType:this.geometryType,hasM:this.hasM,hasZ:this.hasZ,queryGeometry:this.queryGeometry,spatialReference:this.spatialReference,transform:this.transform})}toJSON(e){const t=this.write();if(t.features&&Array.isArray(e)&&e.length>0)for(let r=0;r<t.features.length;r++){const n=t.features[r];if(n.geometry){const t=e?.[r];n.geometry=t?.toJSON()||n.geometry}}return t}quantize(e){const{scale:[t,r],translate:[n,i]}=e,o=this.features,s=this._getQuantizationFunction(this.geometryType,e=>Math.round((e-n)/t),e=>Math.round((i-e)/r));for(let e=0,t=o.length;e<t;e++)s?.(o[e].geometry)||(o.splice(e,1),e--,t--);return this.transform=e,this}unquantize(){const{geometryType:e,features:t,transform:r}=this;if(!r)return this;const{translate:[n,i],scale:[o,s]}=r;let a=null,l=null;if(this.hasZ&&null!=r?.scale?.[2]){const{translate:[,,e],scale:[,,t]}=r;a=r=>r*t+e}if(this.hasM&&null!=r?.scale?.[3]){const{translate:[,,,e],scale:[,,,t]}=r;l=r=>null==r?r:r*t+e}const u=this._getHydrationFunction(e,e=>e*o+n,e=>i-e*s,a,l);for(const{geometry:e}of t)null!=e&&u&&u(e);return this.transform=null,this}readFeaturesWithClass(e,t,r){const n=p.A.fromJSON(t.spatialReference),i=[];for(let t=0;t<e.length;t++){const o=e[t],s=r.fromJSON(o),a=o.geometry?.spatialReference;null==s.geometry||a||(s.geometry.spatialReference=n);const l=o.aggregateGeometries,u=s.aggregateGeometries;if(l&&null!=u)for(const e in u){const t=u[e],r=l[e],i=r?.spatialReference;null==t||i||(t.spatialReference=n)}i.push(s)}return i}_quantizePoints(e,t,r){let n,i;const o=[];for(let s=0,a=e.length;s<a;s++){const a=e[s];if(s>0){const e=t(a[0]),s=r(a[1]);e===n&&s===i||(o.push([e-n,s-i]),n=e,i=s)}else n=t(a[0]),i=r(a[1]),o.push([n,i])}return o.length>0?o:null}_getQuantizationFunction(e,t,r){return"point"===e?e=>(e.x=t(e.x),e.y=r(e.y),e):"polyline"===e||"polygon"===e?e=>{const n=(0,c.Bi)(e)?e.rings:e.paths,i=[];for(let e=0,o=n.length;e<o;e++){const o=n[e],s=this._quantizePoints(o,t,r);s&&i.push(s)}return i.length>0?((0,c.Bi)(e)?e.rings=i:e.paths=i,e):null}:"multipoint"===e?e=>{const n=this._quantizePoints(e.points,t,r);return n&&n.length>0?(e.points=n,e):null}:"extent"===e?e=>e:null}_getHydrationFunction(e,t,r,n,i){return"point"===e?e=>{e.x=t(e.x),e.y=r(e.y),n&&(e.z=n(e.z))}:"polyline"===e||"polygon"===e?e=>{const o=(0,c.Bi)(e)?e.rings:e.paths;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];e>0?(s+=i[0],a+=i[1]):(s=i[0],a=i[1]),i[0]=t(s),i[1]=r(a)}}if(n&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2]),r[3]=i(r[3])}}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=n(r[2])}}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];for(let e=0,r=t.length;e<r;e++){const r=t[e];r[2]=i(r[2])}}}:"extent"===e?e=>{e.xmin=t(e.xmin),e.ymin=r(e.ymin),e.xmax=t(e.xmax),e.ymax=r(e.ymax),n&&null!=e.zmax&&null!=e.zmin&&(e.zmax=n(e.zmax),e.zmin=n(e.zmin)),i&&null!=e.mmax&&null!=e.mmin&&(e.mmax=i(e.mmax),e.mmin=i(e.mmin))}:"multipoint"===e?e=>{const o=e.points;let s,a;for(let e=0,n=o.length;e<n;e++){const n=o[e];e>0?(s+=n[0],a+=n[1]):(s=n[0],a=n[1]),n[0]=t(s),n[1]=r(a)}if(n&&i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2]),t[3]=i(t[3])}else if(n)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=n(t[2])}else if(i)for(let e=0,t=o.length;e<t;e++){const t=o[e];t[2]=i(t[2])}}:null}};(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],w.prototype,"displayFieldName",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"exceededTransferLimit",void 0),(0,i.Cg)([(0,u.MZ)({type:[o.A],json:{write:!0}})],w.prototype,"features",void 0),(0,i.Cg)([(0,h.w)("features")],w.prototype,"readFeatures",null),(0,i.Cg)([(0,u.MZ)({type:[f.A],json:{write:!0}})],w.prototype,"fields",void 0),(0,i.Cg)([(0,u.MZ)({type:["point","multipoint","polyline","polygon","extent","mesh"],json:{read:{reader:g.read}}})],w.prototype,"geometryType",void 0),(0,i.Cg)([(0,m.K)("geometryType")],w.prototype,"writeGeometryType",null),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasM",void 0),(0,i.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],w.prototype,"hasZ",void 0),(0,i.Cg)([(0,u.MZ)({types:y.yR,json:{write:!0}})],w.prototype,"queryGeometry",void 0),(0,i.Cg)([(0,h.w)("queryGeometry")],w.prototype,"readQueryGeometry",null),(0,i.Cg)([(0,u.MZ)({type:p.A,json:{write:!0}})],w.prototype,"spatialReference",void 0),(0,i.Cg)([(0,m.K)("spatialReference")],w.prototype,"writeSpatialReference",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],w.prototype,"transform",void 0),w=n=(0,i.Cg)([(0,u.$K)("esri.rest.support.FeatureSet")],w),w.prototype.toJSON.isDefaultToJSON=!0},41366(e,t,r){var n=r(32198),i=r(66552),o=r(53966),s=r(91429),a=r(93223);const l=(0,i.O)()({naturalLog:"natural-log",squareRoot:"square-root",percentOfTotal:"percent-of-total",log:"log",field:"field"}),u="percent-of-total",p="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&&p||r&&u||null,t&&r&&o.A.getLogger(this).warn("warning: both normalizationField and normalizationTotal are set!")):e!==p&&e!==u||(e=null),e}set normalizationType(e){this._set("normalizationType",e)}};return(0,n.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.normalizationField",write:!0}})],r.prototype,"normalizationField",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMaxValue",write:!0}})],r.prototype,"normalizationMaxValue",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationMinValue",write:!0}})],r.prototype,"normalizationMinValue",void 0),(0,n.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.normalizationTotal",write:!0}})],r.prototype,"normalizationTotal",void 0),(0,n.Cg)([(0,a.e)(l,{name:"parameters.normalizationType"})],r.prototype,"normalizationType",null),r=(0,n.Cg)([(0,s.$K)("esri.rest.support.NormalizationBinParametersMixin")],r),r},"Q",0,l])},93470(e,t,r){const n=[252,146,31,255],i={type:"esriSMS",style:"esriSMSCircle",size:6,color:n,outline:{type:"esriSLS",style:"esriSLSSolid",width:.75,color:[153,153,153,255]}},o={type:"esriSLS",style:"esriSLSSolid",width:.75,color:n};r.d(t,["Cb",0,i,"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,n,"nC",0,{type:"esriSMS",style:"esriSMSCircle",color:[0,0,0,255],outline:null,size:10.5},"yM",0,o])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4250],{32198(t,n,e){function r(t,n,e,r){var o,a=arguments.length,u=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,n,e,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(u=(a<3?o(u):a>3?o(n,e,u):o(n,e))||u);return a>3&&u&&Object.defineProperty(n,e,u),u}function o(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,o;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],e&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:r,async:e})}else e&&t.stack.push({async:!0});return n}e.d(n,{Cg:()=>r,hk:()=>u,mS:()=>o}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(t,n,e){var r=new Error(e);return r.name="SuppressedError",r.error=t,r.suppressed=n,r};function u(t){function n(n){t.error=t.hasError?new a(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function o(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(o);if(e.dispose){var a=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(a).then(o,function(t){return n(t),o()})}else r|=1}catch(t){n(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69540(t,n,e){var r=e(32198),o=e(69622),a=(e(44208),e(4718)),u=(e(53966),e(97768)),i=e(88620),s=e(64108);const c=Symbol("ClonableMixin"),l=t=>{var n;const e=t;let o=class extends e{constructor(){super(...arguments),this[n]=!0}static{n=c}clone(t){const n=(0,i.oY)(this);(0,u.Lw)(n,"unable to clone instance of non-accessor class");const e=n.metadata,r=n.store,o={},s=new Map;for(const n in e){const u=e[n],i=r?.originOf(n),c=u.clonable;if(u.readOnly||!1===c||7!==i&&0!==i&&5!==i&&4!==i)continue;const l=this[n];let f=null;if("function"==typeof c)f=c(l,t);else if("reference"===c)f=l;else if(f=(0,a.TU)(l,t),null!=l&&null==f)continue;0===i?s.set(n,f):o[n]=f}const c=new(0,Object.getPrototypeOf(this).constructor)(o);if(s.size){const t=(0,i.oY)(c)?.store;if(t)for(const[n,e]of s)t.set(n,e,0)}return c}};return o=(0,r.Cg)([(0,s.$)("esri.core.Clonable")],o),o},f=l(o.A);e.d(n,["OU",0,l,"Pw",0,f])},29242(t,n,e){function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,a,u,i,s){return[t,n,e,r,o,a,u,i,s]}e.d(n,{fA:()=>o,vt:()=>r});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,a])},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>o,vt:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,n,e,r,o,a,u,i,s,c,l,f,h,d,M,b){return[t,n,e,r,o,a,u,i,s,c,l,f,h,d,M,b]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,a])},51850(t,n,e){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,n,e){return[t,n,e]}function u(t,n,e){return[t,n,e]}function i(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function s(){return a(1,1,1)}function c(){return a(1,0,0)}function l(){return a(0,1,0)}function f(){return a(0,0,1)}e.d(n,{CN:()=>u,ci:()=>i,fA:()=>a,o8:()=>o,vt:()=>r});const h=[0,0,0],d=s(),M=c(),b=l(),p=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:M,UNIT_Y:b,UNIT_Z:p,ZEROS:h,clone:o,create:r,freeze:u,fromArray:i,fromValues:a,ones:s,unitX:c,unitY:l,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Cb",0,p,"Cw",0,M,"JP",0,b,"Un",0,d,"uY",0,h])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function a(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function i(){return o(0,1,0,0)}function s(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>o,vt:()=>r});const l=[0,0,0,0],f=a(),h=u(),d=i(),M=s(),b=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:b,UNIT_X:h,UNIT_Y:d,UNIT_Z:M,ZEROS:l,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:a,unitW:c,unitX:u,unitY:i,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,f,"uY",0,l])},34304(t,n,e){e.d(n,{DF:()=>s,FD:()=>o,ct:()=>c});let r=1e-6;function o(){return r}const a=Math.random,u=Math.PI/180,i=180/Math.PI;function s(t){return t*u}function c(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:s},Symbol.toStringTag,{value:"Module"})),e.d(n,["Ov",0,a])},77690(t,n,e){e.d(n,{B8:()=>i,Ge:()=>d,I0:()=>h,KC:()=>s,a4:()=>c,hZ:()=>a,hs:()=>f,lw:()=>l,mg:()=>u,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,e,r,o,a,u,i,s,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=s,t[8]=c,t}function u(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function i(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=l*u-i*c,h=-l*a+i*s,d=c*a-u*s;let M=e*f+r*h+o*d;return M?(M=1/M,t[0]=f*M,t[1]=(-l*r+o*c)*M,t[2]=(i*r-o*u)*M,t[3]=h*M,t[4]=(l*e-o*s)*M,t[5]=(-i*e+o*a)*M,t[6]=d*M,t[7]=(-c*e+r*s)*M,t[8]=(u*e-r*a)*M,t):null}function s(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8];return t[0]=u*l-i*c,t[1]=o*c-r*l,t[2]=r*i-o*u,t[3]=i*s-a*l,t[4]=e*l-o*s,t[5]=o*a-e*i,t[6]=a*c-u*s,t[7]=r*s-e*c,t[8]=e*u-r*a,t}function c(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],s=t[7],c=t[8];return n*(c*a-u*s)+e*(-c*o+u*i)+r*(s*o-a*i)}function l(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=n[8],h=e[0],d=e[1],M=e[2],b=e[3],p=e[4],m=e[5],y=e[6],g=e[7],w=e[8];return t[0]=h*r+d*u+M*c,t[1]=h*o+d*i+M*l,t[2]=h*a+d*s+M*f,t[3]=b*r+p*u+m*c,t[4]=b*o+p*i+m*l,t[5]=b*a+p*s+m*f,t[6]=y*r+g*u+w*c,t[7]=y*o+g*i+w*l,t[8]=y*a+g*s+w*f,t}function f(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t}function h(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e+e,i=r+r,s=o+o,c=e*u,l=r*u,f=r*i,h=o*u,d=o*i,M=o*s,b=a*u,p=a*i,m=a*s;return t[0]=1-f-M,t[3]=l-m,t[6]=h+p,t[1]=l+m,t[4]=1-c-M,t[7]=d-b,t[2]=h-p,t[5]=d+b,t[8]=1-c-f,t}function d(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=n[9],h=n[10],d=n[11],M=n[12],b=n[13],p=n[14],m=n[15],y=e*i-r*u,g=e*s-o*u,w=e*c-a*u,v=r*s-o*i,A=r*c-a*i,I=o*c-a*s,O=l*b-f*M,S=l*p-h*M,U=l*m-d*M,C=f*p-h*b,x=f*m-d*b,T=h*m-d*p;let q=y*T-g*x+w*C+v*U-A*S+I*O;return q?(q=1/q,t[0]=(i*T-s*x+c*C)*q,t[1]=(s*U-u*T-c*S)*q,t[2]=(u*x-i*U+c*O)*q,t[3]=(o*x-r*T-a*C)*q,t[4]=(e*T-o*U+a*S)*q,t[5]=(r*U-e*x-a*O)*q,t[6]=(b*I-p*A+m*v)*q,t[7]=(p*w-M*I-m*g)*q,t[8]=(M*A-b*w+m*y)*q,t):null}function M(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}const b=l,p=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:s,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:c,equals:function(t,n){const e=t[0],o=t[1],a=t[2],u=t[3],i=t[4],s=t[5],c=t[6],l=t[7],f=t[8],h=n[0],d=n[1],M=n[2],b=n[3],p=n[4],m=n[5],y=n[6],g=n[7],w=n[8],v=(0,r.FD)();return Math.abs(e-h)<=v*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-d)<=v*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-M)<=v*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(u-b)<=v*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(i-p)<=v*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(s-m)<=v*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-y)<=v*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(l-g)<=v*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(f-w)<=v*Math.max(1,Math.abs(f),Math.abs(w))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:h,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:i,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],a=t[2],u=t[3],i=t[4],s=t[5],c=t[6],l=t[7],f=t[8];return Math.abs(1-(e*e+u*u+c*c))<=n&&Math.abs(1-(o*o+i*i+l*l))<=n&&Math.abs(1-(a*a+s*s+f*f))<=n},mul:b,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},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:d,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],u=n[5],i=n[6],s=n[8],c=n[9],l=n[10],f=l*u-i*c,h=-l*a+i*s,d=c*a-u*s,M=e*f+r*h+o*d;if(!M)return null;const b=1/M;return t[0]=f*b,t[1]=(-l*r+o*c)*b,t[2]=(i*r-o*u)*b,t[3]=h*b,t[4]=(l*e-o*s)*b,t[5]=(-i*e+o*a)*b,t[6]=d*b,t[7]=(-c*e+r*s)*b,t[8]=(u*e-r*a)*b,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=n[8],h=Math.sin(e),d=Math.cos(e);return t[0]=d*r+h*u,t[1]=d*o+h*i,t[2]=d*a+h*s,t[3]=d*u-h*r,t[4]=d*i-h*o,t[5]=d*s-h*a,t[6]=c,t[7]=l,t[8]=f,t},scale:f,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:p,subtract:M,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=n[8],h=e[0],d=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=i,t[5]=s,t[6]=h*r+d*u+c,t[7]=h*o+d*i+l,t[8]=h*a+d*s+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},58083(t,n,e){e.d(n,{$0:()=>m,$h:()=>C,B8:()=>l,C:()=>a,D_:()=>i,N9:()=>g,O7:()=>U,Qw:()=>c,Tl:()=>h,X_:()=>I,e$:()=>M,eL:()=>b,hM:()=>y,hZ:()=>u,hs:()=>d,kN:()=>p,l:()=>O,lw:()=>f,mg:()=>s,o1:()=>S,sC:()=>A,t2:()=>q,t5:()=>x,tZ:()=>D,ut:()=>_});var r=e(51850),o=e(34304);function a(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 u(t,n,e,r,o,a,u,i,s,c,l,f,h,d,M,b,p){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=s,t[8]=c,t[9]=l,t[10]=f,t[11]=h,t[12]=d,t[13]=M,t[14]=b,t[15]=p,t}function i(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 s(t,n){if(t===n){const e=n[1],r=n[2],o=n[3],a=n[6],u=n[7],i=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]=a,t[11]=n[14],t[12]=o,t[13]=u,t[14]=i}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 l(t,n)||i(t),t}function l(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=n[9],h=n[10],d=n[11],M=n[12],b=n[13],p=n[14],m=n[15],y=e*i-r*u,g=e*s-o*u,w=e*c-a*u,v=r*s-o*i,A=r*c-a*i,I=o*c-a*s,O=l*b-f*M,S=l*p-h*M,U=l*m-d*M,C=f*p-h*b,x=f*m-d*b,T=h*m-d*p;let q=y*T-g*x+w*C+v*U-A*S+I*O;return q?(q=1/q,t[0]=(i*T-s*x+c*C)*q,t[1]=(o*x-r*T-a*C)*q,t[2]=(b*I-p*A+m*v)*q,t[3]=(h*A-f*I-d*v)*q,t[4]=(s*U-u*T-c*S)*q,t[5]=(e*T-o*U+a*S)*q,t[6]=(p*w-M*I-m*g)*q,t[7]=(l*I-h*w+d*g)*q,t[8]=(u*x-i*U+c*O)*q,t[9]=(r*U-e*x-a*O)*q,t[10]=(M*A-b*w+m*y)*q,t[11]=(f*w-l*A-d*y)*q,t[12]=(i*S-u*C-s*O)*q,t[13]=(e*C-r*S+o*O)*q,t[14]=(b*g-M*v-p*y)*q,t[15]=(l*v-f*g+h*y)*q,t):null}function f(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=n[8],h=n[9],d=n[10],M=n[11],b=n[12],p=n[13],m=n[14],y=n[15];let g=e[0],w=e[1],v=e[2],A=e[3];return t[0]=g*r+w*i+v*f+A*b,t[1]=g*o+w*s+v*h+A*p,t[2]=g*a+w*c+v*d+A*m,t[3]=g*u+w*l+v*M+A*y,g=e[4],w=e[5],v=e[6],A=e[7],t[4]=g*r+w*i+v*f+A*b,t[5]=g*o+w*s+v*h+A*p,t[6]=g*a+w*c+v*d+A*m,t[7]=g*u+w*l+v*M+A*y,g=e[8],w=e[9],v=e[10],A=e[11],t[8]=g*r+w*i+v*f+A*b,t[9]=g*o+w*s+v*h+A*p,t[10]=g*a+w*c+v*d+A*m,t[11]=g*u+w*l+v*M+A*y,g=e[12],w=e[13],v=e[14],A=e[15],t[12]=g*r+w*i+v*f+A*b,t[13]=g*o+w*s+v*h+A*p,t[14]=g*a+w*c+v*d+A*m,t[15]=g*u+w*l+v*M+A*y,t}function h(t,n,e){const r=e[0],o=e[1],a=e[2];if(n===t)t[12]=n[0]*r+n[4]*o+n[8]*a+n[12],t[13]=n[1]*r+n[5]*o+n[9]*a+n[13],t[14]=n[2]*r+n[6]*o+n[10]*a+n[14],t[15]=n[3]*r+n[7]*o+n[11]*a+n[15];else{const e=n[0],u=n[1],i=n[2],s=n[3],c=n[4],l=n[5],f=n[6],h=n[7],d=n[8],M=n[9],b=n[10],p=n[11];t[0]=e,t[1]=u,t[2]=i,t[3]=s,t[4]=c,t[5]=l,t[6]=f,t[7]=h,t[8]=d,t[9]=M,t[10]=b,t[11]=p,t[12]=e*r+c*o+d*a+n[12],t[13]=u*r+l*o+M*a+n[13],t[14]=i*r+f*o+b*a+n[14],t[15]=s*r+h*o+p*a+n[15]}return t}function d(t,n,e){const r=e[0],o=e[1],a=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]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=n[7]*o,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=n[11]*a,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function M(t,n,e,r){let u=r[0],i=r[1],s=r[2],c=Math.sqrt(u*u+i*i+s*s);if(c<=(0,o.FD)())return void a(t,n);c=1/c,u*=c,i*=c,s*=c;const l=Math.sin(e),f=Math.cos(e),h=1-f,d=n[0],M=n[1],b=n[2],p=n[3],m=n[4],y=n[5],g=n[6],w=n[7],v=n[8],A=n[9],I=n[10],O=n[11],S=u*u*h+f,U=i*u*h+s*l,C=s*u*h-i*l,x=u*i*h-s*l,T=i*i*h+f,q=s*i*h+u*l,_=u*s*h+i*l,D=i*s*h-u*l,F=s*s*h+f;t[0]=d*S+m*U+v*C,t[1]=M*S+y*U+A*C,t[2]=b*S+g*U+I*C,t[3]=p*S+w*U+O*C,t[4]=d*x+m*T+v*q,t[5]=M*x+y*T+A*q,t[6]=b*x+g*T+I*q,t[7]=p*x+w*T+O*q,t[8]=d*_+m*D+v*F,t[9]=M*_+y*D+A*F,t[10]=b*_+g*D+I*F,t[11]=p*_+w*D+O*F,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function b(t,n,e){const r=Math.sin(e),o=Math.cos(e),a=n[4],u=n[5],i=n[6],s=n[7],c=n[8],l=n[9],f=n[10],h=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]=a*o+c*r,t[5]=u*o+l*r,t[6]=i*o+f*r,t[7]=s*o+h*r,t[8]=c*o-a*r,t[9]=l*o-u*r,t[10]=f*o-i*r,t[11]=h*o-s*r,t}function p(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 m(t,n,e){if(0===n)return i(t);let r=e[0],a=e[1],u=e[2],s=Math.sqrt(r*r+a*a+u*u);if(s<=(0,o.FD)())return null;s=1/s,r*=s,a*=s,u*=s;const c=Math.sin(n),l=Math.cos(n),f=1-l;return t[0]=r*r*f+l,t[1]=a*r*f+u*c,t[2]=u*r*f-a*c,t[3]=0,t[4]=r*a*f-u*c,t[5]=a*a*f+l,t[6]=u*a*f+r*c,t[7]=0,t[8]=r*u*f+a*c,t[9]=a*u*f-r*c,t[10]=u*u*f+l,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 g(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 w(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=r+r,s=o+o,c=a+a,l=r*i,f=r*s,h=r*c,d=o*s,M=o*c,b=a*c,p=u*i,m=u*s,y=u*c;return t[0]=1-(d+b),t[1]=f+y,t[2]=h-m,t[3]=0,t[4]=f-y,t[5]=1-(l+b),t[6]=M+p,t[7]=0,t[8]=h+m,t[9]=M-p,t[10]=1-(l+d),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const v=(0,r.vt)();function A(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function I(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],u=n[5],i=n[6],s=n[8],c=n[9],l=n[10];return t[0]=Math.sqrt(e*e+r*r+o*o),t[1]=Math.sqrt(a*a+u*u+i*i),t[2]=Math.sqrt(s*s+c*c+l*l),t}function O(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 S(t,n,e,r){const o=n[0],a=n[1],u=n[2],i=n[3],s=o+o,c=a+a,l=u+u,f=o*s,h=o*c,d=o*l,M=a*c,b=a*l,p=u*l,m=i*s,y=i*c,g=i*l,w=r[0],v=r[1],A=r[2];return t[0]=(1-(M+p))*w,t[1]=(h+g)*w,t[2]=(d-y)*w,t[3]=0,t[4]=(h-g)*v,t[5]=(1-(f+p))*v,t[6]=(b+m)*v,t[7]=0,t[8]=(d+y)*A,t[9]=(b-m)*A,t[10]=(1-(f+M))*A,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function U(t,n,e,r,o){const a=n[0],u=n[1],i=n[2],s=n[3],c=a+a,l=u+u,f=i+i,h=a*c,d=a*l,M=a*f,b=u*l,p=u*f,m=i*f,y=s*c,g=s*l,w=s*f,v=r[0],A=r[1],I=r[2],O=o[0],S=o[1],U=o[2],C=(1-(b+m))*v,x=(d+w)*v,T=(M-g)*v,q=(d-w)*A,_=(1-(h+m))*A,D=(p+y)*A,F=(M+g)*I,R=(p-y)*I,j=(1-(h+b))*I;return t[0]=C,t[1]=x,t[2]=T,t[3]=0,t[4]=q,t[5]=_,t[6]=D,t[7]=0,t[8]=F,t[9]=R,t[10]=j,t[11]=0,t[12]=e[0]+O-(C*O+q*S+F*U),t[13]=e[1]+S-(x*O+_*S+R*U),t[14]=e[2]+U-(T*O+D*S+j*U),t[15]=1,t}function C(t,n,e,r,o,a,u){const i=1/(e-n),s=1/(o-r),c=1/(a-u);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*s,t[6]=0,t[7]=0,t[8]=(e+n)*i,t[9]=(o+r)*s,t[10]=(u+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*a*2*c,t[15]=0,t}function x(t,n,e,r){const a=n[0],u=n[1],s=n[2];let c=a-e[0],l=u-e[1],f=s-e[2];const h=(0,o.FD)();if(Math.abs(c)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void i(t);let d=1/Math.sqrt(c*c+l*l+f*f);c*=d,l*=d,f*=d;const M=r[0],b=r[1],p=r[2];let m=b*f-p*l,y=p*c-M*f,g=M*l-b*c;d=Math.sqrt(m*m+y*y+g*g),d?(d=1/d,m*=d,y*=d,g*=d):(m=0,y=0,g=0);let w=l*g-f*y,v=f*m-c*g,A=c*y-l*m;d=Math.sqrt(w*w+v*v+A*A),d?(d=1/d,w*=d,v*=d,A*=d):(w=0,v=0,A=0),t[0]=m,t[1]=w,t[2]=c,t[3]=0,t[4]=y,t[5]=v,t[6]=l,t[7]=0,t[8]=g,t[9]=A,t[10]=f,t[11]=0,t[12]=-(m*a+y*u+g*s),t[13]=-(w*a+v*u+A*s),t[14]=-(c*a+l*u+f*s),t[15]=1}function T(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 q(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 _(t){const n=(0,o.FD)(),e=t[0],r=t[1],a=t[2],u=t[4],i=t[5],s=t[6],c=t[8],l=t[9],f=t[10];return Math.abs(1-(e*e+u*u+c*c))<=n&&Math.abs(1-(r*r+i*i+l*l))<=n&&Math.abs(1-(a*a+s*s+f*f))<=n}function D(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 F=f,R=T;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],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=n[9],h=n[10],d=n[11],M=n[12],b=n[13],p=n[14],m=n[15];return t[0]=i*(h*m-d*p)-f*(s*m-c*p)+b*(s*d-c*h),t[1]=-(r*(h*m-d*p)-f*(o*m-a*p)+b*(o*d-a*h)),t[2]=r*(s*m-c*p)-i*(o*m-a*p)+b*(o*c-a*s),t[3]=-(r*(s*d-c*h)-i*(o*d-a*h)+f*(o*c-a*s)),t[4]=-(u*(h*m-d*p)-l*(s*m-c*p)+M*(s*d-c*h)),t[5]=e*(h*m-d*p)-l*(o*m-a*p)+M*(o*d-a*h),t[6]=-(e*(s*m-c*p)-u*(o*m-a*p)+M*(o*c-a*s)),t[7]=e*(s*d-c*h)-u*(o*d-a*h)+l*(o*c-a*s),t[8]=u*(f*m-d*b)-l*(i*m-c*b)+M*(i*d-c*f),t[9]=-(e*(f*m-d*b)-l*(r*m-a*b)+M*(r*d-a*f)),t[10]=e*(i*m-c*b)-u*(r*m-a*b)+M*(r*c-a*i),t[11]=-(e*(i*d-c*f)-u*(r*d-a*f)+l*(r*c-a*i)),t[12]=-(u*(f*p-h*b)-l*(i*p-s*b)+M*(i*h-s*f)),t[13]=e*(f*p-h*b)-l*(r*p-o*b)+M*(r*h-o*f),t[14]=-(e*(i*p-s*b)-u*(r*p-o*b)+M*(r*s-o*i)),t[15]=e*(i*h-s*f)-u*(r*h-o*f)+l*(r*s-o*i),t},copy:a,determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],s=t[7],c=t[8],l=t[9],f=t[10],h=t[11],d=t[12],M=t[13],b=t[14],p=t[15];return(n*u-e*a)*(f*p-h*b)-(n*i-r*a)*(l*p-h*M)+(n*s-o*a)*(l*b-f*M)+(e*i-r*u)*(c*p-h*d)-(e*s-o*u)*(c*b-f*d)+(r*s-o*i)*(c*M-l*d)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],a=t[2],u=t[3],i=t[4],s=t[5],c=t[6],l=t[7],f=t[8],h=t[9],d=t[10],M=t[11],b=t[12],p=t[13],m=t[14],y=t[15],g=n[0],w=n[1],v=n[2],A=n[3],I=n[4],O=n[5],S=n[6],U=n[7],C=n[8],x=n[9],T=n[10],q=n[11],_=n[12],D=n[13],F=n[14],R=n[15],j=(0,o.FD)();return Math.abs(e-g)<=j*Math.max(1,Math.abs(e),Math.abs(g))&&Math.abs(r-w)<=j*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-v)<=j*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-A)<=j*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(i-I)<=j*Math.max(1,Math.abs(i),Math.abs(I))&&Math.abs(s-O)<=j*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(c-S)<=j*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(l-U)<=j*Math.max(1,Math.abs(l),Math.abs(U))&&Math.abs(f-C)<=j*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(h-x)<=j*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(d-T)<=j*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(M-q)<=j*Math.max(1,Math.abs(M),Math.abs(q))&&Math.abs(b-_)<=j*Math.max(1,Math.abs(b),Math.abs(_))&&Math.abs(p-D)<=j*Math.max(1,Math.abs(p),Math.abs(D))&&Math.abs(m-F)<=j*Math.max(1,Math.abs(m),Math.abs(F))&&Math.abs(y-R)<=j*Math.max(1,Math.abs(y),Math.abs(R))},exactEquals:q,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],o=n[2],a=n[3],u=e+e,i=r+r,s=o+o,c=e*u,l=r*u,f=r*i,h=o*u,d=o*i,M=o*s,b=a*u,p=a*i,m=a*s;return t[0]=1-f-M,t[1]=l+m,t[2]=h-p,t[3]=0,t[4]=l-m,t[5]=1-c-M,t[6]=d+b,t[7]=0,t[8]=h+p,t[9]=d-b,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=v,r=-n[0],o=-n[1],a=-n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=r*r+o*o+a*a+u*u;return f>0?(e[0]=2*(i*u+l*r+s*a-c*o)/f,e[1]=2*(s*u+l*o+c*r-i*a)/f,e[2]=2*(c*u+l*a+i*o-s*r)/f):(e[0]=2*(i*u+l*r+s*a-c*o),e[1]=2*(s*u+l*o+c*r-i*a),e[2]=2*(c*u+l*a+i*o-s*r)),w(t,n,e),t},fromRotation:m,fromRotationTranslation:w,fromRotationTranslationScale:S,fromRotationTranslationScaleOrigin:U,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:p,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:g,frustum:C,getRotation:O,getScale:I,getTranslation:A,hasIdentityRotation:D,identity:i,invert:l,invertOrIdentity:c,isOrthoNormal:_,lookAt:x,mul:F,multiply:f,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,o,a,u){const i=1/(n-e),s=1/(r-o),c=1/(a-u);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+e)*i,t[13]=(o+r)*s,t[14]=(u+a)*c,t[15]=1,t},perspective:function(t,n,e,r,o){const a=1/Math.tan(n/2);let u;return t[0]=a/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,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?(u=1/(r-o),t[10]=(o+r)*u,t[14]=2*o*r*u):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const o=Math.tan(n.upDegrees*Math.PI/180),a=Math.tan(n.downDegrees*Math.PI/180),u=Math.tan(n.leftDegrees*Math.PI/180),i=Math.tan(n.rightDegrees*Math.PI/180),s=2/(u+i),c=2/(o+a);return t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(u-i)*s*.5,t[9]=(o-a)*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:M,rotateX:b,rotateY:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),a=n[0],u=n[1],i=n[2],s=n[3],c=n[8],l=n[9],f=n[10],h=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]=a*o-c*r,t[1]=u*o-l*r,t[2]=i*o-f*r,t[3]=s*o-h*r,t[8]=a*r+c*o,t[9]=u*r+l*o,t[10]=i*r+f*o,t[11]=s*r+h*o,t},rotateZ:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),a=n[0],u=n[1],i=n[2],s=n[3],c=n[4],l=n[5],f=n[6],h=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]=a*o+c*r,t[1]=u*o+l*r,t[2]=i*o+f*r,t[3]=s*o+h*r,t[4]=c*o-a*r,t[5]=l*o-u*r,t[6]=f*o-i*r,t[7]=h*o-s*r,t},scale:d,set:u,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:R,subtract:T,targetTo:function(t,n,e,r){const o=n[0],a=n[1],u=n[2],i=r[0],s=r[1],c=r[2];let l=o-e[0],f=a-e[1],h=u-e[2],d=l*l+f*f+h*h;d>0&&(d=1/Math.sqrt(d),l*=d,f*=d,h*=d);let M=s*h-c*f,b=c*l-i*h,p=i*f-s*l;return d=M*M+b*b+p*p,d>0&&(d=1/Math.sqrt(d),M*=d,b*=d,p*=d),t[0]=M,t[1]=b,t[2]=p,t[3]=0,t[4]=f*p-h*b,t[5]=h*M-l*p,t[6]=l*b-f*M,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=u,t[15]=1,t},translate:h,transpose:s},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>S,Bw:()=>a,C:()=>u,Cc:()=>U,DI:()=>A,Io:()=>y,Ln:()=>m,Om:()=>O,Qr:()=>f,Re:()=>c,S8:()=>I,T9:()=>b,WQ:()=>s,Z0:()=>C,_S:()=>d,aI:()=>R,ei:()=>x,fw:()=>q,gL:()=>T,hG:()=>g,hZ:()=>i,hs:()=>p,jk:()=>M,lw:()=>l,m3:()=>w,oW:()=>j,t2:()=>F,tn:()=>h,ze:()=>v});var r=e(51850),o=e(34304);function a(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function u(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function i(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function s(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 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,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){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function M(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 b(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 p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function m(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],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function w(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function v(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function I(t,n){const e=n[0],r=n[1],o=n[2];let a=e*e+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a),t}function O(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function S(t,n,e){const r=n[0],o=n[1],a=n[2],u=e[0],i=e[1],s=e[2];return t[0]=o*s-a*i,t[1]=a*u-r*s,t[2]=r*i-o*u,t}function U(t,n,e,r){const o=n[0],a=n[1],u=n[2];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t[2]=u+r*(e[2]-u),t}function C(t,n,e){const r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*a+e[12],t[1]=e[1]*r+e[5]*o+e[9]*a+e[13],t[2]=e[2]*r+e[6]*o+e[10]*a+e[14],t}function x(t,n,e){const r=n[0],o=n[1],a=n[2];return t[0]=r*e[0]+o*e[3]+a*e[6],t[1]=r*e[1]+o*e[4]+a*e[7],t[2]=r*e[2]+o*e[5]+a*e[8],t}function T(t,n,e){return q(t,n,e[0],e[1],e[2],e[3])}function q(t,n,e,r,o,a){const u=n[0],i=n[1],s=n[2],c=r*s-o*i,l=o*u-e*s,f=e*i-r*u,h=r*f-o*l,d=o*c-e*f,M=e*l-r*c,b=2*a;return t[0]=u+c*b+2*h,t[1]=i+l*b+2*d,t[2]=s+f*b+2*M,t}const _=(0,r.vt)(),D=(0,r.vt)();function F(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function R(t,n){if(t===n)return!0;const e=t[0],r=t[1],a=t[2],u=n[0],i=n[1],s=n[2],c=(0,o.FD)();return Math.abs(e-u)<=c*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(r-i)<=c*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-s)<=c*Math.max(1,Math.abs(a),Math.abs(s))}function j(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],a=e[2]-n[2];let u=r*r+o*o+a*a;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=o*u,t[2]=a*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const P=c,E=l,k=f,z=y,B=g,L=a,N=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:s,angle:function(t,n){I(_,t),I(D,n);const e=O(_,D);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,a){const u=1-a,i=u*u,s=a*a,c=i*u,l=3*a*i,f=3*s*u,h=s*a;return t[0]=n[0]*c+e[0]*l+r[0]*f+o[0]*h,t[1]=n[1]*c+e[1]*l+r[1]*f+o[1]*h,t[2]=n[2]*c+e[2]*l+r[2]*f+o[2]*h,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:u,cross:S,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=e[0],i=e[1],s=e[2],c=o*s-a*i,l=a*u-r*s,f=r*i-o*u,h=Math.sqrt(c*c+l*l+f*f);return t[0]=c/h,t[1]=l/h,t[2]=f/h,t},direction:j,dist:z,distance:y,div:k,divide:f,dot:O,equals:R,exactEquals:F,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,o,a){const u=a*a,i=u*(2*a-3)+1,s=u*(a-2)+a,c=u*(a-1),l=u*(3-2*a);return t[0]=n[0]*i+e[0]*s+r[0]*c+o[0]*l,t[1]=n[1]*i+e[1]*s+r[1]*c+o[1]*l,t[2]=n[2]*i+e[2]*s+r[2]*c+o[2]*l,t},inverse:A,len:L,length:a,lerp:U,max:b,min:M,mul:E,multiply:l,negate:v,normalize:I,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,a=2*e()-1,u=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*n,t},rotateX:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[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:p,scaleAndAdd:m,scaleTo:function(t,n){return p(t,t,n/L(t))},set:i,sign:d,sqrDist:B,sqrLen:N,squaredDistance:g,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:P,subtract:c,transformMat3:x,transformMat4:C,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:T,transformQuatValues:q},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,L,"jb",0,P,"lo",0,B,"uE",0,N,"xg",0,z])},78955(t,n,e){e.d(n,{Bw:()=>p,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>g,S8:()=>y,T9:()=>f,WQ:()=>u,Z0:()=>v,aI:()=>I,hG:()=>b,hZ:()=>a,hs:()=>d,jk:()=>l,m3:()=>m,t2:()=>A});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function a(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,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 i(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 s(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 l(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 f(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 h(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 d(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 M(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],a=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+a*a)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],a=n[3]-t[3];return e*e+r*r+o*o+a*a}function p(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function m(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function y(t,n){const e=n[0],r=n[1],o=n[2],a=n[3];let u=e*e+r*r+o*o+a*a;return u>0&&(u=1/Math.sqrt(u),t[0]=e*u,t[1]=r*u,t[2]=o*u,t[3]=a*u),t}function g(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function w(t,n,e,r){const o=n[0],a=n[1],u=n[2],i=n[3];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t[2]=u+r*(e[2]-u),t[3]=i+r*(e[3]-i),t}function v(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*a+e[12]*u,t[1]=e[1]*r+e[5]*o+e[9]*a+e[13]*u,t[2]=e[2]*r+e[6]*o+e[10]*a+e[14]*u,t[3]=e[3]*r+e[7]*o+e[11]*a+e[15]*u,t}function A(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function I(t,n){const e=t[0],o=t[1],a=t[2],u=t[3],i=n[0],s=n[1],c=n[2],l=n[3],f=(0,r.FD)();return Math.abs(e-i)<=f*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(o-s)<=f*Math.max(1,Math.abs(o),Math.abs(s))&&Math.abs(a-c)<=f*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(u-l)<=f*Math.max(1,Math.abs(u),Math.abs(l))}const O=i,S=s,U=c,C=M,x=b,T=p,q=m;Object.freeze(Object.defineProperty({__proto__:null,add:u,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:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:C,distance:M,div:U,divide:c,dot:g,equals:I,exactEquals:A,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:T,length:p,lerp:w,max:f,min:l,mul:S,multiply:s,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 o,a,u,i,s,c;do{o=2*e()-1,a=2*e()-1,s=o*o+a*a}while(s>=1);do{u=2*e()-1,i=2*e()-1,c=u*u+i*i}while(c>=1);const l=Math.sqrt((1-s)/c);return t[0]=n*o,t[1]=n*a,t[2]=n*u*l,t[3]=n*i*l,t},round:h,scale:d,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:a,sqrDist:x,sqrLen:q,squaredDistance:b,squaredLength:m,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:O,subtract:i,transformMat4:v,transformQuat:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=e[0],i=e[1],s=e[2],c=e[3],l=c*r+i*a-s*o,f=c*o+s*r-u*a,h=c*a+u*o-i*r,d=-u*r-i*o-s*a;return t[0]=l*c+d*-u+f*-s-h*-i,t[1]=f*c+d*-i+h*-u-l*-s,t[2]=h*c+d*-s+l*-i-f*-u,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},9762(t,n,e){e.r(n),e.d(n,{projectBuffer:()=>o});var r=e(49208);function o(t,n,e,o,a,u,i=Math.floor(t.length/3)){const s=(0,r.jd)(n,a);if(null==s)return!1;if(s===r.pO){if(t===o&&e===u)return!0;const n=e+3*i;for(let r=e,a=u;r<n;r++,a++)o[a]=t[r]??0;return!0}const c=e+3*i;for(let n=e,r=u;n<c;n+=3,r+=3)s(t,n,o,r);return!0}},49208(t,n,e){e.d(n,{Tp:()=>f,jd:()=>l,pO:()=>d});var r=e(34727),o=e(86211),a=e(73941),u=e(79258),i=e(34403),s=e(21325);const c={2:{5:d,7:null,9:null,10:d,1:v,6:null,8:null,0:null,3:b,11:p,2:d,4:U},5:{5:d,7:null,9:null,10:d,1:v,6:null,8:null,0:null,3:b,11:p,2:d,4:U},7:{5:null,7:d,9:null,10:d,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},3:{5:M,7:null,9:null,10:M,1:function(t,n,e,r){const o=t[n]/D,a=_-2*Math.atan(Math.exp(-t[n+1]/D)),u=D+(t[n+2]??0),i=Math.cos(a)*u;e[r]=Math.cos(o)*i,e[r+1]=Math.sin(o)*i,e[r+2]=Math.sin(a)*u},6:null,8:null,0:null,3:d,11:function(t,n,e,r){M(t,n,e,r),p(e,r,e,r)},2:M,4:function(t,n,e,r){M(t,n,e,r),U(e,r,e,r)}},4:{5:C,7:null,9:null,10:C,1:function(t,n,e,r){C(t,n,e,r),v(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){C(t,n,e,r),b(e,r,e,r)},11:function(t,n,e,r){C(t,n,e,r),p(e,r,e,r)},2:C,4:d},1:{5:S,7:null,9:null,10:S,1:d,6:null,8:null,0:null,3:function(t,n,e,r){S(t,n,e,r),b(e,r,e,r)},11:function(t,n,e,r){S(t,n,e,r),p(e,r,e,r)},2:S,4:function(t,n,e,r){S(t,n,e,r),U(e,r,e,r)}},6:{5:null,7:O,9:null,10:O,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:I,10:I,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:v,6:w,8:g,0:null,3:b,11:p,2:d,4:U},11:{5:m,7:null,9:null,10:m,1:function(t,n,e,r){m(t,n,e,r),v(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){m(t,n,e,r),b(e,r,e,r)},11:d,2:m,4:function(t,n,e,r){m(t,n,e,r),U(e,r,e,r)}}};function l(t,n){return f(t,n)?.projector}function f(t,n){if(null==t||null==n)return null;if(x.source.spatialReference===t&&x.dest.spatialReference===n)return x;const e=h(t,x.source),r=h(n,x.dest);return 0===e&&0===r?(0,s.aI)(t,n)?x.projector=d:x.projector=null:x.projector=c[e][r],x}function h(t,n){return t?n.spatialReference===t?n.spatialReferenceId:(n.spatialReference=t,"metersPerUnit"in n&&(n.metersPerUnit=(0,o.GA)(t,1)),(0,a.jA)(t)?n.spatialReferenceId=1:(0,s.oT)(t)?n.spatialReferenceId=2:(0,s.K8)(t)?n.spatialReferenceId=3:(0,s.r1)(t)?n.spatialReferenceId=11:t.wkt===a.Ro.wkt?n.spatialReferenceId=4:4490===t.wkid?n.spatialReferenceId=5:t.wkt===a.FY.wkt?n.spatialReferenceId=6:t.wkt===a.LJ.wkt?n.spatialReferenceId=8:(0,a.q8)(t)?n.spatialReferenceId=7:(0,a.KQ)(t)?n.spatialReferenceId=9:n.spatialReferenceId=0):0}function d(t,n,e,r){t!==e&&(e[r++]=t[n++],e[r++]=t[n++],e[r]=t[n]??0)}function M(t,n,e,r){e[r]=q*(t[n]/D),e[r+1]=q*(_-2*Math.atan(Math.exp(-t[n+1]/D))),e[r+2]=t[n+2]??0}function b(t,n,e,o){!function(t,n,e,o,a){const u=.4999999*Math.PI,i=(0,r.qE)(T*t[n+1],-u,u),s=Math.sin(i);e[o++]=T*t[n]*a.radius,e[o++]=a.halfSemiMajorAxis*Math.log((1+s)/(1-s)),e[o]=t[n+2]??0}(t,n,e,o,u.$O)}function p(t,n,e,r){e[r]=t[n]*F,e[r+1]=t[n+1]*F,e[r+2]=t[n+2]??0}function m(t,n,e,r){e[r]=t[n]*R,e[r+1]=t[n+1]*R,e[r+2]=t[n+2]??0}function y(t,n,e,r,o){const a=o+(t[n+2]??0),u=T*t[n],i=T*t[n+1],s=Math.cos(i)*a;e[r]=Math.cos(u)*s,e[r+1]=Math.sin(u)*s,e[r+2]=Math.sin(i)*a}function g(t,n,e,r){y(t,n,e,r,u.Sw.radius)}function w(t,n,e,r){y(t,n,e,r,u.sH.radius)}function v(t,n,e,r){y(t,n,e,r,u.$O.radius)}function A(t,n,e,o,a){const u=t[n],i=t[n+1],s=t[n+2]??0,c=Math.sqrt(u*u+i*i+s*s),l=(0,r.YN)(s/(0===c?1:c)),f=Math.atan2(i,u);e[o++]=q*f,e[o++]=q*l,e[o]=c-a}function I(t,n,e,r){A(t,n,e,r,u.Sw.radius)}function O(t,n,e,r){A(t,n,e,r,u.sH.radius)}function S(t,n,e,r){A(t,n,e,r,u.$O.radius)}function U(t,n,e,r){!function(t,n,e,r,o){const a=T*t[n],u=T*t[n+1],i=t[n+2]??0,s=Math.sin(u),c=Math.cos(u),l=o.radius/Math.sqrt(1-o.eccentricitySquared*s*s);e[r++]=(l+i)*c*Math.cos(a),e[r++]=(l+i)*c*Math.sin(a),e[r++]=(l*(1-o.eccentricitySquared)+i)*s}(t,n,e,r,u.$O)}function C(t,n,e,r){const o=i.TP,a=t[n],s=t[n+1],c=t[n+2]??0;let l,f,h,d,M,b,p,m,y,g,w,v,A,I,O,S,U,C,x,T,_;l=Math.abs(c),f=a*a+s*s,h=Math.sqrt(f),d=f+c*c,M=Math.sqrt(d),T=Math.atan2(s,a),b=c*c/d,p=f/d,I=o.a2/M,O=o.a3-o.a4/M,p>.3?(m=l/M*(1+p*(o.a1+I+b*O)/M),x=Math.asin(m),g=m*m,y=Math.sqrt(1-g)):(y=h/M*(1-b*(o.a5-I-p*O)/M),x=Math.acos(y),g=1-y*y,m=Math.sqrt(g)),w=1-u.$O.eccentricitySquared*g,v=u.$O.radius/Math.sqrt(w),A=o.a6*v,I=h-v*y,O=l-A*m,U=y*I+m*O,S=y*O-m*I,C=S/(A/w+U),x+=C,_=U+S*C/2,c<0&&(x=-x),e[r++]=q*T,e[r++]=q*x,e[r]=_}const x={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},T=(0,r.kU)(1),q=(0,r.KJ)(1),_=.5*Math.PI,D=u.$O.radius,F=D*Math.PI/180,R=180/(D*Math.PI);e.d(n,["w5",0,c])},98764(t,n,e){e.d(n,{lO:()=>l});var r=e(73941),o=e(16930),a=e(21325);const u=new o.A(r.fv),i=new o.A(r.FY),s=new o.A(r.LJ),c=new o.A(r.Ro);function l(t){const n=f.get(t);if(n)return n;let e=u;if(t)if(t===i)e=i;else if(t===s)e=s;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,a.tl)(n)||(0,a.tl)(r)?e=i:((0,a.ZL)(n)||(0,a.ZL)(r))&&(e=s);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?e=i:t===d&&(e=s)}}}return f.set(t,e),e}const f=new Map,h=i.wkt.toUpperCase(),d=s.wkt.toUpperCase();e.d(n,["GD",0,u,"Y0",0,c])},34403(t,n,e){var r=e(79258);Math.PI;const o=r.$O.radius,a=r.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,e.d(n,["TP",0,u])},64798(t,n,e){e.r(n),e.d(n,{default:()=>j});var r=e(4576),o=e(34275),a=e(82534),u=e(35522);function i(){return new Float32Array(3)}function s(t){const n=new Float32Array(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function c(t,n,e){const r=new Float32Array(3);return r[0]=t,r[1]=n,r[2]=e,r}function l(){return i()}function f(){return c(1,1,1)}function h(){return c(1,0,0)}function d(){return c(0,1,0)}function M(){return c(0,0,1)}const b=l(),p=f(),m=h(),y=d(),g=M();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:m,UNIT_Y:y,UNIT_Z:g,ZEROS:b,clone:s,create:i,fromValues:c,ones:f,unitX:h,unitY:d,unitZ:M,zeros:l},Symbol.toStringTag,{value:"Module"}));var w=e(51850),v=e(16930),A=e(9762),I=e(63531),O=e(69846),S=e(48425),U=e(59418),C=e(37203);function x(t,n,e){return t?.attributeInfo.useElevation?n?function(t,n){const e=new Float64Array(n);for(let r=0;r<n;r++)e[r]=t[3*r+2];return e}(n,e):null:t?.attributeInfo.storageInfo?(0,U.m0)(t.attributeInfo.storageInfo,t.buffer,e,!0):null}function T(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function q(t){let n=0;for(const e of t||[])n|=1<<e;return n}var _=e(57005);class D{transform(t){const n=this._transform(t),e=[n.points.buffer,n.rgb.buffer];null!=n.pointIdFilterMap&&e.push(n.pointIdFilterMap.buffer);for(const t of n.attributes)"buffer"in t.values&&(0,o.mw)(t.values.buffer)&&t.values.buffer!==n.rgb.buffer&&e.push(t.values.buffer);return Promise.resolve({result:n,transferList:e})}_transform(t){const n=function(t,n){if(null==t.encoding||""===t.encoding){const e=(0,U.wH)(n,t);if(null==e.vertexAttributes.position)return;const r=(0,U.MA)(n,e.vertexAttributes.position),o=e.header.fields,a=[o.offsetX,o.offsetY,o.offsetZ],u=[o.scaleX,o.scaleY,o.scaleZ],i=r.length/3,s=new Float64Array(3*i);for(let t=0;t<i;t++)s[3*t]=r[3*t]*u[0]+a[0],s[3*t+1]=r[3*t+1]*u[1]+a[1],s[3*t+2]=r[3*t+2]*u[2]+a[2];return s}if("lepcc-xyz"===t.encoding)return(0,C.Me)(n).result}(t.schema,t.geometryBuffer);let e=n.length/3,o=null;const a=new Array,u=x(t.primaryAttributeData,n,e);null!=t.primaryAttributeData&&u&&a.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:u});const i=x(t.modulationAttributeData,n,e);null!=t.modulationAttributeData&&i&&a.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:i});let s=function(t,n,e,r){const{rendererJSON:o,isRGBRenderer:a}=t;let u=null,i=null;if(n&&a)u=n;else if(n&&"pointCloudUniqueValueRenderer"===o?.type){i=S.A.fromJSON(o);const t=i.colorUniqueValueInfos;u=new Uint8Array(3*r);const e=T(i.fieldTransformType);for(let o=0;o<r;o++){const r=(e?e(n[o]):n[o])+"";for(let n=0;n<t.length;n++)if(t[n].values.includes(r)){u[3*o]=t[n].color.r,u[3*o+1]=t[n].color.g,u[3*o+2]=t[n].color.b;break}}}else if(n&&"pointCloudStretchRenderer"===o?.type){i=O.A.fromJSON(o);const t=i.stops;u=new Uint8Array(3*r);const e=T(i.fieldTransformType);for(let o=0;o<r;o++){const r=e?e(n[o]):n[o],a=t.length-1;if(r<t[0].value)u[3*o]=t[0].color.r,u[3*o+1]=t[0].color.g,u[3*o+2]=t[0].color.b;else if(r>=t[a].value)u[3*o]=t[a].color.r,u[3*o+1]=t[a].color.g,u[3*o+2]=t[a].color.b;else for(let n=1;n<t.length;n++)if(r<t[n].value){const e=(r-t[n-1].value)/(t[n].value-t[n-1].value);u[3*o]=t[n].color.r*e+t[n-1].color.r*(1-e),u[3*o+1]=t[n].color.g*e+t[n-1].color.g*(1-e),u[3*o+2]=t[n].color.b*e+t[n-1].color.b*(1-e);break}}}else if(n&&"pointCloudClassBreaksRenderer"===o?.type){i=I.A.fromJSON(o);const t=i.colorClassBreakInfos;u=new Uint8Array(3*r);const e=T(i.fieldTransformType);for(let o=0;o<r;o++){const r=e?e(n[o]):n[o];for(let n=0;n<t.length;n++)if(r>=t[n].minValue&&r<=t[n].maxValue){u[3*o]=t[n].color.r,u[3*o+1]=t[n].color.g,u[3*o+2]=t[n].color.b;break}}}else u=new Uint8Array(3*r).fill(255);if(e&&i?.colorModulation){const t=i.colorModulation.minValue,n=i.colorModulation.maxValue,o=.3;for(let a=0;a<r;a++){const r=e[a],i=r>=n?1:r<=t?o:o+(1-o)*(r-t)/(n-t);u[3*a]=i*u[3*a],u[3*a+1]=i*u[3*a+1],u[3*a+2]=i*u[3*a+2]}}return u}(t.rendererInfo,u,i,e);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){const u=t.filterAttributesData.filter(r.Ru).map(t=>{const r=x(t,n,e),o={attributeInfo:t.attributeInfo,values:r};return a.push(o),o});o=new Uint32Array(e),e=function(t,n,e,r,o){const a=t.length/3,u=function(t){return t.map(t=>{const{filterJSON:n}=t;switch(n.type){case"pointCloudValueFilter":return{...t,valuesSet:new Set(n.values)};case"pointCloudBitfieldFilter":return{...t,clearMask:q(n.requiredClearBits),requiredMask:q(n.requiredSetBits)};default:return t}})}(r);let i=0;for(let r=0;r<a;r++){let a=!0;for(let t=0;t<u.length&&a;t++){const{clearMask:n,filterJSON:e,requiredMask:i,valuesSet:s}=u[t],c=o[t].values[r];switch(e.type){case"pointCloudValueFilter":{const t="exclude"===e.mode;s.has(c)===t&&(a=!1);break}case"pointCloudBitfieldFilter":(c&i)===i&&0===(c&n)||(a=!1);break;case"pointCloudReturnFilter":{const t=15&c,n=c>>>4&15,r=n>1,o=1===t,u=t===n;let i=!1;for(const t of e.includedReturns)if("last"===t&&u||"firstOfMany"===t&&o&&r||"lastOfMany"===t&&u&&r||"single"===t&&!r){i=!0;break}i||(a=!1);break}}}a&&(e[i]=r,t[3*i]=t[3*r],t[3*i+1]=t[3*r+1],t[3*i+2]=t[3*r+2],n[3*i]=n[3*r],n[3*i+1]=n[3*r+1],n[3*i+2]=n[3*r+2],i++)}return i}(n,s,o,t.filterInfo,u)}for(const r of t.userAttributesData){const t=x(r,n,e);a.push({attributeInfo:r.attributeInfo,values:t})}3*e<s.length&&(s=s.slice(0,3*e)),function(t,n,e){if(0!==e)for(let r=0;r<n;r++)t[3*r+2]+=e}(n,e,t.elevationOffset);const c=F(n,e,_.ab.fromData(t.obbData),v.A.fromJSON(t.inSR),v.A.fromJSON(t.outSR));return{obbData:t.obbData,points:c,rgb:s,attributes:a,pointIdFilterMap:o}}}function F(t,n,e,r,o){if(!(0,A.projectBuffer)(t,r,0,t,o,0,n))throw new Error("Can't reproject");const a=s(e.getCenter((0,w.vt)())),l=i(),f=i(),h=c(e.halfSizeX,e.halfSizeY,e.halfSizeZ);e.getQuaternionConjugate(R);const d=new Float32Array(3*n);for(let e=0;e<n;e++){let n=3*e;l[0]=t[n]-a[0],l[1]=t[n+1]-a[1],l[2]=t[n+2]-a[2],(0,u.gL)(f,l,R),h[0]=Math.max(h[0],Math.abs(f[0])),h[1]=Math.max(h[1],Math.abs(f[1])),h[2]=Math.max(h[2],Math.abs(f[2])),d[n++]=l[0],d[n++]=l[1],d[n]=l[2]}return e.setHalfSize(h),d}const R=(0,a.vt)();function j(){return new D}},59418(t,n,e){e.d(n,{wH:()=>b,MA:()=>h,E5:()=>d,m0:()=>m});var r=e(49186),o=e(4718),a=e(53966),u=e(34275),i=e(37203);const s=()=>a.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(t,n,e){let o="",a=0;for(;a<e;){const u=t[n+a];if(u<128)o+=String.fromCharCode(u),a++;else if(u>=192&&u<224){if(a+1>=e)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const i=(31&u)<<6|63&t[n+a+1];o+=String.fromCharCode(i),a+=2}else if(u>=224&&u<240){if(a+2>=e)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const i=(15&u)<<12|(63&t[n+a+1])<<6|63&t[n+a+2];o+=String.fromCharCode(i),a+=3}else{if(!(u>=240&&u<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(a+3>=e)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const i=(7&u)<<18|(63&t[n+a+1])<<12|(63&t[n+a+2])<<6|63&t[n+a+3];if(i>=65536){const t=55296+(i-65536>>10),n=56320+(1023&i);o+=String.fromCharCode(t,n)}else o+=String.fromCharCode(i);a+=4}}}return o}function l(t,n){const e={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<n.length;o++){const a=n[o],u=a.valueType||a.type,i=g[u];e.fields[a.property]=i(t,r),r+=y[u].BYTES_PER_ELEMENT}return e.byteCount=r,e}function f(t,n,e){const o=[];let a,u,i=0;for(u=0;u<t;u+=1){if(a=n[u],a>0){if(o.push(c(e,i,a-1)),0!==e[i+a-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else o.push(null);i+=a}return o}function h(t,n){return new(0,y[n.valueType])(t,n.byteOffset,n.count*n.valuesPerElement)}function d(t,n){if(!t)return null;const e=t[n];return(0,u.IY)(t)?-32768===e?null:e:(0,u._G)(t)?e===u.h2?null:e:e!=e?null:e}function M(t,n,e){if(n!==t&&s().error(`Invalid ${e} buffer size\n expected: ${t}, actual: ${n})`),n<t)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:n})}function b(t,n){const e=l(t,n&&n.header);let r=e.byteCount;const o={isDraco:!1,header:e,byteOffset:e.byteCount,byteCount:0,vertexAttributes:{}},a=e.fields,u=null!=a.vertexCount?a.vertexCount:a.count;for(const t of n.ordering){if(!n.vertexAttributes[t])continue;const e={...n.vertexAttributes[t],byteOffset:r,count:u},a=p[t]||"_"+t;o.vertexAttributes[a]=e,r+=v(e.valueType)*e.valuesPerElement*u}const i=a.faceCount;if(n.faces&&i){o.faces={};for(const t of n.ordering){if(!n.faces[t])continue;const e={...n.faces[t],byteOffset:r,count:i};o.faces[t]=e,r+=v(e.valueType)*e.valuesPerElement*i}}const s=a.featureCount;if(n.featureAttributes&&n.featureAttributeOrder&&s){o.featureAttributes={};for(const t of n.featureAttributeOrder){if(!n.featureAttributes[t])continue;const e={...n.featureAttributes[t],byteOffset:r,count:s};o.featureAttributes[t]=e,r+=("UInt64"===e.valueType?8:v(e.valueType))*e.valuesPerElement*s}}return M(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const p={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function m(t,n,e,a=!1){if("lepcc-rgb"===t.encoding)return a?(0,i.mb)(n):function(t){return Array.isArray(t)?t.length<1024?t:new Uint8Array(t):t.length<1024?Array.from(t):t}((0,i.mb)(n));if("lepcc-intensity"===t.encoding)return a?(0,i.Ax)(n):function(t){return Array.isArray(t)?t.length<1024?t:new Uint16Array(t):t.length<1024?Array.from(t):t}((0,i.Ax)(n));if(null!=t.encoding&&""!==t.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(s().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(s().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");const u=function(t,n,e){const a=null!=n.header?l(t,n.header):{byteOffset:0,byteCount:0,fields:{count:e}},u={header:a,byteOffset:a.byteCount,byteCount:0,entries:Object.create(null)};let i=a.byteCount;for(let t=0;t<n.ordering.length;t++){const e=n.ordering[t],s=(0,o.o8)(n[e]);if(s.count=a.fields.count??0,"String"===s.valueType){if(s.byteOffset=i,s.byteCount=a.fields[e+"ByteCount"],"UTF-8"!==s.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:s.encoding});if(s.timeEncoding&&"ECMA_ISO8601"!==s.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:s.timeEncoding})}else{if(!w(s.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:s.valueType});{const t=v(s.valueType);i+=i%t!==0?t-i%t:0,s.byteOffset=i,s.byteCount=t*s.valuesPerElement*s.count}}i+=s.byteCount??0,u.entries[e]=s}return u.byteCount=i-u.byteOffset,u}(n,t,e);M(u.byteOffset+u.byteCount,n.byteLength,"attribute");const c=u.entries.attributeValues||u.entries.objectIds;if(c){if("String"===c.valueType){const t=u.entries.attributeByteCounts,e=h(n,t),r=function(t,n){return new Uint8Array(t,n.byteOffset,n.byteCount)}(n,c);return c.timeEncoding?function(t,n,e){return f(t,n,e).map(t=>{const n=t?Date.parse(t):null;return null==n||Number.isNaN(n)?null:n})}(t.count,e,r):f(t.count,e,r)}return a?h(n,c):function(t,n){const e=h(t,n);if(e.length>=1024)return e;const r=new Array;return e.forEach((t,n)=>r.push(d(e,n))),r}(n,c)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},g={Float32:(t,n)=>new DataView(t,0).getFloat32(n,!0),Float64:(t,n)=>new DataView(t,0).getFloat64(n,!0),UInt8:(t,n)=>new DataView(t,0).getUint8(n),Int8:(t,n)=>new DataView(t,0).getInt8(n),UInt16:(t,n)=>new DataView(t,0).getUint16(n,!0),Int16:(t,n)=>new DataView(t,0).getInt16(n,!0),UInt32:(t,n)=>new DataView(t,0).getUint32(n,!0),Int32:(t,n)=>new DataView(t,0).getInt32(n,!0)};function w(t){return y.hasOwnProperty(t)}function v(t){return w(t)?y[t].BYTES_PER_ELEMENT:0}},37203(t,n,e){e.d(n,{Ax:()=>d,Me:()=>i,mb:()=>f});var r=e(49186);const o=!0;function a(t,n,e){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,e+0,10)),version:n.getUint16(e+10,o),checksum:n.getUint32(e+12,o)}}function u(t,n){return{sizeLo:t.getUint32(n+0,o),sizeHi:t.getUint32(n+4,o),minX:t.getFloat64(n+8,o),minY:t.getFloat64(n+16,o),minZ:t.getFloat64(n+24,o),maxX:t.getFloat64(n+32,o),maxY:t.getFloat64(n+40,o),maxZ:t.getFloat64(n+48,o),errorX:t.getFloat64(n+56,o),errorY:t.getFloat64(n+64,o),errorZ:t.getFloat64(n+72,o),count:t.getUint32(n+80,o),reserved:t.getUint32(n+84,o)}}function i(t){const n=new DataView(t,0);let e=0;const{identifier:o,version:i}=a(t,n,e);if(e+=16,"LEPCC "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(i>1)throw new r.A("lepcc-decode-error","Unknown version");const c=u(n,e);if(e+=88,c.sizeHi*2**32+c.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const l=new Float64Array(3*c.count),f=[],h=[],d=[],M=[];if(e=s(t,e,f),e=s(t,e,h),e=s(t,e,d),e=s(t,e,M),e!==t.byteLength)throw new r.A("lepcc-decode-error","Bad length");let b=0,p=0;for(let t=0;t<f.length;t++){p+=f[t];let n=0;for(let e=0;e<h[t];e++){n+=d[b];const t=M[b];l[3*b]=Math.min(c.maxX,c.minX+2*c.errorX*n),l[3*b+1]=Math.min(c.maxY,c.minY+2*c.errorY*p),l[3*b+2]=Math.min(c.maxZ,c.minZ+2*c.errorZ*t),b++}}return{errorX:c.errorX,errorY:c.errorY,errorZ:c.errorZ,result:l}}function s(t,n,e){const r=[];n=c(t,n,r);const o=[];for(let a=0;a<r.length;a++){o.length=0,n=c(t,n,o);for(let t=0;t<o.length;t++)e.push(o[t]+r[a])}return n}function c(t,n,e){const a=new DataView(t,n),u=a.getUint8(0),i=31&u,s=!!(32&u),c=(192&u)>>6;let l=0;if(0===c)l=a.getUint32(1,o),n+=5;else if(1===c)l=a.getUint16(1,o),n+=3;else{if(2!==c)throw new r.A("lepcc-decode-error","Bad count type");l=a.getUint8(1),n+=2}if(s)throw new r.A("lepcc-decode-error","LUT not implemented");const f=Math.ceil(l*i/8),h=new Uint8Array(t,n,f);let d=0,M=0,b=0;const p=-1>>>32-i;for(let t=0;t<l;t++){for(;M<i;)d|=h[b]<<M,M+=8,b+=1;e[t]=d&p,d>>>=i,M-=i,M+i>32&&(d|=h[b-1]>>8-M)}return n+b}function l(t,n){return{sizeLo:t.getUint32(n+0,o),sizeHi:t.getUint32(n+4,o),count:t.getUint32(n+8,o),colorMapCount:t.getUint16(n+12,o),lookupMethod:t.getUint8(n+14),compressionMethod:t.getUint8(n+15)}}function f(t){const n=new DataView(t,0);let e=0;const{identifier:o,version:u}=a(t,n,e);if(e+=16,"ClusterRGB"!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const i=l(n,e);if(e+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===i.lookupMethod||1===i.lookupMethod)&&0===i.compressionMethod){if(3*i.colorMapCount+i.count+e!==t.byteLength||i.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");const n=new Uint8Array(t,e,3*i.colorMapCount),o=new Uint8Array(t,e+3*i.colorMapCount,i.count),a=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++){const e=o[t];a[3*t]=n[3*e],a[3*t+1]=n[3*e+1],a[3*t+2]=n[3*e+2]}return a}if(0===i.lookupMethod&&0===i.compressionMethod){if(3*i.count+e!==t.byteLength||0!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(t,e).slice()}if(i.lookupMethod<=2&&1===i.compressionMethod){if(e+3!==t.byteLength||1!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");const o=n.getUint8(e),a=n.getUint8(e+1),u=n.getUint8(e+2),s=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++)s[3*t]=o,s[3*t+1]=a,s[3*t+2]=u;return s}throw new r.A("lepcc-decode-error","Bad method "+i.lookupMethod+","+i.compressionMethod)}function h(t,n){return{sizeLo:t.getUint32(n+0,o),sizeHi:t.getUint32(n+4,o),count:t.getUint32(n+8,o),scaleFactor:t.getUint16(n+12,o),bitsPerPoint:t.getUint8(n+14),reserved:t.getUint8(n+15)}}function d(t){const n=new DataView(t,0);let e=0;const{identifier:o,version:u}=a(t,n,e);if(e+=16,"Intensity "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const i=h(n,e);if(e+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const s=new Uint16Array(i.count);if(8===i.bitsPerPoint){if(i.count+e!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const n=new Uint8Array(t,e,i.count);for(let t=0;t<i.count;t++)s[t]=n[t]*i.scaleFactor}else if(16===i.bitsPerPoint){if(2*i.count+e!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const n=new Uint16Array(t,e,i.count);for(let t=0;t<i.count;t++)s[t]=n[t]*i.scaleFactor}else{const n=[];if(c(t,e,n)!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let t=0;t<i.count;t++)s[t]=n[t]*i.scaleFactor}return s}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4250],{32198(t,n,e){function r(t,n,e,r){var o,a=arguments.length,u=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,n,e,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(u=(a<3?o(u):a>3?o(n,e,u):o(n,e))||u);return a>3&&u&&Object.defineProperty(n,e,u),u}function o(t,n,e){if(null!=n){if("object"!=typeof n&&"function"!=typeof n)throw new TypeError("Object expected.");var r,o;if(e){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],e&&(o=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(t){return Promise.reject(t)}}),t.stack.push({value:n,dispose:r,async:e})}else e&&t.stack.push({async:!0});return n}e.d(n,{Cg:()=>r,hk:()=>u,mS:()=>o}),Object.create,Object.create;var a="function"==typeof SuppressedError?SuppressedError:function(t,n,e){var r=new Error(e);return r.name="SuppressedError",r.error=t,r.suppressed=n,r};function u(t){function n(n){t.error=t.hasError?new a(n,t.error,"An error was suppressed during disposal."):n,t.hasError=!0}var e,r=0;return function o(){for(;e=t.stack.pop();)try{if(!e.async&&1===r)return r=0,t.stack.push(e),Promise.resolve().then(o);if(e.dispose){var a=e.dispose.call(e.value);if(e.async)return r|=2,Promise.resolve(a).then(o,function(t){return n(t),o()})}else r|=1}catch(t){n(t)}if(1===r)return t.hasError?Promise.reject(t.error):Promise.resolve();if(t.hasError)throw t.error}()}},69540(t,n,e){var r=e(32198),o=e(69622),a=(e(44208),e(4718)),u=(e(53966),e(97768)),i=e(88620),s=e(64108);const c=Symbol("ClonableMixin"),l=t=>{var n;const e=t;let o=class extends e{constructor(){super(...arguments),this[n]=!0}static{n=c}clone(t){const n=(0,i.oY)(this);(0,u.Lw)(n,"unable to clone instance of non-accessor class");const e=n.metadata,r=n.store,o={},s=new Map;for(const n in e){const u=e[n],i=r?.originOf(n),c=u.clonable;if(u.readOnly||!1===c||7!==i&&0!==i&&5!==i&&4!==i)continue;const l=this[n];let f=null;if("function"==typeof c)f=c(l,t);else if("reference"===c)f=l;else if(f=(0,a.TU)(l,t),null!=l&&null==f)continue;0===i?s.set(n,f):o[n]=f}const c=new(0,Object.getPrototypeOf(this).constructor)(o);if(s.size){const t=(0,i.oY)(c)?.store;if(t)for(const[n,e]of s)t.set(n,e,0)}return c}};return o=(0,r.Cg)([(0,s.$)("esri.core.Clonable")],o),o},f=l(o.A);e.d(n,["OU",0,l,"Pw",0,f])},29242(t,n,e){function r(){return[1,0,0,0,1,0,0,0,1]}function o(t,n,e,r,o,a,u,i,s){return[t,n,e,r,o,a,u,i,s]}e.d(n,{fA:()=>o,vt:()=>r});const a=[1,0,0,0,1,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,fromValues:o},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,a])},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}e.d(n,{o8:()=>o,vt:()=>r});const a=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:a,clone:o,create:r,fromValues:function(t,n,e,r,o,a,u,i,s,c,l,f,h,d,M,b){return[t,n,e,r,o,a,u,i,s,c,l,f,h,d,M,b]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,a])},51850(t,n,e){function r(){return[0,0,0]}function o(t){return[t[0],t[1],t[2]]}function a(t,n,e){return[t,n,e]}function u(t,n,e){return[t,n,e]}function i(t,n=[0,0,0]){const e=Math.min(3,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n}function s(){return a(1,1,1)}function c(){return a(1,0,0)}function l(){return a(0,1,0)}function f(){return a(0,0,1)}e.d(n,{CN:()=>u,ci:()=>i,fA:()=>a,o8:()=>o,vt:()=>r});const h=[0,0,0],d=s(),M=c(),b=l(),p=f();Object.freeze(Object.defineProperty({__proto__:null,ONES:d,UNIT_X:M,UNIT_Y:b,UNIT_Z:p,ZEROS:h,clone:o,create:r,freeze:u,fromArray:i,fromValues:a,ones:s,unitX:c,unitY:l,unitZ:f,zeros:function(){return[0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Cb",0,p,"Cw",0,M,"JP",0,b,"Un",0,d,"uY",0,h])},91829(t,n,e){function r(){return[0,0,0,0]}function o(t,n,e,r){return[t,n,e,r]}function a(){return o(1,1,1,1)}function u(){return o(1,0,0,0)}function i(){return o(0,1,0,0)}function s(){return o(0,0,1,0)}function c(){return o(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>o,vt:()=>r});const l=[0,0,0,0],f=a(),h=u(),d=i(),M=s(),b=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:b,UNIT_X:h,UNIT_Y:d,UNIT_Z:M,ZEROS:l,clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,freeze:function(t,n,e,r){return[t,n,e,r]},fromArray:function(t,n=[0,0,0,0]){const e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:o,ones:a,unitW:c,unitX:u,unitY:i,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,f,"uY",0,l])},34304(t,n,e){e.d(n,{DF:()=>s,FD:()=>o,ct:()=>c});let r=1e-6;function o(){return r}const a=Math.random,u=Math.PI/180,i=180/Math.PI;function s(t){return t*u}function c(t){return t*i}Object.freeze(Object.defineProperty({__proto__:null,RANDOM:a,equals:function(t,n){return Math.abs(t-n)<=r*Math.max(1,Math.abs(t),Math.abs(n))},getEpsilon:o,setEpsilon:function(t){r=t},toDegree:c,toRadian:s},Symbol.toStringTag,{value:"Module"})),e.d(n,["Ov",0,a])},77690(t,n,e){e.d(n,{B8:()=>i,Ge:()=>d,I0:()=>h,KC:()=>s,a4:()=>c,hZ:()=>a,hs:()=>f,lw:()=>l,mg:()=>u,z0:()=>o});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,e,r,o,a,u,i,s,c){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=s,t[8]=c,t}function u(t,n){if(t===n){const e=n[1],r=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=e,t[5]=n[7],t[6]=r,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function i(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=l*u-i*c,h=-l*a+i*s,d=c*a-u*s;let M=e*f+r*h+o*d;return M?(M=1/M,t[0]=f*M,t[1]=(-l*r+o*c)*M,t[2]=(i*r-o*u)*M,t[3]=h*M,t[4]=(l*e-o*s)*M,t[5]=(-i*e+o*a)*M,t[6]=d*M,t[7]=(-c*e+r*s)*M,t[8]=(u*e-r*a)*M,t):null}function s(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8];return t[0]=u*l-i*c,t[1]=o*c-r*l,t[2]=r*i-o*u,t[3]=i*s-a*l,t[4]=e*l-o*s,t[5]=o*a-e*i,t[6]=a*c-u*s,t[7]=r*s-e*c,t[8]=e*u-r*a,t}function c(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],s=t[7],c=t[8];return n*(c*a-u*s)+e*(-c*o+u*i)+r*(s*o-a*i)}function l(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=n[8],h=e[0],d=e[1],M=e[2],b=e[3],p=e[4],m=e[5],y=e[6],g=e[7],w=e[8];return t[0]=h*r+d*u+M*c,t[1]=h*o+d*i+M*l,t[2]=h*a+d*s+M*f,t[3]=b*r+p*u+m*c,t[4]=b*o+p*i+m*l,t[5]=b*a+p*s+m*f,t[6]=y*r+g*u+w*c,t[7]=y*o+g*i+w*l,t[8]=y*a+g*s+w*f,t}function f(t,n,e){const r=e[0],o=e[1],a=e[2];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t}function h(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=e+e,i=r+r,s=o+o,c=e*u,l=r*u,f=r*i,h=o*u,d=o*i,M=o*s,b=a*u,p=a*i,m=a*s;return t[0]=1-f-M,t[3]=l-m,t[6]=h+p,t[1]=l+m,t[4]=1-c-M,t[7]=d-b,t[2]=h-p,t[5]=d+b,t[8]=1-c-f,t}function d(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=n[9],h=n[10],d=n[11],M=n[12],b=n[13],p=n[14],m=n[15],y=e*i-r*u,g=e*s-o*u,w=e*c-a*u,v=r*s-o*i,A=r*c-a*i,I=o*c-a*s,O=l*b-f*M,S=l*p-h*M,U=l*m-d*M,C=f*p-h*b,x=f*m-d*b,T=h*m-d*p;let q=y*T-g*x+w*C+v*U-A*S+I*O;return q?(q=1/q,t[0]=(i*T-s*x+c*C)*q,t[1]=(s*U-u*T-c*S)*q,t[2]=(u*x-i*U+c*O)*q,t[3]=(o*x-r*T-a*C)*q,t[4]=(e*T-o*U+a*S)*q,t[5]=(r*U-e*x-a*O)*q,t[6]=(b*I-p*A+m*v)*q,t[7]=(p*w-M*I-m*g)*q,t[8]=(M*A-b*w+m*y)*q,t):null}function M(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}const b=l,p=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t[4]=n[4]+e[4],t[5]=n[5]+e[5],t[6]=n[6]+e[6],t[7]=n[7]+e[7],t[8]=n[8]+e[8],t},adjoint:s,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:c,equals:function(t,n){const e=t[0],o=t[1],a=t[2],u=t[3],i=t[4],s=t[5],c=t[6],l=t[7],f=t[8],h=n[0],d=n[1],M=n[2],b=n[3],p=n[4],m=n[5],y=n[6],g=n[7],w=n[8],v=(0,r.FD)();return Math.abs(e-h)<=v*Math.max(1,Math.abs(e),Math.abs(h))&&Math.abs(o-d)<=v*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-M)<=v*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(u-b)<=v*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(i-p)<=v*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(s-m)<=v*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-y)<=v*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(l-g)<=v*Math.max(1,Math.abs(l),Math.abs(g))&&Math.abs(f-w)<=v*Math.max(1,Math.abs(f),Math.abs(w))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:h,fromRotation:function(t,n){const e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=-e,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:i,isOrthoNormal:function(t){const n=(0,r.FD)(),e=t[0],o=t[1],a=t[2],u=t[3],i=t[4],s=t[5],c=t[6],l=t[7],f=t[8];return Math.abs(1-(e*e+u*u+c*c))<=n&&Math.abs(1-(o*o+i*i+l*l))<=n&&Math.abs(1-(a*a+s*s+f*f))<=n},mul:b,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},multiplyScalarAndAdd:function(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t[3]=n[3]+e[3]*r,t[4]=n[4]+e[4]*r,t[5]=n[5]+e[5]*r,t[6]=n[6]+e[6]*r,t[7]=n[7]+e[7]*r,t[8]=n[8]+e[8]*r,t},normalFromMat4:d,normalFromMat4Legacy:function(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],u=n[5],i=n[6],s=n[8],c=n[9],l=n[10],f=l*u-i*c,h=-l*a+i*s,d=c*a-u*s,M=e*f+r*h+o*d;if(!M)return null;const b=1/M;return t[0]=f*b,t[1]=(-l*r+o*c)*b,t[2]=(i*r-o*u)*b,t[3]=h*b,t[4]=(l*e-o*s)*b,t[5]=(-i*e+o*a)*b,t[6]=d*b,t[7]=(-c*e+r*s)*b,t[8]=(u*e-r*a)*b,t},projection:function(t,n,e){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/e,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=n[8],h=Math.sin(e),d=Math.cos(e);return t[0]=d*r+h*u,t[1]=d*o+h*i,t[2]=d*a+h*s,t[3]=d*u-h*r,t[4]=d*i-h*o,t[5]=d*s-h*a,t[6]=c,t[7]=l,t[8]=f,t},scale:f,scaleByVec2:function(t,n,e){const r=e[0],o=e[1];return t[0]=r*n[0],t[1]=r*n[1],t[2]=r*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:p,subtract:M,translate:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=n[8],h=e[0],d=e[1];return t[0]=r,t[1]=o,t[2]=a,t[3]=u,t[4]=i,t[5]=s,t[6]=h*r+d*u+c,t[7]=h*o+d*i+l,t[8]=h*a+d*s+f,t},transpose:u},Symbol.toStringTag,{value:"Module"}))},58083(t,n,e){e.d(n,{$0:()=>m,$h:()=>C,B8:()=>l,C:()=>a,D_:()=>i,N9:()=>g,O7:()=>U,Qw:()=>c,Tl:()=>h,X_:()=>I,e$:()=>M,eL:()=>b,hM:()=>y,hZ:()=>u,hs:()=>d,kN:()=>p,l:()=>O,lw:()=>f,mg:()=>s,o1:()=>S,sC:()=>A,t2:()=>q,t5:()=>x,tZ:()=>D,ut:()=>_});var r=e(51850),o=e(34304);function a(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 u(t,n,e,r,o,a,u,i,s,c,l,f,h,d,M,b,p){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,t[4]=a,t[5]=u,t[6]=i,t[7]=s,t[8]=c,t[9]=l,t[10]=f,t[11]=h,t[12]=d,t[13]=M,t[14]=b,t[15]=p,t}function i(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 s(t,n){if(t===n){const e=n[1],r=n[2],o=n[3],a=n[6],u=n[7],i=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]=a,t[11]=n[14],t[12]=o,t[13]=u,t[14]=i}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 l(t,n)||i(t),t}function l(t,n){const e=n[0],r=n[1],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=n[9],h=n[10],d=n[11],M=n[12],b=n[13],p=n[14],m=n[15],y=e*i-r*u,g=e*s-o*u,w=e*c-a*u,v=r*s-o*i,A=r*c-a*i,I=o*c-a*s,O=l*b-f*M,S=l*p-h*M,U=l*m-d*M,C=f*p-h*b,x=f*m-d*b,T=h*m-d*p;let q=y*T-g*x+w*C+v*U-A*S+I*O;return q?(q=1/q,t[0]=(i*T-s*x+c*C)*q,t[1]=(o*x-r*T-a*C)*q,t[2]=(b*I-p*A+m*v)*q,t[3]=(h*A-f*I-d*v)*q,t[4]=(s*U-u*T-c*S)*q,t[5]=(e*T-o*U+a*S)*q,t[6]=(p*w-M*I-m*g)*q,t[7]=(l*I-h*w+d*g)*q,t[8]=(u*x-i*U+c*O)*q,t[9]=(r*U-e*x-a*O)*q,t[10]=(M*A-b*w+m*y)*q,t[11]=(f*w-l*A-d*y)*q,t[12]=(i*S-u*C-s*O)*q,t[13]=(e*C-r*S+o*O)*q,t[14]=(b*g-M*v-p*y)*q,t[15]=(l*v-f*g+h*y)*q,t):null}function f(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=n[8],h=n[9],d=n[10],M=n[11],b=n[12],p=n[13],m=n[14],y=n[15];let g=e[0],w=e[1],v=e[2],A=e[3];return t[0]=g*r+w*i+v*f+A*b,t[1]=g*o+w*s+v*h+A*p,t[2]=g*a+w*c+v*d+A*m,t[3]=g*u+w*l+v*M+A*y,g=e[4],w=e[5],v=e[6],A=e[7],t[4]=g*r+w*i+v*f+A*b,t[5]=g*o+w*s+v*h+A*p,t[6]=g*a+w*c+v*d+A*m,t[7]=g*u+w*l+v*M+A*y,g=e[8],w=e[9],v=e[10],A=e[11],t[8]=g*r+w*i+v*f+A*b,t[9]=g*o+w*s+v*h+A*p,t[10]=g*a+w*c+v*d+A*m,t[11]=g*u+w*l+v*M+A*y,g=e[12],w=e[13],v=e[14],A=e[15],t[12]=g*r+w*i+v*f+A*b,t[13]=g*o+w*s+v*h+A*p,t[14]=g*a+w*c+v*d+A*m,t[15]=g*u+w*l+v*M+A*y,t}function h(t,n,e){const r=e[0],o=e[1],a=e[2];if(n===t)t[12]=n[0]*r+n[4]*o+n[8]*a+n[12],t[13]=n[1]*r+n[5]*o+n[9]*a+n[13],t[14]=n[2]*r+n[6]*o+n[10]*a+n[14],t[15]=n[3]*r+n[7]*o+n[11]*a+n[15];else{const e=n[0],u=n[1],i=n[2],s=n[3],c=n[4],l=n[5],f=n[6],h=n[7],d=n[8],M=n[9],b=n[10],p=n[11];t[0]=e,t[1]=u,t[2]=i,t[3]=s,t[4]=c,t[5]=l,t[6]=f,t[7]=h,t[8]=d,t[9]=M,t[10]=b,t[11]=p,t[12]=e*r+c*o+d*a+n[12],t[13]=u*r+l*o+M*a+n[13],t[14]=i*r+f*o+b*a+n[14],t[15]=s*r+h*o+p*a+n[15]}return t}function d(t,n,e){const r=e[0],o=e[1],a=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]*o,t[5]=n[5]*o,t[6]=n[6]*o,t[7]=n[7]*o,t[8]=n[8]*a,t[9]=n[9]*a,t[10]=n[10]*a,t[11]=n[11]*a,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function M(t,n,e,r){let u=r[0],i=r[1],s=r[2],c=Math.sqrt(u*u+i*i+s*s);if(c<=(0,o.FD)())return void a(t,n);c=1/c,u*=c,i*=c,s*=c;const l=Math.sin(e),f=Math.cos(e),h=1-f,d=n[0],M=n[1],b=n[2],p=n[3],m=n[4],y=n[5],g=n[6],w=n[7],v=n[8],A=n[9],I=n[10],O=n[11],S=u*u*h+f,U=i*u*h+s*l,C=s*u*h-i*l,x=u*i*h-s*l,T=i*i*h+f,q=s*i*h+u*l,_=u*s*h+i*l,D=i*s*h-u*l,F=s*s*h+f;t[0]=d*S+m*U+v*C,t[1]=M*S+y*U+A*C,t[2]=b*S+g*U+I*C,t[3]=p*S+w*U+O*C,t[4]=d*x+m*T+v*q,t[5]=M*x+y*T+A*q,t[6]=b*x+g*T+I*q,t[7]=p*x+w*T+O*q,t[8]=d*_+m*D+v*F,t[9]=M*_+y*D+A*F,t[10]=b*_+g*D+I*F,t[11]=p*_+w*D+O*F,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function b(t,n,e){const r=Math.sin(e),o=Math.cos(e),a=n[4],u=n[5],i=n[6],s=n[7],c=n[8],l=n[9],f=n[10],h=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]=a*o+c*r,t[5]=u*o+l*r,t[6]=i*o+f*r,t[7]=s*o+h*r,t[8]=c*o-a*r,t[9]=l*o-u*r,t[10]=f*o-i*r,t[11]=h*o-s*r,t}function p(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 m(t,n,e){if(0===n)return i(t);let r=e[0],a=e[1],u=e[2],s=Math.sqrt(r*r+a*a+u*u);if(s<=(0,o.FD)())return null;s=1/s,r*=s,a*=s,u*=s;const c=Math.sin(n),l=Math.cos(n),f=1-l;return t[0]=r*r*f+l,t[1]=a*r*f+u*c,t[2]=u*r*f-a*c,t[3]=0,t[4]=r*a*f-u*c,t[5]=a*a*f+l,t[6]=u*a*f+r*c,t[7]=0,t[8]=r*u*f+a*c,t[9]=a*u*f-r*c,t[10]=u*u*f+l,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 g(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 w(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3],i=r+r,s=o+o,c=a+a,l=r*i,f=r*s,h=r*c,d=o*s,M=o*c,b=a*c,p=u*i,m=u*s,y=u*c;return t[0]=1-(d+b),t[1]=f+y,t[2]=h-m,t[3]=0,t[4]=f-y,t[5]=1-(l+b),t[6]=M+p,t[7]=0,t[8]=h+m,t[9]=M-p,t[10]=1-(l+d),t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}const v=(0,r.vt)();function A(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function I(t,n){const e=n[0],r=n[1],o=n[2],a=n[4],u=n[5],i=n[6],s=n[8],c=n[9],l=n[10];return t[0]=Math.sqrt(e*e+r*r+o*o),t[1]=Math.sqrt(a*a+u*u+i*i),t[2]=Math.sqrt(s*s+c*c+l*l),t}function O(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 S(t,n,e,r){const o=n[0],a=n[1],u=n[2],i=n[3],s=o+o,c=a+a,l=u+u,f=o*s,h=o*c,d=o*l,M=a*c,b=a*l,p=u*l,m=i*s,y=i*c,g=i*l,w=r[0],v=r[1],A=r[2];return t[0]=(1-(M+p))*w,t[1]=(h+g)*w,t[2]=(d-y)*w,t[3]=0,t[4]=(h-g)*v,t[5]=(1-(f+p))*v,t[6]=(b+m)*v,t[7]=0,t[8]=(d+y)*A,t[9]=(b-m)*A,t[10]=(1-(f+M))*A,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function U(t,n,e,r,o){const a=n[0],u=n[1],i=n[2],s=n[3],c=a+a,l=u+u,f=i+i,h=a*c,d=a*l,M=a*f,b=u*l,p=u*f,m=i*f,y=s*c,g=s*l,w=s*f,v=r[0],A=r[1],I=r[2],O=o[0],S=o[1],U=o[2],C=(1-(b+m))*v,x=(d+w)*v,T=(M-g)*v,q=(d-w)*A,_=(1-(h+m))*A,D=(p+y)*A,F=(M+g)*I,R=(p-y)*I,j=(1-(h+b))*I;return t[0]=C,t[1]=x,t[2]=T,t[3]=0,t[4]=q,t[5]=_,t[6]=D,t[7]=0,t[8]=F,t[9]=R,t[10]=j,t[11]=0,t[12]=e[0]+O-(C*O+q*S+F*U),t[13]=e[1]+S-(x*O+_*S+R*U),t[14]=e[2]+U-(T*O+D*S+j*U),t[15]=1,t}function C(t,n,e,r,o,a,u){const i=1/(e-n),s=1/(o-r),c=1/(a-u);return t[0]=2*a*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*s,t[6]=0,t[7]=0,t[8]=(e+n)*i,t[9]=(o+r)*s,t[10]=(u+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=u*a*2*c,t[15]=0,t}function x(t,n,e,r){const a=n[0],u=n[1],s=n[2];let c=a-e[0],l=u-e[1],f=s-e[2];const h=(0,o.FD)();if(Math.abs(c)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void i(t);let d=1/Math.sqrt(c*c+l*l+f*f);c*=d,l*=d,f*=d;const M=r[0],b=r[1],p=r[2];let m=b*f-p*l,y=p*c-M*f,g=M*l-b*c;d=Math.sqrt(m*m+y*y+g*g),d?(d=1/d,m*=d,y*=d,g*=d):(m=0,y=0,g=0);let w=l*g-f*y,v=f*m-c*g,A=c*y-l*m;d=Math.sqrt(w*w+v*v+A*A),d?(d=1/d,w*=d,v*=d,A*=d):(w=0,v=0,A=0),t[0]=m,t[1]=w,t[2]=c,t[3]=0,t[4]=y,t[5]=v,t[6]=l,t[7]=0,t[8]=g,t[9]=A,t[10]=f,t[11]=0,t[12]=-(m*a+y*u+g*s),t[13]=-(w*a+v*u+A*s),t[14]=-(c*a+l*u+f*s),t[15]=1}function T(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 q(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 _(t){const n=(0,o.FD)(),e=t[0],r=t[1],a=t[2],u=t[4],i=t[5],s=t[6],c=t[8],l=t[9],f=t[10];return Math.abs(1-(e*e+u*u+c*c))<=n&&Math.abs(1-(r*r+i*i+l*l))<=n&&Math.abs(1-(a*a+s*s+f*f))<=n}function D(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 F=f,R=T;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],o=n[2],a=n[3],u=n[4],i=n[5],s=n[6],c=n[7],l=n[8],f=n[9],h=n[10],d=n[11],M=n[12],b=n[13],p=n[14],m=n[15];return t[0]=i*(h*m-d*p)-f*(s*m-c*p)+b*(s*d-c*h),t[1]=-(r*(h*m-d*p)-f*(o*m-a*p)+b*(o*d-a*h)),t[2]=r*(s*m-c*p)-i*(o*m-a*p)+b*(o*c-a*s),t[3]=-(r*(s*d-c*h)-i*(o*d-a*h)+f*(o*c-a*s)),t[4]=-(u*(h*m-d*p)-l*(s*m-c*p)+M*(s*d-c*h)),t[5]=e*(h*m-d*p)-l*(o*m-a*p)+M*(o*d-a*h),t[6]=-(e*(s*m-c*p)-u*(o*m-a*p)+M*(o*c-a*s)),t[7]=e*(s*d-c*h)-u*(o*d-a*h)+l*(o*c-a*s),t[8]=u*(f*m-d*b)-l*(i*m-c*b)+M*(i*d-c*f),t[9]=-(e*(f*m-d*b)-l*(r*m-a*b)+M*(r*d-a*f)),t[10]=e*(i*m-c*b)-u*(r*m-a*b)+M*(r*c-a*i),t[11]=-(e*(i*d-c*f)-u*(r*d-a*f)+l*(r*c-a*i)),t[12]=-(u*(f*p-h*b)-l*(i*p-s*b)+M*(i*h-s*f)),t[13]=e*(f*p-h*b)-l*(r*p-o*b)+M*(r*h-o*f),t[14]=-(e*(i*p-s*b)-u*(r*p-o*b)+M*(r*s-o*i)),t[15]=e*(i*h-s*f)-u*(r*h-o*f)+l*(r*s-o*i),t},copy:a,determinant:function(t){const n=t[0],e=t[1],r=t[2],o=t[3],a=t[4],u=t[5],i=t[6],s=t[7],c=t[8],l=t[9],f=t[10],h=t[11],d=t[12],M=t[13],b=t[14],p=t[15];return(n*u-e*a)*(f*p-h*b)-(n*i-r*a)*(l*p-h*M)+(n*s-o*a)*(l*b-f*M)+(e*i-r*u)*(c*p-h*d)-(e*s-o*u)*(c*b-f*d)+(r*s-o*i)*(c*M-l*d)},equals:function(t,n){if(t===n)return!0;const e=t[0],r=t[1],a=t[2],u=t[3],i=t[4],s=t[5],c=t[6],l=t[7],f=t[8],h=t[9],d=t[10],M=t[11],b=t[12],p=t[13],m=t[14],y=t[15],g=n[0],w=n[1],v=n[2],A=n[3],I=n[4],O=n[5],S=n[6],U=n[7],C=n[8],x=n[9],T=n[10],q=n[11],_=n[12],D=n[13],F=n[14],R=n[15],j=(0,o.FD)();return Math.abs(e-g)<=j*Math.max(1,Math.abs(e),Math.abs(g))&&Math.abs(r-w)<=j*Math.max(1,Math.abs(r),Math.abs(w))&&Math.abs(a-v)<=j*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(u-A)<=j*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(i-I)<=j*Math.max(1,Math.abs(i),Math.abs(I))&&Math.abs(s-O)<=j*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(c-S)<=j*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(l-U)<=j*Math.max(1,Math.abs(l),Math.abs(U))&&Math.abs(f-C)<=j*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(h-x)<=j*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(d-T)<=j*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(M-q)<=j*Math.max(1,Math.abs(M),Math.abs(q))&&Math.abs(b-_)<=j*Math.max(1,Math.abs(b),Math.abs(_))&&Math.abs(p-D)<=j*Math.max(1,Math.abs(p),Math.abs(D))&&Math.abs(m-F)<=j*Math.max(1,Math.abs(m),Math.abs(F))&&Math.abs(y-R)<=j*Math.max(1,Math.abs(y),Math.abs(R))},exactEquals:q,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],o=n[2],a=n[3],u=e+e,i=r+r,s=o+o,c=e*u,l=r*u,f=r*i,h=o*u,d=o*i,M=o*s,b=a*u,p=a*i,m=a*s;return t[0]=1-f-M,t[1]=l+m,t[2]=h-p,t[3]=0,t[4]=l-m,t[5]=1-c-M,t[6]=d+b,t[7]=0,t[8]=h+p,t[9]=d-b,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){const e=v,r=-n[0],o=-n[1],a=-n[2],u=n[3],i=n[4],s=n[5],c=n[6],l=n[7],f=r*r+o*o+a*a+u*u;return f>0?(e[0]=2*(i*u+l*r+s*a-c*o)/f,e[1]=2*(s*u+l*o+c*r-i*a)/f,e[2]=2*(c*u+l*a+i*o-s*r)/f):(e[0]=2*(i*u+l*r+s*a-c*o),e[1]=2*(s*u+l*o+c*r-i*a),e[2]=2*(c*u+l*a+i*o-s*r)),w(t,n,e),t},fromRotation:m,fromRotationTranslation:w,fromRotationTranslationScale:S,fromRotationTranslationScaleOrigin:U,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:p,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:g,frustum:C,getRotation:O,getScale:I,getTranslation:A,hasIdentityRotation:D,identity:i,invert:l,invertOrIdentity:c,isOrthoNormal:_,lookAt:x,mul:F,multiply:f,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,o,a,u){const i=1/(n-e),s=1/(r-o),c=1/(a-u);return t[0]=-2*i,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*s,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(n+e)*i,t[13]=(o+r)*s,t[14]=(u+a)*c,t[15]=1,t},perspective:function(t,n,e,r,o){const a=1/Math.tan(n/2);let u;return t[0]=a/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,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?(u=1/(r-o),t[10]=(o+r)*u,t[14]=2*o*r*u):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){const o=Math.tan(n.upDegrees*Math.PI/180),a=Math.tan(n.downDegrees*Math.PI/180),u=Math.tan(n.leftDegrees*Math.PI/180),i=Math.tan(n.rightDegrees*Math.PI/180),s=2/(u+i),c=2/(o+a);return t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(u-i)*s*.5,t[9]=(o-a)*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:M,rotateX:b,rotateY:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),a=n[0],u=n[1],i=n[2],s=n[3],c=n[8],l=n[9],f=n[10],h=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]=a*o-c*r,t[1]=u*o-l*r,t[2]=i*o-f*r,t[3]=s*o-h*r,t[8]=a*r+c*o,t[9]=u*r+l*o,t[10]=i*r+f*o,t[11]=s*r+h*o,t},rotateZ:function(t,n,e){const r=Math.sin(e),o=Math.cos(e),a=n[0],u=n[1],i=n[2],s=n[3],c=n[4],l=n[5],f=n[6],h=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]=a*o+c*r,t[1]=u*o+l*r,t[2]=i*o+f*r,t[3]=s*o+h*r,t[4]=c*o-a*r,t[5]=l*o-u*r,t[6]=f*o-i*r,t[7]=h*o-s*r,t},scale:d,set:u,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:R,subtract:T,targetTo:function(t,n,e,r){const o=n[0],a=n[1],u=n[2],i=r[0],s=r[1],c=r[2];let l=o-e[0],f=a-e[1],h=u-e[2],d=l*l+f*f+h*h;d>0&&(d=1/Math.sqrt(d),l*=d,f*=d,h*=d);let M=s*h-c*f,b=c*l-i*h,p=i*f-s*l;return d=M*M+b*b+p*p,d>0&&(d=1/Math.sqrt(d),M*=d,b*=d,p*=d),t[0]=M,t[1]=b,t[2]=p,t[3]=0,t[4]=f*p-h*b,t[5]=h*M-l*p,t[6]=l*b-f*M,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=o,t[13]=a,t[14]=u,t[15]=1,t},translate:h,transpose:s},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>S,Bw:()=>a,C:()=>u,Cc:()=>U,DI:()=>A,Io:()=>y,Ln:()=>m,Om:()=>O,Qr:()=>f,Re:()=>c,S8:()=>I,T9:()=>b,WQ:()=>s,Z0:()=>C,_S:()=>d,aI:()=>R,ei:()=>x,fw:()=>q,gL:()=>T,hG:()=>g,hZ:()=>i,hs:()=>p,jk:()=>M,lw:()=>l,m3:()=>w,oW:()=>j,t2:()=>F,tn:()=>h,ze:()=>v});var r=e(51850),o=e(34304);function a(t){const n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function u(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function i(t,n,e,r){return t[0]=n,t[1]=e,t[2]=r,t}function s(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 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,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){return t[0]=Math.abs(n[0]),t[1]=Math.abs(n[1]),t[2]=Math.abs(n[2]),t}function d(t,n){return t[0]=Math.sign(n[0]),t[1]=Math.sign(n[1]),t[2]=Math.sign(n[2]),t}function M(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 b(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 p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function m(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],o=n[2]-t[2];return Math.sqrt(e*e+r*r+o*o)}function g(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2];return e*e+r*r+o*o}function w(t){const n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function v(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function A(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function I(t,n){const e=n[0],r=n[1],o=n[2];let a=e*e+r*r+o*o;return a>0&&(a=1/Math.sqrt(a),t[0]=n[0]*a,t[1]=n[1]*a,t[2]=n[2]*a),t}function O(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function S(t,n,e){const r=n[0],o=n[1],a=n[2],u=e[0],i=e[1],s=e[2];return t[0]=o*s-a*i,t[1]=a*u-r*s,t[2]=r*i-o*u,t}function U(t,n,e,r){const o=n[0],a=n[1],u=n[2];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t[2]=u+r*(e[2]-u),t}function C(t,n,e){const r=n[0],o=n[1],a=n[2];return t[0]=e[0]*r+e[4]*o+e[8]*a+e[12],t[1]=e[1]*r+e[5]*o+e[9]*a+e[13],t[2]=e[2]*r+e[6]*o+e[10]*a+e[14],t}function x(t,n,e){const r=n[0],o=n[1],a=n[2];return t[0]=r*e[0]+o*e[3]+a*e[6],t[1]=r*e[1]+o*e[4]+a*e[7],t[2]=r*e[2]+o*e[5]+a*e[8],t}function T(t,n,e){return q(t,n,e[0],e[1],e[2],e[3])}function q(t,n,e,r,o,a){const u=n[0],i=n[1],s=n[2],c=r*s-o*i,l=o*u-e*s,f=e*i-r*u,h=r*f-o*l,d=o*c-e*f,M=e*l-r*c,b=2*a;return t[0]=u+c*b+2*h,t[1]=i+l*b+2*d,t[2]=s+f*b+2*M,t}const _=(0,r.vt)(),D=(0,r.vt)();function F(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function R(t,n){if(t===n)return!0;const e=t[0],r=t[1],a=t[2],u=n[0],i=n[1],s=n[2],c=(0,o.FD)();return Math.abs(e-u)<=c*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(r-i)<=c*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(a-s)<=c*Math.max(1,Math.abs(a),Math.abs(s))}function j(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],a=e[2]-n[2];let u=r*r+o*o+a*a;return u>0?(u=1/Math.sqrt(u),t[0]=r*u,t[1]=o*u,t[2]=a*u,t):(t[0]=0,t[1]=0,t[2]=0,t)}const P=c,E=l,k=f,z=y,B=g,L=a,N=w;Object.freeze(Object.defineProperty({__proto__:null,abs:h,add:s,angle:function(t,n){I(_,t),I(D,n);const e=O(_,D);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,o,a){const u=1-a,i=u*u,s=a*a,c=i*u,l=3*a*i,f=3*s*u,h=s*a;return t[0]=n[0]*c+e[0]*l+r[0]*f+o[0]*h,t[1]=n[1]*c+e[1]*l+r[1]*f+o[1]*h,t[2]=n[2]*c+e[2]*l+r[2]*f+o[2]*h,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:u,cross:S,crossAndNormalize:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=e[0],i=e[1],s=e[2],c=o*s-a*i,l=a*u-r*s,f=r*i-o*u,h=Math.sqrt(c*c+l*l+f*f);return t[0]=c/h,t[1]=l/h,t[2]=f/h,t},direction:j,dist:z,distance:y,div:k,divide:f,dot:O,equals:R,exactEquals:F,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,o,a){const u=a*a,i=u*(2*a-3)+1,s=u*(a-2)+a,c=u*(a-1),l=u*(3-2*a);return t[0]=n[0]*i+e[0]*s+r[0]*c+o[0]*l,t[1]=n[1]*i+e[1]*s+r[1]*c+o[1]*l,t[2]=n[2]*i+e[2]*s+r[2]*c+o[2]*l,t},inverse:A,len:L,length:a,lerp:U,max:b,min:M,mul:E,multiply:l,negate:v,normalize:I,random:function(t,n=1){const e=o.Ov,r=2*e()*Math.PI,a=2*e()-1,u=Math.sqrt(1-a*a)*n;return t[0]=Math.cos(r)*u,t[1]=Math.sin(r)*u,t[2]=a*n,t},rotateX:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[0],a[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),a[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateY:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),a[1]=o[1],a[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[2]+e[2],t},rotateZ:function(t,n,e,r){const o=[],a=[];return o[0]=n[0]-e[0],o[1]=n[1]-e[1],o[2]=n[2]-e[2],a[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),a[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),a[2]=o[2],t[0]=a[0]+e[0],t[1]=a[1]+e[1],t[2]=a[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:p,scaleAndAdd:m,scaleTo:function(t,n){return p(t,t,n/L(t))},set:i,sign:d,sqrDist:B,sqrLen:N,squaredDistance:g,squaredLength:w,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:P,subtract:c,transformMat3:x,transformMat4:C,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:T,transformQuatValues:q},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,L,"jb",0,P,"lo",0,B,"uE",0,N])},78955(t,n,e){e.d(n,{Bw:()=>p,C:()=>o,Cc:()=>w,LI:()=>h,Om:()=>g,S8:()=>y,T9:()=>f,WQ:()=>u,Z0:()=>v,aI:()=>I,hG:()=>b,hZ:()=>a,hs:()=>d,jk:()=>l,m3:()=>m,t2:()=>A});var r=e(34304);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function a(t,n,e,r,o){return t[0]=n,t[1]=e,t[2]=r,t[3]=o,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 i(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 s(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 l(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 f(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 h(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 d(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 M(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],a=n[3]-t[3];return Math.sqrt(e*e+r*r+o*o+a*a)}function b(t,n){const e=n[0]-t[0],r=n[1]-t[1],o=n[2]-t[2],a=n[3]-t[3];return e*e+r*r+o*o+a*a}function p(t){const n=t[0],e=t[1],r=t[2],o=t[3];return Math.sqrt(n*n+e*e+r*r+o*o)}function m(t){const n=t[0],e=t[1],r=t[2],o=t[3];return n*n+e*e+r*r+o*o}function y(t,n){const e=n[0],r=n[1],o=n[2],a=n[3];let u=e*e+r*r+o*o+a*a;return u>0&&(u=1/Math.sqrt(u),t[0]=e*u,t[1]=r*u,t[2]=o*u,t[3]=a*u),t}function g(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function w(t,n,e,r){const o=n[0],a=n[1],u=n[2],i=n[3];return t[0]=o+r*(e[0]-o),t[1]=a+r*(e[1]-a),t[2]=u+r*(e[2]-u),t[3]=i+r*(e[3]-i),t}function v(t,n,e){const r=n[0],o=n[1],a=n[2],u=n[3];return t[0]=e[0]*r+e[4]*o+e[8]*a+e[12]*u,t[1]=e[1]*r+e[5]*o+e[9]*a+e[13]*u,t[2]=e[2]*r+e[6]*o+e[10]*a+e[14]*u,t[3]=e[3]*r+e[7]*o+e[11]*a+e[15]*u,t}function A(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function I(t,n){const e=t[0],o=t[1],a=t[2],u=t[3],i=n[0],s=n[1],c=n[2],l=n[3],f=(0,r.FD)();return Math.abs(e-i)<=f*Math.max(1,Math.abs(e),Math.abs(i))&&Math.abs(o-s)<=f*Math.max(1,Math.abs(o),Math.abs(s))&&Math.abs(a-c)<=f*Math.max(1,Math.abs(a),Math.abs(c))&&Math.abs(u-l)<=f*Math.max(1,Math.abs(u),Math.abs(l))}const O=i,S=s,U=c,C=M,x=b,T=p,q=m;Object.freeze(Object.defineProperty({__proto__:null,add:u,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:o,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:C,distance:M,div:U,divide:c,dot:g,equals:I,exactEquals:A,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:T,length:p,lerp:w,max:f,min:l,mul:S,multiply:s,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 o,a,u,i,s,c;do{o=2*e()-1,a=2*e()-1,s=o*o+a*a}while(s>=1);do{u=2*e()-1,i=2*e()-1,c=u*u+i*i}while(c>=1);const l=Math.sqrt((1-s)/c);return t[0]=n*o,t[1]=n*a,t[2]=n*u*l,t[3]=n*i*l,t},round:h,scale:d,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:a,sqrDist:x,sqrLen:q,squaredDistance:b,squaredLength:m,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:O,subtract:i,transformMat4:v,transformQuat:function(t,n,e){const r=n[0],o=n[1],a=n[2],u=e[0],i=e[1],s=e[2],c=e[3],l=c*r+i*a-s*o,f=c*o+s*r-u*a,h=c*a+u*o-i*r,d=-u*r-i*o-s*a;return t[0]=l*c+d*-u+f*-s-h*-i,t[1]=f*c+d*-i+h*-u-l*-s,t[2]=h*c+d*-s+l*-i-f*-u,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},9762(t,n,e){e.r(n),e.d(n,{projectBuffer:()=>o});var r=e(49208);function o(t,n,e,o,a,u,i=Math.floor(t.length/3)){const s=(0,r.jd)(n,a);if(null==s)return!1;if(s===r.pO){if(t===o&&e===u)return!0;const n=e+3*i;for(let r=e,a=u;r<n;r++,a++)o[a]=t[r]??0;return!0}const c=e+3*i;for(let n=e,r=u;n<c;n+=3,r+=3)s(t,n,o,r);return!0}},49208(t,n,e){e.d(n,{Tp:()=>f,jd:()=>l,pO:()=>d});var r=e(34727),o=e(86211),a=e(73941),u=e(79258),i=e(34403),s=e(21325);const c={2:{5:d,7:null,9:null,10:d,1:v,6:null,8:null,0:null,3:b,11:p,2:d,4:U},5:{5:d,7:null,9:null,10:d,1:v,6:null,8:null,0:null,3:b,11:p,2:d,4:U},7:{5:null,7:d,9:null,10:d,1:null,6:w,8:null,0:null,3:null,11:null,2:null,4:null},9:{5:null,7:null,9:d,10:d,1:null,6:null,8:g,0:null,3:null,11:null,2:null,4:null},3:{5:M,7:null,9:null,10:M,1:function(t,n,e,r){const o=t[n]/D,a=_-2*Math.atan(Math.exp(-t[n+1]/D)),u=D+(t[n+2]??0),i=Math.cos(a)*u;e[r]=Math.cos(o)*i,e[r+1]=Math.sin(o)*i,e[r+2]=Math.sin(a)*u},6:null,8:null,0:null,3:d,11:function(t,n,e,r){M(t,n,e,r),p(e,r,e,r)},2:M,4:function(t,n,e,r){M(t,n,e,r),U(e,r,e,r)}},4:{5:C,7:null,9:null,10:C,1:function(t,n,e,r){C(t,n,e,r),v(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){C(t,n,e,r),b(e,r,e,r)},11:function(t,n,e,r){C(t,n,e,r),p(e,r,e,r)},2:C,4:d},1:{5:S,7:null,9:null,10:S,1:d,6:null,8:null,0:null,3:function(t,n,e,r){S(t,n,e,r),b(e,r,e,r)},11:function(t,n,e,r){S(t,n,e,r),p(e,r,e,r)},2:S,4:function(t,n,e,r){S(t,n,e,r),U(e,r,e,r)}},6:{5:null,7:O,9:null,10:O,1:null,6:d,8:null,0:null,3:null,11:null,2:null,4:null},8:{5:null,7:null,9:I,10:I,1:null,6:null,8:d,0:null,3:null,11:null,2:null,4:null},0:{5:null,7:null,9:null,10:null,1:null,6:null,8:null,0:d,3:null,11:null,2:null,4:null},10:{5:d,7:d,9:d,10:d,1:v,6:w,8:g,0:null,3:b,11:p,2:d,4:U},11:{5:m,7:null,9:null,10:m,1:function(t,n,e,r){m(t,n,e,r),v(e,r,e,r)},6:null,8:null,0:null,3:function(t,n,e,r){m(t,n,e,r),b(e,r,e,r)},11:d,2:m,4:function(t,n,e,r){m(t,n,e,r),U(e,r,e,r)}}};function l(t,n){return f(t,n)?.projector}function f(t,n){if(null==t||null==n)return null;if(x.source.spatialReference===t&&x.dest.spatialReference===n)return x;const e=h(t,x.source),r=h(n,x.dest);return 0===e&&0===r?(0,s.aI)(t,n)?x.projector=d:x.projector=null:x.projector=c[e][r],x}function h(t,n){return t?n.spatialReference===t?n.spatialReferenceId:(n.spatialReference=t,"metersPerUnit"in n&&(n.metersPerUnit=(0,o.GA)(t,1)),(0,a.jA)(t)?n.spatialReferenceId=1:(0,s.oT)(t)?n.spatialReferenceId=2:(0,s.K8)(t)?n.spatialReferenceId=3:(0,s.r1)(t)?n.spatialReferenceId=11:t.wkt===a.Ro.wkt?n.spatialReferenceId=4:4490===t.wkid?n.spatialReferenceId=5:t.wkt===a.FY.wkt?n.spatialReferenceId=6:t.wkt===a.LJ.wkt?n.spatialReferenceId=8:(0,a.q8)(t)?n.spatialReferenceId=7:(0,a.KQ)(t)?n.spatialReferenceId=9:n.spatialReferenceId=0):0}function d(t,n,e,r){t!==e&&(e[r++]=t[n++],e[r++]=t[n++],e[r]=t[n]??0)}function M(t,n,e,r){e[r]=q*(t[n]/D),e[r+1]=q*(_-2*Math.atan(Math.exp(-t[n+1]/D))),e[r+2]=t[n+2]??0}function b(t,n,e,o){!function(t,n,e,o,a){const u=.4999999*Math.PI,i=(0,r.qE)(T*t[n+1],-u,u),s=Math.sin(i);e[o++]=T*t[n]*a.radius,e[o++]=a.halfSemiMajorAxis*Math.log((1+s)/(1-s)),e[o]=t[n+2]??0}(t,n,e,o,u.$O)}function p(t,n,e,r){e[r]=t[n]*F,e[r+1]=t[n+1]*F,e[r+2]=t[n+2]??0}function m(t,n,e,r){e[r]=t[n]*R,e[r+1]=t[n+1]*R,e[r+2]=t[n+2]??0}function y(t,n,e,r,o){const a=o+(t[n+2]??0),u=T*t[n],i=T*t[n+1],s=Math.cos(i)*a;e[r]=Math.cos(u)*s,e[r+1]=Math.sin(u)*s,e[r+2]=Math.sin(i)*a}function g(t,n,e,r){y(t,n,e,r,u.Sw.radius)}function w(t,n,e,r){y(t,n,e,r,u.sH.radius)}function v(t,n,e,r){y(t,n,e,r,u.$O.radius)}function A(t,n,e,o,a){const u=t[n],i=t[n+1],s=t[n+2]??0,c=Math.sqrt(u*u+i*i+s*s),l=(0,r.YN)(s/(0===c?1:c)),f=Math.atan2(i,u);e[o++]=q*f,e[o++]=q*l,e[o]=c-a}function I(t,n,e,r){A(t,n,e,r,u.Sw.radius)}function O(t,n,e,r){A(t,n,e,r,u.sH.radius)}function S(t,n,e,r){A(t,n,e,r,u.$O.radius)}function U(t,n,e,r){!function(t,n,e,r,o){const a=T*t[n],u=T*t[n+1],i=t[n+2]??0,s=Math.sin(u),c=Math.cos(u),l=o.radius/Math.sqrt(1-o.eccentricitySquared*s*s);e[r++]=(l+i)*c*Math.cos(a),e[r++]=(l+i)*c*Math.sin(a),e[r++]=(l*(1-o.eccentricitySquared)+i)*s}(t,n,e,r,u.$O)}function C(t,n,e,r){const o=i.TP,a=t[n],s=t[n+1],c=t[n+2]??0;let l,f,h,d,M,b,p,m,y,g,w,v,A,I,O,S,U,C,x,T,_;l=Math.abs(c),f=a*a+s*s,h=Math.sqrt(f),d=f+c*c,M=Math.sqrt(d),T=Math.atan2(s,a),b=c*c/d,p=f/d,I=o.a2/M,O=o.a3-o.a4/M,p>.3?(m=l/M*(1+p*(o.a1+I+b*O)/M),x=Math.asin(m),g=m*m,y=Math.sqrt(1-g)):(y=h/M*(1-b*(o.a5-I-p*O)/M),x=Math.acos(y),g=1-y*y,m=Math.sqrt(g)),w=1-u.$O.eccentricitySquared*g,v=u.$O.radius/Math.sqrt(w),A=o.a6*v,I=h-v*y,O=l-A*m,U=y*I+m*O,S=y*O-m*I,C=S/(A/w+U),x+=C,_=U+S*C/2,c<0&&(x=-x),e[r++]=q*T,e[r++]=q*x,e[r]=_}const x={source:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},dest:{spatialReference:null,spatialReferenceId:0,metersPerUnit:1},projector:d},T=(0,r.kU)(1),q=(0,r.KJ)(1),_=.5*Math.PI,D=u.$O.radius,F=D*Math.PI/180,R=180/(D*Math.PI);e.d(n,["w5",0,c])},98764(t,n,e){e.d(n,{lO:()=>l});var r=e(73941),o=e(16930),a=e(21325);const u=new o.A(r.fv),i=new o.A(r.FY),s=new o.A(r.LJ),c=new o.A(r.Ro);function l(t){const n=f.get(t);if(n)return n;let e=u;if(t)if(t===i)e=i;else if(t===s)e=s;else{const n=t.wkid,r=t.latestWkid;if(null!=n||null!=r)(0,a.tl)(n)||(0,a.tl)(r)?e=i:((0,a.ZL)(n)||(0,a.ZL)(r))&&(e=s);else{const n=t.wkt2??t.wkt;if(n){const t=n.toUpperCase();t===h?e=i:t===d&&(e=s)}}}return f.set(t,e),e}const f=new Map,h=i.wkt.toUpperCase(),d=s.wkt.toUpperCase();e.d(n,["GD",0,u,"Y0",0,c])},34403(t,n,e){var r=e(79258);Math.PI;const o=r.$O.radius,a=r.$O.eccentricitySquared,u={a1:o*a,a2:o*a*o*a,a3:o*a*a/2,a4:o*a*o*a*2.5,a5:o*a+o*a*a/2,a6:1-a};r.$O.radius,r.$O.flattening,r.Sw.radius,r.Sw.flattening,r.sH.radius,r.sH.flattening,r.sH.radius,e.d(n,["TP",0,u])},64798(t,n,e){e.r(n),e.d(n,{default:()=>j});var r=e(4576),o=e(34275),a=e(82534),u=e(35522);function i(){return new Float32Array(3)}function s(t){const n=new Float32Array(3);return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function c(t,n,e){const r=new Float32Array(3);return r[0]=t,r[1]=n,r[2]=e,r}function l(){return i()}function f(){return c(1,1,1)}function h(){return c(1,0,0)}function d(){return c(0,1,0)}function M(){return c(0,0,1)}const b=l(),p=f(),m=h(),y=d(),g=M();Object.freeze(Object.defineProperty({__proto__:null,ONES:p,UNIT_X:m,UNIT_Y:y,UNIT_Z:g,ZEROS:b,clone:s,create:i,fromValues:c,ones:f,unitX:h,unitY:d,unitZ:M,zeros:l},Symbol.toStringTag,{value:"Module"}));var w=e(51850),v=e(16930),A=e(9762),I=e(63531),O=e(69846),S=e(48425),U=e(59418),C=e(37203);function x(t,n,e){return t?.attributeInfo.useElevation?n?function(t,n){const e=new Float64Array(n);for(let r=0;r<n;r++)e[r]=t[3*r+2];return e}(n,e):null:t?.attributeInfo.storageInfo?(0,U.m0)(t.attributeInfo.storageInfo,t.buffer,e,!0):null}function T(t){switch(t){default:case null:case"none":return t=>t;case"low-four-bit":return t=>15&t;case"high-four-bit":return t=>(240&t)>>4;case"absolute-value":return t=>Math.abs(t);case"modulo-ten":return t=>t%10}}function q(t){let n=0;for(const e of t||[])n|=1<<e;return n}var _=e(57005);class D{transform(t){const n=this._transform(t),e=[n.points.buffer,n.rgb.buffer];null!=n.pointIdFilterMap&&e.push(n.pointIdFilterMap.buffer);for(const t of n.attributes)"buffer"in t.values&&(0,o.mw)(t.values.buffer)&&t.values.buffer!==n.rgb.buffer&&e.push(t.values.buffer);return Promise.resolve({result:n,transferList:e})}_transform(t){const n=function(t,n){if(null==t.encoding||""===t.encoding){const e=(0,U.wH)(n,t);if(null==e.vertexAttributes.position)return;const r=(0,U.MA)(n,e.vertexAttributes.position),o=e.header.fields,a=[o.offsetX,o.offsetY,o.offsetZ],u=[o.scaleX,o.scaleY,o.scaleZ],i=r.length/3,s=new Float64Array(3*i);for(let t=0;t<i;t++)s[3*t]=r[3*t]*u[0]+a[0],s[3*t+1]=r[3*t+1]*u[1]+a[1],s[3*t+2]=r[3*t+2]*u[2]+a[2];return s}if("lepcc-xyz"===t.encoding)return(0,C.Me)(n).result}(t.schema,t.geometryBuffer);let e=n.length/3,o=null;const a=new Array,u=x(t.primaryAttributeData,n,e);null!=t.primaryAttributeData&&u&&a.push({attributeInfo:t.primaryAttributeData.attributeInfo,values:u});const i=x(t.modulationAttributeData,n,e);null!=t.modulationAttributeData&&i&&a.push({attributeInfo:t.modulationAttributeData.attributeInfo,values:i});let s=function(t,n,e,r){const{rendererJSON:o,isRGBRenderer:a}=t;let u=null,i=null;if(n&&a)u=n;else if(n&&"pointCloudUniqueValueRenderer"===o?.type){i=S.A.fromJSON(o);const t=i.colorUniqueValueInfos;u=new Uint8Array(3*r);const e=T(i.fieldTransformType);for(let o=0;o<r;o++){const r=(e?e(n[o]):n[o])+"";for(let n=0;n<t.length;n++)if(t[n].values.includes(r)){u[3*o]=t[n].color.r,u[3*o+1]=t[n].color.g,u[3*o+2]=t[n].color.b;break}}}else if(n&&"pointCloudStretchRenderer"===o?.type){i=O.A.fromJSON(o);const t=i.stops;u=new Uint8Array(3*r);const e=T(i.fieldTransformType);for(let o=0;o<r;o++){const r=e?e(n[o]):n[o],a=t.length-1;if(r<t[0].value)u[3*o]=t[0].color.r,u[3*o+1]=t[0].color.g,u[3*o+2]=t[0].color.b;else if(r>=t[a].value)u[3*o]=t[a].color.r,u[3*o+1]=t[a].color.g,u[3*o+2]=t[a].color.b;else for(let n=1;n<t.length;n++)if(r<t[n].value){const e=(r-t[n-1].value)/(t[n].value-t[n-1].value);u[3*o]=t[n].color.r*e+t[n-1].color.r*(1-e),u[3*o+1]=t[n].color.g*e+t[n-1].color.g*(1-e),u[3*o+2]=t[n].color.b*e+t[n-1].color.b*(1-e);break}}}else if(n&&"pointCloudClassBreaksRenderer"===o?.type){i=I.A.fromJSON(o);const t=i.colorClassBreakInfos;u=new Uint8Array(3*r);const e=T(i.fieldTransformType);for(let o=0;o<r;o++){const r=e?e(n[o]):n[o];for(let n=0;n<t.length;n++)if(r>=t[n].minValue&&r<=t[n].maxValue){u[3*o]=t[n].color.r,u[3*o+1]=t[n].color.g,u[3*o+2]=t[n].color.b;break}}}else u=new Uint8Array(3*r).fill(255);if(e&&i?.colorModulation){const t=i.colorModulation.minValue,n=i.colorModulation.maxValue,o=.3;for(let a=0;a<r;a++){const r=e[a],i=r>=n?1:r<=t?o:o+(1-o)*(r-t)/(n-t);u[3*a]=i*u[3*a],u[3*a+1]=i*u[3*a+1],u[3*a+2]=i*u[3*a+2]}}return u}(t.rendererInfo,u,i,e);if(t.filterInfo&&t.filterInfo.length>0&&null!=t.filterAttributesData){const u=t.filterAttributesData.filter(r.Ru).map(t=>{const r=x(t,n,e),o={attributeInfo:t.attributeInfo,values:r};return a.push(o),o});o=new Uint32Array(e),e=function(t,n,e,r,o){const a=t.length/3,u=function(t){return t.map(t=>{const{filterJSON:n}=t;switch(n.type){case"pointCloudValueFilter":return{...t,valuesSet:new Set(n.values)};case"pointCloudBitfieldFilter":return{...t,clearMask:q(n.requiredClearBits),requiredMask:q(n.requiredSetBits)};default:return t}})}(r);let i=0;for(let r=0;r<a;r++){let a=!0;for(let t=0;t<u.length&&a;t++){const{clearMask:n,filterJSON:e,requiredMask:i,valuesSet:s}=u[t],c=o[t].values[r];switch(e.type){case"pointCloudValueFilter":{const t="exclude"===e.mode;s.has(c)===t&&(a=!1);break}case"pointCloudBitfieldFilter":(c&i)===i&&0===(c&n)||(a=!1);break;case"pointCloudReturnFilter":{const t=15&c,n=c>>>4&15,r=n>1,o=1===t,u=t===n;let i=!1;for(const t of e.includedReturns)if("last"===t&&u||"firstOfMany"===t&&o&&r||"lastOfMany"===t&&u&&r||"single"===t&&!r){i=!0;break}i||(a=!1);break}}}a&&(e[i]=r,t[3*i]=t[3*r],t[3*i+1]=t[3*r+1],t[3*i+2]=t[3*r+2],n[3*i]=n[3*r],n[3*i+1]=n[3*r+1],n[3*i+2]=n[3*r+2],i++)}return i}(n,s,o,t.filterInfo,u)}for(const r of t.userAttributesData){const t=x(r,n,e);a.push({attributeInfo:r.attributeInfo,values:t})}3*e<s.length&&(s=s.slice(0,3*e)),function(t,n,e){if(0!==e)for(let r=0;r<n;r++)t[3*r+2]+=e}(n,e,t.elevationOffset);const c=F(n,e,_.ab.fromData(t.obbData),v.A.fromJSON(t.inSR),v.A.fromJSON(t.outSR));return{obbData:t.obbData,points:c,rgb:s,attributes:a,pointIdFilterMap:o}}}function F(t,n,e,r,o){if(!(0,A.projectBuffer)(t,r,0,t,o,0,n))throw new Error("Can't reproject");const a=s(e.getCenter((0,w.vt)())),l=i(),f=i(),h=c(e.halfSizeX,e.halfSizeY,e.halfSizeZ);e.getQuaternionConjugate(R);const d=new Float32Array(3*n);for(let e=0;e<n;e++){let n=3*e;l[0]=t[n]-a[0],l[1]=t[n+1]-a[1],l[2]=t[n+2]-a[2],(0,u.gL)(f,l,R),h[0]=Math.max(h[0],Math.abs(f[0])),h[1]=Math.max(h[1],Math.abs(f[1])),h[2]=Math.max(h[2],Math.abs(f[2])),d[n++]=l[0],d[n++]=l[1],d[n]=l[2]}return e.setHalfSize(h),d}const R=(0,a.vt)();function j(){return new D}},59418(t,n,e){e.d(n,{wH:()=>b,MA:()=>h,E5:()=>d,m0:()=>m});var r=e(49186),o=e(4718),a=e(53966),u=e(34275),i=e(37203);const s=()=>a.A.getLogger("esri.views.3d.layers.i3s.I3SBinaryReader");function c(t,n,e){let o="",a=0;for(;a<e;){const u=t[n+a];if(u<128)o+=String.fromCharCode(u),a++;else if(u>=192&&u<224){if(a+1>=e)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Two byte character was truncated.");const i=(31&u)<<6|63&t[n+a+1];o+=String.fromCharCode(i),a+=2}else if(u>=224&&u<240){if(a+2>=e)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const i=(15&u)<<12|(63&t[n+a+1])<<6|63&t[n+a+2];o+=String.fromCharCode(i),a+=3}else{if(!(u>=240&&u<248))throw new r.A("utf8-decode-error","UTF-8 Decode failed. Invalid multi byte sequence.");{if(a+3>=e)throw new r.A("utf8-decode-error","UTF-8 Decode failed. Multi byte character was truncated.");const i=(7&u)<<18|(63&t[n+a+1])<<12|(63&t[n+a+2])<<6|63&t[n+a+3];if(i>=65536){const t=55296+(i-65536>>10),n=56320+(1023&i);o+=String.fromCharCode(t,n)}else o+=String.fromCharCode(i);a+=4}}}return o}function l(t,n){const e={byteOffset:0,byteCount:0,fields:Object.create(null)};let r=0;for(let o=0;o<n.length;o++){const a=n[o],u=a.valueType||a.type,i=g[u];e.fields[a.property]=i(t,r),r+=y[u].BYTES_PER_ELEMENT}return e.byteCount=r,e}function f(t,n,e){const o=[];let a,u,i=0;for(u=0;u<t;u+=1){if(a=n[u],a>0){if(o.push(c(e,i,a-1)),0!==e[i+a-1])throw new r.A("string-array-error","Invalid string array: missing null termination.")}else o.push(null);i+=a}return o}function h(t,n){return new(0,y[n.valueType])(t,n.byteOffset,n.count*n.valuesPerElement)}function d(t,n){if(!t)return null;const e=t[n];return(0,u.IY)(t)?-32768===e?null:e:(0,u._G)(t)?e===u.h2?null:e:e!=e?null:e}function M(t,n,e){if(n!==t&&s().error(`Invalid ${e} buffer size\n expected: ${t}, actual: ${n})`),n<t)throw new r.A("buffer-too-small","Binary buffer is too small",{expectedSize:t,actualSize:n})}function b(t,n){const e=l(t,n&&n.header);let r=e.byteCount;const o={isDraco:!1,header:e,byteOffset:e.byteCount,byteCount:0,vertexAttributes:{}},a=e.fields,u=null!=a.vertexCount?a.vertexCount:a.count;for(const t of n.ordering){if(!n.vertexAttributes[t])continue;const e={...n.vertexAttributes[t],byteOffset:r,count:u},a=p[t]||"_"+t;o.vertexAttributes[a]=e,r+=v(e.valueType)*e.valuesPerElement*u}const i=a.faceCount;if(n.faces&&i){o.faces={};for(const t of n.ordering){if(!n.faces[t])continue;const e={...n.faces[t],byteOffset:r,count:i};o.faces[t]=e,r+=v(e.valueType)*e.valuesPerElement*i}}const s=a.featureCount;if(n.featureAttributes&&n.featureAttributeOrder&&s){o.featureAttributes={};for(const t of n.featureAttributeOrder){if(!n.featureAttributes[t])continue;const e={...n.featureAttributes[t],byteOffset:r,count:s};o.featureAttributes[t]=e,r+=("UInt64"===e.valueType?8:v(e.valueType))*e.valuesPerElement*s}}return M(r,t.byteLength,"geometry"),o.byteCount=r-o.byteOffset,o}const p={position:"position",normal:"normal",color:"color",uv0:"uv0",region:"uvRegion"};function m(t,n,e,a=!1){if("lepcc-rgb"===t.encoding)return a?(0,i.mb)(n):function(t){return Array.isArray(t)?t.length<1024?t:new Uint8Array(t):t.length<1024?Array.from(t):t}((0,i.mb)(n));if("lepcc-intensity"===t.encoding)return a?(0,i.Ax)(n):function(t){return Array.isArray(t)?t.length<1024?t:new Uint16Array(t):t.length<1024?Array.from(t):t}((0,i.Ax)(n));if(null!=t.encoding&&""!==t.encoding)throw new r.A("unknown-attribute-storage-info-encoding","Unknown Attribute Storage Info Encoding");t["attributeByteCounts "]&&!t.attributeByteCounts&&(s().warn("Warning: Trailing space in 'attributeByteCounts '."),t.attributeByteCounts=t["attributeByteCounts "]),"ObjectIds"===t.ordering[0]&&t.hasOwnProperty("objectIds")&&(s().warn("Warning: Case error in objectIds"),t.ordering[0]="objectIds");const u=function(t,n,e){const a=null!=n.header?l(t,n.header):{byteOffset:0,byteCount:0,fields:{count:e}},u={header:a,byteOffset:a.byteCount,byteCount:0,entries:Object.create(null)};let i=a.byteCount;for(let t=0;t<n.ordering.length;t++){const e=n.ordering[t],s=(0,o.o8)(n[e]);if(s.count=a.fields.count??0,"String"===s.valueType){if(s.byteOffset=i,s.byteCount=a.fields[e+"ByteCount"],"UTF-8"!==s.encoding)throw new r.A("unsupported-encoding","Unsupported String encoding.",{encoding:s.encoding});if(s.timeEncoding&&"ECMA_ISO8601"!==s.timeEncoding)throw new r.A("unsupported-time-encoding","Unsupported time encoding.",{timeEncoding:s.timeEncoding})}else{if(!w(s.valueType))throw new r.A("unsupported-value-type","Unsupported binary valueType",{valueType:s.valueType});{const t=v(s.valueType);i+=i%t!==0?t-i%t:0,s.byteOffset=i,s.byteCount=t*s.valuesPerElement*s.count}}i+=s.byteCount??0,u.entries[e]=s}return u.byteCount=i-u.byteOffset,u}(n,t,e);M(u.byteOffset+u.byteCount,n.byteLength,"attribute");const c=u.entries.attributeValues||u.entries.objectIds;if(c){if("String"===c.valueType){const t=u.entries.attributeByteCounts,e=h(n,t),r=function(t,n){return new Uint8Array(t,n.byteOffset,n.byteCount)}(n,c);return c.timeEncoding?function(t,n,e){return f(t,n,e).map(t=>{const n=t?Date.parse(t):null;return null==n||Number.isNaN(n)?null:n})}(t.count,e,r):f(t.count,e,r)}return a?h(n,c):function(t,n){const e=h(t,n);if(e.length>=1024)return e;const r=new Array;return e.forEach((t,n)=>r.push(d(e,n))),r}(n,c)}throw new r.A("bad-attribute-storage-info","Bad attributeStorageInfo specification.")}const y={Float32:Float32Array,Float64:Float64Array,UInt8:Uint8Array,Int8:Int8Array,UInt16:Uint16Array,Int16:Int16Array,UInt32:Uint32Array,Int32:Int32Array},g={Float32:(t,n)=>new DataView(t,0).getFloat32(n,!0),Float64:(t,n)=>new DataView(t,0).getFloat64(n,!0),UInt8:(t,n)=>new DataView(t,0).getUint8(n),Int8:(t,n)=>new DataView(t,0).getInt8(n),UInt16:(t,n)=>new DataView(t,0).getUint16(n,!0),Int16:(t,n)=>new DataView(t,0).getInt16(n,!0),UInt32:(t,n)=>new DataView(t,0).getUint32(n,!0),Int32:(t,n)=>new DataView(t,0).getInt32(n,!0)};function w(t){return y.hasOwnProperty(t)}function v(t){return w(t)?y[t].BYTES_PER_ELEMENT:0}},37203(t,n,e){e.d(n,{Ax:()=>d,Me:()=>i,mb:()=>f});var r=e(49186);const o=!0;function a(t,n,e){return{identifier:String.fromCharCode.apply(null,new Uint8Array(t,e+0,10)),version:n.getUint16(e+10,o),checksum:n.getUint32(e+12,o)}}function u(t,n){return{sizeLo:t.getUint32(n+0,o),sizeHi:t.getUint32(n+4,o),minX:t.getFloat64(n+8,o),minY:t.getFloat64(n+16,o),minZ:t.getFloat64(n+24,o),maxX:t.getFloat64(n+32,o),maxY:t.getFloat64(n+40,o),maxZ:t.getFloat64(n+48,o),errorX:t.getFloat64(n+56,o),errorY:t.getFloat64(n+64,o),errorZ:t.getFloat64(n+72,o),count:t.getUint32(n+80,o),reserved:t.getUint32(n+84,o)}}function i(t){const n=new DataView(t,0);let e=0;const{identifier:o,version:i}=a(t,n,e);if(e+=16,"LEPCC "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(i>1)throw new r.A("lepcc-decode-error","Unknown version");const c=u(n,e);if(e+=88,c.sizeHi*2**32+c.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const l=new Float64Array(3*c.count),f=[],h=[],d=[],M=[];if(e=s(t,e,f),e=s(t,e,h),e=s(t,e,d),e=s(t,e,M),e!==t.byteLength)throw new r.A("lepcc-decode-error","Bad length");let b=0,p=0;for(let t=0;t<f.length;t++){p+=f[t];let n=0;for(let e=0;e<h[t];e++){n+=d[b];const t=M[b];l[3*b]=Math.min(c.maxX,c.minX+2*c.errorX*n),l[3*b+1]=Math.min(c.maxY,c.minY+2*c.errorY*p),l[3*b+2]=Math.min(c.maxZ,c.minZ+2*c.errorZ*t),b++}}return{errorX:c.errorX,errorY:c.errorY,errorZ:c.errorZ,result:l}}function s(t,n,e){const r=[];n=c(t,n,r);const o=[];for(let a=0;a<r.length;a++){o.length=0,n=c(t,n,o);for(let t=0;t<o.length;t++)e.push(o[t]+r[a])}return n}function c(t,n,e){const a=new DataView(t,n),u=a.getUint8(0),i=31&u,s=!!(32&u),c=(192&u)>>6;let l=0;if(0===c)l=a.getUint32(1,o),n+=5;else if(1===c)l=a.getUint16(1,o),n+=3;else{if(2!==c)throw new r.A("lepcc-decode-error","Bad count type");l=a.getUint8(1),n+=2}if(s)throw new r.A("lepcc-decode-error","LUT not implemented");const f=Math.ceil(l*i/8),h=new Uint8Array(t,n,f);let d=0,M=0,b=0;const p=-1>>>32-i;for(let t=0;t<l;t++){for(;M<i;)d|=h[b]<<M,M+=8,b+=1;e[t]=d&p,d>>>=i,M-=i,M+i>32&&(d|=h[b-1]>>8-M)}return n+b}function l(t,n){return{sizeLo:t.getUint32(n+0,o),sizeHi:t.getUint32(n+4,o),count:t.getUint32(n+8,o),colorMapCount:t.getUint16(n+12,o),lookupMethod:t.getUint8(n+14),compressionMethod:t.getUint8(n+15)}}function f(t){const n=new DataView(t,0);let e=0;const{identifier:o,version:u}=a(t,n,e);if(e+=16,"ClusterRGB"!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const i=l(n,e);if(e+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");if((2===i.lookupMethod||1===i.lookupMethod)&&0===i.compressionMethod){if(3*i.colorMapCount+i.count+e!==t.byteLength||i.colorMapCount>256)throw new r.A("lepcc-decode-error","Bad count");const n=new Uint8Array(t,e,3*i.colorMapCount),o=new Uint8Array(t,e+3*i.colorMapCount,i.count),a=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++){const e=o[t];a[3*t]=n[3*e],a[3*t+1]=n[3*e+1],a[3*t+2]=n[3*e+2]}return a}if(0===i.lookupMethod&&0===i.compressionMethod){if(3*i.count+e!==t.byteLength||0!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");return new Uint8Array(t,e).slice()}if(i.lookupMethod<=2&&1===i.compressionMethod){if(e+3!==t.byteLength||1!==i.colorMapCount)throw new r.A("lepcc-decode-error","Bad count");const o=n.getUint8(e),a=n.getUint8(e+1),u=n.getUint8(e+2),s=new Uint8Array(3*i.count);for(let t=0;t<i.count;t++)s[3*t]=o,s[3*t+1]=a,s[3*t+2]=u;return s}throw new r.A("lepcc-decode-error","Bad method "+i.lookupMethod+","+i.compressionMethod)}function h(t,n){return{sizeLo:t.getUint32(n+0,o),sizeHi:t.getUint32(n+4,o),count:t.getUint32(n+8,o),scaleFactor:t.getUint16(n+12,o),bitsPerPoint:t.getUint8(n+14),reserved:t.getUint8(n+15)}}function d(t){const n=new DataView(t,0);let e=0;const{identifier:o,version:u}=a(t,n,e);if(e+=16,"Intensity "!==o)throw new r.A("lepcc-decode-error","Bad identifier");if(u>1)throw new r.A("lepcc-decode-error","Unknown version");const i=h(n,e);if(e+=16,i.sizeHi*2**32+i.sizeLo!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const s=new Uint16Array(i.count);if(8===i.bitsPerPoint){if(i.count+e!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const n=new Uint8Array(t,e,i.count);for(let t=0;t<i.count;t++)s[t]=n[t]*i.scaleFactor}else if(16===i.bitsPerPoint){if(2*i.count+e!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");const n=new Uint16Array(t,e,i.count);for(let t=0;t<i.count;t++)s[t]=n[t]*i.scaleFactor}else{const n=[];if(c(t,e,n)!==t.byteLength)throw new r.A("lepcc-decode-error","Bad size");for(let t=0;t<i.count;t++)s[t]=n[t]*i.scaleFactor}return s}}}]);
|