@arcgis/core 5.2.0-next.160 → 5.2.0-next.162
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/arcgisGlobal.d.ts +1 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{0a5a9885ee6f5b5f99f0.js → 167b057ad50e6aef54de.js} +1 -1
- package/assets/esri/core/workers/chunks/17c6d66b47aa690df0d4.js +1 -0
- package/assets/esri/core/workers/chunks/{15bcf7cfe603f2ee1a24.js → 28104681ba161967039f.js} +1 -1
- package/assets/esri/core/workers/chunks/{842893e75696428d536f.js → 3b0808ee3c4facfaca3d.js} +1 -1
- package/assets/esri/core/workers/chunks/{eebbde81e56d69dc602f.js → 44f90e75c1dc3d726a95.js} +1 -1
- package/assets/esri/core/workers/chunks/{77ebacfdf8e57f2e03f1.js → 46c5371c7a627537098c.js} +11 -11
- package/assets/esri/core/workers/chunks/5daa9429808ca31279f2.js +1 -0
- package/assets/esri/core/workers/chunks/{60737732ce495bbdd0fc.js → 5f4feca26102088ea565.js} +1 -1
- package/assets/esri/core/workers/chunks/6da7229433105a69eb3f.js +1 -0
- package/assets/esri/core/workers/chunks/83f29a159b8b5197e76a.js +1 -0
- package/assets/esri/core/workers/chunks/849879c8aed16315194c.js +1 -0
- package/assets/esri/core/workers/chunks/{1d77c8c59b0118c7e77b.js → 85bba551057366cd00ae.js} +1 -1
- package/assets/esri/core/workers/chunks/{9401cc22373566e1171e.js → 8a7b02037151767542f1.js} +1 -1
- package/assets/esri/core/workers/chunks/{4eae066673484986d4c1.js → 8e4a7027d171fb60e51e.js} +1 -1
- package/assets/esri/core/workers/chunks/{32b351b047ce1eb58146.js → 9ce8b9b80da146a5bbf5.js} +1 -1
- package/assets/esri/core/workers/chunks/a2fcbc494333376192aa.js +1 -0
- package/assets/esri/core/workers/chunks/a6f969851d4278865cc5.js +1 -0
- package/assets/esri/core/workers/chunks/{f1df76f098a3cc924832.js → b5df193c93e9c19f9700.js} +1 -1
- package/assets/esri/core/workers/chunks/{28b74bc77f7c13080074.js → be97a629e2ae4d13ceb3.js} +1 -1
- package/assets/esri/core/workers/chunks/{d33360c4f85203edafff.js → bf4d913e523eae2fda28.js} +1 -1
- package/assets/esri/core/workers/chunks/{172cfeb5f415e4662432.js → d7429b58c90e015263ad.js} +1 -1
- package/assets/esri/core/workers/chunks/{612104dff305ff062dfa.js → dfc81e66196c402f39b4.js} +2 -2
- package/assets/esri/core/workers/chunks/{02f8654852d389583891.js → e04fb83ab2634bc15cc7.js} +1 -1
- package/assets/esri/core/workers/chunks/f74ae0eff3f08978e607.js +1 -0
- package/assets/esri/themes/base/widgets/_OrientedImageryViewer.scss +2 -5
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/DefaultMaterial.glsl.js +1 -1
- package/chunks/RealisticTree.glsl.js +1 -1
- package/chunks/RibbonLine.glsl.js +125 -133
- package/config.d.ts +62 -34
- package/config.js +1 -1
- package/core/has.js +1 -1
- package/core/mapCollectionUtils.js +1 -1
- package/core/workers/Connection.d.ts +58 -89
- package/core/workers.d.ts +45 -54
- package/geometry/support/Indices.js +1 -1
- package/geometry/support/aaBoundingRect.js +1 -1
- package/geometry/support/ray.js +1 -1
- package/kernel.js +1 -1
- package/layers/FeatureLayer.d.ts +7 -5
- package/layers/FeatureLayer.js +1 -1
- package/layers/GeospatialPDFLayer.js +1 -1
- package/layers/MapImageLayer.d.ts +9 -3
- package/layers/MapNotesLayer.d.ts +2 -2
- package/layers/SubtypeGroupLayer.d.ts +1 -1
- package/layers/SubtypeGroupLayer.js +1 -1
- package/layers/geospatialPDF/GeospatialPDFLayerWorker.js +1 -1
- package/layers/graphics/sources/FeatureLayerSource.js +1 -1
- package/layers/graphics/sources/support/QueryTask.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.d.ts +16 -16
- package/layers/knowledgeGraph/KnowledgeGraphSublayer.js +1 -1
- package/layers/mixins/ArcGISMapService.js +1 -1
- package/layers/ogc/ogcFeatureUtils.js +1 -1
- package/layers/support/Sublayer.d.ts +29 -15
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/commonProperties.js +1 -1
- package/package.json +2 -2
- package/rest/layerSources/DynamicDataLayer.d.ts +4 -2
- package/rest/layerSources/DynamicDataLayer.js +1 -1
- package/rest/layerSources/DynamicMapLayer.d.ts +1 -1
- package/rest/layerSources/DynamicWorkspaceLayer.d.ts +45 -0
- package/rest/layerSources/DynamicWorkspaceLayer.js +2 -0
- package/rest/layerSources/typeUtils.js +2 -0
- package/rest/print.js +1 -1
- package/rest/query/operations/queryRelatedRecords.js +1 -1
- package/rest/query/operations/queryUtils.js +1 -1
- package/rest/support/Query.js +1 -1
- package/rest/support/RelationshipQuery.js +1 -1
- package/symbols/LineSymbol3D.d.ts +5 -3
- package/views/2d/analysis/ElevationProfileAnalysisView2D.d.ts +6 -0
- package/views/2d/analysis/ElevationProfileAnalysisView2D.js +1 -1
- package/views/2d/layers/features/layerAdapters/FeatureLayerAdapter.js +1 -1
- package/views/2d/layers/features/layerAdapters/SubtypeGroupLayerAdapter.js +1 -1
- package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
- package/views/3d/analysis/ElevationProfileAnalysisView3D.d.ts +6 -0
- package/views/3d/analysis/ElevationProfileAnalysisView3D.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightIntersectionResult.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightObserverPlugin.js +1 -1
- package/views/3d/analysis/LineOfSight/LineOfSightTargetPlugin.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedFieldOfViewManipulation.js +1 -1
- package/views/3d/analysis/Viewshed/ViewshedPlacementPointPlugin.js +1 -1
- package/views/3d/analysis/ViewshedAnalysisView3D.js +1 -1
- package/views/3d/input/SceneInputManager.js +1 -1
- package/views/3d/input/handlers/DragZoom.js +1 -1
- package/views/3d/input/handlers/MouseWheelFov.js +1 -1
- package/views/3d/interactive/editingTools/move/MoveTool3D.js +1 -1
- package/views/3d/interactive/editingTools/reshape/ReshapeOperation.js +1 -1
- package/views/3d/interactive/manipulators/ResizeManipulator.js +1 -1
- package/views/3d/interactive/manipulators/RotateManipulator.js +1 -1
- package/views/3d/interactive/manipulators/ShiftManipulator.js +1 -1
- package/views/3d/interactive/visualElements/ExtendedLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/OutlineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/ParallelLineVisualElement.js +1 -1
- package/views/3d/interactive/visualElements/RightAngleQuadVisualElement.js +1 -1
- package/views/3d/layers/FlowSubView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/extrudePolygon.js +1 -1
- package/views/3d/layers/graphics/tessellationUtils.js +1 -1
- package/views/3d/state/controllers/FovController.js +1 -1
- package/views/3d/state/controllers/GroundNavigationController.js +1 -1
- package/views/3d/state/controllers/momentum/GroundNavigationMomentumController.js +1 -1
- package/views/3d/state/utils/OffsetCorrectionController.js +1 -1
- package/views/3d/support/elevationUpdateUtils.js +1 -1
- package/views/3d/terrain/PatchRenderData.js +1 -1
- package/views/3d/terrain/TerrainData.js +1 -1
- package/views/3d/terrain/TextureReference.js +1 -1
- package/views/3d/terrain/terrainUtils.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialExternalColor.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/output/getEmissions.glsl.js +2 -2
- package/views/3d/webgl-engine/lib/GridLocalOriginFactory.js +1 -1
- package/views/3d/webgl-engine/lib/RenderingContext.js +1 -1
- package/views/3d/webgl-engine/lib/edgeRendering/EdgeView.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechniqueConfiguration.js +1 -1
- package/views/BreakpointsOwner.d.ts +6 -0
- package/views/SceneView.js +1 -1
- package/views/analysis/ElevationProfile/ElevationProfileTool.js +1 -1
- package/views/interactive/editGeometry/EditGeometry.js +1 -1
- package/views/interactive/editGeometry/operations/RotateVertex.js +1 -1
- package/views/interactive/editGeometry/operations/ScaleVertex.js +1 -1
- package/views/interactive/editGeometry/operations/SetAllVertexPositions.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/types.d.ts +3 -0
- package/views/webgl/ShaderBuilder.js +1 -1
- package/widgets/FloorFilter/FloorFilterViewModel.js +1 -1
- package/widgets/Search/LocatorSearchSource.d.ts +22 -1
- package/widgets/support/SelectionList/GroupLayerItem.d.ts +2 -0
- package/widgets/support/SelectionList/GroupLayerItem.js +1 -1
- package/widgets/support/SelectionList/ItemBase.d.ts +2 -0
- package/widgets/support/SelectionList/ItemBase.js +1 -1
- package/widgets/support/SelectionList/SelectionListViewModel.js +1 -1
- package/widgets/support/SelectionList.js +1 -1
- package/assets/esri/core/workers/chunks/3e3e076fa5e8d5d5f33f.js +0 -1
- package/assets/esri/core/workers/chunks/510502a4c9a2ba8d3f7b.js +0 -1
- package/assets/esri/core/workers/chunks/7d212c415f2709037408.js +0 -1
- package/assets/esri/core/workers/chunks/abb9e820d2871fa7acae.js +0 -1
- package/assets/esri/core/workers/chunks/ade5fdcd08dcbac74740.js +0 -1
- package/assets/esri/core/workers/chunks/b390b9cde2884755e8be.js +0 -1
- package/assets/esri/core/workers/chunks/e8bf653376a607f00897.js +0 -1
- package/assets/esri/core/workers/chunks/f4a7aa3cdbc0c429c359.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[893],{69397(e,t,r){r.d(t,{Qf:()=>o,Qh:()=>i,lM:()=>s});var n=r(34275);function s(e){if(!e)return 0;let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return o(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=c;for(let n=0;n<t;n++)r+=a(e[n]);return r}(e);let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?i(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+f:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return c+e.length*t}const u=32,c=16,f=145},51624(e,t,r){r.d(t,{A:()=>u});var n=r(44208),s=r(69397),i=r(93687);const a=4294967296,o=new TextDecoder("utf-8"),l=(0,n.A)("safari")||(0,n.A)("ios")?6:(0,n.A)("ff")?12:32;class u{constructor(e,t,r=0,n=e?.byteLength??0){this._tag=0,this._dataType=99,this._init(e,t,r,n)}[Symbol.dispose](){this.release()}_init(e,t,r,n){this._data=e,this._dataView=t,this._pos=r,this._end=n}get usedMemory(){return 64+(0,s.Qf)(this._data)}asUnsafe(){return this}clone(){return new u(this._data,this._dataView,this._pos,this._end)}clonePooled(){return u.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(e,t,r=0,n=e?.byteLength??0){let s=u.pool.acquire();return s._init(e,t,r,n),s}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;let t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;let e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128||(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)||(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)||(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)||(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128))return e;throw Error("Varint overflow")}getPackedEnd(){let e=this.getUInt32();return this._pos+e}getUInt64(){return this._decodeVarint()}getSInt32(){let e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){let e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){let e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*a;return this._skip(8),r}getSFixed64(){let e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*a;return this._skip(8),r}getDouble(){let e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){let e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){let e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){let e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){let e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){let e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,n){let s=this.getMessage(),i=e(s,t,r,n);return s.release(),i}processMessage(e){let t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){let e=this._getLength(),t=u.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){let e=this._data,t=this._pos,r=0,n=0;if(this._end-t>=10){if(n=e[t++],r|=127&n,128&n&&(n=e[t++],r|=(127&n)<<7,128&n&&(n=e[t++],r|=(127&n)<<14,128&n&&(n=e[t++],r|=(127&n)<<21,128&n&&(n=e[t++],r+=268435456*(127&n),128&n&&(n=e[t++],r+=34359738368*(127&n),128&n&&(n=e[t++],r+=4398046511104*(127&n),128&n&&(n=e[t++],r+=562949953421312*(127&n),128&n&&(n=e[t++],r+=72057594037927940*(127&n),128&n&&(n=e[t++],r+=0x8000000000000000*(127&n),128&n))))))))))throw Error("Varint too long!")}else{let s=1;for(;t!==this._end&&(n=e[t],128&n);)++t,r+=(127&n)*s,s*=128;if(t===this._end)throw Error("Varint overrun!");++t,r+=n*s}return this._pos=t,r}_decodeSVarint(){let e,t=this._data,r=0,n=0,s=1&t[this._pos];if(n=t[this._pos++],r|=127&n,!(128&n&&(n=t[this._pos++],r|=(127&n)<<7,128&n)&&(n=t[this._pos++],r|=(127&n)<<14,128&n)&&(n=t[this._pos++],r|=(127&n)<<21,128&n)&&(n=t[this._pos++],r+=268435456*(127&n),128&n)&&(n=t[this._pos++],r+=34359738368*(127&n),128&n)&&(n=t[this._pos++],r+=4398046511104*(127&n),128&n)))return s?-(r+1)/2:r/2;if(e=BigInt(r),n=t[this._pos++],e+=562949953421312n*BigInt(127&n),!(128&n&&(n=t[this._pos++],e+=72057594037927936n*BigInt(127&n),128&n)&&(n=t[this._pos++],e+=9223372036854775808n*BigInt(127&n),128&n)))return Number(s?-(e+1n)/2n:e/2n);throw Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>l){let n=e.subarray(t,r);return o.decode(n)}let n="",s="";for(let i=t;i<r;++i){let t=e[i];128&t?s+="%"+t.toString(16):(n+=decodeURIComponent(s)+String.fromCharCode(t),s="")}return s.length&&(n+=decodeURIComponent(s)),n}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}static{this.pool=new i.A(()=>new u(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},62815(e,t,r){r.d(t,{N:()=>o,d:()=>l});var n=r(86211),s=r(73941),i=r(21325),a=r(52006);function o(e,t,r){let n=l(t,r);if(1!==n)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,n);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(let r of e.curvePaths)for(let e of r){let r=(0,a.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)for(let r of e.paths)for(let e of r)e.length>2&&(e[2]*=t)}}(e,n);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(let r of e.curveRings)for(let e of r){let r=(0,a.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)for(let r of e.rings)for(let e of r)e.length>2&&(e[2]*=t)}}(e,n);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(let r of e.points)r.length>2&&(r[2]*=t)}(e,n);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,n);default:return}}function l(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,s.xP)(e)||(0,s.xP)(t)?1:(0,n.G9)(e)/(0,n.G9)(t)}},10536(e,t,r){function n(e){let t={};for(let r in e){if("declaredClass"===r)continue;let s=e[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s)){t[r]=[];for(let e=0;e<s.length;e++)t[r][e]=n(s[e])}else"object"==typeof s?s.toJSON&&(t[r]=JSON.stringify(s)):t[r]=s}return t}r.d(t,{z:()=>n})},53655(e,t,r){r.d(t,{SH:()=>v,ae:()=>E,cn:()=>d});var n=r(32198),s=r(49186),i=r(51624),a=r(50498);const o=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],l=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],u="sqlTypeBigInt.sqlTypeBinary.sqlTypeBit.sqlTypeChar.sqlTypeDate.sqlTypeDecimal.sqlTypeDouble.sqlTypeFloat.sqlTypeGeometry.sqlTypeGUID.sqlTypeInteger.sqlTypeLongNVarchar.sqlTypeLongVarbinary.sqlTypeLongVarchar.sqlTypeNChar.sqlTypeNVarchar.sqlTypeOther.sqlTypeReal.sqlTypeSmallInt.sqlTypeSqlXml.sqlTypeTime.sqlTypeTimestamp.sqlTypeTimestamp2.sqlTypeTinyInt.sqlTypeVarbinary.sqlTypeVarchar".split("."),c=["upperLeft","lowerLeft"];function f(e,t){let r=e.getEnum();return r<t.length?t[r]:void 0}function p(e,t){e.featureSet.geometryType=e.usesShortGeometryTypes?a.gy.fromJSON(t):t}function g(e,t=e.featureSet.geometryType){return e.usesShortGeometryTypes?a.gy.toJSON(t):t}function h(e){let t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function d(e){let t=e.asUnsafe(),r={type:l[0]};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=f(t,l);break;case 3:r.alias=t.getString();break;case 4:r.sqlType=f(t,u);break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function y(e){let t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}let m=[];function _(e,t,r){let n=g(t),s=0,i=e.asUnsafe();for(;i.next();)switch(i.tag()){case 1:1===r?n=f(i,o):i.skip();continue;case 2:for(let e=i.getPackedEnd();i.pos()<e;)m[s++]=i.getUInt32();continue;case 3:s>0?(m.length=s,null!=t.geometry(r,n,m)&&(m=[])):t.geometry(r,n,[]);for(let e=i.getPackedEnd();i.pos()<e;)t.coord(i.getSInt64());continue;default:i.skip()}}function S(e,t){let r=[],n=e.asUnsafe();for(;n.next();)if(3!==n.tag())n.skip();else for(let e=n.getPackedEnd();n.pos()<e;)r.push(n.getSInt64());t.centroid(r)}let k=[],b=[],T=[];function w(e,t){let r={stack:[],error:void 0,hasError:!1};try{let s=0,i=m,a=0,o=e.asUnsafe(),l=(0,n.mS)(r,o.clonePooled().asUnsafe(),!1);for(;o.next();)switch(o.tag()){case 2:for(let u=o.getPackedEnd();o.pos()<u;)i[s++]=o.getUInt32();continue;case 3:if(!("curvedGeometry"in t))throw Error(`Tried to parse curved geometry in a ${t.constructor.name}, which doesn't support them.`);o.processMessageWithArgs(I,a++);continue;case 4:{let c=o.getUInt32(),f=o.pos()+c;if(0===a||0===s||0===c){o.move(f);continue}i.length=s,T.length=b.length=a,t.curvedGeometry(g(t),i,b,T);let{hasZ:p,hasM:h}=t.featureSet,d=[],y=[0,0];function _(){for(let e=0;e<y.length;++e)d[e]=y[e],y[e]=o.getSInt64()}p&&y.push(0),h&&y.push(0);let S=[0,0],w=[0,0],x=S,q=S,F=0;for(let E=0;E<s;++E){_(),d.fill(0),t.startCurvedPart(y);for(let O=F+i[E];F<O;++F){let U=b[F],P=T[F];switch(U){case 0:for(let V=0;V<P;++V)_(),y[0]+=d[0],y[1]+=d[1],t.lineSegment(d,y);continue;case 1:for(let v=0;v<P;++v)_(),x[0]=o.getSInt64(),x[1]=o.getSInt64(),t.circularArcSegment(d,y,x);continue;case 2:for(let D=0;D<P;++D)_(),S[0]=o.getSInt64(),S[1]=o.getSInt64(),w[0]=o.getSInt64(),w[1]=o.getSInt64(),t.bezierSegment(d,y,S,w);continue;case 3:if(l.move(k[F]),l.getUInt32()<7*P)throw Error("Not implemented: compressed full circle encoding");for(let A=0;A<P;++A){_(),q[0]=l.getDouble(),q[1]=l.getDouble();let M=l.getDouble(),G=l.getDouble(),R=l.getDouble(),N=l.getDouble(),B=l.getDouble();t.ellipticArcSegment(d,y,q,M,G,R,N,B)}continue}}t.finishCurvedPart(y)}continue}default:o.skip()}}catch(j){r.error=j,r.hasError=!0}finally{(0,n.hk)(r)}}function I(e,t){let r=e.asUnsafe(),n=0,s=0,i=0;for(;r.next();)switch(r.tag()){case 1:n=r.getEnum();continue;case 2:s=r.getUInt32();continue;case 3:i=r.pos(),r.skip();continue;default:r.skip()}if(3===n&&0===i)throw Error("An elliptic arc segment set did not include a parameters array");b[t]=n,T[t]=s,k[t]=i}function x(e,t){t.feature();let r=t.featureSet.features.at(-1),n=0,{fields:s}=t.featureSet;for(;e.next();)switch(e.tag()){case 1:if(null==s)throw Error("A Feature had attributes but the FeatureResult didn't include any fields");r.attributes[s[n++].name]=e.processMessage(h);continue;case 2:e.processMessageWithArgs(_,t,0);continue;case 4:e.processMessageWithArgs(S,t);continue;case 7:e.processMessageWithArgs(w,t);continue;case 11:r.distance=e.getDouble();continue;default:e.skip();continue}t.finishFeature?.()}function q(e){let t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function F(e){let t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function E(e){let t={originPosition:c[0]},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=f(r,c);break;case 2:t.scale=r.processMessage(q);break;case 3:t.translate=r.processMessage(F);break;default:r.skip()}return t}function O(e){let t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function U(e){let t={};for(;e.next();)switch(e.tag()){case 1:t.wkid=e.getUInt32();break;case 5:t.wkt=e.getString();break;case 2:t.latestWkid=e.getUInt32();break;case 3:t.vcsWkid=e.getUInt32();break;case 4:t.latestVcsWkid=e.getUInt32();break;default:e.skip()}return t}function P(e,t){let r=e.asUnsafe();if(t.featureSet.features.length=0,"features"===t.parseOnly?.type){let e=t.parseOnly.indices.values(),n=0,s=e.next().value;for(;r.next();)15===r.tag()&&n++===s?(s=e.next().value,r.processMessageWithArgs(x,t)):r.skip();return}let n=!1;for("metadata"===t.parseOnly?.type&&(n=!0,t.parseOnly.featureCount=0),p(t,"esriGeometryPoint");r.next();)switch(r.tag()){case 1:t.idField(r.getString());continue;case 3:t.featureSet.globalIdFieldName=r.getString();continue;case 4:t.featureSet.geohashFieldName=r.getString();continue;case 5:t.featureSet.geometryProperties=r.processMessage(O);continue;case 7:p(t,f(r,o));continue;case 8:t.featureSet.spatialReference=r.processMessageWithArgs(U);continue;case 10:t.featureSet.hasZ=r.getBool();continue;case 11:t.featureSet.hasM=r.getBool();continue;case 12:t.featureSet.transform=r.processMessage(E);continue;case 9:t.featureSet.exceededTransferLimit=r.getBool();continue;case 13:t.featureSet.fields??=[],t.featureSet.fields.push(r.processMessage(d));continue;case 15:if(n){++t.parseOnly.featureCount,r.skip();continue}r.processMessageWithArgs(x,t);continue;case 2:t.idField(r.processMessage(y));continue;default:r.skip()}}function V(e,t,r){let n=-1;for(;e.next();)switch(e.tag()){case 4:n=e.pos(),e.skip();continue;case 1:e.processMessageWithArgs(P,t);continue;default:e.skip()}if(-1!==n){if(!t.queryGeometry()){let r=e.pos();e.move(n),e.processMessageWithArgs(_,t,1),e.move(r)}r.queryGeometryType=t.queryGeometryType(),r.queryGeometry=t.queryGeometry()}t.finish(),r.featureResult=t.featureSet}function v(e,t){let r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,{[Symbol.dispose](){m=[],k=[],b=[],T=[]}},!1);try{let r={stack:[],error:void 0,hasError:!1};try{let s,a=(0,n.mS)(r,i.A.constructPooled(new Uint8Array(e),new DataView(e)),!1);for(;a.next();)2===a.tag()?(s={},a.processMessageWithArgs(V,t,s)):a.skip();return s}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}catch(e){throw new s.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}},66208(e,t,r){r.d(t,{m:()=>s});var n=r(53655);function s(e,t){let{featureResult:r}=(0,n.SH)(e,t);return r}},80893(e,t,r){r.d(t,{IJ:()=>p,Jf:()=>y,LT:()=>S,Pk:()=>h,eW:()=>f,gW:()=>d,kS:()=>g});var n=r(56507),s=r(84952),i=r(52039),a=r(10536),o=r(66208),l=r(5076),u=r(58501);function c(e,t,r){return(0,l.i)(e,t,r)}async function f(e,t,r,n,s){let i=t.timeExtent?.isEmpty?{features:[]}:await _(e,t,"json",n,void 0,s);return i.features??=[],(0,u.q)(t,r,i),i}async function p(e,t,r,n,s){if(t.timeExtent?.isEmpty)return r.featureSet;let i=await g(e,t,n,s);return(0,o.m)(i,r)}function g(e,t,r,n){return _(e,t,"pbf",r,void 0,n)}function h(e,t,r,n){return t.timeExtent?.isEmpty?Promise.resolve({objectIds:[]}):_(e,t,"json",r,{returnIdsOnly:!0},n)}async function d(e,t,r,n){return t.timeExtent?.isEmpty?0:(await _(e,t,"json",r,{returnCountOnly:!0},n)).count}async function y(e,t,r){if(t.timeExtent?.isEmpty)return{count:0,extent:null};let n=await _(e,t,"json",r,{returnExtentOnly:!0,returnCountOnly:!0});if(n.hasOwnProperty("extent"))return n;let s="string"==typeof e?e:e.path;if(/\/imageserver\/?$/i.test(s)&&n.hasOwnProperty("count")){let s=await _(e,t,"json",r,{returnExtentOnly:!0});return{count:n.count,extent:s.extent}}if(n.features||n.hasOwnProperty("count"))throw Error("Layer does not support extent calculation.");return n}function m(e,t){if(!e.returnIdsOnly||!t.uniqueIdFields)return e;let r={...e,returnUniqueIdsOnly:!0};return delete r.returnIdsOnly,r}async function _(e,t,r,s={},i={},a={}){let o=await S(e,t,r,s,i,a),l="json"===r?"json":"array-buffer";return(0,n.A)(o.url,{responseType:l,...o.options}).then(({data:e})=>e)}async function S(e,t,r,n,o={},l={}){let u="string"==typeof e?(0,s.An)(e):e,[f]=await(0,i.el)([t.geometry],n);if(null!=f){let e=t.clone();e.geometry=f.clone(),t=e}let p=(0,a.z)({...u.query,f:r,...m(o,l),...c(t,o,l)});return n={...n,query:{...p,...n.query}},new k((0,s.fj)(u.path,function(e,t){return null!=e.formatOf3DObjects&&!(t.returnCountOnly||t.returnExtentOnly||t.returnIdsOnly)}(t,o)?"query3d":"query"),n)}class k{constructor(e,t){this.url=e,this.options=t}}},5076(e,t,r){r.d(t,{i:()=>i});var n=r(60408),s=r(21325);function i(e,t,r){let{geometry:i}=e,a=e.compactGeometryEnabled??!1,o=e.toJSON();delete o.compactGeometryEnabled,delete o.defaultSpatialReferenceEnabled;let l,u,c,f=o;if(i&&(u=i.spatialReference,c=(0,s.YX)(u),f.geometryType=(0,n.$B)(i),f.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;let r=e.toJSON();return delete r.spatialReference,JSON.stringify(r)}(i,a),f.inSR=c),o.groupByFieldsForStatistics&&(f.groupByFieldsForStatistics=o.groupByFieldsForStatistics.join(",")),o.objectIds)switch(r?.uniqueIdFields?.length){case void 0:f.objectIds=o.objectIds.join(",");break;case 1:f.uniqueIds=JSON.stringify(o.objectIds),delete f.objectIds;break;default:f.uniqueIds=JSON.stringify(o.objectIds.map(e=>JSON.parse(e))),delete f.objectIds}if(o.orderByFields&&(f.orderByFields=o.orderByFields.join(",")),!o.outFields||!o.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete f.outFields:f.outFields=o.outFields.includes("*")?"*":o.outFields.join(","),o.outSR?(f.outSR=(0,s.YX)(o.outSR),l=e.outSpatialReference):i&&(o.returnGeometry||o.returnCentroid)&&(f.outSR=f.inSR,l=u),o.returnGeometry&&delete o.returnGeometry,o.outStatistics&&(f.outStatistics=JSON.stringify(o.outStatistics)),o.outDistance&&(f.outDistance=JSON.stringify(o.outDistance)),o.fullText&&(f.fullText=JSON.stringify(o.fullText)),o.pixelSize&&(f.pixelSize=JSON.stringify(o.pixelSize)),o.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=u&&null!=e.quantizationParameters?.extent&&u.equals(e.quantizationParameters.extent.spatialReference)&&delete o.quantizationParameters.extent.spatialReference,f.quantizationParameters=JSON.stringify(o.quantizationParameters)),o.parameterValues&&(f.parameterValues=JSON.stringify(o.parameterValues)),o.rangeValues&&(f.rangeValues=JSON.stringify(o.rangeValues)),o.dynamicDataSource&&(f.layer=JSON.stringify({source:o.dynamicDataSource}),delete o.dynamicDataSource),o.timeExtent){let{start:e,end:t}=o.timeExtent;(null!=e||null!=t)&&(f.time=e===t?e:`${e??"null"},${t??"null"}`),delete o.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=u&&null!=l&&u.equals(l)&&(f.defaultSR=f.inSR,delete f.inSR,delete f.outSR),f}},58501(e,t,r){r.d(t,{q:()=>s});var n=r(62815);function s(e,t,r){if(!r?.features||!r.hasZ)return;let s=(0,n.N)(r.geometryType,t,e.outSpatialReference);if(s)for(let e of r.features)s(e.geometry)}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[893],{69397(e,t,r){r.d(t,{Qf:()=>o,Qh:()=>i,lM:()=>s});var n=r(34275);function s(e){if(!e)return 0;let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=a(e[r],!1));return t}function i(e){if(!e)return 0;if("number"==typeof e[0])return o(e);if(Array.isArray(e))return function(e){let t=e.length;if(0===t||"number"==typeof e[0])return l(e,8);let r=c;for(let n=0;n<t;n++)r+=a(e[n]);return r}(e);let t=u;for(let r in e)e.hasOwnProperty(r)&&(t+=a(e[r]));return t}function a(e,t=!0){switch(typeof e){case"object":return t?i(e):u;case"string":return function(e){return 32+e.length}(e);case"number":return 16;case"boolean":return 4;default:return 8}}function o(...e){return e.reduce((e,t)=>e+(t?(0,n.iu)(t)?t.byteLength+f:Array.isArray(t)?l(t,16):0:0),0)}function l(e,t){return c+e.length*t}const u=32,c=16,f=145},51624(e,t,r){r.d(t,{A:()=>u});var n=r(44208),s=r(69397),i=r(93687);const a=4294967296,o=new TextDecoder("utf-8"),l=(0,n.A)("safari")||(0,n.A)("ios")?6:(0,n.A)("ff")?12:32;class u{constructor(e,t,r=0,n=e?.byteLength??0){this._tag=0,this._dataType=99,this._init(e,t,r,n)}[Symbol.dispose](){this.release()}_init(e,t,r,n){this._data=e,this._dataView=t,this._pos=r,this._end=n}get usedMemory(){return 64+(0,s.Qf)(this._data)}asUnsafe(){return this}clone(){return new u(this._data,this._dataView,this._pos,this._end)}clonePooled(){return u.constructPooled(this._data,this._dataView,this._pos,this._end)}static constructPooled(e,t,r=0,n=e?.byteLength??0){let s=u.pool.acquire();return s._init(e,t,r,n),s}pos(){return this._pos}move(e){this._pos=e}nextTag(e){for(;;){if(this._pos===this._end)return!1;let t=this._decodeVarint();if(this._tag=t>>3,this._dataType=7&t,!e||e===this._tag)break;this.skip()}return!0}next(){if(this._pos===this._end)return!1;let e=this._decodeVarint();return this._tag=e>>3,this._dataType=7&e,!0}empty(){return this._pos>=this._end}tag(){return this._tag}getInt32(){return this._decodeVarint()}getInt64(){return this._decodeVarint()}getUInt32(){let e=4294967295;if(e=(127&this._data[this._pos])>>>0,this._data[this._pos++]<128||(e=(e|(127&this._data[this._pos])<<7)>>>0,this._data[this._pos++]<128)||(e=(e|(127&this._data[this._pos])<<14)>>>0,this._data[this._pos++]<128)||(e=(e|(127&this._data[this._pos])<<21)>>>0,this._data[this._pos++]<128)||(e=(e|(15&this._data[this._pos])<<28)>>>0,this._data[this._pos++]<128))return e;throw Error("Varint overflow")}getPackedEnd(){let e=this.getUInt32();return this._pos+e}getUInt64(){return this._decodeVarint()}getSInt32(){let e=this.getUInt32();return e>>>1^-(1&e)}getSInt64(){return this._decodeSVarint()}getBool(){let e=0!==this._data[this._pos];return this._skip(1),e}getEnum(){return this._decodeVarint()}getFixed64(){let e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getUint32(t+4,!0)*a;return this._skip(8),r}getSFixed64(){let e=this._dataView,t=this._pos,r=e.getUint32(t,!0)+e.getInt32(t+4,!0)*a;return this._skip(8),r}getDouble(){let e=this._dataView.getFloat64(this._pos,!0);return this._skip(8),e}getFixed32(){let e=this._dataView.getUint32(this._pos,!0);return this._skip(4),e}getSFixed32(){let e=this._dataView.getInt32(this._pos,!0);return this._skip(4),e}getFloat(){let e=this._dataView.getFloat32(this._pos,!0);return this._skip(4),e}getString(){let e=this._getLength(),t=this._pos,r=this._toString(this._data,t,t+e);return this._skip(e),r}getBytes(){let e=this._getLength(),t=this._pos,r=this._toBytes(this._data,t,t+e);return this._skip(e),r}getLength(){return this._getLengthUnsafe()}processMessageWithArgs(e,t,r,n){let s=this.getMessage(),i=e(s,t,r,n);return s.release(),i}processMessage(e){let t=this.getMessage(),r=e(t);return t.release(),r}getMessage(){let e=this._getLength(),t=u.pool.acquire();return t._init(this._data,this._dataView,this._pos,this._pos+e),this._skip(e),t}release(){u.pool.release(this)}dataType(){return this._dataType}skip(){switch(this._dataType){case 0:this._decodeVarint();break;case 1:this._skip(8);break;case 2:this._skip(this._getLength());break;case 5:this._skip(4);break;default:throw Error("Invalid data type!")}}skipToEnd(){for(;this.next();)this.skip()}skipLen(e){this._skip(e)}_skip(e){if(this._pos+e>this._end)throw Error("Attempt to skip past the end of buffer!");this._pos+=e}_decodeVarint(){let e=this._data,t=this._pos,r=0,n=0;if(this._end-t>=10){if(n=e[t++],r|=127&n,128&n&&(n=e[t++],r|=(127&n)<<7,128&n&&(n=e[t++],r|=(127&n)<<14,128&n&&(n=e[t++],r|=(127&n)<<21,128&n&&(n=e[t++],r+=268435456*(127&n),128&n&&(n=e[t++],r+=34359738368*(127&n),128&n&&(n=e[t++],r+=4398046511104*(127&n),128&n&&(n=e[t++],r+=562949953421312*(127&n),128&n&&(n=e[t++],r+=72057594037927940*(127&n),128&n&&(n=e[t++],r+=0x8000000000000000*(127&n),128&n))))))))))throw Error("Varint too long!")}else{let s=1;for(;t!==this._end&&(n=e[t],128&n);)++t,r+=(127&n)*s,s*=128;if(t===this._end)throw Error("Varint overrun!");++t,r+=n*s}return this._pos=t,r}_decodeSVarint(){let e,t=this._data,r=0,n=0,s=1&t[this._pos];if(n=t[this._pos++],r|=127&n,!(128&n&&(n=t[this._pos++],r|=(127&n)<<7,128&n)&&(n=t[this._pos++],r|=(127&n)<<14,128&n)&&(n=t[this._pos++],r|=(127&n)<<21,128&n)&&(n=t[this._pos++],r+=268435456*(127&n),128&n)&&(n=t[this._pos++],r+=34359738368*(127&n),128&n)&&(n=t[this._pos++],r+=4398046511104*(127&n),128&n)))return s?-(r+1)/2:r/2;if(e=BigInt(r),n=t[this._pos++],e+=562949953421312n*BigInt(127&n),!(128&n&&(n=t[this._pos++],e+=72057594037927936n*BigInt(127&n),128&n)&&(n=t[this._pos++],e+=9223372036854775808n*BigInt(127&n),128&n)))return Number(s?-(e+1n)/2n:e/2n);throw Error("Varint too long!")}_getLength(){if(2!==this._dataType)throw Error("Not a delimited data type!");return this._decodeVarint()}_getLengthUnsafe(){return this.getUInt32()}_toString(e,t,r){if((r=Math.min(this._end,r))-t>l){let n=e.subarray(t,r);return o.decode(n)}let n="",s="";for(let i=t;i<r;++i){let t=e[i];128&t?s+="%"+t.toString(16):(n+=decodeURIComponent(s)+String.fromCharCode(t),s="")}return s.length&&(n+=decodeURIComponent(s)),n}_toBytes(e,t,r){return r=Math.min(this._end,r),new Uint8Array(e.buffer,t,r-t)}static{this.pool=new i.A(()=>new u(null,null),void 0,e=>{e._data=null,e._dataView=null})}}},62815(e,t,r){r.d(t,{N:()=>o,d:()=>l});var n=r(86211),s=r(73941),i=r(21325),a=r(52006);function o(e,t,r){let n=l(t,r);if(1!==n)switch(e){case"point":case"esriGeometryPoint":return e=>function(e,t){null!=e?.z&&(e.z*=t)}(e,n);case"polyline":case"esriGeometryPolyline":return e=>function(e,t){if(e){if(e.curvePaths)for(let r of e.curvePaths)for(let e of r){let r=(0,a.yP)(e);r.length>2&&(r[2]*=t)}if(e.paths)for(let r of e.paths)for(let e of r)e.length>2&&(e[2]*=t)}}(e,n);case"polygon":case"esriGeometryPolygon":return e=>function(e,t){if(e){if(e.curveRings)for(let r of e.curveRings)for(let e of r){let r=(0,a.yP)(e);r.length>2&&(r[2]*=t)}if(e.rings)for(let r of e.rings)for(let e of r)e.length>2&&(e[2]*=t)}}(e,n);case"multipoint":case"esriGeometryMultipoint":return e=>function(e,t){if(e)for(let r of e.points)r.length>2&&(r[2]*=t)}(e,n);case"extent":case"esriGeometryEnvelope":return e=>function(e,t){e&&null!=e.zmin&&null!=e.zmax&&(e.zmin*=t,e.zmax*=t)}(e,n);default:return}}function l(e,t){return null==e||null==t||(0,i.aI)(e,t)||(0,s.xP)(e)||(0,s.xP)(t)?1:(0,n.G9)(e)/(0,n.G9)(t)}},10536(e,t,r){function n(e){let t={};for(let r in e){if("declaredClass"===r)continue;let s=e[r];if(null!=s&&"function"!=typeof s)if(Array.isArray(s)){t[r]=[];for(let e=0;e<s.length;e++)t[r][e]=n(s[e])}else"object"==typeof s?s.toJSON&&(t[r]=JSON.stringify(s)):t[r]=s}return t}r.d(t,{z:()=>n})},53655(e,t,r){r.d(t,{SH:()=>D,ae:()=>F,cn:()=>h});var n=r(32198),s=r(49186),i=r(51624),a=r(50498);const o=["esriGeometryPoint","esriGeometryMultipoint","esriGeometryPolyline","esriGeometryPolygon"],l=["esriFieldTypeSmallInteger","esriFieldTypeInteger","esriFieldTypeSingle","esriFieldTypeDouble","esriFieldTypeString","esriFieldTypeDate","esriFieldTypeOID","esriFieldTypeGeometry","esriFieldTypeBlob","esriFieldTypeRaster","esriFieldTypeGUID","esriFieldTypeGlobalID","esriFieldTypeXML","esriFieldTypeBigInteger","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"],u="sqlTypeBigInt.sqlTypeBinary.sqlTypeBit.sqlTypeChar.sqlTypeDate.sqlTypeDecimal.sqlTypeDouble.sqlTypeFloat.sqlTypeGeometry.sqlTypeGUID.sqlTypeInteger.sqlTypeLongNVarchar.sqlTypeLongVarbinary.sqlTypeLongVarchar.sqlTypeNChar.sqlTypeNVarchar.sqlTypeOther.sqlTypeReal.sqlTypeSmallInt.sqlTypeSqlXml.sqlTypeTime.sqlTypeTimestamp.sqlTypeTimestamp2.sqlTypeTinyInt.sqlTypeVarbinary.sqlTypeVarchar".split("."),c=["upperLeft","lowerLeft"];function f(e,t){let r=e.getEnum();return r<t.length?t[r]:void 0}function p(e,t){e.featureSet.geometryType=e.usesShortGeometryTypes?a.gy.fromJSON(t):t}function g(e,t=e.featureSet.geometryType){return e.usesShortGeometryTypes?a.gy.toJSON(t):t}function d(e){let t=e.asUnsafe();for(;t.next();)switch(t.tag()){case 1:return t.getString();case 2:return t.getFloat();case 3:return t.getDouble();case 4:return t.getSInt32();case 5:return t.getUInt32();case 6:return t.getInt64();case 7:return t.getUInt64();case 8:return t.getSInt64();case 9:return t.getBool();default:return t.skip(),null}return null}function h(e){let t=e.asUnsafe(),r={type:l[0]};for(;t.next();)switch(t.tag()){case 1:r.name=t.getString();break;case 2:r.type=f(t,l);break;case 3:r.alias=t.getString();break;case 4:r.sqlType=f(t,u);break;case 5:default:t.skip();break;case 6:r.defaultValue=t.getString()}return r}function y(e){let t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.name=r.getString();break;case 2:t.isSystemMaintained=r.getBool();break;default:r.skip()}return t}let m=[];function _(e,t,r){let n=g(t),s=0,i=e.asUnsafe();for(;i.next();)switch(i.tag()){case 1:1===r?n=f(i,o):i.skip();continue;case 2:for(let e=i.getPackedEnd();i.pos()<e;)m[s++]=i.getUInt32();continue;case 3:s>0?(m.length=s,null!=t.geometry(r,n,m)&&(m=[])):t.geometry(r,n,[]);for(let e=i.getPackedEnd();i.pos()<e;)t.coord(i.getSInt64());continue;default:i.skip()}}function S(e,t){let r=[],n=e.asUnsafe();for(;n.next();)if(3!==n.tag())n.skip();else for(let e=n.getPackedEnd();n.pos()<e;)r.push(n.getSInt64());t.centroid(r)}let k=[],b=[],T=[];function w(e,t){let r={stack:[],error:void 0,hasError:!1};try{let s=0,i=m,a=0,o=e.asUnsafe(),l=(0,n.mS)(r,o.clonePooled().asUnsafe(),!1);for(;o.next();)switch(o.tag()){case 2:for(let u=o.getPackedEnd();o.pos()<u;)i[s++]=o.getUInt32();continue;case 3:if(!("curvedGeometry"in t))throw Error(`Tried to parse curved geometry in a ${t.constructor.name}, which doesn't support them.`);o.processMessageWithArgs(I,a++);continue;case 4:{let c=o.getUInt32(),f=o.pos()+c;if(0===a||0===s||0===c){o.move(f);continue}i.length=s,T.length=b.length=a,t.curvedGeometry(g(t),i,b,T);let{hasZ:p,hasM:d}=t.featureSet,h=[],y=[0,0];function _(){for(let e=0;e<y.length;++e)h[e]=y[e],y[e]=o.getSInt64()}p&&y.push(0),d&&y.push(0);let S=[0,0],w=[0,0],x=S,q=S,E=0;for(let F=0;F<s;++F){_(),h.fill(0),t.startCurvedPart(y);for(let O=E+i[F];E<O;++E){let U=b[E],P=T[E];switch(U){case 0:for(let V=0;V<P;++V)_(),y[0]+=h[0],y[1]+=h[1],t.lineSegment(h,y);continue;case 1:for(let D=0;D<P;++D)_(),x[0]=o.getSInt64(),x[1]=o.getSInt64(),t.circularArcSegment(h,y,x);continue;case 2:for(let v=0;v<P;++v)_(),S[0]=o.getSInt64(),S[1]=o.getSInt64(),w[0]=o.getSInt64(),w[1]=o.getSInt64(),t.bezierSegment(h,y,S,w);continue;case 3:if(l.move(k[E]),l.getUInt32()<7*P)throw Error("Not implemented: compressed full circle encoding");for(let A=0;A<P;++A){_(),q[0]=l.getDouble(),q[1]=l.getDouble();let M=l.getDouble(),G=l.getDouble(),N=l.getDouble(),R=l.getDouble(),B=l.getDouble();t.ellipticArcSegment(h,y,q,M,G,N,R,B)}continue}}t.finishCurvedPart(y)}continue}default:o.skip()}}catch(j){r.error=j,r.hasError=!0}finally{(0,n.hk)(r)}}function I(e,t){let r=e.asUnsafe(),n=0,s=0,i=0;for(;r.next();)switch(r.tag()){case 1:n=r.getEnum();continue;case 2:s=r.getUInt32();continue;case 3:i=r.pos(),r.skip();continue;default:r.skip()}if(3===n&&0===i)throw Error("An elliptic arc segment set did not include a parameters array");b[t]=n,T[t]=s,k[t]=i}function x(e,t){t.feature();let r=t.featureSet.features.at(-1),n=0,{fields:s}=t.featureSet;for(;e.next();)switch(e.tag()){case 1:if(null==s)throw Error("A Feature had attributes but the FeatureResult didn't include any fields");r.attributes[s[n++].name]=e.processMessage(d);continue;case 2:e.processMessageWithArgs(_,t,0);continue;case 4:e.processMessageWithArgs(S,t);continue;case 7:e.processMessageWithArgs(w,t);continue;case 11:r.distance=e.getDouble();continue;default:e.skip();continue}t.finishFeature?.()}function q(e){let t=[1,1,1,1],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function E(e){let t=[0,0,0,0],r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t[0]=r.getDouble();break;case 2:t[1]=r.getDouble();break;case 4:t[2]=r.getDouble();break;case 3:t[3]=r.getDouble();break;default:r.skip()}return t}function F(e){let t={originPosition:c[0]},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.originPosition=f(r,c);break;case 2:t.scale=r.processMessage(q);break;case 3:t.translate=r.processMessage(E);break;default:r.skip()}return t}function O(e){let t={},r=e.asUnsafe();for(;r.next();)switch(r.tag()){case 1:t.shapeAreaFieldName=r.getString();break;case 2:t.shapeLengthFieldName=r.getString();break;case 3:t.units=r.getString();break;default:r.skip()}return t}function U(e){let t={};for(;e.next();)switch(e.tag()){case 1:t.wkid=e.getUInt32();break;case 5:t.wkt=e.getString();break;case 2:t.latestWkid=e.getUInt32();break;case 3:t.vcsWkid=e.getUInt32();break;case 4:t.latestVcsWkid=e.getUInt32();break;default:e.skip()}return t}function P(e,t){let r=e.asUnsafe();if(t.featureSet.features.length=0,"features"===t.parseOnly?.type){let e=t.parseOnly.indices.values(),n=0,s=e.next().value;for(;r.next();)15===r.tag()&&n++===s?(s=e.next().value,r.processMessageWithArgs(x,t)):r.skip();return}let n=!1;for("metadata"===t.parseOnly?.type&&(n=!0,t.parseOnly.featureCount=0),p(t,"esriGeometryPoint");r.next();)switch(r.tag()){case 1:t.idField(r.getString());continue;case 3:t.featureSet.globalIdFieldName=r.getString();continue;case 4:t.featureSet.geohashFieldName=r.getString();continue;case 5:t.featureSet.geometryProperties=r.processMessage(O);continue;case 7:p(t,f(r,o));continue;case 8:t.featureSet.spatialReference=r.processMessageWithArgs(U);continue;case 10:t.featureSet.hasZ=r.getBool();continue;case 11:t.featureSet.hasM=r.getBool();continue;case 12:t.featureSet.transform=r.processMessage(F);continue;case 9:t.featureSet.exceededTransferLimit=r.getBool();continue;case 13:t.featureSet.fields??=[],t.featureSet.fields.push(r.processMessage(h));continue;case 15:if(n){++t.parseOnly.featureCount,r.skip();continue}r.processMessageWithArgs(x,t);continue;case 2:t.idField(r.processMessage(y));continue;default:r.skip()}}function V(e,t,r){let n=-1;for(;e.next();)switch(e.tag()){case 4:n=e.pos(),e.skip();continue;case 1:e.processMessageWithArgs(P,t);continue;default:e.skip()}if(-1!==n){if(!t.queryGeometry()){let r=e.pos();e.move(n),e.processMessageWithArgs(_,t,1),e.move(r)}r.queryGeometryType=t.queryGeometryType(),r.queryGeometry=t.queryGeometry()}t.finish(),r.featureResult=t.featureSet}function D(e,t){let r={stack:[],error:void 0,hasError:!1};try{(0,n.mS)(r,{[Symbol.dispose](){m=[],k=[],b=[],T=[]}},!1);try{let r={stack:[],error:void 0,hasError:!1};try{let s,a=(0,n.mS)(r,i.A.constructPooled(new Uint8Array(e),new DataView(e)),!1);for(;a.next();)2===a.tag()?(s={},a.processMessageWithArgs(V,t,s)):a.skip();return s}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}catch(e){throw new s.A("query:parsing-pbf","Error while parsing FeatureSet PBF payload",{error:e})}}catch(e){r.error=e,r.hasError=!0}finally{(0,n.hk)(r)}}},66208(e,t,r){r.d(t,{m:()=>s});var n=r(53655);function s(e,t){let{featureResult:r}=(0,n.SH)(e,t);return r}},80893(e,t,r){r.d(t,{IJ:()=>p,Jf:()=>y,LT:()=>S,Pk:()=>d,eW:()=>f,gW:()=>h,kS:()=>g});var n=r(56507),s=r(84952),i=r(52039),a=r(10536),o=r(66208),l=r(5076),u=r(58501);function c(e,t,r){return(0,l.i)(e,t,r)}async function f(e,t,r,n,s){let i=t.timeExtent?.isEmpty?{features:[]}:await _(e,t,"json",n,void 0,s);return i.features??=[],(0,u.q)(t,r,i),i}async function p(e,t,r,n,s){if(t.timeExtent?.isEmpty)return r.featureSet;let i=await g(e,t,n,s);return(0,o.m)(i,r)}function g(e,t,r,n){return _(e,t,"pbf",r,void 0,n)}function d(e,t,r,n){return t.timeExtent?.isEmpty?Promise.resolve({objectIds:[]}):_(e,t,"json",r,{returnIdsOnly:!0},n)}async function h(e,t,r,n){return t.timeExtent?.isEmpty?0:(await _(e,t,"json",r,{returnCountOnly:!0},n)).count}async function y(e,t,r){if(t.timeExtent?.isEmpty)return{count:0,extent:null};let n=await _(e,t,"json",r,{returnExtentOnly:!0,returnCountOnly:!0});if(n.hasOwnProperty("extent"))return n;let s="string"==typeof e?e:e.path;if(/\/imageserver\/?$/i.test(s)&&n.hasOwnProperty("count")){let s=await _(e,t,"json",r,{returnExtentOnly:!0});return{count:n.count,extent:s.extent}}if(n.features||n.hasOwnProperty("count"))throw Error("Layer does not support extent calculation.");return n}function m(e,t){if(!e.returnIdsOnly||!t.uniqueIdFields)return e;let r={...e,returnUniqueIdsOnly:!0};return delete r.returnIdsOnly,r}async function _(e,t,r,s={},i={},a={}){let o=await S(e,t,r,s,i,a),l="json"===r?"json":"array-buffer";return(0,n.A)(o.url,{responseType:l,...o.options}).then(({data:e})=>e)}async function S(e,t,r,n,o={},l={}){let u="string"==typeof e?(0,s.An)(e):e,[f]=await(0,i.el)([t.geometry],n);if(null!=f){let e=t.clone();e.geometry=f.clone(),t=e}let p=(0,a.z)({...u.query,f:r,...m(o,l),...c(t,o,l)});return n={...n,query:{...p,...n.query}},new k((0,s.fj)(u.path,function(e,t){return null!=e.formatOf3DObjects&&!(t.returnCountOnly||t.returnExtentOnly||t.returnIdsOnly)}(t,o)?"query3d":"query"),n)}class k{constructor(e,t){this.url=e,this.options=t}}},5076(e,t,r){r.d(t,{i:()=>i});var n=r(60408),s=r(21325);function i(e,t,r){let{geometry:i}=e,a=e.compactGeometryEnabled??!1,o=e.toJSON();delete o.compactGeometryEnabled,delete o.defaultSpatialReferenceEnabled;let l,u,c,f=o;if(i&&(u=i.spatialReference,c=(0,s.YX)(u),f.geometryType=(0,n.$B)(i),f.geometry=function(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;let r=e.toJSON();return delete r.spatialReference,JSON.stringify(r)}(i,a),f.inSR=c),o.groupByFieldsForStatistics&&(f.groupByFieldsForStatistics=o.groupByFieldsForStatistics.join(",")),o.objectIds)switch(r?.uniqueIdFields?.length){case void 0:f.objectIds=o.objectIds.join(",");break;case 1:f.uniqueIds=JSON.stringify(o.objectIds),delete f.objectIds;break;default:f.uniqueIds=JSON.stringify(o.objectIds.map(e=>JSON.parse(e))),delete f.objectIds}if(o.orderByFields&&(f.orderByFields=o.orderByFields.join(",")),!o.outFields||!o.returnDistinctValues&&(t?.returnCountOnly||t?.returnExtentOnly||t?.returnIdsOnly)?delete f.outFields:f.outFields=o.outFields.includes("*")?"*":o.outFields.join(","),o.outSR?(f.outSR=(0,s.YX)(o.outSR),l=e.outSpatialReference):i&&(o.returnGeometry||o.returnCentroid)&&(f.outSR=f.inSR,l=u),o.returnGeometry&&delete o.returnGeometry,o.outStatistics&&(f.outStatistics=JSON.stringify(o.outStatistics)),o.outDistance&&(f.outDistance=JSON.stringify(o.outDistance)),o.fullText&&(f.fullText=JSON.stringify(o.fullText)),o.pixelSize&&(f.pixelSize=JSON.stringify(o.pixelSize)),o.quantizationParameters&&(e.defaultSpatialReferenceEnabled&&null!=u&&null!=e.quantizationParameters?.extent&&u.equals(e.quantizationParameters.extent.spatialReference)&&delete o.quantizationParameters.extent.spatialReference,f.quantizationParameters=JSON.stringify(o.quantizationParameters)),o.parameterValues&&(f.parameterValues=JSON.stringify(o.parameterValues)),o.rangeValues&&(f.rangeValues=JSON.stringify(o.rangeValues)),o.dynamicDataSource){if("definitionExpression"in o.dynamicDataSource&&o.dynamicDataSource.definitionExpression){let{definitionExpression:e,...t}=o.dynamicDataSource;f.layer=JSON.stringify({query:e,source:t})}else f.layer=JSON.stringify({source:o.dynamicDataSource});delete o.dynamicDataSource}if(o.timeExtent){let{start:e,end:t}=o.timeExtent;(null!=e||null!=t)&&(f.time=e===t?e:`${e??"null"},${t??"null"}`),delete o.timeExtent}return e.defaultSpatialReferenceEnabled&&null!=u&&null!=l&&u.equals(l)&&(f.defaultSR=f.inSR,delete f.inSR,delete f.outSR),f}},58501(e,t,r){r.d(t,{q:()=>s});var n=r(62815);function s(e,t,r){if(!r?.features||!r.hasZ)return;let s=(0,n.N)(r.geometryType,t,e.outSpatialReference);if(s)for(let e of r.features)s(e.geometry)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8197],{4341(e,t,r){r.d(t,{I:()=>a});var i=r(26390);class a{constructor(e){this._allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,i.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){let e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,s));e++)this._items.push(this._allocator())}}const s=1024},11964(e,t,r){r.d(t,{Cr:()=>u,H6:()=>d,LV:()=>h,_I:()=>m,kb:()=>c,vt:()=>l});var i=r(34727),a=r(4341),s=r(35522),n=r(51850),o=r(32114);function l(e){return e?{origin:(0,n.o8)(e.origin),vector:(0,n.o8)(e.vector)}:{origin:(0,n.vt)(),vector:(0,n.vt)()}}function h(e,t){let r=p.get();return r.origin=e,r.vector=t,r}function u(e,t,r=l()){return(0,s.C)(r.origin,e),(0,s.Re)(r.vector,t,e),r}function c(e,t){let r=(0,s.Re)(o.rq.get(),t,e.origin),a=(0,s.Om)(e.vector,r),n=(0,s.Om)(e.vector,e.vector);if(Math.abs(n)<_)return(0,s.hG)(e.origin,t);let l=(0,i.qE)(a/n,0,1),h=(0,s.Re)(o.rq.get(),(0,s.hs)(o.rq.get(),e.vector,l),r);return(0,s.Om)(h,h)}function m(e,t,r){return d(e,t,0,1,r)}function d(e,t,r,a,n){let{vector:l,origin:h}=e,u=(0,s.Re)(o.rq.get(),t,h),c=(0,s.Om)(l,u)/(0,s.m3)(l);return(0,s.hs)(n,l,(0,i.qE)(c,r,a)),(0,s.WQ)(n,n,e.origin)}(0,n.vt)(),(0,n.vt)();const p=new a.I(()=>l()),_=1e-9},80754(e,t,r){r.d(t,{kS:()=>h,kd:()=>l});var i=r(82799),a=r(16930),s=r(60408),n=r(52006);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:a.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:a.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:a.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:a.A.WGS84})}};function l(e,t){return Math.ceil((e-t)/(2*t))}function h(e,t){if((0,n.Ed)(e))for(let r of function(e){return(0,s.Bi)(e)?e.curveRings:e.curvePaths}(e))for(let e of r){if((0,n.aO)(e)){let[r,i]=e.c;r[0]+=t,i[0]+=t;continue}if((0,n.FG)(e)){let[r,i]=e.a;r[0]+=t,i[0]+=t;continue}if((0,n.n1)(e)){let[r,i,a]=e.b;r[0]+=t,i[0]+=t,a[0]+=t;continue}e[0]+=t}for(let r of function(e){return(0,s.Bi)(e)?e.rings:e.paths}(e))for(let e of r)e[0]+=t;return e}r.d(t,["j7",0,o])},71351(e,t,r){r.d(t,{C:()=>c,Cr:()=>m,LV:()=>u,fA:()=>d,kb:()=>p,vt:()=>l});var i=r(4341),a=(r(77690),r(29242)),s=r(35522),n=r(51850),o=r(32114);function l(e){return e?h((0,n.o8)(e.origin),(0,n.o8)(e.direction)):h((0,n.vt)(),(0,n.vt)())}function h(e,t){return{origin:e,direction:t}}function u(e,t){let r=_.get();return r.origin=e,r.direction=t,r}function c(e,t=l()){return d(e.origin,e.direction,t)}function m(e,t,r=l()){return(0,s.C)(r.origin,e),(0,s.Re)(r.direction,t,e),r}function d(e,t,r=l()){return(0,s.C)(r.origin,e),(0,s.C)(r.direction,t),r}function p(e,t){let r=(0,s.$A)(o.rq.get(),(0,s.S8)(o.rq.get(),e.direction),(0,s.Re)(o.rq.get(),t,e.origin));return(0,s.Om)(r,r)}const _=new i.I(()=>l());(0,n.vt)(),(0,n.vt)(),(0,n.vt)(),(0,a.vt)()},94008(e,t,r){r.d(t,{iy:()=>d}),r(44208),r(53966);var i=r(34727),a=r(34304),s=r(58083),n=r(35522),o=r(51850),l=r(91829),h=r(34275);var u=r(71351),c=r(44280),m=r(32114);class d{constructor(e=0,t=0,r=0,i=0){this.radius=i,"number"==typeof e?this._center=(0,o.fA)(e,t,r):function(e){return t=e,(0,h.vZ)(t)&&t.length>=3||function(e){return((0,h.aI)(e)||Array.isArray(e))&&e.length>=3}(e);var t}(e)||function(e){return(t=e)instanceof Float32Array&&t.length>=4||function(e){return Array.isArray(e)&&e.length>=4}(e);var t}(e)?(this._center=(0,o.ci)(e),this.radius=4===e.length?e[3]:t):(this._center=(0,o.o8)(e.center),this.radius=e.radius)}get isValid(){return this.radius>=0}invalidate(){this.radius=-1}get center(){return this._center}set center(e){(0,n.C)(this.center,e)}exactEquals(e){return(0,n.aI)(this._center,e.center)&&this.radius===e.radius}copyFrom(e){return e!==this&&((0,n.C)(this._center,e.center),this.radius=e.radius),this}clone(){return new d(this.center,this.radius)}toVec4(){return(0,l.fA)(this.center[0],this.center[1],this.center[2],this.radius)}contains(e){return(0,n.hG)(this.center,e)<=this.radius**2}intersects(e){let t=this.radius+e.radius;return(0,n.hG)(this.center,e.center)<=t*t}intersectRay(e,t){if(null==e||!this._intersect(e,p))return!1;let{t0:r,t1:i}=p;if((r<0||i<r&&i>0)&&(r=i),r<0)return!1;if(t){let{origin:i,direction:a}=e;t[0]=i[0]+a[0]*r,t[1]=i[1]+a[1]*r,t[2]=i[2]+a[2]*r}return!0}intersectLine(e,t){let r=(0,u.Cr)(e,t);if(!this._intersect(r,p))return[];let{origin:i,direction:s}=r,{t0:l,t1:h}=p,c=e=>{let t=(0,o.vt)();return(0,n.Ln)(t,i,s,e),this.projectPoint(t,t)};return Math.abs(l-h)<(0,a.FD)()?[c(l)]:[c(l),c(h)]}_intersect(e,t){let{origin:r,direction:i}=e,a=_;a[0]=r[0]-this.center[0],a[1]=r[1]-this.center[1],a[2]=r[2]-this.center[2];let s=i[0]*i[0]+i[1]*i[1]+i[2]*i[2];if(0===s)return!1;let n=2*(i[0]*a[0]+i[1]*a[1]+i[2]*a[2]),o=n*n-4*s*(a[0]*a[0]+a[1]*a[1]+a[2]*a[2]-this.radius**2);if(o<0)return!1;let l=Math.sqrt(o);return t.t0=(-n-l)/(2*s),t.t1=(-n+l)/(2*s),!0}projectPoint(e,t){let r=(0,n.Re)(m.rq.get(),e,this.center),i=(0,n.hs)(m.rq.get(),r,this.radius/(0,n.Bw)(r));return(0,n.WQ)(t,i,this.center)}closestPointOnSilhouette(e,t){let r=m.rq.get(),i=m.Rc.get();(0,n.$A)(r,e.origin,e.direction),(0,n.$A)(t,r,e.origin),(0,n.hs)(t,t,1/(0,n.Bw)(t)*this.radius);let a=this._angleToSilhouette(e.origin),o=(0,c.g7)(e.origin,t);return(0,s.$0)(i,o+a,r),(0,n.Z0)(t,t,i),t}frustumCoverage(e,t,r){let i=this.radius,a=i*i,s=e+.5*Math.PI,n=t*t+a-2*Math.cos(s)*t*i,o=Math.sqrt(n),l=n-a;if(l<=0)return.5;let h=Math.acos(Math.sqrt(l)/o)-Math.asin(i/(o/Math.sin(s)));return Math.min(1,(h+.5*r)/r)}_angleToSilhouette(e){let t=(0,n.Re)(m.rq.get(),e,this.center),r=(0,n.Bw)(t),a=this.radius,s=a+Math.abs(a-r);return(0,i.XM)(a/s)}union(e){let t=(0,n.Io)(this._center,e.center),r=this.radius,i=e.radius;return t+i<r?this:t+r<i?(this.copyFrom(e),this):((0,n.Cc)(this._center,this._center,e.center,(t+i-r)/(2*t)),this.radius=(t+r+i)/2,this)}toJSON(){return{center:this.center,radius:this.radius}}signedDistanceToPlane(e){let{center:t,radius:r}=this,i=e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3];return i<0?Math.min(i+r,0):Math.max(i-r,0)}}new d;const p={t0:0,t1:0},_=(0,o.vt)();(0,o.vt)(),(0,o.vt)()},38969(e,t,r){r.d(t,{i:()=>a});var i=r(37955);function a(e,t){return new Promise((r,a)=>{e.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?r():(t((0,i.Oo)(e,"canplay",r)),t((0,i.Oo)(e,"error",a)))})}},31217(e,t,r){r.d(t,{D:()=>a});var i=r(56507);async function a(e,t){return(await(0,i.A)(e,{responseType:"image",...t})).data}},46859(e,t,r){r.d(t,{h:()=>L});var i=r(49186),a=r(65529),s=r(97768),n=r(17676),o=r(34275),l=r(24326),h=r(84952),u=r(38969),c=r(31217),m=r(95117),d=r(53966),p=r(2741);let _;var g=r(63907),f=r(21231),T=r(42293);const x=()=>d.A.getLogger("esri.views.3d.webgl-engine.lib.BasisUtil");let E=null,A=null;async function M(){return A??(_??=(async()=>{let e=await(await r.e(9321).then(()=>r(49321))).default({locateFile:e=>(0,p.s)(`esri/libs/basisu/${e}`)});return e.initializeBasis(),e})(),A=_,E=await A),A}function R(e,t,r,i,a){let s=(0,T.MW)(t?g.CQ.COMPRESSED_RGBA8_ETC2_EAC:g.CQ.COMPRESSED_RGB8_ETC2),n=a&&e>1?(4**e-1)/(3*4**(e-1)):1;return Math.ceil(r*i*s*n)}function w(e){return e.getNumImages()>=1&&!e.isUASTC()}function b(e){return e.getFaces()>=1&&(e.isETC1S()||e.isUASTC())}function C(e,t,r,i,a,s,n,o,l=!1){let{compressedTextureETC:h,compressedTextureS3TC:u}=e.capabilities,{basisFormat:c,internalFormat:m}=function(e,t,r,i){return e?r?{basisFormat:1,internalFormat:i?g.CQ.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:g.CQ.COMPRESSED_RGBA8_ETC2_EAC}:{basisFormat:0,internalFormat:i?g.CQ.COMPRESSED_SRGB8_ETC2:g.CQ.COMPRESSED_RGB8_ETC2}:t?r?{basisFormat:3,internalFormat:g.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT}:{basisFormat:2,internalFormat:g.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT}:{basisFormat:13,internalFormat:i?g.H0.SRGB8_ALPHA8:6408}}(null!=h,null!=u,i,l),d=t.hasMipmap?r:Math.min(1,r),p=[];for(let e=0;e<d;e++)p.push(new Uint8Array(n(e,c))),o(e,c,p[e]);return t.internalFormat=m,t.hasMipmap=p.length>1,t.samplingMode=t.hasMipmap?9987:9729,t.width=a,t.height=s,new f.A(e,t,{type:"compressed",levels:p})}function D(e,t){let r=new Uint32Array(e.buffer,e.byteOffset,16);if(1481919403!==r[0]||3140563232!==r[1]||169478669!==r[2])return x().error("Invalid magic number in KTX1 header"),null;if(67305985!==r[3]||1!==r[5]||r[7]!==g.CQ.COMPRESSED_RGB8_ETC2||6407!==r[8])return x().error("Unsupported KTX1 image"),null;let i=r[7],a=1,s=r[9],n=r[10];if(3&s||3&n)return null;let o=s,l=n;!1!==t&&(a=Math.max(1,r[14]));let h,u,c=e.byteOffset+64,m=[];for(let t=0;t<a;++t)u=(e[c]|e[c+1]<<8|e[c+2]<<16|e[c+3]<<24)>>>0,c+=4,h=new Uint8Array(e.buffer,c,u),m.push(h),c+=u,s=Math.max(1,s>>1),n=Math.max(1,n>>1);return{textureData:{type:"compressed",levels:m},internalFormat:i,width:o,height:l}}const S=()=>d.A.getLogger("esri.views.3d.webgl-engine.lib.DDSUtil");function F(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}const y=F("DXT1"),I=F("DXT3"),v=F("DXT5");function P(e,t){let r=new Int32Array(e.buffer,e.byteOffset,31);if(542327876!==r[0])return S().error("Invalid magic number in DDS header"),null;if(!(4&r[20]))return S().error("Unsupported format, must contain a FourCC code"),null;let i,a,s=r[21];switch(s){case y:i=8,a=g.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT;break;case I:i=16,a=g.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT;break;case v:i=16,a=g.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT;break;default:return S().error("Unsupported FourCC code:",function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)}(s)),null}let n=1,o=r[4],l=r[3];(3&o||3&l)&&(S().warn("Rounding up compressed texture size to nearest multiple of 4."),o=o+3&-4,l=l+3&-4);let h=o,u=l;131072&r[2]&&!1!==t&&(n=Math.max(1,r[7]));let c,m,d=e.byteOffset+r[1]+4,p=[];for(let t=0;t<n;++t)m=(o+3>>2)*(l+3>>2)*i,c=new Uint8Array(e.buffer,d,m),p.push(c),d+=m,o=Math.max(1,o>>1),l=Math.max(1,l>>1);return{textureData:{type:"compressed",levels:p},internalFormat:a,width:h,height:u}}function H(e,t){return t=16*Math.floor(t/16),Math.min(16*Math.round(e/16),t)}function U(e,t){let[r,i]=function({width:e,height:t},{maxPreferredTexturePixels:r,maxTextureSize:i}){let a=Math.max(e,t),s=e*t;if(a<=i&&s<=r)return[e,t];let n=Math.min(Math.sqrt(r/s),i/a);return[H(Math.round(e*n),i),H(Math.round(t*n),i)]}(e,t);return e.width===r&&e.height===i?e:O(e,r,i)}function O(e,t,r){if(e instanceof ImageData)return O(function(e){let t=document.createElement("canvas");t.width=e.width,t.height=e.height;let r=t.getContext("2d");if(null==r)throw new i.A("texture:context-failed","Failed to create 2d context from HTMLCanvasElement");return r.putImageData(e,0,0),t}(e),t,r);let a=document.createElement("canvas");return a.width=t,a.height=r,a.getContext("2d").drawImage(e,0,0,a.width,a.height),a}var G=r(620),B=r(67171),N=r(12541);class L{constructor(e,t){this._data=e,this.id=(0,l.c)(),this.events=new a.bk,this._parameters={...W,...t},this._startPreload(e)}dispose(){this.unload(),this._data=this.update=void 0}_startPreload(e){e instanceof HTMLVideoElement?(this.update=t=>this._update(e,t),this._startPreloadVideoElement(e)):e instanceof HTMLImageElement&&this._startPreloadImageElement(e)}_startPreloadVideoElement(e){if(!(0,h.w8)(e.src)&&("auto"!==e.preload||!e.crossOrigin)&&(e.preload="auto",e.crossOrigin="anonymous",e.src=e.src,e.paused&&e.autoplay)){let t=[];(0,u.i)(e,e=>t.push(e)).then(()=>{e.play()}).finally(()=>t.forEach(e=>e.remove()))}}_startPreloadImageElement(e){!(0,h.DB)(e.src)&&!(0,h.w8)(e.src)&&!e.crossOrigin&&(e.crossOrigin="anonymous",e.src=e.src)}_createDescriptor(e){let t=new B.R;return t.wrapMode=this._parameters.wrap??10497,t.flipped=!this._parameters.noUnpackFlip,t.samplingMode=this._parameters.mipmap?9987:9729,t.hasMipmap=!!this._parameters.mipmap,t.preMultiplyAlpha=!!this._parameters.preMultiplyAlpha,t.maxAnisotropy=this._parameters.maxAnisotropy??(this._parameters.mipmap?e.parameters.maxMaxAnisotropy:1),t.dataType=this._parameters.dataType??t.dataType,t.pixelFormat=this._parameters.pixelFormat??t.pixelFormat,t.internalFormat=this._parameters.internalFormat??t.internalFormat,t.isImmutable=!0===this._parameters.immutable&&function(e){return null!=e&&((0,N.tl)(e)||(0,N.tr)(e)||(0,N.CR)(e)||(0,N.QJ)(e))}(this._parameters.internalFormat),t}get texture(){return this._texture??this._emptyTexture}get loaded(){return null!=this._texture}get usedMemory(){return this._texture?.usedMemory||function(e,t){if(null==e)return 0;if((0,o.mw)(e)||(0,o.mg)(e))return"image/ktx2"===t.encoding?function(e,t){if(null==E)return e.byteLength;let r=new E.KTX2File(new Uint8Array(e)),i=b(r)?R(r.getLevels(),r.getHasAlpha(),r.getWidth(),r.getHeight(),t):0;return r.close(),r.delete(),i}(e,!!t.mipmap):"image/x.basis"===t.encoding?function(e,t){if(null==E)return e.byteLength;let r=new E.BasisFile(new Uint8Array(e)),i=w(r)?R(r.getNumLevels(0),r.getHasAlpha(),r.getImageWidth(0,0),r.getImageHeight(0,0),t):0;return r.close(),r.delete(),i}(e,!!t.mipmap):e.byteLength;let{width:r,height:i}=e instanceof Image||e instanceof ImageData||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement?X(e):t,a=t.pixelFormat??6408,s=(0,T.wH)(a);return(t.mipmap?4/3:1)*r*i*s||0}(this._data,this._parameters)}load(e){if(this._loadingPromise)return this._loadingPromise;if(this._texture)return this._texture;let t=this._data;return null==t?(this._texture=new f.A(e,this._createDescriptor(e),null),this._texture):(this._emptyTexture=e.emptyTexture,this._parameters.reloadable||(this._data=void 0),"string"==typeof t?this._loadFromURL(e,t):t instanceof Image?this._loadFromImageElement(e,t):t instanceof HTMLVideoElement?this._loadFromVideoElement(e,t):t instanceof ImageData||t instanceof HTMLCanvasElement?this._loadFromImage(e,t):(0,o.mg)(t)&&"image/vnd-ms.dds"===this._parameters.encoding?this._loadFromDDSData(e,t):(0,o.mw)(t)&&"image/vnd-ms.dds"===this._parameters.encoding?this._loadFromDDSData(e,new Uint8Array(t)):(0,o.mg)(t)&&"image/ktx"===this._parameters.encoding?this._loadFromKTX1(e,t):(0,o.mw)(t)&&"image/ktx"===this._parameters.encoding?this._loadFromKTX1(e,new Uint8Array(t)):((0,o.mw)(t)||(0,o.mg)(t))&&"image/ktx2"===this._parameters.encoding?this._loadFromKTX2(e,t):((0,o.mw)(t)||(0,o.mg)(t))&&"image/x.basis"===this._parameters.encoding?this._loadFromBasis(e,t):(0,o.mw)(t)?this._loadFromPixelData(e,new Uint8Array(t)):(0,o.iu)(t)?this._loadFromPixelData(e,t):null)}_update(e,t){return null==this._texture||e.readyState<HTMLMediaElement.HAVE_CURRENT_DATA||t===e.currentTime?t:(this._texture.setData(e),this._texture.descriptor.hasMipmap&&this._texture.generateMipmap(),this._parameters.updateCallback&&this._parameters.updateCallback(),e.currentTime)}_loadFromDDSData(e,t){return this._texture=function(e,t,r){let i=P(r,t.hasMipmap??!1);if(null==i)throw Error("DDS texture data is null");let{textureData:a,internalFormat:s,width:n,height:o}=i;return t.samplingMode=a.levels.length>1?9987:9729,t.hasMipmap=a.levels.length>1,t.internalFormat=s,t.width=n,t.height=o,new f.A(e,t,a)}(e,this._createDescriptor(e),t),this._emptyTexture=null,this._texture}_loadFromKTX1(e,t){return this._texture=function(e,t,r){let i=D(r,t.hasMipmap??!1);if(null==i)throw Error("KTX1 texture data is null");let{textureData:a,internalFormat:s,width:n,height:o}=i;return t.samplingMode=a.levels.length>1?9987:9729,t.hasMipmap=a.levels.length>1,t.internalFormat=s,t.width=n,t.height=o,new f.A(e,t,a)}(e,this._createDescriptor(e),t),this._emptyTexture=null,this._texture}_loadFromKTX2(e,t){return this._loadAsync(()=>async function(e,t,r,i=!1){E??=await M();let a=new E.KTX2File(new Uint8Array(r));if(!b(a))return null;let s=i&&2===a.getDFDTransferFunc();a.startTranscoding();let n=C(e,t,a.getLevels(),a.getHasAlpha(),a.getWidth(),a.getHeight(),(e,t)=>a.getImageTranscodedSizeInBytes(e,0,0,t),(e,t,r)=>a.transcodeImage(r,e,0,0,t,0,-1,-1),s);return a.close(),a.delete(),n}(e,this._createDescriptor(e),t).then(e=>(this._texture=e,e)))}_loadFromBasis(e,t){return this._loadAsync(()=>async function(e,t,r){E??=await M();let i=new E.BasisFile(new Uint8Array(r));if(!w(i))return null;i.startTranscoding();let a=C(e,t,i.getNumLevels(0),i.getHasAlpha(),i.getImageWidth(0,0),i.getImageHeight(0,0),(e,t)=>i.getImageTranscodedSizeInBytes(0,e,t),(e,t,r)=>i.transcodeImage(r,0,e,t,0,0));return i.close(),i.delete(),a}(e,this._createDescriptor(e),t).then(e=>(this._texture=e,e)))}_loadFromPixelData(e,t){(0,G.vA)(this._parameters.width>0&&this._parameters.height>0);let r=this._createDescriptor(e);return(6407===r.pixelFormat||6408===r.pixelFormat)&&(r.compress=this._parameters.compressionOptions),r.width=this._parameters.width??0,r.height=this._parameters.height??0,this._texture=new f.A(e,r,t),this._texture}_loadFromURL(e,t){return this._loadAsync(async r=>{let i=await(0,c.D)(t,{signal:r});return(0,n.Te)(r),this._loadFromImage(e,i)})}_loadFromImageElement(e,t){return t.complete?this._loadFromImage(e,t):this._loadAsync(async r=>{let i=await(0,m.y)(t,t.src,!1,r);return(0,n.Te)(r),this._loadFromImage(e,i)})}_loadFromVideoElement(e,t){return t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA?this._loadFromImage(e,t):this._loadFromVideoElementAsync(e,t)}_loadFromVideoElementAsync(e,t){return this._loadAsync(r=>new Promise((a,o)=>{let l=()=>{t.removeEventListener("loadeddata",h),t.removeEventListener("error",u),(0,s.xt)(c)},h=()=>{t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA&&(l(),a(this._loadFromImage(e,t)))},u=e=>{l(),o(e||new i.A("texture:load-error","Failed to load video"))};t.addEventListener("loadeddata",h),t.addEventListener("error",u);let c=(0,n.u7)(r,()=>u((0,n.NK)()))}))}_loadFromImage(e,t){let r=t;r instanceof HTMLVideoElement||(r=U(r,e.parameters));let i=X(r);this._parameters.width=i.width,this._parameters.height=i.height;let a=this._createDescriptor(e);return a.width=i.width,a.height=i.height,a.compress=this._parameters.compressionOptions,this._texture=new f.A(e,a,r),this._emptyTexture=null,this.events.emit("loaded"),this._texture}_loadAsync(e){let t=new AbortController;this._loadingController=t;let r=e(t.signal);this._loadingPromise=r;let i=()=>{this._loadingController===t&&(this._loadingController=null),this._loadingPromise===r&&(this._loadingPromise=null),this._emptyTexture=null};return r.then(i,i),r}unload(){if(this._texture=(0,s.WD)(this._texture),this._emptyTexture=null,null!=this._loadingController){let e=this._loadingController;this._loadingController=null,this._loadingPromise=null,e.abort()}this.events.emit("unloaded")}get parameters(){return this._parameters}}function X(e){return e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:e}const W={wrap:{s:10497,t:10497},mipmap:!0,noUnpackFlip:!1,preMultiplyAlpha:!1}},58682(e,t,r){r.d(t,{Uy:()=>l,h7:()=>m});var i=r(35522),a=r(51850),s=r(70328);class n{constructor(e=0,t=!1,r=!0){this.tolerance=e,this.isVerticalRay=t,this.normalRequired=r}}const o=(0,s.vt)();function l(e,t,r,a,s,o){if(!e.visible)return;let l=(0,i.jb)(M,a,r),{tolerance:h}=t,c=new n(h,!1,t.options.normalRequired);if(e.boundingInfo)u(e.readPrimitivePosition,e.boundingInfo,r,l,h,s,c,o);else{let t=e.readPrimitivePosition;!function(e,t,r,a,s,n,o,l){let h=t,u=R,c=Math.abs(h[0]),m=Math.abs(h[1]),d=Math.abs(h[2]),f=c>=m?c>=d?0:2:m>=d?1:2,x=f,E=h[x]<0?2:1,A=(f+E)%3,M=(f+(3-E))%3,w=h[A]/h[x],b=h[M]/h[x],C=1/h[x],D=p,S=_,F=g,{normalRequired:y}=o;for(let t=r;t<a;++t){let r=3*t;s(u[0],r),s(u[1],r+1),s(u[2],r+2),n&&(n.applyToVertex(u[0],u[0][0],u[0][1],u[0][2],t),n.applyToVertex(u[1],u[1][0],u[1][1],u[1][2],t),n.applyToVertex(u[2],u[2][0],u[2][1],u[2][2],t)),(0,i.jb)(D,u[0],e),(0,i.jb)(S,u[1],e),(0,i.jb)(F,u[2],e);let a=D[A]-w*D[x],o=D[M]-b*D[x],h=S[A]-w*S[x],c=S[M]-b*S[x],m=F[A]-w*F[x],d=F[M]-b*F[x],p=m*c-d*h,_=a*d-o*m,g=h*o-c*a;if((p<0||_<0||g<0)&&(p>0||_>0||g>0))continue;let f=p+_+g;if(0===f)continue;let E=p*(C*D[x])+_*(C*S[x])+g*(C*F[x]);if(E*Math.sign(f)<0)continue;let R=E/f;R>=0&&l(R,R,y?T(u):null,t)}}(r,l,0,e.faceCount,t,s,c,o)}}const h=(0,a.vt)();function u(e,t,r,a,n,l,c,m){if(null==t)return;let p=function(e,t){return(0,i.hZ)(t,1/e[0],1/e[1],1/e[2])}(a,h);if((0,s.C)(o,t.box),l?.applyToAabb(o),function(e,t,r,i){return function(e,t,r,i){let a=(e[0]-i-t[0])*r[0],s=(e[3]+i-t[0])*r[0],n=Math.min(a,s),o=Math.max(a,s),l=(e[1]-i-t[1])*r[1],h=(e[4]+i-t[1])*r[1];if(o=Math.min(o,Math.max(l,h)),o<0||(n=Math.max(n,Math.min(l,h)),n>o))return!1;let u=(e[2]-i-t[2])*r[2],c=(e[5]+i-t[2])*r[2];return o=Math.min(o,Math.max(u,c)),!(o<0||(n=Math.max(n,Math.min(u,c)),n>o))&&n<1/0}(e,t,r,i)}(o,r,p,n)){let{primitiveIndices:i}=t,s=i.length;if(s>1e3){let i=t.children;if(void 0!==i){for(let t of i)u(e,t,r,a,n,l,c,m);return}}d(r,a,0,s,e,i,l,c,m)}}const c=(0,a.vt)();function m(e,t,r,i,a,s,n,o,l,h=null,u=0){let m=e[0],d=e[1],p=e[2],_=t[0],g=t[1],T=t[2];for(let e=r;e<i;++e){let t=u+(h?.[e]??e),r=3*t,i=n*a[r],x=s[i],E=s[i+1],M=s[i+2],R=n*a[r+1],w=s[R],b=s[R+1],C=s[R+2],D=n*a[r+2],S=w-x,F=b-E,y=C-M,I=s[D]-x,v=s[D+1]-E,P=s[D+2]-M,H=g*P-v*T,U=T*I-P*_,O=_*v-I*g,G=S*H+F*U+y*O,B=G*G;if(B<=A)continue;let N=m-x,L=d-E,X=p-M,W=(N*H+L*U+X*O)*G;if(W<0||W>B)continue;let Q=L*y-F*X,V=X*S-y*N,k=N*F-S*L,q=(_*Q+g*V+T*k)*G;if(q<0||W+q>B)continue;let K=(I*Q+v*V+P*k)/G;K>=0&&l(K,K,o?f(S,F,y,I,v,P,c):null,t)}}function d(e,t,r,i,a,s,n,o,l){let h=e[0],u=e[1],m=e[2],d=t[0],p=t[1],_=t[2],{normalRequired:g}=o;for(let e=r;e<i;++e){let t=s[e],r=3*t,[i,o,T]=a(b,r),[x,E,M]=a(b,r+1),[R,C,D]=a(b,r+2);null!=n&&([i,o,T]=n.applyToVertex(w,i,o,T,e),[x,E,M]=n.applyToVertex(w,x,E,M,e),[R,C,D]=n.applyToVertex(w,R,C,D,e));let S=x-i,F=E-o,y=M-T,I=R-i,v=C-o,P=D-T,H=p*P-v*_,U=_*I-P*d,O=d*v-I*p,G=S*H+F*U+y*O,B=G*G;if(B<=A)continue;let N=h-i,L=u-o,X=m-T,W=(N*H+L*U+X*O)*G;if(W<0||W>B)continue;let Q=L*y-F*X,V=X*S-y*N,k=N*F-S*L,q=(d*Q+p*V+_*k)*G;if(q<0||W+q>B)continue;let K=(I*Q+v*V+P*k)/G;K>=0&&l(K,K,g?f(S,F,y,I,v,P,c):null,t)}}const p=(0,a.vt)(),_=(0,a.vt)(),g=(0,a.vt)();function f(e,t,r,a,s,n,o){return(0,i.hZ)(x,e,t,r),(0,i.hZ)(E,a,s,n),(0,i.$A)(o,x,E),(0,i.S8)(o,o),o}function T(e){return(0,i.jb)(x,e[1],e[0]),(0,i.jb)(E,e[2],e[0]),(0,i.$A)(c,x,E),(0,i.S8)(c,c),c}const x=(0,a.vt)(),E=(0,a.vt)(),A=1e-7*1e-7,M=(0,a.vt)(),R=[(0,a.vt)(),(0,a.vt)(),(0,a.vt)()],w=(0,a.vt)(),b=(0,a.vt)()},74810(e,t,r){r.d(t,{Jr:()=>s});var i=r(35522),a=r(51850);function s({normalTexture:e,metallicRoughnessTexture:t,metallicFactor:r,roughnessFactor:s,emissiveTexture:n,emissiveFactor:o,occlusionTexture:l}){return null==e&&null==t&&null==n&&(null==o||(0,i.t2)(o,a.uY))&&null==l&&(null==s||1===s)&&(null==r||1===r)}const n=(0,a.CN)(1,1,.5),o=(0,a.CN)(0,.6,.2),l=(0,a.CN)(0,1,.2);r.d(t,["Bt",0,o,"SY",0,l,"mb",0,n])},21231(e,t,r){r.d(t,{A:()=>g});var i=r(49186),a=r(44208),s=r(53966),n=r(97768),o=r(93637),l=r(17676),h=r(94656),u=r(63907),c=r(67171),m=r(12541);class d extends c.R{constructor(e,t){switch(super(),this.context=e,Object.assign(this,t),this.internalFormat){case u.H0.R16F:case u.H0.R32F:case u.H0.R8_SNORM:case u.H0.R8:this.pixelFormat=6403;break;case u.H0.R8I:case u.H0.R8UI:case u.H0.R16I:case u.H0.R16UI:case u.H0.R32I:case u.H0.R32UI:this.pixelFormat=36244}}static validate(e,t){return new d(e,t)}}const p=!!(0,a.A)("esri-tests-disable-gpu-memory-measurements"),_=()=>s.A.getLogger("esri/views/webgl/Texture");class g{static{this.TEXTURE_UNIT_FOR_UPDATES=0}static{this.compressionWorkerHandle=null}constructor(e,t=null,r=null){if(this.type=1,this._glName=null,this._samplingModeDirty=!1,this._wrapModeDirty=!1,this._shadowFilterDirty=!1,this._wasImmutablyAllocated=!1,"context"in e)this._descriptor=e,r=t;else{let r=d.validate(e,t);if(!r)throw new i.A("texture:invalid-descriptor","Texture descriptor invalid");this._descriptor=r}34067===this._descriptor.target?this._setDataCubeMap(r):this.setData(r)}get glName(){return this._glName}get descriptor(){return this._descriptor}get usedMemory(){return p?0:(0,c.e)(this._descriptor)}get isDirty(){return this._samplingModeDirty||this._wrapModeDirty||this._shadowFilterDirty}get hasWebGLTextureObject(){return!!this._glName}dispose(){this.abortCompression(),this.hasWebGLTextureObject&&this._descriptor.context?.gl&&(this._descriptor.context.instanceCounter.decrement(u.vt.Texture,this),this._descriptor.context.unbindTexture(this),this._descriptor.context.gl.deleteTexture(this._glName),this._glName=null)}release(){this.dispose()}[Symbol.dispose](){this.dispose()}resize(e,t){let r=this._descriptor;if(r.width!==e||r.height!==t){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-resize","Immutable textures can't be resized!");r.width=e,r.height=t,34067===this._descriptor.target?this._setDataCubeMap(null):this.setData(null)}}enableCompression(e){this._descriptor.compress=e}disableCompression(){this._descriptor.compress=void 0}setData(e){this.abortCompression(),!(0,m.Qp)(e)&&this._descriptor.internalFormat&&(0,o.a4)(u.CQ,this._descriptor.internalFormat)&&(this._descriptor.internalFormat=void 0),this._setData(e),!(0,m.Qp)(e)&&this._descriptor.compress&&this._compressOnWorker(e)}updateData(e,t,r,a,s,n,o=0){n||_().error("An attempt to use uninitialized data!"),this.hasWebGLTextureObject||_().error("An attempt to update uninitialized texture!");let l=this._descriptor;l.internalFormat=(0,m.mq)(l);let{context:h,pixelFormat:u,dataType:c,target:d,isImmutable:p}=l;if(p&&!this._wasImmutablyAllocated)throw new i.A("texture:uninitialized","Cannot update immutable texture before allocation!");let f=h.bindTexture(this,g.TEXTURE_UNIT_FOR_UPDATES,!0);(t<0||r<0||t+a>l.width||r+s>l.height)&&_().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();let{gl:T}=h;o&&((!a||!s)&&_().warn("Must pass width and height if `UNPACK_SKIP_ROWS` is used"),T.pixelStorei(T.UNPACK_SKIP_ROWS,o)),(0,m.Kv)(n)?T.texSubImage2D(d,e,t,r,a,s,u,c,n):(0,m.Qp)(n)?T.compressedTexSubImage2D(d,e,t,r,a,s,l.internalFormat,n.levels[e]):T.texSubImage2D(d,e,t,r,a,s,u,c,n),o&&T.pixelStorei(T.UNPACK_SKIP_ROWS,0),h.bindTexture(f,g.TEXTURE_UNIT_FOR_UPDATES)}updateData3D(e,t,r,a,s,n,o,l){l||_().error("An attempt to use uninitialized data!"),this.hasWebGLTextureObject||_().error("An attempt to update an uninitialized texture!");let h=this._descriptor;h.internalFormat=(0,m.mq)(h);let{context:u,pixelFormat:c,dataType:d,isImmutable:p,target:f}=h;if(p&&!this._wasImmutablyAllocated)throw new i.A("texture:uninitialized","Cannot update immutable texture before allocation!");(0,m.re)(f)||_().warn("Attempting to set 3D texture data on a non-3D texture");let T=u.bindTexture(this,g.TEXTURE_UNIT_FOR_UPDATES);u.setActiveTexture(g.TEXTURE_UNIT_FOR_UPDATES),(t<0||r<0||a<0||t+s>h.width||r+n>h.height||a+o>h.depth)&&_().error("An attempt to update out of bounds of the texture!"),this._configurePixelStorage();let{gl:x}=u;if((0,m.Qp)(l))l=l.levels[e],x.compressedTexSubImage3D(f,e,t,r,a,s,n,o,h.internalFormat,l);else{let i=l;x.texSubImage3D(f,e,t,r,a,s,n,o,c,d,i)}u.bindTexture(T,g.TEXTURE_UNIT_FOR_UPDATES)}generateMipmap(){let e=this._descriptor;if(0===e.width||0===e.height)return;if(!e.hasMipmap){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-change","Cannot add mipmaps to immutable texture after allocation");e.hasMipmap=!0,this._samplingModeDirty=!0,(0,m.QE)(e)}9729===e.samplingMode?(this._samplingModeDirty=!0,e.samplingMode=9985):9728===e.samplingMode&&(this._samplingModeDirty=!0,e.samplingMode=9984);let t=this._descriptor.context.bindTexture(this,g.TEXTURE_UNIT_FOR_UPDATES);this._descriptor.context.setActiveTexture(g.TEXTURE_UNIT_FOR_UPDATES),this._descriptor.context.gl.generateMipmap(e.target),this._descriptor.context.bindTexture(t,g.TEXTURE_UNIT_FOR_UPDATES)}clearMipmap(){let e=this._descriptor;if(e.hasMipmap){if(this._wasImmutablyAllocated)throw new i.A("texture:immutable-change","Cannot delete mipmaps to immutable texture after allocation");e.hasMipmap=!1,this._samplingModeDirty=!0,(0,m.QE)(e)}9985===e.samplingMode?(this._samplingModeDirty=!0,e.samplingMode=9729):9984===e.samplingMode&&(this._samplingModeDirty=!0,e.samplingMode=9728)}setSamplingMode(e){e!==this._descriptor.samplingMode&&(this._descriptor.samplingMode=e,this._samplingModeDirty=!0)}setWrapMode(e){e!==this._descriptor.wrapMode&&(this._descriptor.wrapMode=e,(0,m.QE)(this._descriptor),this._wrapModeDirty=!0)}setShadowFiltering(e){e!==this._descriptor.linearFilterDepth&&(this._descriptor.linearFilterDepth=this._descriptor.compareEnabled=e,this.setSamplingMode(e?9729:9728),(0,m.QE)(this._descriptor),this._shadowFilterDirty=!0)}applyChanges(){this._samplingModeDirty&&=(this._applySamplingMode(),!1),this._wrapModeDirty&&=(this._applyWrapMode(),!1),this._shadowFilterDirty&&=(this._applyShadowMode(),!1)}abortCompression(){this._compressionAbortController=(0,n.DC)(this._compressionAbortController)}_setData(e,t){let r=this._descriptor,a=r.context?.gl;if(!a)return;(0,h.Y2)(a),this.hasWebGLTextureObject||(this._glName=a.createTexture(),r.context.instanceCounter.increment(u.vt.Texture,this)),(0,m.QE)(r);let s=r.context.bindTexture(this,g.TEXTURE_UNIT_FOR_UPDATES);r.context.setActiveTexture(g.TEXTURE_UNIT_FOR_UPDATES),this._configurePixelStorage(),(0,h.Y2)(a);let n=t??r.target,o=(0,m.re)(n);if((0,m.Kv)(e))this._setDataFromTexImageSource(e,n);else{let{width:t,height:s,depth:l}=r;if(null==t||null==s)throw new i.A("texture:missing-size","Width and height must be specified!");if(o&&null==l)throw new i.A("texture:missing-depth","Depth must be specified!");if(r.internalFormat=(0,m.mq)(r),r.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(n,r.internalFormat,r.hasMipmap,t,s,l),(0,m.Qp)(e)){if(!(0,m.tl)(r.internalFormat))throw new i.A("texture:format-mismatch","Attempting to use compressed data with an uncompressed format!");this._setDataFromCompressedSource(e,r.internalFormat,n)}else this._texImage(n,0,r.internalFormat,t,s,l,e),(0,h.Y2)(a),r.hasMipmap&&this.generateMipmap()}this._applySamplingMode(),this._applyWrapMode(),this._applyAnisotropicFilteringParameters(),this._applyShadowMode(),(0,h.Y2)(a),r.context.bindTexture(s,g.TEXTURE_UNIT_FOR_UPDATES)}_setDataCubeMap(e=null){for(let t=34069;t<=34074;t++)this._setData(e,t)}_configurePixelStorage(){let e=this._descriptor.context.gl,{unpackAlignment:t,flipped:r,preMultiplyAlpha:i}=this._descriptor;e.pixelStorei(e.UNPACK_ALIGNMENT,t),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,+!!r),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,+!!i)}_setDataFromTexImageSource(e,t){let{gl:r}=this._descriptor.context,i=this._descriptor;i.internalFormat=(0,m.mq)(i);let a=(0,m.re)(t),{width:s,height:n,depth:o}=(0,m.Eo)(e);i.width&&i.height,i.width||=s,i.height||=n,a&&i.depth,a&&(i.depth=o),i.isImmutable&&!this._wasImmutablyAllocated&&this._texStorage(t,i.internalFormat,i.hasMipmap,s,n,o),this._texImage(t,0,i.internalFormat,s,n,o,e),(0,h.Y2)(r),i.hasMipmap&&(this.generateMipmap(),(0,h.Y2)(r))}_setDataFromCompressedSource(e,t,r){let i=this._descriptor,{width:a,height:s,depth:n}=i,o=e.levels,l=(0,m.FV)(r,a,s,n),h=Math.min(l,o.length)-1;this._descriptor.context.gl.texParameteri(i.target,33085,h),this._forEachMipmapLevel((e,i,a,s)=>{let n=o[Math.min(e,o.length-1)];this._compressedTexImage(r,e,t,i,a,s,n)},h)}_texStorage(e,t,r,a,s,n){let{gl:o}=this._descriptor.context;if(!(0,m.tr)(t)&&!(0,m.tl)(t))throw new i.A("texture:missing-format","Immutable textures must have a sized or compressed internal format");if(!this._descriptor.isImmutable)return;let l=r?(0,m.FV)(e,a,s,n):1;if((0,m.re)(e)){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");o.texStorage3D(e,l,t,a,s,n)}else o.texStorage2D(e,l,t,a,s);this._wasImmutablyAllocated=!0}_texImage(e,t,r,a,s,n,o){let l=this._descriptor.context.gl,h=(0,m.re)(e),{isImmutable:u,pixelFormat:c,dataType:d}=this._descriptor;if(u){if(null!=o){let r=o;if(h){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.texSubImage3D(e,t,0,0,0,a,s,n,c,d,r)}else l.texSubImage2D(e,t,0,0,a,s,c,d,r)}}else{let u=o;if(h){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.texImage3D(e,t,r,a,s,n,0,c,d,u)}else l.texImage2D(e,t,r,a,s,0,c,d,u)}}_compressedTexImage(e,t,r,a,s,n,o){let l=this._descriptor.context.gl,h=(0,m.re)(e);if(this._descriptor.isImmutable){if(null!=o)if(h){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.compressedTexSubImage3D(e,t,0,0,0,a,s,n,r,o)}else l.compressedTexSubImage2D(e,t,0,0,a,s,r,o)}else if(h){if(null==n)throw new i.A("texture:missing-depth","Missing depth dimension for 3D texture upload");l.compressedTexImage3D(e,t,r,a,s,n,0,o)}else l.compressedTexImage2D(e,t,r,a,s,0,o)}async _compressOnWorker(e){let{width:t,height:r,context:i,flipped:a,preMultiplyAlpha:s,hasMipmap:n,compress:o}=this._descriptor;if(!o)return;let{compressionTracker:h,compressionCallback:u,preserveSourceBitmap:c}=o,{compressedTextureETC:m,compressedTextureS3TC:d}=i.capabilities;if(!g.compressionWorkerHandle?.isCompressible(e,this._descriptor)||!m&&!d)return;this.abortCompression();let p=new AbortController;this._compressionAbortController=p,h?.increment();let f,T=!1,x=!1;try{e instanceof ImageBitmap?c?(f=await createImageBitmap(e),(0,l.Te)(p),x=!0):f=e:e instanceof Uint8Array?(f=e.buffer,T=this.descriptor.flipped):(f=await createImageBitmap(e,{imageOrientation:a?"flipY":"none"}),(0,l.Te)(p),x=!0);let i={data:f,width:t,height:r,needsFlip:T,components:6408===this._descriptor.pixelFormat?4:3,preMultiplyAlpha:s,isOpaque:this._descriptor.isOpaque,hasMipmap:n,hasETC:!!m,hasS3TC:!!d},o=await g.compressionWorkerHandle.invoke(i,p.signal,1);if((0,l.Te)(p),o.compressedTexture&&this.hasWebGLTextureObject){let e=this.usedMemory;this._descriptor.internalFormat=o.internalFormat,this._setData(o.compressedTexture),u?.(e-this.usedMemory)}}catch(e){(0,l.zf)(e)||_().error("Texture compression failed!")}finally{h?.decrement(),this._compressionAbortController?.signal.aborted&&(this._compressionAbortController=null),x&&f instanceof ImageBitmap&&f.close()}}_forEachMipmapLevel(e,t=1/0){let{width:r,height:a,depth:s,hasMipmap:n,target:o}=this._descriptor,l=32879===o;if(null==r||null==a||l&&null==s)throw new i.A("texture:missing-size","Missing texture dimensions for mipmap calculation");for(let i=0;e(i,r,a,s),n&&(1!==r||1!==a||l&&1!==s)&&!(i>=t);++i)r=Math.max(1,r>>1),a=Math.max(1,a>>1),l&&(s=Math.max(1,s>>1))}_applySamplingMode(){let e=this._descriptor,t=e.context?.gl,r=e.samplingMode,i=e.samplingMode;9985===r||9987===r?(r=9729,e.hasMipmap||(i=9729)):(9984===r||9986===r)&&(r=9728,e.hasMipmap||(i=9728)),t.texParameteri(e.target,t.TEXTURE_MAG_FILTER,r),t.texParameteri(e.target,t.TEXTURE_MIN_FILTER,i)}_applyWrapMode(){let e=this._descriptor,t=e.context?.gl;"number"==typeof e.wrapMode?(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode)):(t.texParameteri(e.target,t.TEXTURE_WRAP_S,e.wrapMode.s),t.texParameteri(e.target,t.TEXTURE_WRAP_T,e.wrapMode.t))}_applyShadowMode(){let e=this._descriptor,t=e.context?.gl,r=e.compareEnabled?t.COMPARE_REF_TO_TEXTURE:t.NONE;t.texParameteri(e.target,t.TEXTURE_COMPARE_MODE,r),e.compareEnabled&&t.texParameteri(e.target,t.TEXTURE_COMPARE_FUNC,t.GREATER),(0,h.Y2)(t)}_applyAnisotropicFilteringParameters(){let e=this._descriptor,t=e.context.capabilities.textureFilterAnisotropic;t&&e.context.gl.texParameterf(e.target,t.TEXTURE_MAX_ANISOTROPY,e.maxAnisotropy??1)}}},67171(e,t,r){r.d(t,{R:()=>s,e:()=>n});var i=r(63907),a=r(42293);class s{constructor(e=0,t=e){this.width=e,this.height=t,this.type=0,this.target=3553,this.pixelFormat=6408,this.dataType=i.ld.UNSIGNED_BYTE,this.samplingMode=9729,this.wrapMode=10497,this.maxAnisotropy=1,this.flipped=!1,this.hasMipmap=!1,this.isOpaque=!1,this.unpackAlignment=4,this.preMultiplyAlpha=!1,this.compareEnabled=!1,this.linearFilterDepth=!1,this.depth=1,this.isImmutable=!1}}function n(e){return e.width<=0||e.height<=0||e.depth<=0?0:Math.round(e.width*e.height*e.depth*(e.hasMipmap?4/3:1)*(null==e.internalFormat?4:(0,a.MW)(e.internalFormat))*(34067===e.target?6:1))}},42293(e,t,r){r.d(t,{MW:()=>l,wH:()=>o,yu:()=>n});var i=r(94656),a=r(63907);const s=new Set([a.pe.BYTE,a.pe.SHORT,a.pe.INT,a.pe.UNSIGNED_BYTE,a.pe.UNSIGNED_SHORT,a.pe.UNSIGNED_INT]);function n(e,t,r,a=0){let n=e.gl;e.bindBuffer(r);for(let o of r.layout){let r=t.get(o.name);if(null==r){console.warn(`There is no location for vertex attribute '${o.name}' defined.`);continue}let l=a*o.stride;if(o.count<=4)o.integer&&s.has(o.type)?n.vertexAttribIPointer(r,o.count,o.type,o.stride,o.offset+l):n.vertexAttribPointer(r,o.count,o.type,o.normalized,o.stride,o.offset+l),n.enableVertexAttribArray(r),o.divisor>0&&n.vertexAttribDivisor(r,o.divisor);else if(9===o.count)for(let e=0;e<3;e++)n.vertexAttribPointer(r+e,3,o.type,o.normalized,o.stride,o.offset+12*e+l),n.enableVertexAttribArray(r+e),o.divisor>0&&n.vertexAttribDivisor(r+e,o.divisor);else if(16===o.count)for(let e=0;e<4;e++)n.vertexAttribPointer(r+e,4,o.type,o.normalized,o.stride,o.offset+16*e+l),n.enableVertexAttribArray(r+e),o.divisor>0&&n.vertexAttribDivisor(r+e,o.divisor);else console.error("Unsupported vertex attribute element count: "+o.count);if((0,i.en)()){let t=(0,i.u1)(e.gl);t&&console.error(`Unable to bind vertex attribute "${o.name}" with baseInstanceOffset ${l}:`,t,o)}}}function o(e){switch(e){case 6406:case 6409:case 6403:case 36244:case 6402:case 34041:return 1;case 6410:case 33319:case 33320:return 2;case 6407:case 36248:return 3;case 6408:case 36249:return 4}return 0}function l(e){switch(e){case 6406:case 6409:case 6403:case 36244:case a.H0.R8:case a.H0.R8I:case a.H0.R8UI:case a.H0.R8_SNORM:case 36168:return 1;case 6410:case 33319:case 33320:case a.H0.RGBA4:case a.H0.R16F:case a.H0.R16I:case a.H0.R16UI:case a.H0.RG8:case a.H0.RG8I:case a.H0.RG8UI:case a.H0.RG8_SNORM:case a.H0.RGB565:case a.H0.RGB5_A1:case a.SB.DEPTH_COMPONENT16:return 2;case 6407:case 36248:case a.H0.RGB8:case a.H0.RGB8I:case a.H0.RGB8UI:case a.H0.RGB8_SNORM:case a.H0.SRGB8:case a.SB.DEPTH_COMPONENT24:return 3;case 6408:case 36249:case a.H0.RGBA8:case a.H0.R32F:case a.H0.R11F_G11F_B10F:case a.H0.RG16F:case a.H0.R32I:case a.H0.R32UI:case a.H0.RG16I:case a.H0.RG16UI:case a.H0.RGBA8I:case a.H0.RGBA8UI:case a.H0.RGBA8_SNORM:case a.H0.SRGB8_ALPHA8:case a.H0.RGB9_E5:case a.H0.RGB10_A2UI:case a.H0.RGB10_A2:case a.SB.DEPTH_COMPONENT32F:case a.iE.DEPTH24_STENCIL8:return 4;case a.iE.DEPTH32F_STENCIL8:return 5;case a.H0.RGB16F:case a.H0.RGB16I:case a.H0.RGB16UI:return 6;case a.H0.RG32F:case a.H0.RG32I:case a.H0.RG32UI:case a.H0.RGBA16F:case a.H0.RGBA16I:case a.H0.RGBA16UI:return 8;case a.H0.RGB32F:case a.H0.RGB32I:case a.H0.RGB32UI:return 12;case a.H0.RGBA32F:case a.H0.RGBA32I:case a.H0.RGBA32UI:return 16;case a.CQ.COMPRESSED_RGB_S3TC_DXT1_EXT:case a.CQ.COMPRESSED_RGBA_S3TC_DXT1_EXT:return.5;case a.CQ.COMPRESSED_RGBA_S3TC_DXT3_EXT:case a.CQ.COMPRESSED_RGBA_S3TC_DXT5_EXT:return 1;case a.CQ.COMPRESSED_R11_EAC:case a.CQ.COMPRESSED_SIGNED_R11_EAC:case a.CQ.COMPRESSED_RGB8_ETC2:case a.CQ.COMPRESSED_SRGB8_ETC2:case a.CQ.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:case a.CQ.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:return.5;case a.CQ.COMPRESSED_RG11_EAC:case a.CQ.COMPRESSED_SIGNED_RG11_EAC:case a.CQ.COMPRESSED_RGBA8_ETC2_EAC:case a.CQ.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:return 1}return 0}},94656(e,t,r){r.d(t,{Y2:()=>h,en:()=>l,u1:()=>n});var i=r(49186),a=r(44208),s=r(53966);function n(e){switch(e.getError()){case e.NO_ERROR:return null;case e.INVALID_ENUM:return"Invalid Enum. An unacceptable value has been specified for an enumerated argument.";case e.INVALID_VALUE:return"Invalid Value. A numeric argument is out of range.";case e.INVALID_OPERATION:return"Invalid Operation. The specified command is not allowed for the current state.";case e.INVALID_FRAMEBUFFER_OPERATION:return"Invalid Framebuffer operation. The currently bound framebuffer is not framebuffer complete when trying to render to or to read from it.";case e.OUT_OF_MEMORY:return"Out of memory. Not enough memory is left to execute the command.";case e.CONTEXT_LOST_WEBGL:return"WebGL context has been lost";default:return"Unknown error"}}const o=!!(0,a.A)("enable-feature:webgl-debug");function l(){return o}function h(e,t=l()){if(t){let t=n(e);if(t){let e=Error().stack;s.A.getLogger("esri.views.webgl.checkWebGLError").error(new i.A("webgl-error","WebGL error occurred",{message:t,stack:e}))}}}},12541(e,t,r){r.d(t,{CR:()=>u,Eo:()=>T,FV:()=>g,Kv:()=>p,QE:()=>l,QJ:()=>c,Qp:()=>d,mq:()=>f,re:()=>_,tl:()=>m,tr:()=>h});var i=r(49186),a=r(53966),s=r(93637),n=r(63907);const o=()=>a.A.getLogger("esri/views/webgl/textureUtils");function l(e){let{width:t,height:r,depth:i}=e;(null!=t&&t<0||null!=r&&r<0||null!=i&&i<0)&&o().error("Negative dimension parameters are not allowed!");let{internalFormat:a}=e;if(a&&(u(a)||c(a))){let{linearFilterDepth:t,compareEnabled:r,samplingMode:i,hasMipmap:a}=e;a&&o().error("Depth textures cannot have mipmaps"),t?9729!==i&&9728!==i&&o().error("Depth textures cannot sample mipmaps"):(9728!==i&&o().error("Depth textures without filtering must use NEAREST filtering"),r&&o().error("Depth textures without filtering cannot use compare function"))}}function h(e){return function(e){return n.XN.includes(e)}(e)||u(e)||c(e)}function u(e){return(0,s.a4)(n.SB,e)}function c(e){return(0,s.a4)(n.iE,e)}function m(e){return null!=e&&(0,s.a4)(n.CQ,e)}function d(e){return null!=e&&"type"in e&&"compressed"===e.type}function p(e){return null!=e&&!d(e)&&!function(e){return null!=e&&"byteLength"in e}(e)}function _(e){return 32879===e||35866===e}function g(e,t,r,i=1){let a=Math.max(t,r);return 32879===e&&(a=Math.max(a,i)),Math.floor(Math.log2(a))+1}function f(e){if(null!=e.internalFormat)return e.internalFormat;switch(e.dataType){case n.ld.FLOAT:switch(e.pixelFormat){case 6408:return n.H0.RGBA32F;case 6407:return n.H0.RGB32F;default:throw new i.A("texture:unknown-format","Unable to derive format")}case n.ld.UNSIGNED_BYTE:switch(e.pixelFormat){case 6408:return n.H0.RGBA8;case 6407:return n.H0.RGB8}}let{pixelFormat:t}=e;return e.internalFormat=34041===t?n.iE.DEPTH24_STENCIL8:6402===t?n.SB.DEPTH_COMPONENT24:t,e.internalFormat}function T(e){let t="width"in e?e.width:e.codedWidth,r="height"in e?e.height:e.codedHeight;return e instanceof HTMLVideoElement&&(t=e.videoWidth,r=e.videoHeight),{width:t,height:r,depth:1}}},49788(e,t,r){r.d(t,["Q",0,1/255.5,"v",0,.9960861056751468])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7552],{65615(e,t,r){r.d(t,{A:()=>V});var i=r(32198),o=r(69540),s=r(25482),n=r(91429),a=r(78888),l=r(20437),p=r(66552),u=r(10107),d=r(79901),c=r(64108),y=r(93223),g=r(36005),h=r(90360),m=r(93849);let C=null,v=null;function w(){return v||=(0,h.C)({types:M()}),v}let S=null;function M(){return S||={key:"type",base:null,typeMap:{"data-layer":C,"map-layer":m.A}},S}var j;const f=(0,p.O)()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let b=j=class extends s.o{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,r){return w()(e,t,r)}castLeftTableSource(e){return(0,a.aq)(M(),e)}readRightTableSource(e,t,r){return w()(e,t,r)}castRightTableSource(e){return(0,a.aq)(M(),e)}clone(){let{leftTableKey:e,rightTableKey:t,leftTableSource:r,rightTableSource:i,joinType:o}=this,s={leftTableKey:e,rightTableKey:t,leftTableSource:r?.clone()??void 0,rightTableSource:i?.clone()??void 0,joinType:o};return new j(s)}};(0,i.Cg)([(0,y.e)({joinTable:"join-table"}),(0,u.MZ)({json:{write:{isRequired:!0}}})],b.prototype,"type",void 0),(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"leftTableKey",void 0),(0,i.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],b.prototype,"rightTableKey",void 0),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"leftTableSource",void 0),(0,i.Cg)([(0,g.w)("leftTableSource")],b.prototype,"readLeftTableSource",null),(0,i.Cg)([(0,d.w)("leftTableSource")],b.prototype,"castLeftTableSource",null),(0,i.Cg)([(0,u.MZ)({json:{write:!0}})],b.prototype,"rightTableSource",void 0),(0,i.Cg)([(0,g.w)("rightTableSource")],b.prototype,"readRightTableSource",null),(0,i.Cg)([(0,d.w)("rightTableSource")],b.prototype,"castRightTableSource",null),(0,i.Cg)([(0,y.e)(f)],b.prototype,"joinType",void 0),b=j=(0,i.Cg)([(0,c.$)("esri.rest.layerSources.JoinTableDataSource")],b);const Z=b;var R,x=r(16930),T=r(50498);let F=R=class extends s.o{constructor(e){super(e),this.type="query-table"}clone(){let{workspaceId:e,query:t,oidFields:r,spatialReference:i,geometryType:o}=this,s={workspaceId:e,query:t,oidFields:r,spatialReference:i?.clone()??void 0,geometryType:o};return new R(s)}};(0,i.Cg)([(0,y.e)({queryTable:"query-table"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],F.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],F.prototype,"workspaceId",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],F.prototype,"query",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],F.prototype,"oidFields",void 0),(0,i.Cg)([(0,n.MZ)({type:x.A,json:{write:!0}})],F.prototype,"spatialReference",void 0),(0,i.Cg)([(0,y.e)(T.gy)],F.prototype,"geometryType",void 0),F=R=(0,i.Cg)([(0,n.$K)("esri.rest.layerSources.QueryTableDataSource")],F);const P=F;var A;let D=A=class extends s.o{constructor(e){super(e),this.type="raster"}clone(){let{workspaceId:e,dataSourceName:t}=this;return new A({workspaceId:e,dataSourceName:t})}};(0,i.Cg)([(0,y.e)({raster:"raster"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],D.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],D.prototype,"dataSourceName",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],D.prototype,"workspaceId",void 0),D=A=(0,i.Cg)([(0,n.$K)("esri.rest.layerSources.RasterDataSource")],D);const O=D;var k;let I=k=class extends s.o{constructor(e){super(e),this.type="table"}clone(){let{workspaceId:e,gdbVersion:t,dataSourceName:r}=this;return new k({workspaceId:e,gdbVersion:t,dataSourceName:r})}};(0,i.Cg)([(0,y.e)({table:"table"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],I.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],I.prototype,"workspaceId",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],I.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],I.prototype,"dataSourceName",void 0),I=k=(0,i.Cg)([(0,n.$K)("esri.rest.layerSources.TableDataSource")],I);const N={key:"type",base:null,typeMap:{"join-table":Z,"query-table":P,raster:O,table:I}};let U=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.type="data-layer"}toLayerSourceJSON(){return{source:this.toJSON()}}};(0,i.Cg)([(0,y.e)({dataLayer:"data-layer"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],U.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:[l.A],json:{write:!0}})],U.prototype,"fields",void 0),(0,i.Cg)([(0,n.MZ)({types:N,json:{write:!0}})],U.prototype,"dataSource",void 0),U=(0,i.Cg)([(0,n.$K)("esri.rest.layerSources.DynamicDataLayer")],U);const V=U;U.from=(0,a.dp)(U),S=null,v=null,C=U},93849(e,t,r){r.d(t,{A:()=>p});var i,o=r(32198),s=r(25482),n=r(91429),a=r(78888),l=r(93223);let p=i=class extends s.o{constructor(e){super(e),this.type="map-layer"}clone(){let{mapLayerId:e,gdbVersion:t}=this;return new i({mapLayerId:e,gdbVersion:t})}};(0,o.Cg)([(0,l.e)({mapLayer:"map-layer"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],p.prototype,"type",void 0),(0,o.Cg)([(0,n.MZ)({type:a.jz,json:{write:{isRequired:!0}}})],p.prototype,"mapLayerId",void 0),(0,o.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"gdbVersion",void 0),p=i=(0,o.Cg)([(0,n.$K)("esri.rest.layerSources.DynamicMapLayer")],p)},29308(e,t,r){var i=r(32198),o=r(69540),s=r(25482),n=r(91429),a=r(78888),l=r(93223);let p=class extends((0,o.OU)(s.o)){constructor(e){super(e),this.type="workspace-layer"}toLayerSourceJSON(){let{definitionExpression:e,...t}=this.toJSON();return{definitionExpression:e,source:t}}};(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"definitionExpression",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"layerId",void 0),(0,i.Cg)([(0,l.e)({workspaceLayer:"workspace-layer"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],p.prototype,"type",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],p.prototype,"workspaceId",void 0),p=(0,i.Cg)([(0,n.$K)("esri.rest.layerSources.DynamicWorkspaceLayer")],p);const u=p;p.from=(0,a.dp)(p),r.d(t,["A",0,u])},99614(e,t,r){var i=r(65615),o=r(29308);const s={key:"type",base:null,typeMap:{"data-layer":i.A,"workspace-layer":o.A}};r.d(t,["e",0,s])},27348(e,t,r){r.d(t,{A:()=>d});var i,o=r(32198),s=r(66552),n=r(25482),a=r(4718),l=r(91429),p=r(5443);const u=new s.J({upperLeft:"upper-left",lowerLeft:"lower-left"});let d=i=class extends n.o{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new i((0,a.o8)({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};(0,o.Cg)([(0,l.MZ)({type:p.A,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],d.prototype,"extent",void 0),(0,o.Cg)([(0,l.MZ)({type:["view","edit"],json:{write:!0}})],d.prototype,"mode",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:u.read,write:u.write}})],d.prototype,"originPosition",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],d.prototype,"tolerance",void 0),d=i=(0,o.Cg)([(0,l.$K)("esri.rest.support.QuantizationParameters")],d)},97552(e,t,r){r.d(t,{A:()=>F});var i=r(32198),o=r(66552),s=r(25482),n=r(4718),a=r(91429),l=r(78888),p=r(86738),u=r(16930),d=r(65864),c=r(50498),y=r(99614),g=r(69540);let h=class extends((0,g.OU)(s.o)){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.onFields&&this.onFields.length>0}}}}})],h.prototype,"onFields",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"operator",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"searchTerm",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],h.prototype,"searchType",void 0),h=(0,i.Cg)([(0,a.$K)("esri.rest.support.FullTextSearch")],h);const m=h;var C=r(93223);const v=new o.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),w=new o.J({ASC:"ascending",DESC:"descending"});let S=class extends((0,g.OU)(s.o)){constructor(e){super(e),this.returnDistance=null,this.referenceGeometry=null,this.order=null,this.outDistanceUnit=null}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],S.prototype,"returnDistance",void 0),(0,i.Cg)([(0,a.MZ)({types:c.yR,json:{name:"refGeometry",read:d.rS,write:!0}})],S.prototype,"referenceGeometry",void 0),(0,i.Cg)([(0,C.e)(w,{ignoreUnknown:!1})],S.prototype,"order",void 0),(0,i.Cg)([(0,C.e)(v,{ignoreUnknown:!1})],S.prototype,"outDistanceUnit",void 0),S=(0,i.Cg)([(0,a.$K)("esri.rest.support.OutDistance")],S);const M=S;var j,f=r(27348),b=r(58174),Z=r(7562),R=r(79677),x=r(43937);const T=new o.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let F=class extends s.o{static{j=this}static from(e){return(0,l.PZ)(j,e)}constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnStatisticsAggregatedIds=!1,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnExceededLimitGeometries=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.outDistance=null,this.where=null}castDatumTransformation(e){return"number"==typeof e||"object"==typeof e?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){let r={};for(let t in e){let i=e[t];r[t]=Array.isArray(i)?i.map(e=>e instanceof Date?e.getTime():e):i instanceof Date?i.getTime():i}t.parameterValues=r}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new j((0,n.o8)({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:null==this.historicMoment?null:new Date(this.historicMoment),maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnStatisticsAggregatedIds:this.returnStatisticsAggregatedIds,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnExceededLimitGeometries:this.returnExceededLimitGeometries,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,outDistance:this.outDistance,where:this.where}))}static{this.MAX_MAX_RECORD_COUNT_FACTOR=5}};(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],F.prototype,"aggregateIds",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"cacheHint",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"compactGeometryEnabled",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],F.prototype,"datumTransformation",void 0),(0,i.Cg)([(0,a.wg)("datumTransformation")],F.prototype,"castDatumTransformation",null),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"defaultSpatialReferenceEnabled",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:!!e})}}})],F.prototype,"distance",void 0),(0,i.Cg)([(0,a.MZ)({types:y.e,json:{write:!0}})],F.prototype,"dynamicDataSource",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],F.prototype,"formatOf3DObjects",void 0),(0,i.Cg)([(0,a.MZ)({type:[m],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.fullText&&this.fullText.length>0}}}}})],F.prototype,"fullText",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],F.prototype,"gdbVersion",void 0),(0,i.Cg)([(0,a.MZ)({types:c.yR,json:{read:d.rS,write:!0}})],F.prototype,"geometry",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],F.prototype,"geometryPrecision",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],F.prototype,"groupByFieldsForStatistics",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],F.prototype,"having",void 0),(0,i.Cg)([(0,a.MZ)({type:Date})],F.prototype,"historicMoment",void 0),(0,i.Cg)([(0,x.K)("historicMoment")],F.prototype,"writeHistoricMoment",null),(0,i.Cg)([(0,a.MZ)({type:Number,json:{write:!0}})],F.prototype,"maxAllowableOffset",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,cast:e=>e<1?1:e>j.MAX_MAX_RECORD_COUNT_FACTOR?j.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],F.prototype,"maxRecordCountFactor",void 0),(0,i.Cg)([(0,a.MZ)({type:["xyFootprint"],json:{write:!0}})],F.prototype,"multipatchOption",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],F.prototype,"num",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],F.prototype,"objectIds",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],F.prototype,"orderByFields",void 0),(0,i.Cg)([(0,a.MZ)({type:[String],json:{write:!0}})],F.prototype,"outFields",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{name:"outSR",write:!0}})],F.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,a.MZ)({type:[Z.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],F.prototype,"outStatistics",void 0),(0,i.Cg)([(0,a.MZ)({json:{write:!0}})],F.prototype,"parameterValues",void 0),(0,i.Cg)([(0,x.K)("parameterValues")],F.prototype,"writeParameterValues",null),(0,i.Cg)([(0,a.MZ)({type:p.A,json:{write:!0}})],F.prototype,"pixelSize",void 0),(0,i.Cg)([(0,a.MZ)({type:f.A,json:{write:!0}})],F.prototype,"quantizationParameters",void 0),(0,i.Cg)([(0,a.MZ)({type:[Object],json:{write:!0}})],F.prototype,"rangeValues",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],F.prototype,"relationParameter",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],F.prototype,"resultType",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{name:"returnAggIds",write:{overridePolicy(e){return{enabled:e&&!!this.groupByFieldsForStatistics?.length&&!!this.outStatistics?.length}}}}})],F.prototype,"returnStatisticsAggregatedIds",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"returnCentroid",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"returnDistinctValues",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!0,write:!0}})],F.prototype,"returnExceededLimitFeatures",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!0,write:!0}})],F.prototype,"returnExceededLimitGeometries",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"returnGeometry",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"returnQueryGeometry",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"returnM",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],F.prototype,"returnZ",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{write:!0}})],F.prototype,"returnTrueCurves",void 0),(0,i.Cg)([(0,a.MZ)({type:u.A,json:{write:!0}})],F.prototype,"sourceSpatialReference",void 0),(0,i.Cg)([(0,C.e)(b.x,{ignoreUnknown:!1,name:"spatialRel"})],F.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],F.prototype,"start",void 0),(0,i.Cg)([(0,x.K)("start"),(0,x.K)("num")],F.prototype,"writeStart",null),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],F.prototype,"sqlFormat",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],F.prototype,"text",void 0),(0,i.Cg)([(0,a.MZ)({type:R.A,json:{write:!0}})],F.prototype,"timeExtent",void 0),(0,i.Cg)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],F.prototype,"timeReferenceUnknownClient",void 0),(0,i.Cg)([(0,C.e)(T,{ignoreUnknown:!1}),(0,a.MZ)({json:{write:{overridePolicy(e){return{enabled:!!e&&!!this.distance}}}}})],F.prototype,"units",void 0),(0,i.Cg)([(0,a.MZ)({type:M,json:{write:!0}})],F.prototype,"outDistance",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:{overridePolicy(e){return{enabled:null!=e||null!=this.start&&this.start>0}}}}})],F.prototype,"where",void 0),(0,i.Cg)([(0,x.K)("where")],F.prototype,"writeWhere",null),F=j=(0,i.Cg)([(0,a.$K)("esri.rest.support.Query")],F)},7562(e,t,r){r.d(t,{A:()=>d});var i,o=r(32198),s=r(66552),n=r(25482),a=r(4718),l=r(91429),p=r(43937);const u=new s.J({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});let d=i=class extends n.o{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){("percentile-continuous"===this.statisticType||"percentile-discrete"===this.statisticType)&&(t.statisticParameters=(0,a.o8)(e))}clone(){return new i({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:(0,a.o8)(this.statisticParameters)})}};(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxPointCount",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxRecordCount",void 0),(0,o.Cg)([(0,l.MZ)({type:Number,json:{write:!0}})],d.prototype,"maxVertexCount",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"onStatisticField",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],d.prototype,"outStatisticFieldName",void 0),(0,o.Cg)([(0,l.MZ)({type:String,json:{read:{source:"statisticType",reader:u.read},write:{target:"statisticType",writer:u.write}}})],d.prototype,"statisticType",void 0),(0,o.Cg)([(0,l.MZ)({type:Object})],d.prototype,"statisticParameters",void 0),(0,o.Cg)([(0,p.K)("statisticParameters")],d.prototype,"writeStatisticParameters",null),d=i=(0,o.Cg)([(0,l.$K)("esri.rest.support.StatisticDefinition")],d)},58174(e,t,r){const i=new(r(66552).J)({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"});r.d(t,["x",0,i])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1588],{79608(t,n,e){e.d(n,{A:()=>f});var r=e(32198),a=e(69540),i=e(91429);let o=class extends a.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,i.MZ)()],o.prototype,"type",void 0),o=(0,r.Cg)([(0,i.$K)("esri.analysis.support.AnalysisOriginWebScene")],o);const u=o;var s=e(69622),c=e(4902),l=e(25482);let h=0,f=class extends((0,l.T)((0,a.OU)((0,c.s)(s.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${h++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){let n=this.parent;if(null!=n)switch(n.type){case"line-of-sight":case"dimension":case"viewshed":n.releaseAnalysis(this);break;case"2d":case"3d":n.analyses.includes(this)&&n.analyses.remove(this)}this._set("parent",t)}equals(t){return this.type===t.type}};(0,r.Cg)([(0,i.MZ)({type:String,constructOnly:!0,clonable:!1})],f.prototype,"id",void 0),(0,r.Cg)([(0,i.MZ)({clonable:!1,value:null})],f.prototype,"parent",null),(0,r.Cg)([(0,i.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":u}}})],f.prototype,"origin",void 0),f=(0,r.Cg)([(0,i.$K)("esri.analysis.Analysis")],f)},91715(t,n,e){e.d(n,{xH:()=>i,N1:()=>u}),e(35522);var r=e(51850),a=e(71351);function i(t,n){return o(t)===o(n)}function o(t){if(null==t)return null;let n=null==t.layer?"":t.layer.id,e=null;return e=null==t.objectId?null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid:t.objectId,null==e?null:`o-${n}-${e}`}e(44208),e(58083),e(70328),e(77548),e(6867),e(49718),(0,r.vt)();const u={json:{write:{writer:function(t,n){null!=t?.layer?.objectIdField&&null!=t.attributes&&(n.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}},clonable:"reference"};(0,a.vt)(),(0,r.vt)()},80200(t,n,e){e.d(n,{d:()=>h});const r={Base64:0,Hex:1,String:2,Raw:3};function a(t,n){let e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}function i(t,n,e,r,i,o){return a(function(t,n){return t<<n|t>>>32-n}(a(a(n,t),a(r,o)),i),e)}function o(t,n,e,r,a,o,u){return i(n&e|~n&r,t,n,a,o,u)}function u(t,n,e,r,a,o,u){return i(n&r|e&~r,t,n,a,o,u)}function s(t,n,e,r,a,o,u){return i(n^e^r,t,n,a,o,u)}function c(t,n,e,r,a,o,u){return i(e^(n|~r),t,n,a,o,u)}function l(t,n){t[n>>5]|=128<<n%32,t[14+(n+64>>>9<<4)]=n;let e=1732584193,r=-271733879,i=-1732584194,l=271733878;for(let n=0;n<t.length;n+=16){let h=e,f=r,d=i,M=l;e=o(e,r,i,l,t[n],7,-680876936),l=o(l,e,r,i,t[n+1],12,-389564586),i=o(i,l,e,r,t[n+2],17,606105819),r=o(r,i,l,e,t[n+3],22,-1044525330),e=o(e,r,i,l,t[n+4],7,-176418897),l=o(l,e,r,i,t[n+5],12,1200080426),i=o(i,l,e,r,t[n+6],17,-1473231341),r=o(r,i,l,e,t[n+7],22,-45705983),e=o(e,r,i,l,t[n+8],7,1770035416),l=o(l,e,r,i,t[n+9],12,-1958414417),i=o(i,l,e,r,t[n+10],17,-42063),r=o(r,i,l,e,t[n+11],22,-1990404162),e=o(e,r,i,l,t[n+12],7,1804603682),l=o(l,e,r,i,t[n+13],12,-40341101),i=o(i,l,e,r,t[n+14],17,-1502002290),r=o(r,i,l,e,t[n+15],22,1236535329),e=u(e,r,i,l,t[n+1],5,-165796510),l=u(l,e,r,i,t[n+6],9,-1069501632),i=u(i,l,e,r,t[n+11],14,643717713),r=u(r,i,l,e,t[n],20,-373897302),e=u(e,r,i,l,t[n+5],5,-701558691),l=u(l,e,r,i,t[n+10],9,38016083),i=u(i,l,e,r,t[n+15],14,-660478335),r=u(r,i,l,e,t[n+4],20,-405537848),e=u(e,r,i,l,t[n+9],5,568446438),l=u(l,e,r,i,t[n+14],9,-1019803690),i=u(i,l,e,r,t[n+3],14,-187363961),r=u(r,i,l,e,t[n+8],20,1163531501),e=u(e,r,i,l,t[n+13],5,-1444681467),l=u(l,e,r,i,t[n+2],9,-51403784),i=u(i,l,e,r,t[n+7],14,1735328473),r=u(r,i,l,e,t[n+12],20,-1926607734),e=s(e,r,i,l,t[n+5],4,-378558),l=s(l,e,r,i,t[n+8],11,-2022574463),i=s(i,l,e,r,t[n+11],16,1839030562),r=s(r,i,l,e,t[n+14],23,-35309556),e=s(e,r,i,l,t[n+1],4,-1530992060),l=s(l,e,r,i,t[n+4],11,1272893353),i=s(i,l,e,r,t[n+7],16,-155497632),r=s(r,i,l,e,t[n+10],23,-1094730640),e=s(e,r,i,l,t[n+13],4,681279174),l=s(l,e,r,i,t[n],11,-358537222),i=s(i,l,e,r,t[n+3],16,-722521979),r=s(r,i,l,e,t[n+6],23,76029189),e=s(e,r,i,l,t[n+9],4,-640364487),l=s(l,e,r,i,t[n+12],11,-421815835),i=s(i,l,e,r,t[n+15],16,530742520),r=s(r,i,l,e,t[n+2],23,-995338651),e=c(e,r,i,l,t[n],6,-198630844),l=c(l,e,r,i,t[n+7],10,1126891415),i=c(i,l,e,r,t[n+14],15,-1416354905),r=c(r,i,l,e,t[n+5],21,-57434055),e=c(e,r,i,l,t[n+12],6,1700485571),l=c(l,e,r,i,t[n+3],10,-1894986606),i=c(i,l,e,r,t[n+10],15,-1051523),r=c(r,i,l,e,t[n+1],21,-2054922799),e=c(e,r,i,l,t[n+8],6,1873313359),l=c(l,e,r,i,t[n+15],10,-30611744),i=c(i,l,e,r,t[n+6],15,-1560198380),r=c(r,i,l,e,t[n+13],21,1309151649),e=c(e,r,i,l,t[n+4],6,-145523070),l=c(l,e,r,i,t[n+11],10,-1120210379),i=c(i,l,e,r,t[n+2],15,718787259),r=c(r,i,l,e,t[n+9],21,-343485551),e=a(e,h),r=a(r,f),i=a(i,d),l=a(l,M)}return[e,r,i,l]}function h(t,n=r.Hex){let e=n||r.Base64,a=l(function(t){let n=[];for(let e=0,r=8*t.length;e<r;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}(t),8*t.length);switch(e){case r.Raw:return a;case r.Hex:return function(t){let n="0123456789abcdef",e=[];for(let r=0,a=4*t.length;r<a;r++)e.push(n.charAt(t[r>>2]>>r%4*8+4&15)+n.charAt(t[r>>2]>>r%4*8&15));return e.join("")}(a);case r.String:return function(t){let n=[];for(let e=0,r=32*t.length;e<r;e+=8)n.push(String.fromCharCode(t[e>>5]>>>e%32&255));return n.join("")}(a);case r.Base64:return function(t){let n=[];for(let e=0,r=4*t.length;e<r;e+=3){let r=(t[e>>2]>>e%4*8&255)<<16|(t[e+1>>2]>>(e+1)%4*8&255)<<8|t[e+2>>2]>>(e+2)%4*8&255;for(let a=0;a<4;a++)8*e+6*a>32*t.length?n.push("="):n.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-a)&63))}return n.join("")}(a)}}e.d(n,["T",0,r])},4341(t,n,e){e.d(n,{I:()=>a});var r=e(26390);class a{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){let t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},87024(t,n,e){e.d(n,{P:()=>d});var r=e(49186),a=e(80200),i=e(76553),o=e(84952),u=e(13069),s=e(96156),c=e(35666),l=e(10107),h=e(85648),f=e(97159);function d(t){let n=t?.origins??[void 0];return(e,r)=>{let a=function(t,n,e){if("resource"===t?.type)return function(t,n,e){let r=(0,s.z4)(n,e);return{type:String,read:(t,n,e)=>{let a=(0,f.r)(t,n,e);return r.type===String?a:"function"==typeof r.type?new r.type({url:a}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(n,a,u,s){if(!s?.resources)return"string"==typeof n?void(a[u]=(0,f.t)(n,s)):void(a[u]=n.write({},s));let l=function(t){return null==t?null:"string"==typeof t?t:t.url}(n),d=(0,f.t)(l,{...s,verifyItemRelativeUrls:s?.verifyItemRelativeUrls?{writtenUrls:s.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),g=r.type!==String&&(!(0,i.H)(this)||s?.origin&&this.originIdOf(e)>(0,c.aB)(s.origin)),b={object:this,propertyName:e,value:n,targetUrl:d,dest:a,targetPropertyName:u,context:s,params:t};s?.portalItem&&d&&!(0,o.oP)(d)?g&&t?.contentAddressed?M(b):g?function(t){let{context:n,targetUrl:e,params:r,value:a,dest:i,targetPropertyName:u}=t;if(!n.portalItem)return;let s=n.portalItem.resourceFromPath(e),c=p(a,e,n),l=(0,h.n)(c),f=(0,o.Zo)(s.path),d=r?.compress??!1;l===f?(n.resources&&m({...t,resource:s,content:c,compress:d,updates:n.resources.toUpdate}),i[u]=e):M(t)}(b):function({context:t,targetUrl:n,dest:e,targetPropertyName:r}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),e[r]=n)}(b):s?.portalItem&&(null==d||null!=(0,f.i)(d)||(0,o.w8)(d)||g)?M(b):a[u]=d}}}}(t,n,e);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{let{read:t,write:n}=f.b;return{read:t,write:n}}}}(t,e,r);for(let t of n){let n=(0,l.rM)(e,t,r);for(let t in a)n[t]=a[t]}}}function M(t){let{targetUrl:n,params:e,value:i,context:s,dest:c,targetPropertyName:l}=t;if(!s.portalItem)return;let d=(0,f.p)(n),M=p(i,n,s);if(e?.contentAddressed&&"json"!==M.type)return void s.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${l}" is trying to serializing a resource with content of type ${M.type} with content addressing. Content addressing is only supported for json resources.`,{content:M}));let g=e?.contentAddressed&&"json"===M.type?(0,a.d)(M.jsonString):d?.filename??(0,u.lk)(),b=e?.prefix??d?.prefix,y=(0,o.fj)(b,g),v=`${y}.${(0,h.n)(M)}`;if(e?.contentAddressed&&s.resources&&"json"===M.type){let t=s.resources.toKeep.find(({resource:t})=>t.path===v)??s.resources.toAdd.find(({resource:t})=>t.path===v);if(t)return void(c[l]=t.resource.itemRelativeUrl)}let _=s.portalItem.resourceFromPath(v);(0,o.w8)(n)&&s.resources&&s.resources.pendingOperations.push((0,o.tk)(n).then(t=>{_.path=`${y}.${(0,h.n)({type:"blob",blob:t})}`,c[l]=_.itemRelativeUrl}).catch(()=>{}));let x=e?.compress??!1;s.resources&&m({...t,resource:_,content:M,compress:x,updates:s.resources.toAdd}),c[l]=_.itemRelativeUrl}function m({object:t,propertyName:n,updates:e,resource:r,content:a,compress:i}){e.push({resource:r,content:a,compress:i,finish:e=>{!function(t,n,e){"string"==typeof t[n]?t[n]=e.url:t[n].url=e.url}(t,n,e)}})}function p(t,n,e){return"string"==typeof t?{type:"url",url:n}:{type:"json",jsonString:JSON.stringify(t.toJSON(e))}}},62885(t,n,e){e.d(n,{H:()=>i,V:()=>a});var r=e(7762);function a(t,n,e=r.A){return n||=new e,n===t||n.destroyed||(n.removeAll(),(a=t)&&(Array.isArray(a)||"items"in a&&Array.isArray(a.items))?n.addMany(t):t&&n.add(t)),n;var a}function i(t){return t}},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function a(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:()=>a,vt:()=>r});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:r,fromValues:function(t,n,e,r,a,i,o,u,s,c,l,h,f,d,M,m){return[t,n,e,r,a,i,o,u,s,c,l,h,f,d,M,m]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,i])},82534(t,n,e){function r(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>a,vt:()=>r});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,i])},48163(t,n,e){function r(){return[0,0]}function a(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function o(){return i(1,1)}function u(){return i(-1,-1)}function s(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>a,vt:()=>r});const l=o(),h=u(),f=s(),d=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:l,UNIT_X:f,UNIT_Y:d,ZEROS:[0,0],clone:a,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){let e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,negativeOnes:u,ones:o,unitX:s,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,h,"Un",0,l])},91829(t,n,e){function r(){return[0,0,0,0]}function a(t,n,e,r){return[t,n,e,r]}function i(){return a(1,1,1,1)}function o(){return a(1,0,0,0)}function u(){return a(0,1,0,0)}function s(){return a(0,0,1,0)}function c(){return a(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>a,vt:()=>r});const l=[0,0,0,0],h=i(),f=o(),d=u(),M=s(),m=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:f,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]){let e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:a,ones:i,unitW:c,unitX:o,unitY:u,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,h,"uY",0,l])},58083(t,n,e){e.d(n,{$0:()=>g,$h:()=>q,B8:()=>l,C:()=>i,D_:()=>u,N9:()=>y,O7:()=>A,Qw:()=>c,Tl:()=>f,X_:()=>I,e$:()=>M,eL:()=>m,hM:()=>b,hZ:()=>o,hs:()=>d,kN:()=>p,l:()=>w,lw:()=>h,mg:()=>s,o1:()=>j,sC:()=>x,t2:()=>P,t5:()=>S,tZ:()=>R,ut:()=>C});var r=e(51850),a=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function o(t,n,e,r,a,i,o,u,s,c,l,h,f,d,M,m,p){return t[0]=n,t[1]=e,t[2]=r,t[3]=a,t[4]=i,t[5]=o,t[6]=u,t[7]=s,t[8]=c,t[9]=l,t[10]=h,t[11]=f,t[12]=d,t[13]=M,t[14]=m,t[15]=p,t}function u(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){let e=n[1],r=n[2],a=n[3],i=n[6],o=n[7],u=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]=i,t[11]=n[14],t[12]=a,t[13]=o,t[14]=u}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)||u(t),t}function l(t,n){let e=n[0],r=n[1],a=n[2],i=n[3],o=n[4],u=n[5],s=n[6],c=n[7],l=n[8],h=n[9],f=n[10],d=n[11],M=n[12],m=n[13],p=n[14],g=n[15],b=e*u-r*o,y=e*s-a*o,v=e*c-i*o,_=r*s-a*u,x=r*c-i*u,I=a*c-i*s,w=l*m-h*M,j=l*p-f*M,A=l*g-d*M,q=h*p-f*m,S=h*g-d*m,O=f*g-d*p,P=b*O-y*S+v*q+_*A-x*j+I*w;return P?(P=1/P,t[0]=(u*O-s*S+c*q)*P,t[1]=(a*S-r*O-i*q)*P,t[2]=(m*I-p*x+g*_)*P,t[3]=(f*x-h*I-d*_)*P,t[4]=(s*A-o*O-c*j)*P,t[5]=(e*O-a*A+i*j)*P,t[6]=(p*v-M*I-g*y)*P,t[7]=(l*I-f*v+d*y)*P,t[8]=(o*S-u*A+c*w)*P,t[9]=(r*A-e*S-i*w)*P,t[10]=(M*x-m*v+g*b)*P,t[11]=(h*v-l*x-d*b)*P,t[12]=(u*j-o*q-s*w)*P,t[13]=(e*q-r*j+a*w)*P,t[14]=(m*y-M*_-p*b)*P,t[15]=(l*_-h*y+f*b)*P,t):null}function h(t,n,e){let r=n[0],a=n[1],i=n[2],o=n[3],u=n[4],s=n[5],c=n[6],l=n[7],h=n[8],f=n[9],d=n[10],M=n[11],m=n[12],p=n[13],g=n[14],b=n[15],y=e[0],v=e[1],_=e[2],x=e[3];return t[0]=y*r+v*u+_*h+x*m,t[1]=y*a+v*s+_*f+x*p,t[2]=y*i+v*c+_*d+x*g,t[3]=y*o+v*l+_*M+x*b,y=e[4],v=e[5],_=e[6],x=e[7],t[4]=y*r+v*u+_*h+x*m,t[5]=y*a+v*s+_*f+x*p,t[6]=y*i+v*c+_*d+x*g,t[7]=y*o+v*l+_*M+x*b,y=e[8],v=e[9],_=e[10],x=e[11],t[8]=y*r+v*u+_*h+x*m,t[9]=y*a+v*s+_*f+x*p,t[10]=y*i+v*c+_*d+x*g,t[11]=y*o+v*l+_*M+x*b,y=e[12],v=e[13],_=e[14],x=e[15],t[12]=y*r+v*u+_*h+x*m,t[13]=y*a+v*s+_*f+x*p,t[14]=y*i+v*c+_*d+x*g,t[15]=y*o+v*l+_*M+x*b,t}function f(t,n,e){let r=e[0],a=e[1],i=e[2];if(n===t)t[12]=n[0]*r+n[4]*a+n[8]*i+n[12],t[13]=n[1]*r+n[5]*a+n[9]*i+n[13],t[14]=n[2]*r+n[6]*a+n[10]*i+n[14],t[15]=n[3]*r+n[7]*a+n[11]*i+n[15];else{let e=n[0],o=n[1],u=n[2],s=n[3],c=n[4],l=n[5],h=n[6],f=n[7],d=n[8],M=n[9],m=n[10],p=n[11];t[0]=e,t[1]=o,t[2]=u,t[3]=s,t[4]=c,t[5]=l,t[6]=h,t[7]=f,t[8]=d,t[9]=M,t[10]=m,t[11]=p,t[12]=e*r+c*a+d*i+n[12],t[13]=o*r+l*a+M*i+n[13],t[14]=u*r+h*a+m*i+n[14],t[15]=s*r+f*a+p*i+n[15]}return t}function d(t,n,e){let r=e[0],a=e[1],i=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]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=n[7]*a,t[8]=n[8]*i,t[9]=n[9]*i,t[10]=n[10]*i,t[11]=n[11]*i,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function M(t,n,e,r){let o=r[0],u=r[1],s=r[2],c=Math.sqrt(o*o+u*u+s*s);if(c<=(0,a.FD)())return void i(t,n);c=1/c,o*=c,u*=c,s*=c;let l=Math.sin(e),h=Math.cos(e),f=1-h,d=n[0],M=n[1],m=n[2],p=n[3],g=n[4],b=n[5],y=n[6],v=n[7],_=n[8],x=n[9],I=n[10],w=n[11],j=o*o*f+h,A=u*o*f+s*l,q=s*o*f-u*l,S=o*u*f-s*l,O=u*u*f+h,P=s*u*f+o*l,C=o*s*f+u*l,R=u*s*f-o*l,T=s*s*f+h;t[0]=d*j+g*A+_*q,t[1]=M*j+b*A+x*q,t[2]=m*j+y*A+I*q,t[3]=p*j+v*A+w*q,t[4]=d*S+g*O+_*P,t[5]=M*S+b*O+x*P,t[6]=m*S+y*O+I*P,t[7]=p*S+v*O+w*P,t[8]=d*C+g*R+_*T,t[9]=M*C+b*R+x*T,t[10]=m*C+y*R+I*T,t[11]=p*C+v*R+w*T,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function m(t,n,e){let r=Math.sin(e),a=Math.cos(e),i=n[4],o=n[5],u=n[6],s=n[7],c=n[8],l=n[9],h=n[10],f=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=i*a+c*r,t[5]=o*a+l*r,t[6]=u*a+h*r,t[7]=s*a+f*r,t[8]=c*a-i*r,t[9]=l*a-o*r,t[10]=h*a-u*r,t[11]=f*a-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 g(t,n,e){if(0===n)return u(t);let r=e[0],i=e[1],o=e[2],s=Math.sqrt(r*r+i*i+o*o);if(s<=(0,a.FD)())return null;s=1/s,r*=s,i*=s,o*=s;let c=Math.sin(n),l=Math.cos(n),h=1-l;return t[0]=r*r*h+l,t[1]=i*r*h+o*c,t[2]=o*r*h-i*c,t[3]=0,t[4]=r*i*h-o*c,t[5]=i*i*h+l,t[6]=o*i*h+r*c,t[7]=0,t[8]=r*o*h+i*c,t[9]=i*o*h-r*c,t[10]=o*o*h+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,n){let 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 y(t,n){let e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function v(t,n,e){let r=n[0],a=n[1],i=n[2],o=n[3],u=r+r,s=a+a,c=i+i,l=r*u,h=r*s,f=r*c,d=a*s,M=a*c,m=i*c,p=o*u,g=o*s,b=o*c;return t[0]=1-(d+m),t[1]=h+b,t[2]=f-g,t[3]=0,t[4]=h-b,t[5]=1-(l+m),t[6]=M+p,t[7]=0,t[8]=f+g,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 _=(0,r.vt)();function x(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function I(t,n){let e=n[0],r=n[1],a=n[2],i=n[4],o=n[5],u=n[6],s=n[8],c=n[9],l=n[10];return t[0]=Math.sqrt(e*e+r*r+a*a),t[1]=Math.sqrt(i*i+o*o+u*u),t[2]=Math.sqrt(s*s+c*c+l*l),t}function w(t,n){let e=n[0]+n[5]+n[10],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 j(t,n,e,r){let a=n[0],i=n[1],o=n[2],u=n[3],s=a+a,c=i+i,l=o+o,h=a*s,f=a*c,d=a*l,M=i*c,m=i*l,p=o*l,g=u*s,b=u*c,y=u*l,v=r[0],_=r[1],x=r[2];return t[0]=(1-(M+p))*v,t[1]=(f+y)*v,t[2]=(d-b)*v,t[3]=0,t[4]=(f-y)*_,t[5]=(1-(h+p))*_,t[6]=(m+g)*_,t[7]=0,t[8]=(d+b)*x,t[9]=(m-g)*x,t[10]=(1-(h+M))*x,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function A(t,n,e,r,a){let i=n[0],o=n[1],u=n[2],s=n[3],c=i+i,l=o+o,h=u+u,f=i*c,d=i*l,M=i*h,m=o*l,p=o*h,g=u*h,b=s*c,y=s*l,v=s*h,_=r[0],x=r[1],I=r[2],w=a[0],j=a[1],A=a[2],q=(1-(m+g))*_,S=(d+v)*_,O=(M-y)*_,P=(d-v)*x,C=(1-(f+g))*x,R=(p+b)*x,T=(M+y)*I,D=(p-b)*I,U=(1-(f+m))*I;return t[0]=q,t[1]=S,t[2]=O,t[3]=0,t[4]=P,t[5]=C,t[6]=R,t[7]=0,t[8]=T,t[9]=D,t[10]=U,t[11]=0,t[12]=e[0]+w-(q*w+P*j+T*A),t[13]=e[1]+j-(S*w+C*j+D*A),t[14]=e[2]+A-(O*w+R*j+U*A),t[15]=1,t}function q(t,n,e,r,a,i,o){let u=1/(e-n),s=1/(a-r),c=1/(i-o);return t[0]=2*i*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*s,t[6]=0,t[7]=0,t[8]=(e+n)*u,t[9]=(a+r)*s,t[10]=(o+i)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*c,t[15]=0,t}function S(t,n,e,r){let i=n[0],o=n[1],s=n[2],c=i-e[0],l=o-e[1],h=s-e[2],f=(0,a.FD)();if(Math.abs(c)<f&&Math.abs(l)<f&&Math.abs(h)<f)return void u(t);let d=1/Math.sqrt(c*c+l*l+h*h);c*=d,l*=d,h*=d;let M=r[0],m=r[1],p=r[2],g=m*h-p*l,b=p*c-M*h,y=M*l-m*c;d=Math.sqrt(g*g+b*b+y*y),d?(d=1/d,g*=d,b*=d,y*=d):(g=0,b=0,y=0);let v=l*y-h*b,_=h*g-c*y,x=c*b-l*g;d=Math.sqrt(v*v+_*_+x*x),d?(d=1/d,v*=d,_*=d,x*=d):(v=0,_=0,x=0),t[0]=g,t[1]=v,t[2]=c,t[3]=0,t[4]=b,t[5]=_,t[6]=l,t[7]=0,t[8]=y,t[9]=x,t[10]=h,t[11]=0,t[12]=-(g*i+b*o+y*s),t[13]=-(v*i+_*o+x*s),t[14]=-(c*i+l*o+h*s),t[15]=1}function O(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[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 P(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 C(t){let n=(0,a.FD)(),e=t[0],r=t[1],i=t[2],o=t[4],u=t[5],s=t[6],c=t[8],l=t[9],h=t[10];return Math.abs(1-(e*e+o*o+c*c))<=n&&Math.abs(1-(r*r+u*u+l*l))<=n&&Math.abs(1-(i*i+s*s+h*h))<=n}function R(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 T=h,D=O;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){let e=n[0],r=n[1],a=n[2],i=n[3],o=n[4],u=n[5],s=n[6],c=n[7],l=n[8],h=n[9],f=n[10],d=n[11],M=n[12],m=n[13],p=n[14],g=n[15];return t[0]=u*(f*g-d*p)-h*(s*g-c*p)+m*(s*d-c*f),t[1]=-(r*(f*g-d*p)-h*(a*g-i*p)+m*(a*d-i*f)),t[2]=r*(s*g-c*p)-u*(a*g-i*p)+m*(a*c-i*s),t[3]=-(r*(s*d-c*f)-u*(a*d-i*f)+h*(a*c-i*s)),t[4]=-(o*(f*g-d*p)-l*(s*g-c*p)+M*(s*d-c*f)),t[5]=e*(f*g-d*p)-l*(a*g-i*p)+M*(a*d-i*f),t[6]=-(e*(s*g-c*p)-o*(a*g-i*p)+M*(a*c-i*s)),t[7]=e*(s*d-c*f)-o*(a*d-i*f)+l*(a*c-i*s),t[8]=o*(h*g-d*m)-l*(u*g-c*m)+M*(u*d-c*h),t[9]=-(e*(h*g-d*m)-l*(r*g-i*m)+M*(r*d-i*h)),t[10]=e*(u*g-c*m)-o*(r*g-i*m)+M*(r*c-i*u),t[11]=-(e*(u*d-c*h)-o*(r*d-i*h)+l*(r*c-i*u)),t[12]=-(o*(h*p-f*m)-l*(u*p-s*m)+M*(u*f-s*h)),t[13]=e*(h*p-f*m)-l*(r*p-a*m)+M*(r*f-a*h),t[14]=-(e*(u*p-s*m)-o*(r*p-a*m)+M*(r*s-a*u)),t[15]=e*(u*f-s*h)-o*(r*f-a*h)+l*(r*s-a*u),t},copy:i,determinant:function(t){let n=t[0],e=t[1],r=t[2],a=t[3],i=t[4],o=t[5],u=t[6],s=t[7],c=t[8],l=t[9],h=t[10],f=t[11],d=t[12],M=t[13],m=t[14],p=t[15];return(n*o-e*i)*(h*p-f*m)-(n*u-r*i)*(l*p-f*M)+(n*s-a*i)*(l*m-h*M)+(e*u-r*o)*(c*p-f*d)-(e*s-a*o)*(c*m-h*d)+(r*s-a*u)*(c*M-l*d)},equals:function(t,n){if(t===n)return!0;let e=t[0],r=t[1],i=t[2],o=t[3],u=t[4],s=t[5],c=t[6],l=t[7],h=t[8],f=t[9],d=t[10],M=t[11],m=t[12],p=t[13],g=t[14],b=t[15],y=n[0],v=n[1],_=n[2],x=n[3],I=n[4],w=n[5],j=n[6],A=n[7],q=n[8],S=n[9],O=n[10],P=n[11],C=n[12],R=n[13],T=n[14],D=n[15],U=(0,a.FD)();return Math.abs(e-y)<=U*Math.max(1,Math.abs(e),Math.abs(y))&&Math.abs(r-v)<=U*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(i-_)<=U*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(o-x)<=U*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(u-I)<=U*Math.max(1,Math.abs(u),Math.abs(I))&&Math.abs(s-w)<=U*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(c-j)<=U*Math.max(1,Math.abs(c),Math.abs(j))&&Math.abs(l-A)<=U*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(h-q)<=U*Math.max(1,Math.abs(h),Math.abs(q))&&Math.abs(f-S)<=U*Math.max(1,Math.abs(f),Math.abs(S))&&Math.abs(d-O)<=U*Math.max(1,Math.abs(d),Math.abs(O))&&Math.abs(M-P)<=U*Math.max(1,Math.abs(M),Math.abs(P))&&Math.abs(m-C)<=U*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(p-R)<=U*Math.max(1,Math.abs(p),Math.abs(R))&&Math.abs(g-T)<=U*Math.max(1,Math.abs(g),Math.abs(T))&&Math.abs(b-D)<=U*Math.max(1,Math.abs(b),Math.abs(D))},exactEquals:P,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){let e=n[0],r=n[1],a=n[2],i=n[3],o=e+e,u=r+r,s=a+a,c=e*o,l=r*o,h=r*u,f=a*o,d=a*u,M=a*s,m=i*o,p=i*u,g=i*s;return t[0]=1-h-M,t[1]=l+g,t[2]=f-p,t[3]=0,t[4]=l-g,t[5]=1-c-M,t[6]=d+m,t[7]=0,t[8]=f+p,t[9]=d-m,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){let e=_,r=-n[0],a=-n[1],i=-n[2],o=n[3],u=n[4],s=n[5],c=n[6],l=n[7],h=r*r+a*a+i*i+o*o;return h>0?(e[0]=2*(u*o+l*r+s*i-c*a)/h,e[1]=2*(s*o+l*a+c*r-u*i)/h,e[2]=2*(c*o+l*i+u*a-s*r)/h):(e[0]=2*(u*o+l*r+s*i-c*a),e[1]=2*(s*o+l*a+c*r-u*i),e[2]=2*(c*o+l*i+u*a-s*r)),v(t,n,e),t},fromRotation:g,fromRotationTranslation:v,fromRotationTranslationScale:j,fromRotationTranslationScaleOrigin:A,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:b,fromYRotation:function(t,n){let 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:y,frustum:q,getRotation:w,getScale:I,getTranslation:x,hasIdentityRotation:R,identity:u,invert:l,invertOrIdentity:c,isOrthoNormal:C,lookAt:S,mul:T,multiply:h,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,a,i,o){let u=1/(n-e),s=1/(r-a),c=1/(i-o);return t[0]=-2*u,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)*u,t[13]=(a+r)*s,t[14]=(o+i)*c,t[15]=1,t},perspective:function(t,n,e,r,a){let i,o=1/Math.tan(n/2);return t[0]=o/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,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!=a&&a!==1/0?(i=1/(r-a),t[10]=(a+r)*i,t[14]=2*a*r*i):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){let a=Math.tan(n.upDegrees*Math.PI/180),i=Math.tan(n.downDegrees*Math.PI/180),o=Math.tan(n.leftDegrees*Math.PI/180),u=Math.tan(n.rightDegrees*Math.PI/180),s=2/(o+u),c=2/(a+i);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]=-(o-u)*s*.5,t[9]=(a-i)*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:m,rotateY:function(t,n,e){let r=Math.sin(e),a=Math.cos(e),i=n[0],o=n[1],u=n[2],s=n[3],c=n[8],l=n[9],h=n[10],f=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*a-c*r,t[1]=o*a-l*r,t[2]=u*a-h*r,t[3]=s*a-f*r,t[8]=i*r+c*a,t[9]=o*r+l*a,t[10]=u*r+h*a,t[11]=s*r+f*a,t},rotateZ:function(t,n,e){let r=Math.sin(e),a=Math.cos(e),i=n[0],o=n[1],u=n[2],s=n[3],c=n[4],l=n[5],h=n[6],f=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*a+c*r,t[1]=o*a+l*r,t[2]=u*a+h*r,t[3]=s*a+f*r,t[4]=c*a-i*r,t[5]=l*a-o*r,t[6]=h*a-u*r,t[7]=f*a-s*r,t},scale:d,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:D,subtract:O,targetTo:function(t,n,e,r){let a=n[0],i=n[1],o=n[2],u=r[0],s=r[1],c=r[2],l=a-e[0],h=i-e[1],f=o-e[2],d=l*l+h*h+f*f;d>0&&(d=1/Math.sqrt(d),l*=d,h*=d,f*=d);let M=s*f-c*h,m=c*l-u*f,p=u*h-s*l;return d=M*M+m*m+p*p,d>0&&(d=1/Math.sqrt(d),M*=d,m*=d,p*=d),t[0]=M,t[1]=m,t[2]=p,t[3]=0,t[4]=h*p-f*m,t[5]=f*M-l*p,t[6]=l*m-h*M,t[7]=0,t[8]=l,t[9]=h,t[10]=f,t[11]=0,t[12]=a,t[13]=i,t[14]=o,t[15]=1,t},translate:f,transpose:s},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>j,Bw:()=>i,C:()=>o,Cc:()=>A,DI:()=>x,Io:()=>b,Ln:()=>g,Om:()=>w,Qr:()=>h,Re:()=>c,S8:()=>I,T9:()=>m,WQ:()=>s,Z0:()=>q,_S:()=>d,aI:()=>D,ei:()=>S,fw:()=>P,gL:()=>O,hG:()=>y,hZ:()=>u,hs:()=>p,jk:()=>M,lw:()=>l,m3:()=>v,oW:()=>U,t2:()=>T,tn:()=>f,ze:()=>_});var r=e(51850),a=e(34304);function i(t){let n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function u(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 h(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(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 m(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function g(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function b(t,n){let e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return Math.sqrt(e*e+r*r+a*a)}function y(t,n){let e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function v(t){let n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function _(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function x(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function I(t,n=t){let e=n[0],r=n[1],a=n[2],i=e*e+r*r+a*a;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function w(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function j(t,n,e){let r=n[0],a=n[1],i=n[2],o=e[0],u=e[1],s=e[2];return t[0]=a*s-i*u,t[1]=i*o-r*s,t[2]=r*u-a*o,t}function A(t,n,e,r){let a=n[0],i=n[1],o=n[2];return t[0]=a+r*(e[0]-a),t[1]=i+r*(e[1]-i),t[2]=o+r*(e[2]-o),t}function q(t,n,e){let r=n[0],a=n[1],i=n[2];return t[0]=e[0]*r+e[4]*a+e[8]*i+e[12],t[1]=e[1]*r+e[5]*a+e[9]*i+e[13],t[2]=e[2]*r+e[6]*a+e[10]*i+e[14],t}function S(t,n,e){let r=n[0],a=n[1],i=n[2];return t[0]=r*e[0]+a*e[3]+i*e[6],t[1]=r*e[1]+a*e[4]+i*e[7],t[2]=r*e[2]+a*e[5]+i*e[8],t}function O(t,n,e){return P(t,n,e[0],e[1],e[2],e[3])}function P(t,n,e,r,a,i){let o=n[0],u=n[1],s=n[2],c=r*s-a*u,l=a*o-e*s,h=e*u-r*o,f=r*h-a*l,d=a*c-e*h,M=e*l-r*c,m=2*i;return t[0]=o+c*m+2*f,t[1]=u+l*m+2*d,t[2]=s+h*m+2*M,t}const C=(0,r.vt)(),R=(0,r.vt)();function T(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function D(t,n){if(t===n)return!0;let e=t[0],r=t[1],i=t[2],o=n[0],u=n[1],s=n[2],c=(0,a.FD)();return Math.abs(e-o)<=c*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-s)<=c*Math.max(1,Math.abs(i),Math.abs(s))}function U(t,n,e){let r=e[0]-n[0],a=e[1]-n[1],i=e[2]-n[2],o=r*r+a*a+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=a*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const N=c,z=l,F=h,$=b,Z=y,V=i,E=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:s,angle:function(t,n){I(C,t),I(R,n);let e=w(C,R);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,a,i){let o=1-i,u=o*o,s=i*i,c=u*o,l=3*i*u,h=3*s*o,f=s*i;return t[0]=n[0]*c+e[0]*l+r[0]*h+a[0]*f,t[1]=n[1]*c+e[1]*l+r[1]*h+a[1]*f,t[2]=n[2]*c+e[2]*l+r[2]*h+a[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:o,cross:j,crossAndNormalize:function(t,n,e){let r=n[0],a=n[1],i=n[2],o=e[0],u=e[1],s=e[2],c=a*s-i*u,l=i*o-r*s,h=r*u-a*o,f=Math.sqrt(c*c+l*l+h*h);return t[0]=c/f,t[1]=l/f,t[2]=h/f,t},direction:U,dist:$,distance:b,div:F,divide:h,dot:w,equals:D,exactEquals:T,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,a,i){let o=i*i,u=o*(2*i-3)+1,s=o*(i-2)+i,c=o*(i-1),l=o*(3-2*i);return t[0]=n[0]*u+e[0]*s+r[0]*c+a[0]*l,t[1]=n[1]*u+e[1]*s+r[1]*c+a[1]*l,t[2]=n[2]*u+e[2]*s+r[2]*c+a[2]*l,t},inverse:x,len:V,length:i,lerp:A,max:m,min:M,mul:z,multiply:l,negate:_,normalize:I,random:function(t,n=1){let e=a.Ov,r=2*e()*Math.PI,i=2*e()-1,o=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*n,t},rotateX:function(t,n,e,r){let a=[],i=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],i[0]=a[0],i[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),i[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){let a=[],i=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],i[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),i[1]=a[1],i[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){let a=[],i=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],i[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),i[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),i[2]=a[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[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:g,scaleTo:function(t,n){return p(t,t,n/V(t))},set:u,sign:d,sqrDist:Z,sqrLen:E,squaredDistance:y,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:N,subtract:c,transformMat3:S,transformMat4:q,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:O,transformQuatValues:P},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,V,"jb",0,N,"lo",0,Z,"uE",0,E])},78955(t,n,e){e.d(n,{Bw:()=>p,C:()=>a,Cc:()=>v,LI:()=>f,Om:()=>y,S8:()=>b,T9:()=>h,WQ:()=>o,Z0:()=>_,aI:()=>I,hG:()=>m,hZ:()=>i,hs:()=>d,jk:()=>l,m3:()=>g,t2:()=>x});var r=e(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function i(t,n,e,r,a){return t[0]=n,t[1]=e,t[2]=r,t[3]=a,t}function o(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function 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 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 h(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function f(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function 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){let e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],i=n[3]-t[3];return Math.sqrt(e*e+r*r+a*a+i*i)}function m(t,n){let e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],i=n[3]-t[3];return e*e+r*r+a*a+i*i}function p(t){let n=t[0],e=t[1],r=t[2],a=t[3];return Math.sqrt(n*n+e*e+r*r+a*a)}function g(t){let n=t[0],e=t[1],r=t[2],a=t[3];return n*n+e*e+r*r+a*a}function b(t,n){let e=n[0],r=n[1],a=n[2],i=n[3],o=e*e+r*r+a*a+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e*o,t[1]=r*o,t[2]=a*o,t[3]=i*o),t}function y(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function v(t,n,e,r){let a=n[0],i=n[1],o=n[2],u=n[3];return t[0]=a+r*(e[0]-a),t[1]=i+r*(e[1]-i),t[2]=o+r*(e[2]-o),t[3]=u+r*(e[3]-u),t}function _(t,n,e){let r=n[0],a=n[1],i=n[2],o=n[3];return t[0]=e[0]*r+e[4]*a+e[8]*i+e[12]*o,t[1]=e[1]*r+e[5]*a+e[9]*i+e[13]*o,t[2]=e[2]*r+e[6]*a+e[10]*i+e[14]*o,t[3]=e[3]*r+e[7]*a+e[11]*i+e[15]*o,t}function x(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function I(t,n){let e=t[0],a=t[1],i=t[2],o=t[3],u=n[0],s=n[1],c=n[2],l=n[3],h=(0,r.FD)();return Math.abs(e-u)<=h*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(a-s)<=h*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(i-c)<=h*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-l)<=h*Math.max(1,Math.abs(o),Math.abs(l))}const w=u,j=s,A=c,q=M,S=m,O=p,P=g;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:a,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:q,distance:M,div:A,divide:c,dot:y,equals:I,exactEquals:x,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:O,length:p,lerp:v,max:h,min:l,mul:j,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:b,random:function(t,n=1){let e,a,i,o,u,s,c=r.Ov;do{e=2*c()-1,a=2*c()-1,u=e*e+a*a}while(u>=1);do{i=2*c()-1,o=2*c()-1,s=i*i+o*o}while(s>=1);let l=Math.sqrt((1-u)/s);return t[0]=n*e,t[1]=n*a,t[2]=n*i*l,t[3]=n*o*l,t},round:f,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:i,sqrDist:S,sqrLen:P,squaredDistance:m,squaredLength:g,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:w,subtract:u,transformMat4:_,transformQuat:function(t,n,e){let r=n[0],a=n[1],i=n[2],o=e[0],u=e[1],s=e[2],c=e[3],l=c*r+u*i-s*a,h=c*a+s*r-o*i,f=c*i+o*a-u*r,d=-o*r-u*a-s*i;return t[0]=l*c+d*-o+h*-s-f*-u,t[1]=h*c+d*-u+f*-o-l*-s,t[2]=f*c+d*-s+l*-u-h*-o,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},56512(t,n,e){function r(t){let n,e,r=[],a=!1;return function(...i){return a&&n===this&&function(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(t[e]!==n[e])return!1;return!0}(i,r)||(e=t.apply(this,i),n=this,r=i,a=!0),e}}e.d(n,{B:()=>r})},76553(t,n,e){function r(t){return t&&"getAtOrigin"in t&&"originOf"in t}e.d(n,{H:()=>r})},13069(t,n,e){e.d(n,{AG:()=>u,lk:()=>a,vD:()=>o,yS:()=>i});const r="randomUUID"in crypto;function a(){if(r)return crypto.randomUUID();let t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;let n=n=>t[n].toString(16).padStart(4,"0");return n(0)+n(1)+"-"+n(2)+"-"+n(3)+"-"+n(4)+"-"+n(5)+n(6)+n(7)}function i(){return`{${a().toUpperCase()}}`}function o(){return`{${a()}}`}function u(t){let n=t.toUpperCase();return t.startsWith("{")?n:`{${n}}`}},4197(t,n,e){e.d(n,{Vj:()=>l,cj:()=>c,jh:()=>i,l5:()=>u,yH:()=>s});var r=e(34275),a=e(9093);function i(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function u(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function s(t,n){if(0===n.length)return o(t);if(0===t.length)return o(n);let e=i(t.length+n.length);for(let n=0;n<t.length;++n)e[n]=t[n];for(let r=0;r<n.length;++r)e[t.length+r]=n[r];return e}function c(t){return[...t]}function l(t){let n=(0,a.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},70328(t,n,e){e.d(n,{BI:()=>q,C:()=>o,DC:()=>f,Ej:()=>y,Ie:()=>j,Jt:()=>A,Lu:()=>_,Ne:()=>x,RF:()=>h,TF:()=>g,VL:()=>M,aI:()=>O,fA:()=>u,gE:()=>c,gX:()=>b,hZ:()=>w,iT:()=>d,is:()=>S,pg:()=>v,uJ:()=>p,vI:()=>I,vY:()=>s,vt:()=>i,w1:()=>l,yr:()=>m}),e(35522);var r=e(5443),a=(e(19419),e(4197));function i(t=C){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,n){for(let e=0;e<6;e++)t[e]=n[e];return t}function u(t,n,e,r,a,o,u=i()){return u[0]=t,u[1]=n,u[2]=e,u[3]=r,u[4]=a,u[5]=o,u}function s(t,n=i()){return function(t,n,e,r=i()){return w(r,P),function(t,n,e=0,r=n.length/3){let a=t[0],i=t[1],o=t[2],u=t[3],s=t[4],c=t[5];for(let t=0;t<r;t++)a=Math.min(a,n[e+3*t]),i=Math.min(i,n[e+3*t+1]),o=Math.min(o,n[e+3*t+2]),u=Math.max(u,n[e+3*t]),s=Math.max(s,n[e+3*t+1]),c=Math.max(c,n[e+3*t+2]);t[0]=a,t[1]=i,t[2]=o,t[3]=u,t[4]=s,t[5]=c}(r,t,n,e),r}(t,0,t.length/3,n)}function c(t,n=(0,a.jh)(24)){let[e,r,i,o,u,s]=t;return n[0]=e,n[1]=r,n[2]=i,n[3]=e,n[4]=r,n[5]=s,n[6]=e,n[7]=u,n[8]=i,n[9]=e,n[10]=u,n[11]=s,n[12]=o,n[13]=r,n[14]=i,n[15]=o,n[16]=r,n[17]=s,n[18]=o,n[19]=u,n[20]=i,n[21]=o,n[22]=u,n[23]=s,n}function l(t,n){return isFinite(t[2])||isFinite(t[5])?new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}):new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function h(t,n,e=t){e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e[4]=Math.max(t[4],n[4]),e[5]=Math.max(t[5],n[5])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function d(t,[n,e,r]){!function(t,n,e,r){t[0]=Math.min(t[0],n),t[1]=Math.min(t[1],e),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],n),t[4]=Math.max(t[4],e),t[5]=Math.max(t[5],r)}(t,n,e,r)}function M(t){return t[0]>=t[3]?0:t[3]-t[0]}function m(t){return t[1]>=t[4]?0:t[4]-t[1]}function p(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){let n=M(t),e=p(t),r=m(t);return n*n+e*e+r*r}function b(t,n=[0,0,0]){return n[0]=t[0]+M(t)/2,n[1]=t[1]+m(t)/2,n[2]=t[2]+p(t)/2,n}function y(t,n=[0,0,0]){return n[0]=M(t),n[1]=m(t),n[2]=p(t),n}function v(t,n){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function _(t,n){return n[0]=t[3],n[1]=t[4],n[2]=t[5],n}function x(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function I(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function w(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function j(t){return t?w(t,P):i(P)}function A(t,n){return t[0]=n[0],t[1]=n[1],t[2]=-1/0,t[3]=n[2],t[4]=n[3],t[5]=1/0,t}function q(t,n,e,r,a){return t[0]=n,t[1]=e,t[2]=-1/0,t[3]=r,t[4]=a,t[5]=1/0,t}function S(t){return 6===t.length}function O(t,n,e){if(null==t||null==n)return t===n;if(!S(t)||!S(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const P=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];i(),e.d(n,["qv",0,P,"v_",0,C])},71351(t,n,e){e.d(n,{C:()=>h,Cr:()=>f,LV:()=>l,fA:()=>d,kb:()=>M,vt:()=>s}),e(4576);var r=e(4341),a=(e(77690),e(29242)),i=e(35522),o=e(51850),u=e(32114);function s(t){return t?c((0,o.o8)(t.origin),(0,o.o8)(t.direction)):c((0,o.vt)(),(0,o.vt)())}function c(t,n){return{origin:t,direction:n}}function l(t,n){let e=m.get();return e.origin=t,e.direction=n,e}function h(t,n=s()){return d(t.origin,t.direction,n)}function f(t,n,e=s()){return(0,i.C)(e.origin,t),(0,i.Re)(e.direction,n,t),e}function d(t,n,e=s()){return(0,i.C)(e.origin,t),(0,i.C)(e.direction,n),e}function M(t,n){let e=(0,i.$A)(u.rq.get(),(0,i.S8)(u.rq.get(),t.direction),(0,i.Re)(u.rq.get(),n,t.origin));return(0,i.Om)(e,e)}const m=new r.I(()=>s());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,a.vt)()},32114(t,n,e){e.d(n,{Rc:()=>d,rq:()=>h,Km:()=>f}),e(44208);var r=e(26390),a=e(29242),i=e(9093),o=e(82534),u=e(48163),s=e(51850),c=e(91829);class l{constructor(t){this._create=t,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(u.vt)}static createVec3f64(){return new l(s.vt)}static createVec4f64(){return new l(c.vt)}static createMat3f64(){return new l(a.vt)}static createMat4f64(){return new l(i.vt)}static createQuatf64(){return new l(o.vt)}get test(){}}l.createVec2f64();const h=l.createVec3f64(),f=l.createVec4f64(),d=(l.createMat3f64(),l.createMat4f64());l.createQuatf64()},85648(t,n,e){e.d(n,{n:()=>a});var r=e(84952);function a(t){return i[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){let n=(0,r.Zo)(t);return s[n]||o}(t.url)}(t)]||u}const i={},o="text/plain",u=i[o],s={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let t in s)i[s[t]]=t},24212(t,n,e){e.d(n,{$7:()=>s,B:()=>u,M7:()=>h,XF:()=>l,tW:()=>c,w7:()=>o});var r=e(56512),a=e(86211),i=e(16271);function o(t,n){return function(t,n){return n?.mode?n.mode:function(t){return t?f:d}(t).mode}(null==t||(t.hasZ??!1),n)}function u(t,n,e){return e&&e.mode!==n?`${t} only support ${n} elevation mode`:null}function s(t,n,e){return e?.mode===n?`${t} do not support ${n} elevation mode`:null}function c(t,n){return null!=n?.featureExpressionInfo&&"0"!==n.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function l(t,n){n&&t.warn(".elevationInfo=",n)}function h(t){return(t?.offset??0)*(0,i.Ao)(t?.unit)}(0,r.B)((t,n,e)=>{if(!t||"decimal-degrees"===n)return 0;let r="unknown"!==n&&n?n:"meters",i=(0,a.mq)(e);return i?(0,a.oU)(t,r,i):0});const f={mode:"absolute-height",offset:0},d={mode:"on-the-ground",offset:null}},49718(t,n,e){e(51850),e(6867).w_},6867(t,n,e){e.d(n,{w_:()=>h});var r=e(58083),a=e(9093),i=e(35522),o=e(51850),u=e(78955),s=e(91829),c=e(71351);class l{constructor(){this.intersector=4}get distance(){return this._distance}get renderDistance(){return this._renderDistance}_init(){this._distance=this._renderDistance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4}_setBase(t,n,e,r=null,a=null,i=null){this.intersector=t,this._distance=e,this._renderDistance=r,this.target=n,this.drapedLayerOrder=a,this.renderPriority=i}}class h extends l{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,i.hs)(d,this.ray.direction,this.distance),(0,i.Bw)(d))}withinDistance(t){return!!f(this)&&null!=this.distanceInRenderSpace&&this.distanceInRenderSpace<=t}getIntersectionPoint(t){return!!f(this)&&((0,i.hs)(d,this.ray.direction,this.distance),(0,i.WQ)(t,this.ray.origin,d),!0)}getTransformedNormal(t){return(0,i.C)(M,this.normal),M[3]=0,(0,u.Z0)(M,M,this.transformation),(0,i.C)(t,M),(0,i.S8)(t,t)}constructor(t){super(),this.normal=(0,o.vt)(),this.transformation=(0,a.vt)(),this._ray=(0,c.vt)(),this.init(t)}init(t){super._init(),t&&(0,c.C)(t,this._ray)}set(t,n,e,u,s,c,l,h){this._setBase(t,n,e,u,l,h),(0,i.C)(this.normal,s??o.Cb),(0,r.C)(this.transformation,c??a.zK)}copy(t){this._setBase(t.intersector,t.target,t.distance,t.renderDistance,t.drapedLayerOrder,t.renderPriority),(0,c.C)(t.ray,this._ray),(0,i.C)(this.normal,t.normal),(0,r.C)(this.transformation,t.transformation)}}function f(t){return null!=t?.distance&&null!=t?.renderDistance}const d=(0,o.vt)(),M=(0,s.vt)()},78553(t,n,e){e.d(n,{D:()=>i,p:()=>a});var r=e(78888);function a(t){let n=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(n,100))}function i(t){let n=1-t/100;return Math.max(0,Math.min(n,1))}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1588],{79608(t,n,e){e.d(n,{A:()=>f});var r=e(32198),a=e(69540),i=e(91429);let o=class extends a.Pw{constructor(t){super(t),this.type="web-scene"}equals(t){return this.type===t.type}};(0,r.Cg)([(0,i.MZ)()],o.prototype,"type",void 0),o=(0,r.Cg)([(0,i.$K)("esri.analysis.support.AnalysisOriginWebScene")],o);const u=o;var s=e(69622),c=e(4902),l=e(25482);let h=0,f=class extends((0,l.T)((0,a.OU)((0,c.s)(s.A)))){constructor(t){super(t),this.id=`${Date.now().toString(16)}-analysis-${h++}`,this.origin=null}get parent(){return this._get("parent")}set parent(t){let n=this.parent;if(null!=n)switch(n.type){case"line-of-sight":case"dimension":case"viewshed":n.releaseAnalysis(this);break;case"2d":case"3d":n.analyses.includes(this)&&n.analyses.remove(this)}this._set("parent",t)}equals(t){return this.type===t.type}};(0,r.Cg)([(0,i.MZ)({type:String,constructOnly:!0,clonable:!1})],f.prototype,"id",void 0),(0,r.Cg)([(0,i.MZ)({clonable:!1,value:null})],f.prototype,"parent",null),(0,r.Cg)([(0,i.MZ)({types:{key:"type",base:null,typeMap:{"web-scene":u}}})],f.prototype,"origin",void 0),f=(0,r.Cg)([(0,i.$K)("esri.analysis.Analysis")],f)},91715(t,n,e){e.d(n,{xH:()=>i,N1:()=>u}),e(35522);var r=e(51850),a=e(71351);function i(t,n){return o(t)===o(n)}function o(t){if(null==t)return null;let n=null==t.layer?"":t.layer.id,e=null;return e=null==t.objectId?null!=t.layer&&"objectIdField"in t.layer&&null!=t.layer.objectIdField&&null!=t.attributes?t.attributes[t.layer.objectIdField]:t.uid:t.objectId,null==e?null:`o-${n}-${e}`}e(44208),e(58083),e(70328),e(77548),e(6867),e(49718),(0,r.vt)();const u={json:{write:{writer:function(t,n){null!=t?.layer?.objectIdField&&null!=t.attributes&&(n.feature={layerId:t.layer.id,objectId:t.attributes[t.layer.objectIdField]})},target:{"feature.layerId":{type:[Number,String],isRequired:!0},"feature.objectId":{type:[Number,String],isRequired:!0}}},origins:{"web-scene":{read:function(t){if(null!=t.layerId&&null!=t.objectId)return{uid:null,layer:{id:t.layerId,objectIdField:"ObjectId"},attributes:{ObjectId:t.objectId}}}}}},clonable:"reference"};(0,a.vt)(),(0,r.vt)()},80200(t,n,e){e.d(n,{d:()=>h});const r={Base64:0,Hex:1,String:2,Raw:3};function a(t,n){let e=(65535&t)+(65535&n);return(t>>16)+(n>>16)+(e>>16)<<16|65535&e}function i(t,n,e,r,i,o){return a(function(t,n){return t<<n|t>>>32-n}(a(a(n,t),a(r,o)),i),e)}function o(t,n,e,r,a,o,u){return i(n&e|~n&r,t,n,a,o,u)}function u(t,n,e,r,a,o,u){return i(n&r|e&~r,t,n,a,o,u)}function s(t,n,e,r,a,o,u){return i(n^e^r,t,n,a,o,u)}function c(t,n,e,r,a,o,u){return i(e^(n|~r),t,n,a,o,u)}function l(t,n){t[n>>5]|=128<<n%32,t[14+(n+64>>>9<<4)]=n;let e=1732584193,r=-271733879,i=-1732584194,l=271733878;for(let n=0;n<t.length;n+=16){let h=e,f=r,d=i,M=l;e=o(e,r,i,l,t[n],7,-680876936),l=o(l,e,r,i,t[n+1],12,-389564586),i=o(i,l,e,r,t[n+2],17,606105819),r=o(r,i,l,e,t[n+3],22,-1044525330),e=o(e,r,i,l,t[n+4],7,-176418897),l=o(l,e,r,i,t[n+5],12,1200080426),i=o(i,l,e,r,t[n+6],17,-1473231341),r=o(r,i,l,e,t[n+7],22,-45705983),e=o(e,r,i,l,t[n+8],7,1770035416),l=o(l,e,r,i,t[n+9],12,-1958414417),i=o(i,l,e,r,t[n+10],17,-42063),r=o(r,i,l,e,t[n+11],22,-1990404162),e=o(e,r,i,l,t[n+12],7,1804603682),l=o(l,e,r,i,t[n+13],12,-40341101),i=o(i,l,e,r,t[n+14],17,-1502002290),r=o(r,i,l,e,t[n+15],22,1236535329),e=u(e,r,i,l,t[n+1],5,-165796510),l=u(l,e,r,i,t[n+6],9,-1069501632),i=u(i,l,e,r,t[n+11],14,643717713),r=u(r,i,l,e,t[n],20,-373897302),e=u(e,r,i,l,t[n+5],5,-701558691),l=u(l,e,r,i,t[n+10],9,38016083),i=u(i,l,e,r,t[n+15],14,-660478335),r=u(r,i,l,e,t[n+4],20,-405537848),e=u(e,r,i,l,t[n+9],5,568446438),l=u(l,e,r,i,t[n+14],9,-1019803690),i=u(i,l,e,r,t[n+3],14,-187363961),r=u(r,i,l,e,t[n+8],20,1163531501),e=u(e,r,i,l,t[n+13],5,-1444681467),l=u(l,e,r,i,t[n+2],9,-51403784),i=u(i,l,e,r,t[n+7],14,1735328473),r=u(r,i,l,e,t[n+12],20,-1926607734),e=s(e,r,i,l,t[n+5],4,-378558),l=s(l,e,r,i,t[n+8],11,-2022574463),i=s(i,l,e,r,t[n+11],16,1839030562),r=s(r,i,l,e,t[n+14],23,-35309556),e=s(e,r,i,l,t[n+1],4,-1530992060),l=s(l,e,r,i,t[n+4],11,1272893353),i=s(i,l,e,r,t[n+7],16,-155497632),r=s(r,i,l,e,t[n+10],23,-1094730640),e=s(e,r,i,l,t[n+13],4,681279174),l=s(l,e,r,i,t[n],11,-358537222),i=s(i,l,e,r,t[n+3],16,-722521979),r=s(r,i,l,e,t[n+6],23,76029189),e=s(e,r,i,l,t[n+9],4,-640364487),l=s(l,e,r,i,t[n+12],11,-421815835),i=s(i,l,e,r,t[n+15],16,530742520),r=s(r,i,l,e,t[n+2],23,-995338651),e=c(e,r,i,l,t[n],6,-198630844),l=c(l,e,r,i,t[n+7],10,1126891415),i=c(i,l,e,r,t[n+14],15,-1416354905),r=c(r,i,l,e,t[n+5],21,-57434055),e=c(e,r,i,l,t[n+12],6,1700485571),l=c(l,e,r,i,t[n+3],10,-1894986606),i=c(i,l,e,r,t[n+10],15,-1051523),r=c(r,i,l,e,t[n+1],21,-2054922799),e=c(e,r,i,l,t[n+8],6,1873313359),l=c(l,e,r,i,t[n+15],10,-30611744),i=c(i,l,e,r,t[n+6],15,-1560198380),r=c(r,i,l,e,t[n+13],21,1309151649),e=c(e,r,i,l,t[n+4],6,-145523070),l=c(l,e,r,i,t[n+11],10,-1120210379),i=c(i,l,e,r,t[n+2],15,718787259),r=c(r,i,l,e,t[n+9],21,-343485551),e=a(e,h),r=a(r,f),i=a(i,d),l=a(l,M)}return[e,r,i,l]}function h(t,n=r.Hex){let e=n||r.Base64,a=l(function(t){let n=[];for(let e=0,r=8*t.length;e<r;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}(t),8*t.length);switch(e){case r.Raw:return a;case r.Hex:return function(t){let n="0123456789abcdef",e=[];for(let r=0,a=4*t.length;r<a;r++)e.push(n.charAt(t[r>>2]>>r%4*8+4&15)+n.charAt(t[r>>2]>>r%4*8&15));return e.join("")}(a);case r.String:return function(t){let n=[];for(let e=0,r=32*t.length;e<r;e+=8)n.push(String.fromCharCode(t[e>>5]>>>e%32&255));return n.join("")}(a);case r.Base64:return function(t){let n=[];for(let e=0,r=4*t.length;e<r;e+=3){let r=(t[e>>2]>>e%4*8&255)<<16|(t[e+1>>2]>>(e+1)%4*8&255)<<8|t[e+2>>2]>>(e+2)%4*8&255;for(let a=0;a<4;a++)8*e+6*a>32*t.length?n.push("="):n.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>6*(3-a)&63))}return n.join("")}(a)}}e.d(n,["T",0,r])},4341(t,n,e){e.d(n,{I:()=>a});var r=e(26390);class a{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){let t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*i);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,i));t++)this._items.push(this._allocator())}}const i=1024},87024(t,n,e){e.d(n,{P:()=>d});var r=e(49186),a=e(80200),i=e(76553),o=e(84952),u=e(13069),s=e(96156),c=e(35666),l=e(10107),h=e(85648),f=e(97159);function d(t){let n=t?.origins??[void 0];return(e,r)=>{let a=function(t,n,e){if("resource"===t?.type)return function(t,n,e){let r=(0,s.z4)(n,e);return{type:String,read:(t,n,e)=>{let a=(0,f.r)(t,n,e);return r.type===String?a:"function"==typeof r.type?new r.type({url:a}):void 0},write:{isRequired:r.json?.write?.isRequired,writer(n,a,u,s){if(!s?.resources)return"string"==typeof n?void(a[u]=(0,f.t)(n,s)):void(a[u]=n.write({},s));let l=function(t){return null==t?null:"string"==typeof t?t:t.url}(n),d=(0,f.t)(l,{...s,verifyItemRelativeUrls:s?.verifyItemRelativeUrls?{writtenUrls:s.verifyItemRelativeUrls.writtenUrls,rootPath:void 0}:void 0},1),g=r.type!==String&&(!(0,i.H)(this)||s?.origin&&this.originIdOf(e)>(0,c.aB)(s.origin)),b={object:this,propertyName:e,value:n,targetUrl:d,dest:a,targetPropertyName:u,context:s,params:t};s?.portalItem&&d&&!(0,o.oP)(d)?g&&t?.contentAddressed?M(b):g?function(t){let{context:n,targetUrl:e,params:r,value:a,dest:i,targetPropertyName:u}=t;if(!n.portalItem)return;let s=n.portalItem.resourceFromPath(e),c=p(a,e,n),l=(0,h.n)(c),f=(0,o.Zo)(s.path),d=r?.compress??!1;l===f?(n.resources&&m({...t,resource:s,content:c,compress:d,updates:n.resources.toUpdate}),i[u]=e):M(t)}(b):function({context:t,targetUrl:n,dest:e,targetPropertyName:r}){t.portalItem&&t.resources&&(t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),e[r]=n)}(b):s?.portalItem&&(null==d||null!=(0,f.i)(d)||(0,o.w8)(d)||g)?M(b):a[u]=d}}}}(t,n,e);switch(t?.type??"other"){case"other":return{read:!0,write:!0};case"url":{let{read:t,write:n}=f.b;return{read:t,write:n}}}}(t,e,r);for(let t of n){let n=(0,l.rM)(e,t,r);for(let t in a)n[t]=a[t]}}}function M(t){let{targetUrl:n,params:e,value:i,context:s,dest:c,targetPropertyName:l}=t;if(!s.portalItem)return;let d=(0,f.p)(n),M=p(i,n,s);if(e?.contentAddressed&&"json"!==M.type)return void s.messages?.push(new r.A("persistable:contentAddressingUnsupported",`Property "${l}" is trying to serializing a resource with content of type ${M.type} with content addressing. Content addressing is only supported for json resources.`,{content:M}));let g=e?.contentAddressed&&"json"===M.type?(0,a.d)(M.jsonString):d?.filename??(0,u.lk)(),b=e?.prefix??d?.prefix,y=(0,o.fj)(b,g),v=`${y}.${(0,h.n)(M)}`;if(e?.contentAddressed&&s.resources&&"json"===M.type){let t=s.resources.toKeep.find(({resource:t})=>t.path===v)??s.resources.toAdd.find(({resource:t})=>t.path===v);if(t)return void(c[l]=t.resource.itemRelativeUrl)}let _=s.portalItem.resourceFromPath(v);(0,o.w8)(n)&&s.resources&&s.resources.pendingOperations.push((0,o.tk)(n).then(t=>{_.path=`${y}.${(0,h.n)({type:"blob",blob:t})}`,c[l]=_.itemRelativeUrl}).catch(()=>{}));let x=e?.compress??!1;s.resources&&m({...t,resource:_,content:M,compress:x,updates:s.resources.toAdd}),c[l]=_.itemRelativeUrl}function m({object:t,propertyName:n,updates:e,resource:r,content:a,compress:i}){e.push({resource:r,content:a,compress:i,finish:e=>{!function(t,n,e){"string"==typeof t[n]?t[n]=e.url:t[n].url=e.url}(t,n,e)}})}function p(t,n,e){return"string"==typeof t?{type:"url",url:n}:{type:"json",jsonString:JSON.stringify(t.toJSON(e))}}},62885(t,n,e){e.d(n,{H:()=>i,V:()=>a});var r=e(7762);function a(t,n,e=r.A){return n||=new e,n===t||n.destroyed||(n.removeAll(),(a=t)&&(Array.isArray(a)||"items"in a&&Array.isArray(a.items))?n.addMany(t):t&&n.add(t)),n;var a}function i(t){return t}},9093(t,n,e){function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function a(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:()=>a,vt:()=>r});const i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:r,fromValues:function(t,n,e,r,a,i,o,u,s,c,l,h,f,d,M,m){return[t,n,e,r,a,i,o,u,s,c,l,h,f,d,M,m]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,i])},82534(t,n,e){function r(){return[0,0,0,1]}function a(t){return[t[0],t[1],t[2],t[3]]}e.d(n,{o8:()=>a,vt:()=>r});const i=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:i,clone:a,create:r,fromValues:function(t,n,e,r){return[t,n,e,r]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["zK",0,i])},48163(t,n,e){function r(){return[0,0]}function a(t){return[t[0],t[1]]}function i(t,n){return[t,n]}function o(){return i(1,1)}function u(){return i(-1,-1)}function s(){return i(1,0)}function c(){return i(0,1)}e.d(n,{fA:()=>i,o8:()=>a,vt:()=>r});const l=o(),h=u(),f=s(),d=c();Object.freeze(Object.defineProperty({__proto__:null,NEGATIVE_ONES:h,ONES:l,UNIT_X:f,UNIT_Y:d,ZEROS:[0,0],clone:a,create:r,freeze:function(t,n){return[t,n]},fromArray:function(t,n=[0,0]){let e=Math.min(2,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:i,negativeOnes:u,ones:o,unitX:s,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["IA",0,h,"Un",0,l])},91829(t,n,e){function r(){return[0,0,0,0]}function a(t,n,e,r){return[t,n,e,r]}function i(){return a(1,1,1,1)}function o(){return a(1,0,0,0)}function u(){return a(0,1,0,0)}function s(){return a(0,0,1,0)}function c(){return a(0,0,0,1)}e.d(n,{_Y:()=>c,fA:()=>a,vt:()=>r});const l=[0,0,0,0],h=i(),f=o(),d=u(),M=s(),m=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:h,UNIT_W:m,UNIT_X:f,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]){let e=Math.min(4,t.length);for(let r=0;r<e;++r)n[r]=t[r];return n},fromValues:a,ones:i,unitW:c,unitX:o,unitY:u,unitZ:s,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"})),e.d(n,["Un",0,h,"uY",0,l])},58083(t,n,e){e.d(n,{$0:()=>g,$h:()=>q,B8:()=>l,C:()=>i,D_:()=>u,N9:()=>y,O7:()=>A,Qw:()=>c,Tl:()=>f,X_:()=>I,e$:()=>M,eL:()=>m,hM:()=>b,hZ:()=>o,hs:()=>d,kN:()=>p,l:()=>w,lw:()=>h,mg:()=>s,o1:()=>j,sC:()=>x,t2:()=>P,t5:()=>S,tZ:()=>R,ut:()=>C});var r=e(51850),a=e(34304);function i(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function o(t,n,e,r,a,i,o,u,s,c,l,h,f,d,M,m,p){return t[0]=n,t[1]=e,t[2]=r,t[3]=a,t[4]=i,t[5]=o,t[6]=u,t[7]=s,t[8]=c,t[9]=l,t[10]=h,t[11]=f,t[12]=d,t[13]=M,t[14]=m,t[15]=p,t}function u(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){let e=n[1],r=n[2],a=n[3],i=n[6],o=n[7],u=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]=i,t[11]=n[14],t[12]=a,t[13]=o,t[14]=u}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)||u(t),t}function l(t,n){let e=n[0],r=n[1],a=n[2],i=n[3],o=n[4],u=n[5],s=n[6],c=n[7],l=n[8],h=n[9],f=n[10],d=n[11],M=n[12],m=n[13],p=n[14],g=n[15],b=e*u-r*o,y=e*s-a*o,v=e*c-i*o,_=r*s-a*u,x=r*c-i*u,I=a*c-i*s,w=l*m-h*M,j=l*p-f*M,A=l*g-d*M,q=h*p-f*m,S=h*g-d*m,O=f*g-d*p,P=b*O-y*S+v*q+_*A-x*j+I*w;return P?(P=1/P,t[0]=(u*O-s*S+c*q)*P,t[1]=(a*S-r*O-i*q)*P,t[2]=(m*I-p*x+g*_)*P,t[3]=(f*x-h*I-d*_)*P,t[4]=(s*A-o*O-c*j)*P,t[5]=(e*O-a*A+i*j)*P,t[6]=(p*v-M*I-g*y)*P,t[7]=(l*I-f*v+d*y)*P,t[8]=(o*S-u*A+c*w)*P,t[9]=(r*A-e*S-i*w)*P,t[10]=(M*x-m*v+g*b)*P,t[11]=(h*v-l*x-d*b)*P,t[12]=(u*j-o*q-s*w)*P,t[13]=(e*q-r*j+a*w)*P,t[14]=(m*y-M*_-p*b)*P,t[15]=(l*_-h*y+f*b)*P,t):null}function h(t,n,e){let r=n[0],a=n[1],i=n[2],o=n[3],u=n[4],s=n[5],c=n[6],l=n[7],h=n[8],f=n[9],d=n[10],M=n[11],m=n[12],p=n[13],g=n[14],b=n[15],y=e[0],v=e[1],_=e[2],x=e[3];return t[0]=y*r+v*u+_*h+x*m,t[1]=y*a+v*s+_*f+x*p,t[2]=y*i+v*c+_*d+x*g,t[3]=y*o+v*l+_*M+x*b,y=e[4],v=e[5],_=e[6],x=e[7],t[4]=y*r+v*u+_*h+x*m,t[5]=y*a+v*s+_*f+x*p,t[6]=y*i+v*c+_*d+x*g,t[7]=y*o+v*l+_*M+x*b,y=e[8],v=e[9],_=e[10],x=e[11],t[8]=y*r+v*u+_*h+x*m,t[9]=y*a+v*s+_*f+x*p,t[10]=y*i+v*c+_*d+x*g,t[11]=y*o+v*l+_*M+x*b,y=e[12],v=e[13],_=e[14],x=e[15],t[12]=y*r+v*u+_*h+x*m,t[13]=y*a+v*s+_*f+x*p,t[14]=y*i+v*c+_*d+x*g,t[15]=y*o+v*l+_*M+x*b,t}function f(t,n,e){let r=e[0],a=e[1],i=e[2];if(n===t)t[12]=n[0]*r+n[4]*a+n[8]*i+n[12],t[13]=n[1]*r+n[5]*a+n[9]*i+n[13],t[14]=n[2]*r+n[6]*a+n[10]*i+n[14],t[15]=n[3]*r+n[7]*a+n[11]*i+n[15];else{let e=n[0],o=n[1],u=n[2],s=n[3],c=n[4],l=n[5],h=n[6],f=n[7],d=n[8],M=n[9],m=n[10],p=n[11];t[0]=e,t[1]=o,t[2]=u,t[3]=s,t[4]=c,t[5]=l,t[6]=h,t[7]=f,t[8]=d,t[9]=M,t[10]=m,t[11]=p,t[12]=e*r+c*a+d*i+n[12],t[13]=o*r+l*a+M*i+n[13],t[14]=u*r+h*a+m*i+n[14],t[15]=s*r+f*a+p*i+n[15]}return t}function d(t,n,e){let r=e[0],a=e[1],i=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]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=n[7]*a,t[8]=n[8]*i,t[9]=n[9]*i,t[10]=n[10]*i,t[11]=n[11]*i,t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],t}function M(t,n,e,r){let o=r[0],u=r[1],s=r[2],c=Math.sqrt(o*o+u*u+s*s);if(c<=(0,a.FD)())return void i(t,n);c=1/c,o*=c,u*=c,s*=c;let l=Math.sin(e),h=Math.cos(e),f=1-h,d=n[0],M=n[1],m=n[2],p=n[3],g=n[4],b=n[5],y=n[6],v=n[7],_=n[8],x=n[9],I=n[10],w=n[11],j=o*o*f+h,A=u*o*f+s*l,q=s*o*f-u*l,S=o*u*f-s*l,O=u*u*f+h,P=s*u*f+o*l,C=o*s*f+u*l,R=u*s*f-o*l,T=s*s*f+h;t[0]=d*j+g*A+_*q,t[1]=M*j+b*A+x*q,t[2]=m*j+y*A+I*q,t[3]=p*j+v*A+w*q,t[4]=d*S+g*O+_*P,t[5]=M*S+b*O+x*P,t[6]=m*S+y*O+I*P,t[7]=p*S+v*O+w*P,t[8]=d*C+g*R+_*T,t[9]=M*C+b*R+x*T,t[10]=m*C+y*R+I*T,t[11]=p*C+v*R+w*T,n!==t&&(t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15])}function m(t,n,e){let r=Math.sin(e),a=Math.cos(e),i=n[4],o=n[5],u=n[6],s=n[7],c=n[8],l=n[9],h=n[10],f=n[11];return n!==t&&(t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[4]=i*a+c*r,t[5]=o*a+l*r,t[6]=u*a+h*r,t[7]=s*a+f*r,t[8]=c*a-i*r,t[9]=l*a-o*r,t[10]=h*a-u*r,t[11]=f*a-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 g(t,n,e){if(0===n)return u(t);let r=e[0],i=e[1],o=e[2],s=Math.sqrt(r*r+i*i+o*o);if(s<=(0,a.FD)())return null;s=1/s,r*=s,i*=s,o*=s;let c=Math.sin(n),l=Math.cos(n),h=1-l;return t[0]=r*r*h+l,t[1]=i*r*h+o*c,t[2]=o*r*h-i*c,t[3]=0,t[4]=r*i*h-o*c,t[5]=i*i*h+l,t[6]=o*i*h+r*c,t[7]=0,t[8]=r*o*h+i*c,t[9]=i*o*h-r*c,t[10]=o*o*h+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function b(t,n){let 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 y(t,n){let e=Math.sin(n),r=Math.cos(n);return t[0]=r,t[1]=e,t[2]=0,t[3]=0,t[4]=-e,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function v(t,n,e){let r=n[0],a=n[1],i=n[2],o=n[3],u=r+r,s=a+a,c=i+i,l=r*u,h=r*s,f=r*c,d=a*s,M=a*c,m=i*c,p=o*u,g=o*s,b=o*c;return t[0]=1-(d+m),t[1]=h+b,t[2]=f-g,t[3]=0,t[4]=h-b,t[5]=1-(l+m),t[6]=M+p,t[7]=0,t[8]=f+g,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 _=(0,r.vt)();function x(t,n){return t[0]=n[12],t[1]=n[13],t[2]=n[14],t}function I(t,n){let e=n[0],r=n[1],a=n[2],i=n[4],o=n[5],u=n[6],s=n[8],c=n[9],l=n[10];return t[0]=Math.sqrt(e*e+r*r+a*a),t[1]=Math.sqrt(i*i+o*o+u*u),t[2]=Math.sqrt(s*s+c*c+l*l),t}function w(t,n){let e=n[0]+n[5]+n[10],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 j(t,n,e,r){let a=n[0],i=n[1],o=n[2],u=n[3],s=a+a,c=i+i,l=o+o,h=a*s,f=a*c,d=a*l,M=i*c,m=i*l,p=o*l,g=u*s,b=u*c,y=u*l,v=r[0],_=r[1],x=r[2];return t[0]=(1-(M+p))*v,t[1]=(f+y)*v,t[2]=(d-b)*v,t[3]=0,t[4]=(f-y)*_,t[5]=(1-(h+p))*_,t[6]=(m+g)*_,t[7]=0,t[8]=(d+b)*x,t[9]=(m-g)*x,t[10]=(1-(h+M))*x,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function A(t,n,e,r,a){let i=n[0],o=n[1],u=n[2],s=n[3],c=i+i,l=o+o,h=u+u,f=i*c,d=i*l,M=i*h,m=o*l,p=o*h,g=u*h,b=s*c,y=s*l,v=s*h,_=r[0],x=r[1],I=r[2],w=a[0],j=a[1],A=a[2],q=(1-(m+g))*_,S=(d+v)*_,O=(M-y)*_,P=(d-v)*x,C=(1-(f+g))*x,R=(p+b)*x,T=(M+y)*I,D=(p-b)*I,U=(1-(f+m))*I;return t[0]=q,t[1]=S,t[2]=O,t[3]=0,t[4]=P,t[5]=C,t[6]=R,t[7]=0,t[8]=T,t[9]=D,t[10]=U,t[11]=0,t[12]=e[0]+w-(q*w+P*j+T*A),t[13]=e[1]+j-(S*w+C*j+D*A),t[14]=e[2]+A-(O*w+R*j+U*A),t[15]=1,t}function q(t,n,e,r,a,i,o){let u=1/(e-n),s=1/(a-r),c=1/(i-o);return t[0]=2*i*u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*i*s,t[6]=0,t[7]=0,t[8]=(e+n)*u,t[9]=(a+r)*s,t[10]=(o+i)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*c,t[15]=0,t}function S(t,n,e,r){let i=n[0],o=n[1],s=n[2],c=i-e[0],l=o-e[1],h=s-e[2],f=(0,a.FD)();if(Math.abs(c)<f&&Math.abs(l)<f&&Math.abs(h)<f)return void u(t);let d=1/Math.sqrt(c*c+l*l+h*h);c*=d,l*=d,h*=d;let M=r[0],m=r[1],p=r[2],g=m*h-p*l,b=p*c-M*h,y=M*l-m*c;d=Math.sqrt(g*g+b*b+y*y),d?(d=1/d,g*=d,b*=d,y*=d):(g=0,b=0,y=0);let v=l*y-h*b,_=h*g-c*y,x=c*b-l*g;d=Math.sqrt(v*v+_*_+x*x),d?(d=1/d,v*=d,_*=d,x*=d):(v=0,_=0,x=0),t[0]=g,t[1]=v,t[2]=c,t[3]=0,t[4]=b,t[5]=_,t[6]=l,t[7]=0,t[8]=y,t[9]=x,t[10]=h,t[11]=0,t[12]=-(g*i+b*o+y*s),t[13]=-(v*i+_*o+x*s),t[14]=-(c*i+l*o+h*s),t[15]=1}function O(t,n,e){return t[0]=n[0]-e[0],t[1]=n[1]-e[1],t[2]=n[2]-e[2],t[3]=n[3]-e[3],t[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 P(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 C(t){let n=(0,a.FD)(),e=t[0],r=t[1],i=t[2],o=t[4],u=t[5],s=t[6],c=t[8],l=t[9],h=t[10];return Math.abs(1-(e*e+o*o+c*c))<=n&&Math.abs(1-(r*r+u*u+l*l))<=n&&Math.abs(1-(i*i+s*s+h*h))<=n}function R(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 T=h,D=O;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){let e=n[0],r=n[1],a=n[2],i=n[3],o=n[4],u=n[5],s=n[6],c=n[7],l=n[8],h=n[9],f=n[10],d=n[11],M=n[12],m=n[13],p=n[14],g=n[15];return t[0]=u*(f*g-d*p)-h*(s*g-c*p)+m*(s*d-c*f),t[1]=-(r*(f*g-d*p)-h*(a*g-i*p)+m*(a*d-i*f)),t[2]=r*(s*g-c*p)-u*(a*g-i*p)+m*(a*c-i*s),t[3]=-(r*(s*d-c*f)-u*(a*d-i*f)+h*(a*c-i*s)),t[4]=-(o*(f*g-d*p)-l*(s*g-c*p)+M*(s*d-c*f)),t[5]=e*(f*g-d*p)-l*(a*g-i*p)+M*(a*d-i*f),t[6]=-(e*(s*g-c*p)-o*(a*g-i*p)+M*(a*c-i*s)),t[7]=e*(s*d-c*f)-o*(a*d-i*f)+l*(a*c-i*s),t[8]=o*(h*g-d*m)-l*(u*g-c*m)+M*(u*d-c*h),t[9]=-(e*(h*g-d*m)-l*(r*g-i*m)+M*(r*d-i*h)),t[10]=e*(u*g-c*m)-o*(r*g-i*m)+M*(r*c-i*u),t[11]=-(e*(u*d-c*h)-o*(r*d-i*h)+l*(r*c-i*u)),t[12]=-(o*(h*p-f*m)-l*(u*p-s*m)+M*(u*f-s*h)),t[13]=e*(h*p-f*m)-l*(r*p-a*m)+M*(r*f-a*h),t[14]=-(e*(u*p-s*m)-o*(r*p-a*m)+M*(r*s-a*u)),t[15]=e*(u*f-s*h)-o*(r*f-a*h)+l*(r*s-a*u),t},copy:i,determinant:function(t){let n=t[0],e=t[1],r=t[2],a=t[3],i=t[4],o=t[5],u=t[6],s=t[7],c=t[8],l=t[9],h=t[10],f=t[11],d=t[12],M=t[13],m=t[14],p=t[15];return(n*o-e*i)*(h*p-f*m)-(n*u-r*i)*(l*p-f*M)+(n*s-a*i)*(l*m-h*M)+(e*u-r*o)*(c*p-f*d)-(e*s-a*o)*(c*m-h*d)+(r*s-a*u)*(c*M-l*d)},equals:function(t,n){if(t===n)return!0;let e=t[0],r=t[1],i=t[2],o=t[3],u=t[4],s=t[5],c=t[6],l=t[7],h=t[8],f=t[9],d=t[10],M=t[11],m=t[12],p=t[13],g=t[14],b=t[15],y=n[0],v=n[1],_=n[2],x=n[3],I=n[4],w=n[5],j=n[6],A=n[7],q=n[8],S=n[9],O=n[10],P=n[11],C=n[12],R=n[13],T=n[14],D=n[15],U=(0,a.FD)();return Math.abs(e-y)<=U*Math.max(1,Math.abs(e),Math.abs(y))&&Math.abs(r-v)<=U*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(i-_)<=U*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(o-x)<=U*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(u-I)<=U*Math.max(1,Math.abs(u),Math.abs(I))&&Math.abs(s-w)<=U*Math.max(1,Math.abs(s),Math.abs(w))&&Math.abs(c-j)<=U*Math.max(1,Math.abs(c),Math.abs(j))&&Math.abs(l-A)<=U*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(h-q)<=U*Math.max(1,Math.abs(h),Math.abs(q))&&Math.abs(f-S)<=U*Math.max(1,Math.abs(f),Math.abs(S))&&Math.abs(d-O)<=U*Math.max(1,Math.abs(d),Math.abs(O))&&Math.abs(M-P)<=U*Math.max(1,Math.abs(M),Math.abs(P))&&Math.abs(m-C)<=U*Math.max(1,Math.abs(m),Math.abs(C))&&Math.abs(p-R)<=U*Math.max(1,Math.abs(p),Math.abs(R))&&Math.abs(g-T)<=U*Math.max(1,Math.abs(g),Math.abs(T))&&Math.abs(b-D)<=U*Math.max(1,Math.abs(b),Math.abs(D))},exactEquals:P,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){let e=n[0],r=n[1],a=n[2],i=n[3],o=e+e,u=r+r,s=a+a,c=e*o,l=r*o,h=r*u,f=a*o,d=a*u,M=a*s,m=i*o,p=i*u,g=i*s;return t[0]=1-h-M,t[1]=l+g,t[2]=f-p,t[3]=0,t[4]=l-g,t[5]=1-c-M,t[6]=d+m,t[7]=0,t[8]=f+p,t[9]=d-m,t[10]=1-c-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,n){let e=_,r=-n[0],a=-n[1],i=-n[2],o=n[3],u=n[4],s=n[5],c=n[6],l=n[7],h=r*r+a*a+i*i+o*o;return h>0?(e[0]=2*(u*o+l*r+s*i-c*a)/h,e[1]=2*(s*o+l*a+c*r-u*i)/h,e[2]=2*(c*o+l*i+u*a-s*r)/h):(e[0]=2*(u*o+l*r+s*i-c*a),e[1]=2*(s*o+l*a+c*r-u*i),e[2]=2*(c*o+l*i+u*a-s*r)),v(t,n,e),t},fromRotation:g,fromRotationTranslation:v,fromRotationTranslationScale:j,fromRotationTranslationScaleOrigin:A,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:b,fromYRotation:function(t,n){let 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:y,frustum:q,getRotation:w,getScale:I,getTranslation:x,hasIdentityRotation:R,identity:u,invert:l,invertOrIdentity:c,isOrthoNormal:C,lookAt:S,mul:T,multiply:h,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,a,i,o){let u=1/(n-e),s=1/(r-a),c=1/(i-o);return t[0]=-2*u,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)*u,t[13]=(a+r)*s,t[14]=(o+i)*c,t[15]=1,t},perspective:function(t,n,e,r,a){let i,o=1/Math.tan(n/2);return t[0]=o/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,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!=a&&a!==1/0?(i=1/(r-a),t[10]=(a+r)*i,t[14]=2*a*r*i):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,n,e,r){let a=Math.tan(n.upDegrees*Math.PI/180),i=Math.tan(n.downDegrees*Math.PI/180),o=Math.tan(n.leftDegrees*Math.PI/180),u=Math.tan(n.rightDegrees*Math.PI/180),s=2/(o+u),c=2/(a+i);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]=-(o-u)*s*.5,t[9]=(a-i)*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:m,rotateY:function(t,n,e){let r=Math.sin(e),a=Math.cos(e),i=n[0],o=n[1],u=n[2],s=n[3],c=n[8],l=n[9],h=n[10],f=n[11];return n!==t&&(t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*a-c*r,t[1]=o*a-l*r,t[2]=u*a-h*r,t[3]=s*a-f*r,t[8]=i*r+c*a,t[9]=o*r+l*a,t[10]=u*r+h*a,t[11]=s*r+f*a,t},rotateZ:function(t,n,e){let r=Math.sin(e),a=Math.cos(e),i=n[0],o=n[1],u=n[2],s=n[3],c=n[4],l=n[5],h=n[6],f=n[7];return n!==t&&(t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15]),t[0]=i*a+c*r,t[1]=o*a+l*r,t[2]=u*a+h*r,t[3]=s*a+f*r,t[4]=c*a-i*r,t[5]=l*a-o*r,t[6]=h*a-u*r,t[7]=f*a-s*r,t},scale:d,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:D,subtract:O,targetTo:function(t,n,e,r){let a=n[0],i=n[1],o=n[2],u=r[0],s=r[1],c=r[2],l=a-e[0],h=i-e[1],f=o-e[2],d=l*l+h*h+f*f;d>0&&(d=1/Math.sqrt(d),l*=d,h*=d,f*=d);let M=s*f-c*h,m=c*l-u*f,p=u*h-s*l;return d=M*M+m*m+p*p,d>0&&(d=1/Math.sqrt(d),M*=d,m*=d,p*=d),t[0]=M,t[1]=m,t[2]=p,t[3]=0,t[4]=h*p-f*m,t[5]=f*M-l*p,t[6]=l*m-h*M,t[7]=0,t[8]=l,t[9]=h,t[10]=f,t[11]=0,t[12]=a,t[13]=i,t[14]=o,t[15]=1,t},translate:f,transpose:s},Symbol.toStringTag,{value:"Module"}))},35522(t,n,e){e.d(n,{$A:()=>j,Bw:()=>i,C:()=>o,Cc:()=>A,DI:()=>x,Io:()=>b,Ln:()=>g,Om:()=>w,Qr:()=>h,Re:()=>c,S8:()=>I,T9:()=>m,WQ:()=>s,Z0:()=>q,_S:()=>d,aI:()=>D,ei:()=>S,fw:()=>P,gL:()=>O,hG:()=>y,hZ:()=>u,hs:()=>p,jk:()=>M,lw:()=>l,m3:()=>v,oW:()=>U,t2:()=>T,tn:()=>f,ze:()=>_});var r=e(51850),a=e(34304);function i(t){let n=t[0],e=t[1],r=t[2];return Math.sqrt(n*n+e*e+r*r)}function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t}function u(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 h(t,n,e){return t[0]=n[0]/e[0],t[1]=n[1]/e[1],t[2]=n[2]/e[2],t}function f(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 m(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t}function p(t,n,e){return t[0]=n[0]*e,t[1]=n[1]*e,t[2]=n[2]*e,t}function g(t,n,e,r){return t[0]=n[0]+e[0]*r,t[1]=n[1]+e[1]*r,t[2]=n[2]+e[2]*r,t}function b(t,n){let e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return Math.sqrt(e*e+r*r+a*a)}function y(t,n){let e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2];return e*e+r*r+a*a}function v(t){let n=t[0],e=t[1],r=t[2];return n*n+e*e+r*r}function _(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t}function x(t,n){return t[0]=1/n[0],t[1]=1/n[1],t[2]=1/n[2],t}function I(t,n=t){let e=n[0],r=n[1],a=n[2],i=e*e+r*r+a*a;return i>0&&(i=1/Math.sqrt(i),t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i),t}function w(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function j(t,n,e){let r=n[0],a=n[1],i=n[2],o=e[0],u=e[1],s=e[2];return t[0]=a*s-i*u,t[1]=i*o-r*s,t[2]=r*u-a*o,t}function A(t,n,e,r){let a=n[0],i=n[1],o=n[2];return t[0]=a+r*(e[0]-a),t[1]=i+r*(e[1]-i),t[2]=o+r*(e[2]-o),t}function q(t,n,e){let r=n[0],a=n[1],i=n[2];return t[0]=e[0]*r+e[4]*a+e[8]*i+e[12],t[1]=e[1]*r+e[5]*a+e[9]*i+e[13],t[2]=e[2]*r+e[6]*a+e[10]*i+e[14],t}function S(t,n,e){let r=n[0],a=n[1],i=n[2];return t[0]=r*e[0]+a*e[3]+i*e[6],t[1]=r*e[1]+a*e[4]+i*e[7],t[2]=r*e[2]+a*e[5]+i*e[8],t}function O(t,n,e){return P(t,n,e[0],e[1],e[2],e[3])}function P(t,n,e,r,a,i){let o=n[0],u=n[1],s=n[2],c=r*s-a*u,l=a*o-e*s,h=e*u-r*o,f=r*h-a*l,d=a*c-e*h,M=e*l-r*c,m=2*i;return t[0]=o+c*m+2*f,t[1]=u+l*m+2*d,t[2]=s+h*m+2*M,t}const C=(0,r.vt)(),R=(0,r.vt)();function T(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]}function D(t,n){if(t===n)return!0;let e=t[0],r=t[1],i=t[2],o=n[0],u=n[1],s=n[2],c=(0,a.FD)();return Math.abs(e-o)<=c*Math.max(1,Math.abs(e),Math.abs(o))&&Math.abs(r-u)<=c*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(i-s)<=c*Math.max(1,Math.abs(i),Math.abs(s))}function U(t,n,e){let r=e[0]-n[0],a=e[1]-n[1],i=e[2]-n[2],o=r*r+a*a+i*i;return o>0?(o=1/Math.sqrt(o),t[0]=r*o,t[1]=a*o,t[2]=i*o,t):(t[0]=0,t[1]=0,t[2]=0,t)}const N=c,z=l,F=h,$=b,Z=y,V=i,E=v;Object.freeze(Object.defineProperty({__proto__:null,abs:f,add:s,angle:function(t,n){I(C,t),I(R,n);let e=w(C,R);return e>1?0:e<-1?Math.PI:Math.acos(e)},bezier:function(t,n,e,r,a,i){let o=1-i,u=o*o,s=i*i,c=u*o,l=3*i*u,h=3*s*o,f=s*i;return t[0]=n[0]*c+e[0]*l+r[0]*h+a[0]*f,t[1]=n[1]*c+e[1]*l+r[1]*h+a[1]*f,t[2]=n[2]*c+e[2]*l+r[2]*h+a[2]*f,t},ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t},clamp:function(t,n=0,e=1){return t[0]=Math.min(Math.max(t[0],n),e),t[1]=Math.min(Math.max(t[1],n),e),t[2]=Math.min(Math.max(t[2],n),e),t},copy:o,cross:j,crossAndNormalize:function(t,n,e){let r=n[0],a=n[1],i=n[2],o=e[0],u=e[1],s=e[2],c=a*s-i*u,l=i*o-r*s,h=r*u-a*o,f=Math.sqrt(c*c+l*l+h*h);return t[0]=c/f,t[1]=l/f,t[2]=h/f,t},direction:U,dist:$,distance:b,div:F,divide:h,dot:w,equals:D,exactEquals:T,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,a,i){let o=i*i,u=o*(2*i-3)+1,s=o*(i-2)+i,c=o*(i-1),l=o*(3-2*i);return t[0]=n[0]*u+e[0]*s+r[0]*c+a[0]*l,t[1]=n[1]*u+e[1]*s+r[1]*c+a[1]*l,t[2]=n[2]*u+e[2]*s+r[2]*c+a[2]*l,t},inverse:x,len:V,length:i,lerp:A,max:m,min:M,mul:z,multiply:l,negate:_,normalize:I,random:function(t,n=1){let e=a.Ov,r=2*e()*Math.PI,i=2*e()-1,o=Math.sqrt(1-i*i)*n;return t[0]=Math.cos(r)*o,t[1]=Math.sin(r)*o,t[2]=i*n,t},rotateX:function(t,n,e,r){let a=[],i=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],i[0]=a[0],i[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),i[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateY:function(t,n,e,r){let a=[],i=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],i[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),i[1]=a[1],i[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[2]+e[2],t},rotateZ:function(t,n,e,r){let a=[],i=[];return a[0]=n[0]-e[0],a[1]=n[1]-e[1],a[2]=n[2]-e[2],i[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),i[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),i[2]=a[2],t[0]=i[0]+e[0],t[1]=i[1]+e[1],t[2]=i[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:g,scaleTo:function(t,n){return p(t,t,n/V(t))},set:u,sign:d,sqrDist:Z,sqrLen:E,squaredDistance:y,squaredLength:v,str:function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},sub:N,subtract:c,transformMat3:S,transformMat4:q,transformMat4Z:function(t,n){return n[2]*t[0]+n[6]*t[1]+n[10]*t[2]+n[14]},transformQuat:O,transformQuatValues:P},Symbol.toStringTag,{value:"Module"})),e.d(n,["Il",0,V,"jb",0,N,"lo",0,Z,"uE",0,E])},78955(t,n,e){e.d(n,{Bw:()=>p,C:()=>a,Cc:()=>v,LI:()=>f,Om:()=>y,S8:()=>b,T9:()=>h,WQ:()=>o,Z0:()=>_,aI:()=>I,hG:()=>m,hZ:()=>i,hs:()=>d,jk:()=>l,m3:()=>g,t2:()=>x});var r=e(34304);function a(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t}function i(t,n,e,r,a){return t[0]=n,t[1]=e,t[2]=r,t[3]=a,t}function o(t,n,e){return t[0]=n[0]+e[0],t[1]=n[1]+e[1],t[2]=n[2]+e[2],t[3]=n[3]+e[3],t}function 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 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 h(t,n,e){return t[0]=Math.max(n[0],e[0]),t[1]=Math.max(n[1],e[1]),t[2]=Math.max(n[2],e[2]),t[3]=Math.max(n[3],e[3]),t}function f(t,n){return t[0]=Math.round(n[0]),t[1]=Math.round(n[1]),t[2]=Math.round(n[2]),t[3]=Math.round(n[3]),t}function 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){let e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],i=n[3]-t[3];return Math.sqrt(e*e+r*r+a*a+i*i)}function m(t,n){let e=n[0]-t[0],r=n[1]-t[1],a=n[2]-t[2],i=n[3]-t[3];return e*e+r*r+a*a+i*i}function p(t){let n=t[0],e=t[1],r=t[2],a=t[3];return Math.sqrt(n*n+e*e+r*r+a*a)}function g(t){let n=t[0],e=t[1],r=t[2],a=t[3];return n*n+e*e+r*r+a*a}function b(t,n){let e=n[0],r=n[1],a=n[2],i=n[3],o=e*e+r*r+a*a+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e*o,t[1]=r*o,t[2]=a*o,t[3]=i*o),t}function y(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function v(t,n,e,r){let a=n[0],i=n[1],o=n[2],u=n[3];return t[0]=a+r*(e[0]-a),t[1]=i+r*(e[1]-i),t[2]=o+r*(e[2]-o),t[3]=u+r*(e[3]-u),t}function _(t,n,e){let r=n[0],a=n[1],i=n[2],o=n[3];return t[0]=e[0]*r+e[4]*a+e[8]*i+e[12]*o,t[1]=e[1]*r+e[5]*a+e[9]*i+e[13]*o,t[2]=e[2]*r+e[6]*a+e[10]*i+e[14]*o,t[3]=e[3]*r+e[7]*a+e[11]*i+e[15]*o,t}function x(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}function I(t,n){let e=t[0],a=t[1],i=t[2],o=t[3],u=n[0],s=n[1],c=n[2],l=n[3],h=(0,r.FD)();return Math.abs(e-u)<=h*Math.max(1,Math.abs(e),Math.abs(u))&&Math.abs(a-s)<=h*Math.max(1,Math.abs(a),Math.abs(s))&&Math.abs(i-c)<=h*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-l)<=h*Math.max(1,Math.abs(o),Math.abs(l))}const w=u,j=s,A=c,q=M,S=m,O=p,P=g;Object.freeze(Object.defineProperty({__proto__:null,add:o,ceil:function(t,n){return t[0]=Math.ceil(n[0]),t[1]=Math.ceil(n[1]),t[2]=Math.ceil(n[2]),t[3]=Math.ceil(n[3]),t},copy:a,copyVec3:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t},dist:q,distance:M,div:A,divide:c,dot:y,equals:I,exactEquals:x,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:O,length:p,lerp:v,max:h,min:l,mul:j,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:b,random:function(t,n=1){let e,a,i,o,u,s,c=r.Ov;do{e=2*c()-1,a=2*c()-1,u=e*e+a*a}while(u>=1);do{i=2*c()-1,o=2*c()-1,s=i*i+o*o}while(s>=1);let l=Math.sqrt((1-u)/s);return t[0]=n*e,t[1]=n*a,t[2]=n*i*l,t[3]=n*o*l,t},round:f,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:i,sqrDist:S,sqrLen:P,squaredDistance:m,squaredLength:g,str:function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},sub:w,subtract:u,transformMat4:_,transformQuat:function(t,n,e){let r=n[0],a=n[1],i=n[2],o=e[0],u=e[1],s=e[2],c=e[3],l=c*r+u*i-s*a,h=c*a+s*r-o*i,f=c*i+o*a-u*r,d=-o*r-u*a-s*i;return t[0]=l*c+d*-o+h*-s-f*-u,t[1]=h*c+d*-u+f*-o-l*-s,t[2]=f*c+d*-s+l*-u-h*-o,t[3]=n[3],t}},Symbol.toStringTag,{value:"Module"}))},56512(t,n,e){function r(t){let n,e,r=[],a=!1;return function(...i){return a&&n===this&&function(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(t[e]!==n[e])return!1;return!0}(i,r)||(e=t.apply(this,i),n=this,r=i,a=!0),e}}e.d(n,{B:()=>r})},76553(t,n,e){function r(t){return t&&"getAtOrigin"in t&&"originOf"in t}e.d(n,{H:()=>r})},13069(t,n,e){e.d(n,{AG:()=>u,lk:()=>a,vD:()=>o,yS:()=>i});const r="randomUUID"in crypto;function a(){if(r)return crypto.randomUUID();let t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;let n=n=>t[n].toString(16).padStart(4,"0");return n(0)+n(1)+"-"+n(2)+"-"+n(3)+"-"+n(4)+"-"+n(5)+n(6)+n(7)}function i(){return`{${a().toUpperCase()}}`}function o(){return`{${a()}}`}function u(t){let n=t.toUpperCase();return t.startsWith("{")?n:`{${n}}`}},4197(t,n,e){e.d(n,{Vj:()=>l,cj:()=>c,jh:()=>i,l5:()=>u,yH:()=>s});var r=e(34275),a=e(9093);function i(t){return t<=1024?Array(t).fill(0):new Float64Array(t)}function o(t){return((0,r.iu)(t)?t.byteLength/8:t.length)<=1024?Array.from(t):new Float64Array(t)}function u(t,n,e){return Array.isArray(t)?t.slice(n,n+e):t.subarray(n,n+e)}function s(t,n){if(0===n.length)return o(t);if(0===t.length)return o(n);let e=i(t.length+n.length);for(let n=0;n<t.length;++n)e[n]=t[n];for(let r=0;r<n.length;++r)e[t.length+r]=n[r];return e}function c(t){return[...t]}function l(t){let n=(0,a.vt)();for(let e=0;e<16;++e)n[e]=t[e];return n}},70328(t,n,e){e.d(n,{BI:()=>q,C:()=>o,DC:()=>f,Ej:()=>y,Ie:()=>j,Jt:()=>A,Lu:()=>_,Ne:()=>x,RF:()=>h,TF:()=>g,VL:()=>M,aI:()=>O,fA:()=>u,gE:()=>c,gX:()=>b,hZ:()=>w,iT:()=>d,is:()=>S,pg:()=>v,uJ:()=>p,vI:()=>I,vY:()=>s,vt:()=>i,w1:()=>l,yr:()=>m}),e(35522);var r=e(5443),a=(e(19419),e(4197));function i(t=C){return[t[0],t[1],t[2],t[3],t[4],t[5]]}function o(t,n){for(let e=0;e<6;e++)t[e]=n[e];return t}function u(t,n,e,r,a,o,u=i()){return u[0]=t,u[1]=n,u[2]=e,u[3]=r,u[4]=a,u[5]=o,u}function s(t,n=i()){return function(t,n,e,r=i()){return w(r,P),function(t,n,e=0,r=n.length/3){let a=t[0],i=t[1],o=t[2],u=t[3],s=t[4],c=t[5];for(let t=0;t<r;t++)a=Math.min(a,n[e+3*t]),i=Math.min(i,n[e+3*t+1]),o=Math.min(o,n[e+3*t+2]),u=Math.max(u,n[e+3*t]),s=Math.max(s,n[e+3*t+1]),c=Math.max(c,n[e+3*t+2]);t[0]=a,t[1]=i,t[2]=o,t[3]=u,t[4]=s,t[5]=c}(r,t,n,e),r}(t,0,t.length/3,n)}function c(t,n=(0,a.jh)(24)){let[e,r,i,o,u,s]=t;return n[0]=e,n[1]=r,n[2]=i,n[3]=e,n[4]=r,n[5]=s,n[6]=e,n[7]=u,n[8]=i,n[9]=e,n[10]=u,n[11]=s,n[12]=o,n[13]=r,n[14]=i,n[15]=o,n[16]=r,n[17]=s,n[18]=o,n[19]=u,n[20]=i,n[21]=o,n[22]=u,n[23]=s,n}function l(t,n){return isFinite(t[2])||isFinite(t[5])?new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],zmin:t[2],zmax:t[5],spatialReference:n}):new r.A({xmin:t[0],xmax:t[3],ymin:t[1],ymax:t[4],spatialReference:n})}function h(t,n,e=t){e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e[4]=Math.max(t[4],n[4]),e[5]=Math.max(t[5],n[5])}function f(t,n){t[0]=Math.min(t[0],n[0]),t[1]=Math.min(t[1],n[1]),t[3]=Math.max(t[3],n[2]),t[4]=Math.max(t[4],n[3])}function d(t,[n,e,r]){!function(t,n,e,r){t[0]=Math.min(t[0],n),t[1]=Math.min(t[1],e),t[2]=Math.min(t[2],r),t[3]=Math.max(t[3],n),t[4]=Math.max(t[4],e),t[5]=Math.max(t[5],r)}(t,n,e,r)}function M(t){return t[0]>=t[3]?0:t[3]-t[0]}function m(t){return t[1]>=t[4]?0:t[4]-t[1]}function p(t){return t[2]>=t[5]?0:t[5]-t[2]}function g(t){let n=M(t),e=p(t),r=m(t);return n*n+e*e+r*r}function b(t,n=[0,0,0]){return n[0]=t[0]+M(t)/2,n[1]=t[1]+m(t)/2,n[2]=t[2]+p(t)/2,n}function y(t,n=[0,0,0]){return n[0]=M(t),n[1]=m(t),n[2]=p(t),n}function v(t,n){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n}function _(t,n){return n[0]=t[3],n[1]=t[4],n[2]=t[5],n}function x(t,n,e=t){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e!==t&&(e[3]=t[3],e[4]=t[4],e[5]=t[5]),e}function I(t,n,e=t){return e[3]=n[0],e[4]=n[1],e[5]=n[2],e!==t&&(e[0]=t[0],e[1]=t[1],e[2]=t[2]),t}function w(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t}function j(t){return t?w(t,P):i(P)}function A(t,n){return t[0]=n[0],t[1]=n[1],t[2]=-1/0,t[3]=n[2],t[4]=n[3],t[5]=1/0,t}function q(t,n,e,r,a){return t[0]=n,t[1]=e,t[2]=-1/0,t[3]=r,t[4]=a,t[5]=1/0,t}function S(t){return 6===t.length}function O(t,n,e){if(null==t||null==n)return t===n;if(!S(t)||!S(n))return!1;if(e){for(let r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1}else for(let e=0;e<t.length;e++)if(t[e]!==n[e])return!1;return!0}const P=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];i(),e.d(n,["qv",0,P,"v_",0,C])},71351(t,n,e){e.d(n,{C:()=>h,Cr:()=>f,LV:()=>l,fA:()=>d,kb:()=>M,vt:()=>s});var r=e(4341),a=(e(77690),e(29242)),i=e(35522),o=e(51850),u=e(32114);function s(t){return t?c((0,o.o8)(t.origin),(0,o.o8)(t.direction)):c((0,o.vt)(),(0,o.vt)())}function c(t,n){return{origin:t,direction:n}}function l(t,n){let e=m.get();return e.origin=t,e.direction=n,e}function h(t,n=s()){return d(t.origin,t.direction,n)}function f(t,n,e=s()){return(0,i.C)(e.origin,t),(0,i.Re)(e.direction,n,t),e}function d(t,n,e=s()){return(0,i.C)(e.origin,t),(0,i.C)(e.direction,n),e}function M(t,n){let e=(0,i.$A)(u.rq.get(),(0,i.S8)(u.rq.get(),t.direction),(0,i.Re)(u.rq.get(),n,t.origin));return(0,i.Om)(e,e)}const m=new r.I(()=>s());(0,o.vt)(),(0,o.vt)(),(0,o.vt)(),(0,a.vt)()},32114(t,n,e){e.d(n,{Rc:()=>d,rq:()=>h,Km:()=>f}),e(44208);var r=e(26390),a=e(29242),i=e(9093),o=e(82534),u=e(48163),s=e(51850),c=e(91829);class l{constructor(t){this._create=t,this._items=[],this._itemsPtr=0}get(){return 0===this._itemsPtr&&(0,r.d)(()=>this._reset()),this._itemsPtr>=this._items.length&&this._items.push(this._create()),this._items[this._itemsPtr++]}_reset(){let t=2*this._itemsPtr;this._items.length>t&&(this._items.length=t),this._itemsPtr=0}static createVec2f64(){return new l(u.vt)}static createVec3f64(){return new l(s.vt)}static createVec4f64(){return new l(c.vt)}static createMat3f64(){return new l(a.vt)}static createMat4f64(){return new l(i.vt)}static createQuatf64(){return new l(o.vt)}get test(){}}l.createVec2f64();const h=l.createVec3f64(),f=l.createVec4f64(),d=(l.createMat3f64(),l.createMat4f64());l.createQuatf64()},85648(t,n,e){e.d(n,{n:()=>a});var r=e(84952);function a(t){return i[function(t){return"json"===t.type?"application/json":"blob"===t.type?t.blob.type:function(t){let n=(0,r.Zo)(t);return s[n]||o}(t.url)}(t)]||u}const i={},o="text/plain",u=i[o],s={png:"image/png",jpeg:"image/jpeg",jpg:"image/jpg",bmp:"image/bmp",gif:"image/gif",json:"application/json",txt:"text/plain",xml:"application/xml",svg:"image/svg+xml",zip:"application/zip",pbf:"application/vnd.mapbox-vector-tile",gz:"application/gzip","bin.gz":"application/octet-stream"};for(let t in s)i[s[t]]=t},24212(t,n,e){e.d(n,{$7:()=>s,B:()=>u,M7:()=>h,XF:()=>l,tW:()=>c,w7:()=>o});var r=e(56512),a=e(86211),i=e(16271);function o(t,n){return function(t,n){return n?.mode?n.mode:function(t){return t?f:d}(t).mode}(null==t||(t.hasZ??!1),n)}function u(t,n,e){return e&&e.mode!==n?`${t} only support ${n} elevation mode`:null}function s(t,n,e){return e?.mode===n?`${t} do not support ${n} elevation mode`:null}function c(t,n){return null!=n?.featureExpressionInfo&&"0"!==n.featureExpressionInfo.expression?`${t} do not support featureExpressionInfo`:null}function l(t,n){n&&t.warn(".elevationInfo=",n)}function h(t){return(t?.offset??0)*(0,i.Ao)(t?.unit)}(0,r.B)((t,n,e)=>{if(!t||"decimal-degrees"===n)return 0;let r="unknown"!==n&&n?n:"meters",i=(0,a.mq)(e);return i?(0,a.oU)(t,r,i):0});const f={mode:"absolute-height",offset:0},d={mode:"on-the-ground",offset:null}},49718(t,n,e){e(51850),e(6867).w_},6867(t,n,e){e.d(n,{w_:()=>h});var r=e(58083),a=e(9093),i=e(35522),o=e(51850),u=e(78955),s=e(91829),c=e(71351);class l{constructor(){this.intersector=4}get distance(){return this._distance}get renderDistance(){return this._renderDistance}_init(){this._distance=this._renderDistance=this.target=this.drapedLayerOrder=this.renderPriority=null,this.intersector=4}_setBase(t,n,e,r=null,a=null,i=null){this.intersector=t,this._distance=e,this._renderDistance=r,this.target=n,this.drapedLayerOrder=a,this.renderPriority=i}}class h extends l{get ray(){return this._ray}get distanceInRenderSpace(){return null==this.distance?null:((0,i.hs)(d,this.ray.direction,this.distance),(0,i.Bw)(d))}withinDistance(t){return!!f(this)&&null!=this.distanceInRenderSpace&&this.distanceInRenderSpace<=t}getIntersectionPoint(t){return!!f(this)&&((0,i.hs)(d,this.ray.direction,this.distance),(0,i.WQ)(t,this.ray.origin,d),!0)}getTransformedNormal(t){return(0,i.C)(M,this.normal),M[3]=0,(0,u.Z0)(M,M,this.transformation),(0,i.C)(t,M),(0,i.S8)(t,t)}constructor(t){super(),this.normal=(0,o.vt)(),this.transformation=(0,a.vt)(),this._ray=(0,c.vt)(),this.init(t)}init(t){super._init(),t&&(0,c.C)(t,this._ray)}set(t,n,e,u,s,c,l,h){this._setBase(t,n,e,u,l,h),(0,i.C)(this.normal,s??o.Cb),(0,r.C)(this.transformation,c??a.zK)}copy(t){this._setBase(t.intersector,t.target,t.distance,t.renderDistance,t.drapedLayerOrder,t.renderPriority),(0,c.C)(t.ray,this._ray),(0,i.C)(this.normal,t.normal),(0,r.C)(this.transformation,t.transformation)}}function f(t){return null!=t?.distance&&null!=t?.renderDistance}const d=(0,o.vt)(),M=(0,s.vt)()},78553(t,n,e){e.d(n,{D:()=>i,p:()=>a});var r=e(78888);function a(t){let n=(0,r.Vr)(100*(1-t));return Math.max(0,Math.min(n,100))}function i(t){let n=1-t/100;return Math.max(0,Math.min(n,1))}}}]);
|