@arcgis/core 5.0.0-next.22 → 5.0.0-next.23
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/analysis/DistanceMeasurementAnalysis.d.ts +4 -0
- package/applications/SceneViewer/sceneViewerUtils.d.ts +1 -0
- package/applications/SceneViewer/sceneViewerUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/024104997daea0d74b38.js +1 -0
- package/assets/esri/core/workers/chunks/052ded41dc06c93ec0a7.js +1 -0
- package/assets/esri/core/workers/chunks/05b7720ab6bf0874f27c.js +1 -0
- package/assets/esri/core/workers/chunks/06d52a570d5d44f8c86e.js +1 -0
- package/assets/esri/core/workers/chunks/13b47c217d1e9b61bcbf.js +1 -0
- package/assets/esri/core/workers/chunks/174972870db79189200b.js +1 -0
- package/assets/esri/core/workers/chunks/219876879bc543568bcd.js +1 -0
- package/assets/esri/core/workers/chunks/221691ad0b2912827e14.js +1 -0
- package/assets/esri/core/workers/chunks/231c0b583fa97f2ca675.js +1 -0
- package/assets/esri/core/workers/chunks/274f2b5e6dbc58505142.js +1 -0
- package/assets/esri/core/workers/chunks/2a41283bba2361afa1fd.js +1 -0
- package/assets/esri/core/workers/chunks/2c4218306747f5d15575.js +1 -0
- package/assets/esri/core/workers/chunks/2c7038a7ffaf75344b02.js +1 -0
- package/assets/esri/core/workers/chunks/2de32649f8b0c6404d7c.js +1 -0
- package/assets/esri/core/workers/chunks/{f651c05604eab83aef5f.js → 3266c3392c24ce6cdd83.js} +2 -2
- package/assets/esri/core/workers/chunks/42747a028fc404ac55f4.js +1 -0
- package/assets/esri/core/workers/chunks/443931ac4b4ee5ccb932.js +1 -0
- package/assets/esri/core/workers/chunks/4ab89c990a82c745c0fd.js +1 -0
- package/assets/esri/core/workers/chunks/4b14ee37b5ac50a734f9.js +1 -0
- package/assets/esri/core/workers/chunks/4cda42b94e9cb58dd372.js +1 -0
- package/assets/esri/core/workers/chunks/4ce28c936eaffe57c448.js +1 -0
- package/assets/esri/core/workers/chunks/538ddb267aa328814865.js +1 -0
- package/assets/esri/core/workers/chunks/5b290d18de61789417f9.js +1 -0
- package/assets/esri/core/workers/chunks/5b73c77587772120b209.js +1 -0
- package/assets/esri/core/workers/chunks/60eeeea671a523bb6b15.js +1 -0
- package/assets/esri/core/workers/chunks/6428e2f4fc0a6739cc9e.js +1 -0
- package/assets/esri/core/workers/chunks/69278d08a7d64917f826.js +2 -0
- package/assets/esri/core/workers/chunks/{c1e4e9ab4a543e8b350d.js → 6b8a923fe5f800f703e3.js} +1 -1
- package/assets/esri/core/workers/chunks/6e5d41f51572e3e7cf92.js +1 -0
- package/assets/esri/core/workers/chunks/{7565b382f6b3d2cb46a3.js → 6f3ffc04086bca30e55d.js} +2 -2
- package/assets/esri/core/workers/chunks/70e2804d3710c6af468e.js +2 -0
- package/assets/esri/core/workers/chunks/7749801f30a99b60753e.js +1 -0
- package/assets/esri/core/workers/chunks/{aa78b69219d9a0ef1c54.js → 78fc9a55e620602db1ff.js} +2 -2
- package/assets/esri/core/workers/chunks/800c282a7335b2e6c7cd.js +1 -0
- package/assets/esri/core/workers/chunks/{867a181969eeeb5f1856.js → 838b3ec88785ac7aa31b.js} +1 -1
- package/assets/esri/core/workers/chunks/88aa71f02f43bb069345.js +1 -0
- package/assets/esri/core/workers/chunks/8a8192e6a9fd7a6d8060.js +1 -0
- package/assets/esri/core/workers/chunks/{74a251e7f5be72ca2a5a.js → 8b336a63737e917e50e2.js} +1 -1
- package/assets/esri/core/workers/chunks/8d4cc5f1d07b4aa3aea0.js +1 -0
- package/assets/esri/core/workers/chunks/8f0c53feead87457b7eb.js +1 -0
- package/assets/esri/core/workers/chunks/{4f7b7587d7902355f2a1.js → 93fe46be3c7fe34b5361.js} +1 -1
- package/assets/esri/core/workers/chunks/9461cc37ab3397265270.js +1 -0
- package/assets/esri/core/workers/chunks/9527f1a611557a7af237.js +1 -0
- package/assets/esri/core/workers/chunks/97b01803d0c38541aa08.js +1 -0
- package/assets/esri/core/workers/chunks/9921c8d4487a0f580b93.js +1 -0
- package/assets/esri/core/workers/chunks/9d0f0d055ec25af037e0.js +1 -0
- package/assets/esri/core/workers/chunks/9f0172b83f25ef5f8d40.js +1 -0
- package/assets/esri/core/workers/chunks/9f6d82ce8f680abb79bb.js +1 -0
- package/assets/esri/core/workers/chunks/a4f492aa5444e6381063.js +1 -0
- package/assets/esri/core/workers/chunks/{d6e0528eacee7ea4c1ce.js → a67c3958d76d10c04fa6.js} +2 -2
- package/assets/esri/core/workers/chunks/a7dc1928d46dd6b69868.js +1 -0
- package/assets/esri/core/workers/chunks/b6d21a2b5c1be8bee57c.js +1 -0
- package/assets/esri/core/workers/chunks/{ce16489cf7eb0d78c741.js → be631029691d9a320cb5.js} +2 -2
- package/assets/esri/core/workers/chunks/c35a22becf5c470ff6a2.js +1 -0
- package/assets/esri/core/workers/chunks/c5d6b416baf24e74b9ba.js +1 -0
- package/assets/esri/core/workers/chunks/cade149fa19b4d06dd24.js +1 -0
- package/assets/esri/core/workers/chunks/cd1d9f638af5b63a1292.js +1 -0
- package/assets/esri/core/workers/chunks/d21ae4980741be98f948.js +1 -0
- package/assets/esri/core/workers/chunks/d32aad968798948946e4.js +1 -0
- package/assets/esri/core/workers/chunks/{0f735b0dec173142f3b6.js → d9251c3c85c3ddd242c8.js} +2 -2
- package/assets/esri/core/workers/chunks/e0369ce0d729c9656488.js +1 -0
- package/assets/esri/core/workers/chunks/e2d2a55aedd3ce9cb47b.js +1 -0
- package/assets/esri/core/workers/chunks/e3c8fac5fe638d548e34.js +1 -0
- package/assets/esri/core/workers/chunks/e45940d342b18983a5ef.js +1 -0
- package/assets/esri/core/workers/chunks/{16f841f12b32d8a500a9.js → fa4f788abfbfd3dee882.js} +1 -1
- package/assets/esri/core/workers/chunks/fbbf25629e0dab486887.js +1 -0
- package/config.js +1 -1
- package/interfaces.d.ts +355 -73
- package/kernel.js +1 -1
- package/layers/VideoLayer.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/support/SubtypeSublayer.js +1 -1
- package/package.json +6 -6
- package/support/revision.js +1 -1
- package/unionTypes.d.ts +0 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementAreaVisualization.js +1 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
- package/views/2d/analysis/AreaMeasurement/utils.js +5 -0
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -0
- package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
- package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -0
- package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
- package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
- package/views/3d/analysis/Dimension/types.d.ts +3 -0
- package/views/3d/analysis/Dimension/types.js +5 -0
- package/views/3d/analysis/DirectLineMeasurement/types.d.ts +4 -0
- package/views/3d/analysis/DirectLineMeasurement/types.js +5 -0
- package/views/3d/analysis/LineOfSight/types.d.ts +3 -0
- package/views/3d/analysis/LineOfSight/types.js +5 -0
- package/views/3d/analysis/Slice/types.d.ts +3 -0
- package/views/3d/analysis/Slice/types.js +5 -0
- package/views/3d/analysis/Viewshed/types.d.ts +3 -0
- package/views/3d/analysis/Viewshed/types.js +5 -0
- package/views/3d/analysis/VolumeMeasurement/types.d.ts +3 -0
- package/views/3d/analysis/VolumeMeasurement/types.js +5 -0
- package/views/3d/support/popupHitTest.js +1 -1
- package/views/3d/terrain/TerrainSurface.js +1 -1
- package/views/3d/terrain/Tile.js +1 -1
- package/views/VideoView.js +1 -1
- package/views/analysis/AreaMeasurement/types.d.ts +4 -0
- package/views/analysis/AreaMeasurement/types.js +5 -0
- package/views/analysis/DistanceMeasurement/types.d.ts +4 -0
- package/views/analysis/DistanceMeasurement/types.js +5 -0
- package/views/analysis/types.d.ts +3 -0
- package/views/analysis/types.js +5 -0
- package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/FeatureTable/FieldColumn.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/03ed15ba64f1679b3d48.js +0 -1
- package/assets/esri/core/workers/chunks/04bac7bb3f794b33e2e4.js +0 -1
- package/assets/esri/core/workers/chunks/092d72caf3269e696d1c.js +0 -1
- package/assets/esri/core/workers/chunks/1466ab7bd500ba7a4025.js +0 -1
- package/assets/esri/core/workers/chunks/1beee2932154db83f79d.js +0 -1
- package/assets/esri/core/workers/chunks/1cae81089b50b7e43d70.js +0 -1
- package/assets/esri/core/workers/chunks/1fcd4d90a99e85d35dd2.js +0 -1
- package/assets/esri/core/workers/chunks/21d7f42c2033de987b97.js +0 -1
- package/assets/esri/core/workers/chunks/24ff9dad3fb64ab54970.js +0 -1
- package/assets/esri/core/workers/chunks/26282c67d2b066a76881.js +0 -1
- package/assets/esri/core/workers/chunks/2d3e7b41b225d905c7f4.js +0 -1
- package/assets/esri/core/workers/chunks/30a631c39c9372797b92.js +0 -1
- package/assets/esri/core/workers/chunks/388873be1dca91ccbc9d.js +0 -1
- package/assets/esri/core/workers/chunks/3a457e718a901a45902e.js +0 -2
- package/assets/esri/core/workers/chunks/44e08b49898a8fcbe031.js +0 -1
- package/assets/esri/core/workers/chunks/4731f507149940dde534.js +0 -1
- package/assets/esri/core/workers/chunks/4d0e099f34639cda3a9b.js +0 -1
- package/assets/esri/core/workers/chunks/5a6b487b70ca85a45f57.js +0 -1
- package/assets/esri/core/workers/chunks/5b5f1f22de985dc6bbc0.js +0 -1
- package/assets/esri/core/workers/chunks/5c82b17f9990e6cd7d0b.js +0 -1
- package/assets/esri/core/workers/chunks/61bb39597ccf89f99a72.js +0 -1
- package/assets/esri/core/workers/chunks/67bc5b87fd61095689d4.js +0 -1
- package/assets/esri/core/workers/chunks/6bf5b3c7129aa14b4fc6.js +0 -1
- package/assets/esri/core/workers/chunks/755e2ecd20b6bd1909be.js +0 -1
- package/assets/esri/core/workers/chunks/768e1ad2f06fdc9d5ef8.js +0 -1
- package/assets/esri/core/workers/chunks/7a957f2bca1438732338.js +0 -1
- package/assets/esri/core/workers/chunks/809a9055da28c8fa58b0.js +0 -1
- package/assets/esri/core/workers/chunks/8bbae8ac586e5c0819d2.js +0 -1
- package/assets/esri/core/workers/chunks/8cd03b54b2859b52fb81.js +0 -1
- package/assets/esri/core/workers/chunks/8f85039d76f03fbdd27a.js +0 -1
- package/assets/esri/core/workers/chunks/93f706acaa812bb3ac70.js +0 -1
- package/assets/esri/core/workers/chunks/976dd80e318266ab4c2c.js +0 -1
- package/assets/esri/core/workers/chunks/9a20be3b02c9d6349b8d.js +0 -1
- package/assets/esri/core/workers/chunks/9dae3e4e34096b3d82d7.js +0 -1
- package/assets/esri/core/workers/chunks/9e5e05d6430712b0b1bc.js +0 -1
- package/assets/esri/core/workers/chunks/a0b0fe0d99df20fa9076.js +0 -1
- package/assets/esri/core/workers/chunks/a987731d1b5449d8fb0c.js +0 -1
- package/assets/esri/core/workers/chunks/ad9606164c694af0c61f.js +0 -1
- package/assets/esri/core/workers/chunks/b0e52c3775f05aaf7ff6.js +0 -1
- package/assets/esri/core/workers/chunks/bfd3d81e8e148be99686.js +0 -1
- package/assets/esri/core/workers/chunks/cbc5131723cbe29cb88f.js +0 -1
- package/assets/esri/core/workers/chunks/ce00509970e7e6eacbdf.js +0 -1
- package/assets/esri/core/workers/chunks/cec95ed69c86758d95ec.js +0 -1
- package/assets/esri/core/workers/chunks/d391bfbaf0e790cd10d6.js +0 -2
- package/assets/esri/core/workers/chunks/d622fb553babd515a21f.js +0 -1
- package/assets/esri/core/workers/chunks/ddb55435adeda1e2a1bf.js +0 -1
- package/assets/esri/core/workers/chunks/e5a9c37de44508e9733b.js +0 -1
- package/assets/esri/core/workers/chunks/e5b42ddec8e424602e03.js +0 -1
- package/assets/esri/core/workers/chunks/eaabb5b010b7bb850b0a.js +0 -1
- package/assets/esri/core/workers/chunks/eafc4da265469e9e5e0b.js +0 -1
- package/assets/esri/core/workers/chunks/eb1b582a73111c8556c1.js +0 -1
- package/assets/esri/core/workers/chunks/f594df2f5ce6ca41a254.js +0 -1
- package/assets/esri/core/workers/chunks/f64037a88ab03662dc2a.js +0 -1
- package/assets/esri/core/workers/chunks/f888849b0236cc0d6f50.js +0 -1
- package/assets/esri/core/workers/chunks/fbcc4cbb221c0fbb90d4.js +0 -1
- package/views/2d/analysis/AreaMeasurement/AreaMeasurementLabelVisualization.js +0 -5
- /package/assets/esri/core/workers/chunks/{0f735b0dec173142f3b6.js.LICENSE.txt → 3266c3392c24ce6cdd83.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d391bfbaf0e790cd10d6.js.LICENSE.txt → 69278d08a7d64917f826.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{7565b382f6b3d2cb46a3.js.LICENSE.txt → 6f3ffc04086bca30e55d.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{3a457e718a901a45902e.js.LICENSE.txt → 70e2804d3710c6af468e.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{aa78b69219d9a0ef1c54.js.LICENSE.txt → 78fc9a55e620602db1ff.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{d6e0528eacee7ea4c1ce.js.LICENSE.txt → a67c3958d76d10c04fa6.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{ce16489cf7eb0d78c741.js.LICENSE.txt → be631029691d9a320cb5.js.LICENSE.txt} +0 -0
- /package/assets/esri/core/workers/chunks/{f651c05604eab83aef5f.js.LICENSE.txt → d9251c3c85c3ddd242c8.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3169,8125,9202],{16346:(e,t,n)=>{n.d(t,{d:()=>c,e:()=>m,s:()=>u});var r=n(55537),s=n(26640),i=n(86211),o=n(78125);const a=new class{getOperatorType(){return 10100}supportsCurves(){return!0}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}execute(e,t,n){return this.executeEx(e,t,n,null,null,Number.NaN)}executeEx(e,t,n,i,o,a){if(e.isEmpty()||t.isEmpty())return Number.NaN;(0,r.c)(e),(0,r.c)(t);const m=e,u=t;Number.isNaN(a)&&(a=Number.POSITIVE_INFINITY);const c=new s.D(a,n).calculate(m,u,i,o);return Number.isFinite(c)?c:Number.NaN}};function m(e,t,n={}){const{unit:r}=n;let s=a.execute((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),null);if(s&&r){const t=(0,o.getSpatialReference)(e);s=(0,i.PQ)(s,t,r)}return s}const u=a.supportsCurves(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:m,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},26640:(e,t,n)=>{n.d(t,{D:()=>N,m:()=>c,s:()=>_,w:()=>f});var r=n(31635),s=n(55537),i=n(88885),o=n(39117),a=n(83661),m=n(79187),u=n(95213);function c(){return{outPoint:new a.P,index:-1,t:Number.NaN}}function l(e,t,n){return{outPoint:e.clone(),index:t,t:n}}function h(e,t,n,r){e.outPoint.assign(t),e.index=n,e.t=r}function g(e,t){e.outPoint.assign(t.outPoint),e.index=t.index,e.t=t.t}function y(e,t,n,r){e.index=n,e.t=r,t.queryCoord2D(e.t,e.outPoint)}function p(e,t){const n=c();g(n,e),g(e,t),g(t,n)}function f(e,t,n,r,i,a){if(e.getGeometryType()===s.G.enumPolygon){for(;r.nextPath();)if(r.hasNextSegment()){const t=r.nextSegment();if(0!==(0,o.H)(e,t.getEndXY(),0))return h(i,t.getEndXY(),-1,Number.NaN),h(a,t.getEndXY(),-1,Number.NaN),!0}r.resetToFirstPath()}if(t.getGeometryType()===s.G.enumPolygon){for(;n.nextPath();)if(n.hasNextSegment()){const e=n.nextSegment();if(0!==(0,o.H)(t,e.getEndXY(),0))return h(i,e.getEndXY(),-1,Number.NaN),h(a,e.getEndXY(),-1,Number.NaN),!0}n.resetToFirstPath()}return!1}function _(e){const t=e.getPathCount(),n=(0,a.d)(e.getSegmentCount(),0);let r=0;for(let s=0;s<t;++s){const t=r+e.getSegmentCountPath(s);for(let i=r,o=e.getPathStart(s);i<t;++i,++o)n[i]=o;r=t}return(0,i.s)(e.getPointCount(),n),n}function v(e,t){return!!Number.isNaN(t)||e<=t}function D(e){const t=new i.a;return t.addEnvelope(e,!1),t}class N{constructor(e,t){if(this.m_env2DgeometryA=null,this.m_env2DgeometryB=null,this.m_progressCounter=0,this.m_progressTracker=t,this.m_maxSqrDistance=e*e,this.m_maxDistance=e,this.m_bIsNearCalc=!1,Number.isNaN(this.m_maxDistance)?this.m_maxDistance=Number.POSITIVE_INFINITY:this.m_maxDistance=e,this.m_maxSqrDistance=this.m_maxDistance*this.m_maxDistance,Number.isFinite(this.m_maxSqrDistance)){let e=Math.sqrt(this.m_maxSqrDistance);for(;e<this.m_maxDistance;)this.m_maxSqrDistance*=1+Number.EPSILON,e=Math.sqrt(this.m_maxSqrDistance)}}calculate(e,t,n,r){if((e.getGeometryType()!==u.P.type||t.getGeometryType()!==u.P.type)&&(this.m_env2DgeometryA=new m.Envelope2D,this.m_env2DgeometryB=new m.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!v(this.m_env2DgeometryA.distanceFromEnvelope(this.m_env2DgeometryB),this.m_maxDistance)))return Number.POSITIVE_INFINITY;const s=l(new a.P,(0,a.j)(),Number.NaN),i=l(new a.P,(0,a.j)(),Number.NaN),o=this._ExecuteBruteForce(e,t,s,i);return v(o,this.m_maxDistance)?(null!==n&&g(n,s),null!==r&&g(r,i),o):Number.POSITIVE_INFINITY}isNear(e,t){if(this.m_bIsNearCalc=!0,e.isEmpty()||t.isEmpty())return!1;if(e===t)return!0;let n=!0;if(e.getGeometryType()!==u.P.type&&e.getGeometryType()!==u.E.type||t.getGeometryType()!==u.P.type&&t.getGeometryType()!==u.E.type||(n=!1),n){if(this.m_env2DgeometryA=new m.Envelope2D,this.m_env2DgeometryB=new m.Envelope2D,e.queryEnvelope(this.m_env2DgeometryA),t.queryEnvelope(this.m_env2DgeometryB),!(this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)>this.m_maxSqrDistance))return!0;if(this.m_env2DgeometryA.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>this.m_maxSqrDistance)return!1}const r=l(new a.P,(0,a.j)(),Number.NaN),s=l(new a.P,(0,a.j)(),Number.NaN);return this._ExecuteBruteForce(e,t,r,s)<=this.m_maxDistance}progress_(e=!1){}_ExecuteBruteForce(e,t,n,r){switch(e.getGeometryType()){case s.G.enumPoint:return this.distancePointGeometry(e,t,n,r);case s.G.enumMultiPoint:return this.distanceMultipointGeometry(e,t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeGeometry(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathGeometry(e,t,n,r);default:return Number.NaN}}distancePointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointPoint(e,t,n,r);case s.G.enumMultiPoint:return this.distancePointMultipoint(e,t,n,r);case s.G.enumPolyline:case s.G.enumPolygon:return this.distancePointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distancePointEnvelope(e,t,n,r);default:return Number.NaN}}distancePointPoint(e,t,n,r){const s=e.getXY(),i=t.getXY();return h(n,s,0,0),h(r,i,0,0),Math.sqrt(a.P.sqrDistance(s,i))}distancePointMultipoint(e,t,n,r){const s=e.getXY();let i=this.m_maxSqrDistance,o=i,m=!1;const u=t.getPointCount(),c=new a.P;for(let e=0;e<u;++e)if(t.queryXY(e,c),o=a.P.sqrDistance(s,c),this.m_bIsNearCalc){if(o<=i)return 0}else if(!(o>i)&&(!m&&o===i||o<i)&&(i=o,h(n,s,0,0),h(r,c,e,0),m=!0,0===i))return 0;return m?Math.sqrt(i):Number.POSITIVE_INFINITY}distancePointMultipath(e,t,n,r){const i=!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB),u=e.getXY();if(!i&&t.getGeometryType()===s.G.enumPolygon&&0!==(0,o.H)(t,u,0))return h(n,u,0,0),h(r,u,-1,Number.NaN),0;t.getImpl().getAccelerators();let c=this.m_maxSqrDistance,l=c,g=-1;const y=new m.Envelope2D,p=t.querySegmentIterator();let f=!1;for(;p.nextPath();)for(;p.hasNextSegment();){const e=p.nextSegment();e.queryEnvelope(y);const t=y.sqrDistance(u);if(t>c)continue;if(!this.m_bIsNearCalc&&f&&t===c)continue;g=e.getClosestCoordinate(u,!1);const s=e.getCoord2D(g);if(l=a.P.sqrDistance(u,s),this.m_bIsNearCalc){if(l<=c)return 0}else if(!(l>c)&&(!f||l<c)&&(c=l,h(n,u,0,0),h(r,s,p.getStartPointIndex(),g),f=!0,0===c))return 0}return f?Math.sqrt(c):Number.POSITIVE_INFINITY}distancePointEnvelope(e,t,n,r){const s=e.getXY();h(n,s,0,0),h(r,s,-1,Number.NaN);const i=t.asEnvelope2D();return i.contains(s)?0:Math.sqrt(i.sqrDistance(s,r.outPoint))}distanceMultipointGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipoint(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:return this.distanceMultipointMultipoint(e,t,n,r,1,1);case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipointMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipointMultipath(e,D(t),n,r);default:return Number.NaN}}distanceMultipointMultipoint(e,t,n,s,i,o){const m={stack:[],error:void 0,hasError:!1};try{if(this.m_bIsNearCalc&&1===i&&1===o){const r=Math.trunc((0,a.s)(Math.sqrt(e.getPointCount())+1,1,(0,a.i)())),i=Math.trunc((0,a.s)(Math.sqrt(t.getPointCount())+1,1,(0,a.i)()));if((r>=4||i>=4)&&this.distanceMultipointMultipoint(e,t,n,s,r,i)<=this.m_maxSqrDistance)return 0}let u=this.m_maxSqrDistance;const c=[e],l=[t],g=this.swapGeometriesIfBGtA(c,l);g&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),o=(0,a.c)(i,i=o),p(n,s)),(0,r.mS)(m,(0,a.h)(()=>{p(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!g),!1);const y=c[0].getImpl(),f=l[0].getImpl(),_=y.getPointCount(),v=f.getPointCount(),D=v>1;let N=!1;const P=new a.P,x=new a.P;for(let e=0;e<_;e+=i){if(y.queryXY(e,P),D){const e=this.m_env2DgeometryB.sqrDistance(P);if(this.m_bIsNearCalc){if(e>u)continue;if(this.m_env2DgeometryB.sqrMaxMinDistance(P)<=u)return 0}else if(e>=u)continue}for(let t=0;t<v;t+=o){f.queryXY(t,x);const r=a.P.sqrDistance(P,x);if(this.m_bIsNearCalc){if(r<=u)return 0}else if(!(r>u||N&&r===u)&&(!N||r<u)&&(h(n,P,e,0),h(s,x,t,0),N=!0,u=r,0===u))return N?Math.sqrt(u):Number.POSITIVE_INFINITY}}return N?Math.sqrt(u):Number.POSITIVE_INFINITY}catch(e){m.error=e,m.hasError=!0}finally{(0,r.hk)(m)}}distanceMultipointMultipath(e,t,n,r){let i=!!this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)&&t.getGeometryType()===s.G.enumPolygon;const u=t.querySegmentIterator();u.stripAttributes();const c=new m.Envelope2D,l=new a.P;let g=this.m_maxSqrDistance;const y=e.getImpl(),p=y.getPointCount(),f=p>1;let _=!1;for(;u.nextPath();)for(;u.hasNextSegment();){const e=u.nextSegment();if(e.queryLooseEnvelope(c),f){const e=c.sqrDistanceEnvelope(this.m_env2DgeometryA,null,null);if(this.m_bIsNearCalc){if(e>g)continue}else if(e>g||_&&e===g)continue}for(let s=0;s<p;s++){if(y.queryXY(s,l),i&&0!==(0,o.H)(t,l,0))return h(n,l,-1,Number.NaN),h(r,l,s,0),0;{const e=c.sqrDistance(l);if(this.m_bIsNearCalc){if(e>g)continue}else if(e>g)continue}const a=e.getClosestCoordinate(l,!1),m=e.getCoord2D(a);l.subThis(m);const p=l.sqrLength();if(this.m_bIsNearCalc){if(p<=g)return 0}else if(!(p>g)&&(!_||p<g)&&(g=p,h(n,y.getXY(s),s,0),h(r,m,u.getStartPointIndex(),a),_=!0,0===g))return 0}i=!1}return _?Math.sqrt(g):Number.POSITIVE_INFINITY}distanceEnvelopeGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:return this.distancePointEnvelope(t,e,r,n);case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,D(e),r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(D(e),t,n,r);case s.G.enumEnvelope:return this.distanceEnvelopeEnvelope(e,t,n,r);default:return Number.NaN}}distanceEnvelopeEnvelope(e,t,n,r){n.t=Number.NaN,n.index=-1,r.t=Number.NaN,r.index=-1;const s=e.asEnvelope2D(),i=t.asEnvelope2D();return Math.sqrt(s.sqrDistanceEnvelope(i,n.outPoint,r.outPoint))}distanceMultipathGeometry(e,t,n,r){switch(t.getGeometryType()){case s.G.enumPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distancePointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumMultiPoint:{this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB);const s=this.distanceMultipointMultipath(t,e,r,n);return this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),s}case s.G.enumPolyline:case s.G.enumPolygon:return this.distanceMultipathMultipath(e,t,n,r);case s.G.enumEnvelope:return this.distanceMultipathMultipath(e,D(t),n,r);default:return Number.NaN}}distanceMultipathMultipath(e,t,n,s){const o={stack:[],error:void 0,hasError:!1};try{const u=[e],l=[t],h=this.swapGeometriesIfAGtB(u,l);h&&(this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB),p(n,s)),(0,r.mS)(o,(0,a.h)(()=>{p(n,s),this.m_env2DgeometryB=(0,a.c)(this.m_env2DgeometryA,this.m_env2DgeometryA=this.m_env2DgeometryB)},!h),!1);const v=u[0],D=l[0],N=v.querySegmentIterator();N.stripAttributes();const P=D.querySegmentIterator();if(P.stripAttributes(),this.m_bIsNearCalc&&this.m_env2DgeometryA.sqrMaxMinDistanceEnvelope(this.m_env2DgeometryB)<=this.m_maxSqrDistance)return 0;if(this.m_bIsNearCalc){const e=Math.trunc((0,a.s)(Math.sqrt(v.getPointCount())+1,1,(0,a.i)())),t=Math.trunc((0,a.s)(Math.sqrt(v.getPointCount())+1,1,(0,a.i)()));if(this.distanceMultipointMultipoint(v,D,n,s,e,t)<=this.m_maxSqrDistance)return 0}if(this.m_env2DgeometryA.isIntersecting(this.m_env2DgeometryB)){const e=c(),t=c();if(f(v,D,N,P,e,t))return g(n,e),g(s,t),0}const x=_(v),I=[],G=new i.S,d=new m.Envelope2D,M=new m.Envelope2D,E=new m.Envelope2D;let q=this.m_maxSqrDistance,C=!0,b=!1;for(let e=0,t=x.length;e<t;++e){v.querySegment(x[e],G,!0);const t=G.get();if(t.queryEnvelope(d),!(d.sqrDistanceEnvelope(this.m_env2DgeometryB,null,null)>q)){if(this.m_bIsNearCalc&&d.sqrMaxDistanceEnvelope(this.m_env2DgeometryB)<=q)return 0;for(;P.nextPath();){if(this.progress_(),C)D.queryPathEnvelope(P.getPathIndex(),E),I[P.getPathIndex()]=E.clone();else if(d.sqrDistanceEnvelope(I[P.getPathIndex()],null,null)>q)continue;for(;P.hasNextSegment();){const r=P.nextSegment();if(r.queryEnvelope(M),d.sqrDistanceEnvelope(M,null,null)<=q){const i=!d.isIntersecting(M),o=[0],a=[0];let m=t.distance(r,i,o,a);if(m*=m,this.m_bIsNearCalc&&m<=this.m_maxSqrDistance)return 0;if(m<q||m===q&&x[e]<n.index){if(b=!0,y(n,t,x[e],o[0]),y(s,r,P.getStartPointIndex(),a[0]),0===m)return 0;q=m}}}}P.resetToFirstPath(),C=!1}}return b?Math.sqrt(q):Number.POSITIVE_INFINITY}catch(e){o.error=e,o.hasError=!0}finally{(0,r.hk)(o)}}swapGeometriesIfAGtB(e,t){return(0,s.v)(e[0])>(0,s.v)(t[0])&&(t[0]=(0,a.c)(e[0],e[0]=t[0]),!0)}swapGeometriesIfBGtA(e,t){return this.swapGeometriesIfAGtB(t,e)}}},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class s extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},77038:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>r.e,supportsCurves:()=>r.s});var r=n(16346);n(86211),n(78125)},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>D,fromGeometry:()=>v,fromMultipoint:()=>N,fromPoint:()=>P,fromPolygon:()=>x,fromPolyline:()=>I,fromSpatialReference:()=>G,getSpatialReference:()=>_,toExtent:()=>M,toGeometry:()=>d,toMultipoint:()=>E,toPoint:()=>q,toPolygon:()=>C,toPolyline:()=>b});var r=n(83661),s=(n(79187),n(55537)),i=n(95213),o=n(88885),a=n(39117),m=n(5443),u=n(48526),c=n(86738),l=n(39829),h=n(82799),g=(n(90293),n(83299));const y="_gxVersion",p=2,f=1;function _(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function v(e){switch(e.type){case"point":return P(e);case"multipoint":return N(e);case"polyline":return I(e);case"polygon":return x(e);case"extent":return D(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function D(e){if(!e.getCacheValue(y)){const t=new i.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(p,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(f,0,e.zmin,e.zmax),e.setCacheValue(y,t)}return e.getCacheValue(y)}function N(e){if(!e.getCacheValue(y)){const t=new o.M,n=new i.P,r=e.points,s=e.hasM,a=e.hasZ,m=a?3:2;for(let e=0,i=r.length;e<i;e++){const i=r[e];n.setXYCoords(i[0],i[1]),a&&n.setZ(i[2]??0),s&&n.setM(i[m]??NaN),t.add(n)}e.setCacheValue(y,t)}return e.getCacheValue(y)}function P(e){if(!e.getCacheValue(y)){const t=new i.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(y,t)}return e.getCacheValue(y)}function x(e){if(!e.getCacheValue(y)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,i=(0,g.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(y,i)}return e.getCacheValue(y)}function I(e){if(!e.getCacheValue(y)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,i=(0,g.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(y,i)}return e.getCacheValue(y)}function G(e){if(e.wkid)return(0,a.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,a.b)(t):null}function d(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return q(e,t);case s.G.enumEnvelope:return M(e,t);case s.G.enumMultiPoint:return E(e,t);case s.G.enumPolyline:return b(e,t);case s.G.enumPolygon:return C(e,t)}return null}function M(e,t){if(e.isEmpty())return null;const n=new m.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(p,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(f,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(y,e),n}function E(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),o=[],a=new i.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),o.push(n)}const m=new u.A({hasM:r,hasZ:s,points:o,spatialReference:t});return m.setCacheValue(y,e),m}function q(e,t){if(e instanceof r.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(y,e),n}function C(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({spatialReference:t,...(0,g.toGeometry)(e,null)});return n.setCacheValue(y,e),n}function b(e,t){if(e.isEmpty())return null;const n=h.A.fromJSON({spatialReference:t,...(0,g.toGeometry)(e,null)});return n.setCacheValue(y,e),n}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3169,5552,8125],{43628:(e,t,n)=>{n.r(t),n.d(t,{accelerateGeometry:()=>r.a,execute:()=>r.e,isValidDE9IM:()=>r.i,supportsCurves:()=>r.s});var r=n(65416);n(78125)},65416:(e,t,n)=>{n.d(t,{a:()=>o,e:()=>i,i:()=>u,r:()=>l,s:()=>c});var r=n(39117),a=n(78125);const s=new class{supportsCurves(){return!0}getOperatorType(){return 1}execute(e,t,n,a,s){return(0,r.aF)(e,t,n,a,s)}isValidDE9IM(e){return 0===(0,r.aG)(e)}accelerateGeometry(e,t,n){return(0,r.aH)(e,t,n)}canAccelerateGeometry(e){return(0,r.aI)(e)}};function o(e){const t=(0,a.getSpatialReference)(e);return s.accelerateGeometry((0,a.fromGeometry)(e),(0,a.fromSpatialReference)(t),1)}function i(e,t,n){return s.execute((0,a.fromGeometry)(e),(0,a.fromGeometry)(t),(0,a.fromSpatialReference)(e.spatialReference),n,null)}function u(e){return s.isValidDE9IM(e)}const c=s.supportsCurves(),l=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:o,execute:i,isValidDE9IM:u,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>a});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class a extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>C,fromGeometry:()=>x,fromMultipoint:()=>M,fromPoint:()=>V,fromPolygon:()=>d,fromPolyline:()=>v,fromSpatialReference:()=>w,getSpatialReference:()=>G,toExtent:()=>R,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>E,toPolygon:()=>_,toPolyline:()=>S});var r=n(83661),a=(n(79187),n(55537)),s=n(95213),o=n(88885),i=n(39117),u=n(5443),c=n(48526),l=n(86738),m=n(39829),f=n(82799),h=(n(90293),n(83299));const p="_gxVersion",y=2,g=1;function G(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function x(e){switch(e.type){case"point":return V(e);case"multipoint":return M(e);case"polyline":return v(e);case"polygon":return d(e);case"extent":return C(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function C(e){if(!e.getCacheValue(p)){const t=new s.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(y,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(g,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function M(e){if(!e.getCacheValue(p)){const t=new o.M,n=new s.P,r=e.points,a=e.hasM,i=e.hasZ,u=i?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),i&&n.setZ(s[2]??0),a&&n.setM(s[u]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function V(e){if(!e.getCacheValue(p)){const t=new s.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function d(e){if(!e.getCacheValue(p)){const{curveRings:t,hasM:n,hasZ:r,rings:a}=e,s=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:a});e.setCacheValue(p,s)}return e.getCacheValue(p)}function v(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:a}=e,s=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:a});e.setCacheValue(p,s)}return e.getCacheValue(p)}function w(e){if(e.wkid)return(0,i.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,i.b)(t):null}function P(e,t){if(e)switch(e.getGeometryType()){case a.G.enumPoint:return E(e,t);case a.G.enumEnvelope:return R(e,t);case a.G.enumMultiPoint:return Z(e,t);case a.G.enumPolyline:return S(e,t);case a.G.enumPolygon:return _(e,t)}return null}function R(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(y,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(g,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(p,e),n}function Z(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),a=n.hasZ(),o=[],i=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,i);const n=[i.getX(),i.getY()];a&&n.push(i.getZ()),r&&n.push(i.getM()),o.push(n)}const u=new c.A({hasM:r,hasZ:a,points:o,spatialReference:t});return u.setCacheValue(p,e),u}function E(e,t){if(e instanceof r.P)return new l.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new l.A({x:e.getX(),y:e.getY(),spatialReference:t}),a=e.getDescription();return a.hasM()&&(n.m=e.getM()),a.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function _(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}function S(e,t){if(e.isEmpty())return null;const n=f.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7561,8018],{8018:(t,e,r)=>{r.r(e),r.d(e,{executeForTopExtents:()=>l});var i=r(5443),o=r(2272),s=r(24645),n=r(57561);async function l(t,e,r){const l=(0,o.Dl)(t),u=await(0,s.$K)(l,n.default.from(e),{...r}),a=u.data.extent;return!a||isNaN(a.xmin)||isNaN(a.ymin)||isNaN(a.xmax)||isNaN(a.ymax)?{count:u.data.count,extent:null}:{count:u.data.count,extent:i.A.fromJSON(a)}}},24645:(t,e,r)=>{r.d(e,{$K:()=>h,KW:()=>c,Yb:()=>y,xs:()=>m});var i=r(11254),o=r(84952),s=r(65864),n=r(17136),l=r(21325),u=r(10536),a=r(58501);const p="Layer does not support extent calculation.";function d(t,e){const r=t.geometry,i=t.toJSON(),o=i;if(null!=r&&(o.geometry=JSON.stringify(r),o.geometryType=(0,s.$B)(r),o.inSR=(0,l.YX)(r.spatialReference)),i.topFilter?.groupByFields&&(o.topFilter.groupByFields=i.topFilter.groupByFields.join(",")),i.topFilter?.orderByFields&&(o.topFilter.orderByFields=i.topFilter.orderByFields.join(",")),i.topFilter&&(o.topFilter=JSON.stringify(o.topFilter)),i.objectIds&&(o.objectIds=i.objectIds.join(",")),i.orderByFields&&(o.orderByFields=i.orderByFields.join(",")),i.outFields&&!(e?.returnCountOnly||e?.returnExtentOnly||e?.returnIdsOnly)?i.outFields.includes("*")?o.outFields="*":o.outFields=i.outFields.join(","):delete o.outFields,i.outSR?o.outSR=(0,l.YX)(i.outSR):r&&i.returnGeometry&&(o.outSR=o.inSR),i.returnGeometry&&delete i.returnGeometry,i.timeExtent){const t=i.timeExtent,{start:e,end:r}=t;null==e&&null==r||(o.time=e===r?e:`${e??"null"},${r??"null"}`),delete i.timeExtent}return o}async function y(t,e,r,i){const o=await g(t,e,"json",i);return(0,a.q)(e,r,o.data),o}async function c(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{objectIds:[]}}:g(t,e,"json",r,{returnIdsOnly:!0})}async function h(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?{data:{count:0,extent:null}}:g(t,e,"json",r,{returnExtentOnly:!0,returnCountOnly:!0}).then(t=>{const e=t.data;if(e.hasOwnProperty("extent"))return t;if(e.features)throw new Error(p);if(e.hasOwnProperty("count"))throw new Error(p);return t})}function m(t,e,r){return null!=e.timeExtent&&e.timeExtent.isEmpty?Promise.resolve({data:{count:0}}):g(t,e,"json",r,{returnIdsOnly:!0,returnCountOnly:!0})}function g(t,e,r,s={},l={}){const a="string"==typeof t?(0,o.An)(t):t,p=e.geometry?[e.geometry]:[];return s.responseType="json",(0,n.el)(p,null,s).then(t=>{const n=t?.[0];null!=n&&((e=e.clone()).geometry=n);const p=(0,u.z)({...a.query,f:r,...l,...d(e,l)});return(0,i.A)((0,o.fj)(a.path,"queryTopFeatures"),{...s,query:{...p,...s.query}})})}},57561:(t,e,r)=>{r.r(e),r.d(e,{default:()=>j});var i,o=r(31635),s=r(66552),n=r(25482),l=r(4718),u=r(91429),a=r(56507),p=r(16930),d=r(65864),y=r(50498),c=r(77696);let h=i=class extends n.o{constructor(t){super(t),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new i({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],h.prototype,"groupByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],h.prototype,"topCount",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],h.prototype,"orderByFields",void 0),h=i=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFilter")],h);const m=h;var g,w=r(79677),F=r(43937);const v=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),S=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let j=class extends((0,c.y)(n.o)){static{g=this}constructor(t){super(t),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10}clone(){return new g((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:!0}})],j.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],j.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],j.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],j.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],j.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],j.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],j.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],j.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],j.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:p.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],j.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],j.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],j.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],j.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],j.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],j.prototype,"start",void 0),(0,o.Cg)([(0,F.K)("start"),(0,F.K)("num")],j.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:v.read},write:{target:"spatialRel",writer:v.write}}})],j.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:w.A,json:{write:!0}})],j.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:m,json:{write:!0}})],j.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:S.read,write:{writer:S.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance}}}}})],j.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],j.prototype,"where",void 0),j=g=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFeaturesQuery")],j),j.from=(0,a.dp)(j)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7561],{57561:(e,t,i)=>{i.r(t),i.d(t,{default:()=>R});var r,o=i(31635),s=i(66552),n=i(25482),l=i(4718),p=i(91429),a=i(56507),d=i(16930),u=i(65864),y=i(50498),h=i(77696);let c=r=class extends n.o{constructor(e){super(e),this.groupByFields=void 0,this.topCount=void 0,this.orderByFields=void 0}clone(){return new r({groupByFields:this.groupByFields,topCount:this.topCount,orderByFields:this.orderByFields})}};(0,o.Cg)([(0,p.MZ)({type:[String],json:{write:!0}})],c.prototype,"groupByFields",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],c.prototype,"topCount",void 0),(0,o.Cg)([(0,p.MZ)({type:[String],json:{write:!0}})],c.prototype,"orderByFields",void 0),c=r=(0,o.Cg)([(0,p.$K)("esri.rest.support.TopFilter")],c);const g=c;var v,w=i(79677),m=i(43937);const C=new s.J({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"}),S=new s.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let R=class extends((0,h.y)(n.o)){static{v=this}constructor(e){super(e),this.cacheHint=void 0,this.distance=void 0,this.geometry=null,this.geometryPrecision=void 0,this.maxAllowableOffset=void 0,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.resultType=null,this.returnGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.start=void 0,this.spatialRelationship="intersects",this.timeExtent=null,this.topFilter=void 0,this.units=null,this.where="1=1"}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10}clone(){return new v((0,l.o8)({cacheHint:this.cacheHint,distance:this.distance,geometry:this.geometry,geometryPrecision:this.geometryPrecision,maxAllowableOffset:this.maxAllowableOffset,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,resultType:this.resultType,returnGeometry:this.returnGeometry,returnZ:this.returnZ,returnM:this.returnM,start:this.start,spatialRelationship:this.spatialRelationship,timeExtent:this.timeExtent,topFilter:this.topFilter,units:this.units,where:this.where}))}};(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"cacheHint",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],R.prototype,"distance",void 0),(0,o.Cg)([(0,p.MZ)({types:y.yR,json:{read:u.rS,write:!0}})],R.prototype,"geometry",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],R.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{write:!0}})],R.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],R.prototype,"num",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],R.prototype,"objectIds",void 0),(0,o.Cg)([(0,p.MZ)({type:[String],json:{write:!0}})],R.prototype,"orderByFields",void 0),(0,o.Cg)([(0,p.MZ)({type:[String],json:{write:!0}})],R.prototype,"outFields",void 0),(0,o.Cg)([(0,p.MZ)({type:d.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],R.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],R.prototype,"resultType",void 0),(0,o.Cg)([(0,p.MZ)({json:{write:!0}})],R.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],R.prototype,"returnM",void 0),(0,o.Cg)([(0,p.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],R.prototype,"returnZ",void 0),(0,o.Cg)([(0,p.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],R.prototype,"start",void 0),(0,o.Cg)([(0,m.K)("start"),(0,m.K)("num")],R.prototype,"writeStart",null),(0,o.Cg)([(0,p.MZ)({type:String,json:{read:{source:"spatialRel",reader:C.read},write:{target:"spatialRel",writer:C.write}}})],R.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,p.MZ)({type:w.A,json:{write:!0}})],R.prototype,"timeExtent",void 0),(0,o.Cg)([(0,p.MZ)({type:g,json:{write:!0}})],R.prototype,"topFilter",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{read:S.read,write:{writer:S.write,overridePolicy(e){return{enabled:null!=e&&null!=this.distance}}}}})],R.prototype,"units",void 0),(0,o.Cg)([(0,p.MZ)({type:String,json:{write:!0}})],R.prototype,"where",void 0),R=v=(0,o.Cg)([(0,p.$K)("esri.rest.support.TopFeaturesQuery")],R),R.from=(0,a.dp)(R)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2372],{62372:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});var n,o=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e={}){var r,t,o=e;o.ready=new Promise((e,n)=>{r=e,t=n});var a,i,s,u=Object.assign({},o),l="./this.program",d="";d=self.location.href,n&&(d=n),d=0!==d.indexOf("blob:")?d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},s=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)},i=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)};var c,h,p=o.print||console.log.bind(console),f=o.printErr||console.error.bind(console);Object.assign(o,u),u=null,o.arguments&&o.arguments,o.thisProgram&&(l=o.thisProgram),o.quit&&o.quit,o.wasmBinary&&(c=o.wasmBinary),"object"!=typeof WebAssembly&&R("no native wasm support detected");var m,v,y,g,w,E,_,b,k=!1;function $(e,r){e||R(r)}function P(){var e=h.buffer;o.HEAP8=m=new Int8Array(e),o.HEAP16=y=new Int16Array(e),o.HEAPU8=v=new Uint8Array(e),o.HEAPU16=g=new Uint16Array(e),o.HEAP32=w=new Int32Array(e),o.HEAPU32=E=new Uint32Array(e),o.HEAPF32=_=new Float32Array(e),o.HEAPF64=b=new Float64Array(e)}var T=[],C=[],F=[];function D(e){T.unshift(e)}function S(e){F.unshift(e)}var A=0,M=null;function j(e){A++,o.monitorRunDependencies&&o.monitorRunDependencies(A)}function O(e){if(A--,o.monitorRunDependencies&&o.monitorRunDependencies(A),0==A&&M){var r=M;M=null,r()}}function R(e){o.onAbort&&o.onAbort(e),f(e="Aborted("+e+")"),k=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw t(r),r}var x,W,z,N=e=>e.startsWith("data:application/octet-stream;base64,");function H(e){if(e==x&&c)return new Uint8Array(c);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}function B(e,r,t){return function(e){return c||"function"!=typeof fetch?Promise.resolve().then(()=>H(e)):fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw"failed to load wasm binary file at '"+e+"'";return r.arrayBuffer()}).catch(()=>H(e))}(e).then(e=>WebAssembly.instantiate(e,r)).then(e=>e).then(t,e=>{f(`failed to asynchronously prepare wasm: ${e}`),R(e)})}N(x="basis_encoder.wasm")||(x=function(e){return o.locateFile?o.locateFile(e,d):d+e}(x));var L=e=>{for(;e.length>0;)e.shift()(o)};function U(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){E[this.ptr+4>>2]=e},this.get_type=function(){return E[this.ptr+4>>2]},this.set_destructor=function(e){E[this.ptr+8>>2]=e},this.get_destructor=function(){return E[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,m[this.ptr+12|0]=e},this.get_caught=function(){return 0!=m[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,m[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=m[this.ptr+13|0]},this.init=function(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)},this.set_adjusted_ptr=function(e){E[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return E[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Gr(this.get_type()))return E[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}o.noExitRuntime;var I={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=I.isAbs(e),t="/"===e.substr(-1);return(e=I.normalizeArray(e.split("/").filter(e=>!!e),!r).join("/"))||r||(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=I.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:e=>{if("/"===e)return"/";var r=(e=(e=I.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},join:function(){var e=Array.prototype.slice.call(arguments);return I.normalize(e.join("/"))},join2:(e,r)=>I.normalize(e+"/"+r)},V=e=>(V=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);R("initRandomDevice")})())(e),q={resolve:function(){for(var e="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var n=t>=0?arguments[t]:ae.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,r=I.isAbs(n)}return(r?"/":"")+(e=I.normalizeArray(e.split("/").filter(e=>!!e),!r).join("/"))||"."},relative:(e,r)=>{function t(e){for(var r=0;r<e.length&&""===e[r];r++);for(var t=e.length-1;t>=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=q.resolve(e).substr(1),r=q.resolve(r).substr(1);for(var n=t(e.split("/")),o=t(r.split("/")),a=Math.min(n.length,o.length),i=a,s=0;s<a;s++)if(n[s]!==o[s]){i=s;break}var u=[];for(s=i;s<n.length;s++)u.push("..");return(u=u.concat(o.slice(i))).join("/")}},Y="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,X=(e,r,t)=>{for(var n=r+t,o=r;e[o]&&!(o>=n);)++o;if(o-r>16&&e.buffer&&Y)return Y.decode(e.subarray(r,o));for(var a="";r<o;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var u=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&e[r++])<65536)a+=String.fromCharCode(i);else{var l=i-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&i)<<6|s)}else a+=String.fromCharCode(i)}return a},G=[],K=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},J=(e,r,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i)),s<=127){if(t>=a)break;r[t++]=s}else if(s<=2047){if(t+1>=a)break;r[t++]=192|s>>6,r[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|63&s}else{if(t+3>=a)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|63&s}}return r[t]=0,t-o};function Z(e,r,t){var n=K(e)+1,o=new Array(n),a=J(e,o,0,o.length);return r&&(o.length=a),o}var Q={ttys:[],init(){},shutdown(){},register(e,r){Q.ttys[e]={input:[],output:[],ops:r},ae.registerDevice(e,Q.stream_ops)},stream_ops:{open(e){var r=Q.ttys[e.node.rdev];if(!r)throw new ae.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,o){if(!e.tty||!e.tty.ops.get_char)throw new ae.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new ae.ErrnoError(29)}if(void 0===s&&0===a)throw new ae.ErrnoError(6);if(null==s)break;a++,r[t+i]=s}return a&&(e.node.timestamp=Date.now()),a},write(e,r,t,n,o){if(!e.tty||!e.tty.ops.put_char)throw new ae.ErrnoError(60);try{for(var a=0;a<n;a++)e.tty.ops.put_char(e.tty,r[t+a])}catch(e){throw new ae.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),a}},default_tty_ops:{get_char:e=>(()=>{if(!G.length){var e=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e)return null;G=Z(e,!0)}return G.shift()})(),put_char(e,r){null===r||10===r?(p(X(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(p(X(e.output,0)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(f(X(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(f(X(e.output,0)),e.output=[])}}},ee=e=>{e=(e=>65536*Math.ceil(e/65536))(e);var r=Vr(65536,e);return r?((e,r)=>(v.fill(0,e,e+r),e))(r,e):0},re={ops_table:null,mount:e=>re.createNode(null,"/",16895,0),createNode(e,r,t,n){if(ae.isBlkdev(t)||ae.isFIFO(t))throw new ae.ErrnoError(63);re.ops_table||(re.ops_table={dir:{node:{getattr:re.node_ops.getattr,setattr:re.node_ops.setattr,lookup:re.node_ops.lookup,mknod:re.node_ops.mknod,rename:re.node_ops.rename,unlink:re.node_ops.unlink,rmdir:re.node_ops.rmdir,readdir:re.node_ops.readdir,symlink:re.node_ops.symlink},stream:{llseek:re.stream_ops.llseek}},file:{node:{getattr:re.node_ops.getattr,setattr:re.node_ops.setattr},stream:{llseek:re.stream_ops.llseek,read:re.stream_ops.read,write:re.stream_ops.write,allocate:re.stream_ops.allocate,mmap:re.stream_ops.mmap,msync:re.stream_ops.msync}},link:{node:{getattr:re.node_ops.getattr,setattr:re.node_ops.setattr,readlink:re.node_ops.readlink},stream:{}},chrdev:{node:{getattr:re.node_ops.getattr,setattr:re.node_ops.setattr},stream:ae.chrdev_stream_ops}});var o=ae.createNode(e,r,t,n);return ae.isDir(o.mode)?(o.node_ops=re.ops_table.dir.node,o.stream_ops=re.ops_table.dir.stream,o.contents={}):ae.isFile(o.mode)?(o.node_ops=re.ops_table.file.node,o.stream_ops=re.ops_table.file.stream,o.usedBytes=0,o.contents=null):ae.isLink(o.mode)?(o.node_ops=re.ops_table.link.node,o.stream_ops=re.ops_table.link.stream):ae.isChrdev(o.mode)&&(o.node_ops=re.ops_table.chrdev.node,o.stream_ops=re.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[r]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var n=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=ae.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,ae.isDir(e.mode)?r.size=4096:ae.isFile(e.mode)?r.size=e.usedBytes:ae.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&re.resizeFileStorage(e,r.size)},lookup(e,r){throw ae.genericErrors[44]},mknod:(e,r,t,n)=>re.createNode(e,r,t,n),rename(e,r,t){if(ae.isDir(e.mode)){var n;try{n=ae.lookupNode(r,t)}catch(e){}if(n)for(var o in n.contents)throw new ae.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=t,r.contents[t]=e,r.timestamp=e.parent.timestamp,e.parent=r},unlink(e,r){delete e.contents[r],e.timestamp=Date.now()},rmdir(e,r){var t=ae.lookupNode(e,r);for(var n in t.contents)throw new ae.ErrnoError(55);delete e.contents[r],e.timestamp=Date.now()},readdir(e){var r=[".",".."];for(var t in e.contents)e.contents.hasOwnProperty(t)&&r.push(t);return r},symlink(e,r,t){var n=re.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!ae.isLink(e.mode))throw new ae.ErrnoError(28);return e.link}},stream_ops:{read(e,r,t,n,o){var a=e.node.contents;if(o>=e.node.usedBytes)return 0;var i=Math.min(e.node.usedBytes-o,n);if(i>8&&a.subarray)r.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)r[t+s]=a[o+s];return i},write(e,r,t,n,o,a){if(r.buffer===m.buffer&&(a=!1),!n)return 0;var i=e.node;if(i.timestamp=Date.now(),r.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=r.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=r.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(r.subarray(t,t+n),o),n}if(re.expandFileStorage(i,o+n),i.contents.subarray&&r.subarray)i.contents.set(r.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=r[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(e,r,t){var n=r;if(1===t?n+=e.position:2===t&&ae.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new ae.ErrnoError(28);return n},allocate(e,r,t){re.expandFileStorage(e.node,r+t),e.node.usedBytes=Math.max(e.node.usedBytes,r+t)},mmap(e,r,t,n,o){if(!ae.isFile(e.node.mode))throw new ae.ErrnoError(43);var a,i,s=e.node.contents;if(2&o||s.buffer!==m.buffer){if((t>0||t+r<s.length)&&(s=s.subarray?s.subarray(t,t+r):Array.prototype.slice.call(s,t,t+r)),i=!0,!(a=ee(r)))throw new ae.ErrnoError(48);m.set(s,a)}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(e,r,t,n,o)=>(re.stream_ops.write(e,r,0,n,t,!1),0)}},te=(e,r,t,n)=>{var o=`al ${e}`;i(e,t=>{$(t,`Loading data file "${e}" failed (no arrayBuffer).`),r(new Uint8Array(t)),o&&O()},r=>{if(!t)throw`Loading data file "${e}" failed.`;t()}),o&&j()},ne=o.preloadPlugins||[],oe=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},ae={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath(e,r={}){if(!(e=q.resolve(e)))return{path:"",node:null};if((r=Object.assign({follow_mount:!0,recurse_count:0},r)).recurse_count>8)throw new ae.ErrnoError(32);for(var t=e.split("/").filter(e=>!!e),n=ae.root,o="/",a=0;a<t.length;a++){var i=a===t.length-1;if(i&&r.parent)break;if(n=ae.lookupNode(n,t[a]),o=I.join2(o,t[a]),ae.isMountpoint(n)&&(!i||i&&r.follow_mount)&&(n=n.mounted.root),!i||r.follow)for(var s=0;ae.isLink(n.mode);){var u=ae.readlink(o);if(o=q.resolve(I.dirname(o),u),n=ae.lookupPath(o,{recurse_count:r.recurse_count+1}).node,s++>40)throw new ae.ErrnoError(32)}}return{path:o,node:n}},getPath(e){for(var r;;){if(ae.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?`${t}/${r}`:t+r:t}r=r?`${e.name}/${r}`:e.name,e=e.parent}},hashName(e,r){for(var t=0,n=0;n<r.length;n++)t=(t<<5)-t+r.charCodeAt(n)|0;return(e+t>>>0)%ae.nameTable.length},hashAddNode(e){var r=ae.hashName(e.parent.id,e.name);e.name_next=ae.nameTable[r],ae.nameTable[r]=e},hashRemoveNode(e){var r=ae.hashName(e.parent.id,e.name);if(ae.nameTable[r]===e)ae.nameTable[r]=e.name_next;else for(var t=ae.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=ae.mayLookup(e);if(t)throw new ae.ErrnoError(t,e);for(var n=ae.hashName(e.id,r),o=ae.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===e.id&&a===r)return o}return ae.lookup(e,r)},createNode(e,r,t,n){var o=new ae.FSNode(e,r,t,n);return ae.hashAddNode(o),o},destroyNode(e){ae.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>!(49152&~e),flagsToPermissionString(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>ae.ignorePermissions||(!r.includes("r")||292&e.mode)&&(!r.includes("w")||146&e.mode)&&(!r.includes("x")||73&e.mode)?0:2,mayLookup:e=>ae.nodePermissions(e,"x")||(e.node_ops.lookup?0:2),mayCreate(e,r){try{return ae.lookupNode(e,r),20}catch(e){}return ae.nodePermissions(e,"wx")},mayDelete(e,r,t){var n;try{n=ae.lookupNode(e,r)}catch(e){return e.errno}var o=ae.nodePermissions(e,"wx");if(o)return o;if(t){if(!ae.isDir(n.mode))return 54;if(ae.isRoot(n)||ae.getPath(n)===ae.cwd())return 10}else if(ae.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?ae.isLink(e.mode)?32:ae.isDir(e.mode)&&("r"!==ae.flagsToPermissionString(r)||512&r)?31:ae.nodePermissions(e,ae.flagsToPermissionString(r)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=ae.MAX_OPEN_FDS;e++)if(!ae.streams[e])return e;throw new ae.ErrnoError(33)},getStreamChecked(e){var r=ae.getStream(e);if(!r)throw new ae.ErrnoError(8);return r},getStream:e=>ae.streams[e],createStream:(e,r=-1)=>(ae.FSStream||(ae.FSStream=function(){this.shared={}},ae.FSStream.prototype={},Object.defineProperties(ae.FSStream.prototype,{object:{get(){return this.node},set(e){this.node=e}},isRead:{get(){return 1!=(2097155&this.flags)}},isWrite:{get(){return!!(2097155&this.flags)}},isAppend:{get(){return 1024&this.flags}},flags:{get(){return this.shared.flags},set(e){this.shared.flags=e}},position:{get(){return this.shared.position},set(e){this.shared.position=e}}})),e=Object.assign(new ae.FSStream,e),-1==r&&(r=ae.nextfd()),e.fd=r,ae.streams[r]=e,e),closeStream(e){ae.streams[e]=null},chrdev_stream_ops:{open(e){var r=ae.getDevice(e.node.rdev);e.stream_ops=r.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek(){throw new ae.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){ae.devices[e]={stream_ops:r}},getDevice:e=>ae.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push.apply(t,n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),ae.syncFSRequests++,ae.syncFSRequests>1&&f(`warning: ${ae.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=ae.getMounts(ae.root.mount),n=0;function o(e){return ae.syncFSRequests--,r(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,o(e));++n>=t.length&&o(null)}t.forEach(r=>{if(!r.type.syncfs)return a(null);r.type.syncfs(r,e,a)})},mount(e,r,t){var n,o="/"===t,a=!t;if(o&&ae.root)throw new ae.ErrnoError(10);if(!o&&!a){var i=ae.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,ae.isMountpoint(n))throw new ae.ErrnoError(10);if(!ae.isDir(n.mode))throw new ae.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},u=e.mount(s);return u.mount=s,s.root=u,o?ae.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(e){var r=ae.lookupPath(e,{follow_mount:!1});if(!ae.isMountpoint(r.node))throw new ae.ErrnoError(28);var t=r.node,n=t.mounted,o=ae.getMounts(n);Object.keys(ae.nameTable).forEach(e=>{for(var r=ae.nameTable[e];r;){var t=r.name_next;o.includes(r.mount)&&ae.destroyNode(r),r=t}}),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=ae.lookupPath(e,{parent:!0}).node,o=I.basename(e);if(!o||"."===o||".."===o)throw new ae.ErrnoError(28);var a=ae.mayCreate(n,o);if(a)throw new ae.ErrnoError(a);if(!n.node_ops.mknod)throw new ae.ErrnoError(63);return n.node_ops.mknod(n,o,r,t)},create:(e,r)=>(r=void 0!==r?r:438,r&=4095,r|=32768,ae.mknod(e,r,0)),mkdir:(e,r)=>(r=void 0!==r?r:511,r&=1023,r|=16384,ae.mknod(e,r,0)),mkdirTree(e,r){for(var t=e.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{ae.mkdir(n,r)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,r,t)=>(void 0===t&&(t=r,r=438),r|=8192,ae.mknod(e,r,t)),symlink(e,r){if(!q.resolve(e))throw new ae.ErrnoError(44);var t=ae.lookupPath(r,{parent:!0}).node;if(!t)throw new ae.ErrnoError(44);var n=I.basename(r),o=ae.mayCreate(t,n);if(o)throw new ae.ErrnoError(o);if(!t.node_ops.symlink)throw new ae.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,o=I.dirname(e),a=I.dirname(r),i=I.basename(e),s=I.basename(r);if(t=ae.lookupPath(e,{parent:!0}).node,n=ae.lookupPath(r,{parent:!0}).node,!t||!n)throw new ae.ErrnoError(44);if(t.mount!==n.mount)throw new ae.ErrnoError(75);var u,l=ae.lookupNode(t,i),d=q.relative(e,a);if("."!==d.charAt(0))throw new ae.ErrnoError(28);if("."!==(d=q.relative(r,o)).charAt(0))throw new ae.ErrnoError(55);try{u=ae.lookupNode(n,s)}catch(e){}if(l!==u){var c=ae.isDir(l.mode),h=ae.mayDelete(t,i,c);if(h)throw new ae.ErrnoError(h);if(h=u?ae.mayDelete(n,s,c):ae.mayCreate(n,s))throw new ae.ErrnoError(h);if(!t.node_ops.rename)throw new ae.ErrnoError(63);if(ae.isMountpoint(l)||u&&ae.isMountpoint(u))throw new ae.ErrnoError(10);if(n!==t&&(h=ae.nodePermissions(t,"w")))throw new ae.ErrnoError(h);ae.hashRemoveNode(l);try{t.node_ops.rename(l,n,s)}catch(e){throw e}finally{ae.hashAddNode(l)}}},rmdir(e){var r=ae.lookupPath(e,{parent:!0}).node,t=I.basename(e),n=ae.lookupNode(r,t),o=ae.mayDelete(r,t,!0);if(o)throw new ae.ErrnoError(o);if(!r.node_ops.rmdir)throw new ae.ErrnoError(63);if(ae.isMountpoint(n))throw new ae.ErrnoError(10);r.node_ops.rmdir(r,t),ae.destroyNode(n)},readdir(e){var r=ae.lookupPath(e,{follow:!0}).node;if(!r.node_ops.readdir)throw new ae.ErrnoError(54);return r.node_ops.readdir(r)},unlink(e){var r=ae.lookupPath(e,{parent:!0}).node;if(!r)throw new ae.ErrnoError(44);var t=I.basename(e),n=ae.lookupNode(r,t),o=ae.mayDelete(r,t,!1);if(o)throw new ae.ErrnoError(o);if(!r.node_ops.unlink)throw new ae.ErrnoError(63);if(ae.isMountpoint(n))throw new ae.ErrnoError(10);r.node_ops.unlink(r,t),ae.destroyNode(n)},readlink(e){var r=ae.lookupPath(e).node;if(!r)throw new ae.ErrnoError(44);if(!r.node_ops.readlink)throw new ae.ErrnoError(28);return q.resolve(ae.getPath(r.parent),r.node_ops.readlink(r))},stat(e,r){var t=ae.lookupPath(e,{follow:!r}).node;if(!t)throw new ae.ErrnoError(44);if(!t.node_ops.getattr)throw new ae.ErrnoError(63);return t.node_ops.getattr(t)},lstat:e=>ae.stat(e,!0),chmod(e,r,t){var n;if(!(n="string"==typeof e?ae.lookupPath(e,{follow:!t}).node:e).node_ops.setattr)throw new ae.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod(e,r){ae.chmod(e,r,!0)},fchmod(e,r){var t=ae.getStreamChecked(e);ae.chmod(t.node,r)},chown(e,r,t,n){var o;if(!(o="string"==typeof e?ae.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new ae.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(e,r,t){ae.chown(e,r,t,!0)},fchown(e,r,t){var n=ae.getStreamChecked(e);ae.chown(n.node,r,t)},truncate(e,r){if(r<0)throw new ae.ErrnoError(28);var t;if(!(t="string"==typeof e?ae.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new ae.ErrnoError(63);if(ae.isDir(t.mode))throw new ae.ErrnoError(31);if(!ae.isFile(t.mode))throw new ae.ErrnoError(28);var n=ae.nodePermissions(t,"w");if(n)throw new ae.ErrnoError(n);t.node_ops.setattr(t,{size:r,timestamp:Date.now()})},ftruncate(e,r){var t=ae.getStreamChecked(e);if(!(2097155&t.flags))throw new ae.ErrnoError(28);ae.truncate(t.node,r)},utime(e,r,t){var n=ae.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,t)})},open(e,r,t){if(""===e)throw new ae.ErrnoError(44);var n;if(t=void 0===t?438:t,t=64&(r="string"==typeof r?(e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(void 0===r)throw new Error(`Unknown file open mode: ${e}`);return r})(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{e=I.normalize(e);try{n=ae.lookupPath(e,{follow:!(131072&r)}).node}catch(e){}}var a=!1;if(64&r)if(n){if(128&r)throw new ae.ErrnoError(20)}else n=ae.mknod(e,t,0),a=!0;if(!n)throw new ae.ErrnoError(44);if(ae.isChrdev(n.mode)&&(r&=-513),65536&r&&!ae.isDir(n.mode))throw new ae.ErrnoError(54);if(!a){var i=ae.mayOpen(n,r);if(i)throw new ae.ErrnoError(i)}512&r&&!a&&ae.truncate(n,0),r&=-131713;var s=ae.createStream({node:n,path:ae.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),!o.logReadFiles||1&r||(ae.readFiles||(ae.readFiles={}),e in ae.readFiles||(ae.readFiles[e]=1)),s},close(e){if(ae.isClosed(e))throw new ae.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{ae.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(ae.isClosed(e))throw new ae.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new ae.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new ae.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,n,o){if(n<0||o<0)throw new ae.ErrnoError(28);if(ae.isClosed(e))throw new ae.ErrnoError(8);if(1==(2097155&e.flags))throw new ae.ErrnoError(8);if(ae.isDir(e.node.mode))throw new ae.ErrnoError(31);if(!e.stream_ops.read)throw new ae.ErrnoError(28);var a=void 0!==o;if(a){if(!e.seekable)throw new ae.ErrnoError(70)}else o=e.position;var i=e.stream_ops.read(e,r,t,n,o);return a||(e.position+=i),i},write(e,r,t,n,o,a){if(n<0||o<0)throw new ae.ErrnoError(28);if(ae.isClosed(e))throw new ae.ErrnoError(8);if(!(2097155&e.flags))throw new ae.ErrnoError(8);if(ae.isDir(e.node.mode))throw new ae.ErrnoError(31);if(!e.stream_ops.write)throw new ae.ErrnoError(28);e.seekable&&1024&e.flags&&ae.llseek(e,0,2);var i=void 0!==o;if(i){if(!e.seekable)throw new ae.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,r,t,n,o,a);return i||(e.position+=s),s},allocate(e,r,t){if(ae.isClosed(e))throw new ae.ErrnoError(8);if(r<0||t<=0)throw new ae.ErrnoError(28);if(!(2097155&e.flags))throw new ae.ErrnoError(8);if(!ae.isFile(e.node.mode)&&!ae.isDir(e.node.mode))throw new ae.ErrnoError(43);if(!e.stream_ops.allocate)throw new ae.ErrnoError(138);e.stream_ops.allocate(e,r,t)},mmap(e,r,t,n,o){if(2&n&&!(2&o)&&2!=(2097155&e.flags))throw new ae.ErrnoError(2);if(1==(2097155&e.flags))throw new ae.ErrnoError(2);if(!e.stream_ops.mmap)throw new ae.ErrnoError(43);return e.stream_ops.mmap(e,r,t,n,o)},msync:(e,r,t,n,o)=>e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,o):0,munmap:e=>0,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new ae.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e,r={}){if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error(`Invalid encoding type "${r.encoding}"`);var t,n=ae.open(e,r.flags),o=ae.stat(e).size,a=new Uint8Array(o);return ae.read(n,a,0,o,0),"utf8"===r.encoding?t=X(a,0):"binary"===r.encoding&&(t=a),ae.close(n),t},writeFile(e,r,t={}){t.flags=t.flags||577;var n=ae.open(e,t.flags,t.mode);if("string"==typeof r){var o=new Uint8Array(K(r)+1),a=J(r,o,0,o.length);ae.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");ae.write(n,r,0,r.byteLength,void 0,t.canOwn)}ae.close(n)},cwd:()=>ae.currentPath,chdir(e){var r=ae.lookupPath(e,{follow:!0});if(null===r.node)throw new ae.ErrnoError(44);if(!ae.isDir(r.node.mode))throw new ae.ErrnoError(54);var t=ae.nodePermissions(r.node,"x");if(t)throw new ae.ErrnoError(t);ae.currentPath=r.path},createDefaultDirectories(){ae.mkdir("/tmp"),ae.mkdir("/home"),ae.mkdir("/home/web_user")},createDefaultDevices(){ae.mkdir("/dev"),ae.registerDevice(ae.makedev(1,3),{read:()=>0,write:(e,r,t,n,o)=>n}),ae.mkdev("/dev/null",ae.makedev(1,3)),Q.register(ae.makedev(5,0),Q.default_tty_ops),Q.register(ae.makedev(6,0),Q.default_tty1_ops),ae.mkdev("/dev/tty",ae.makedev(5,0)),ae.mkdev("/dev/tty1",ae.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(r=V(e).byteLength),e[--r]);ae.createDevice("/dev","random",t),ae.createDevice("/dev","urandom",t),ae.mkdir("/dev/shm"),ae.mkdir("/dev/shm/tmp")},createSpecialDirectories(){ae.mkdir("/proc");var e=ae.mkdir("/proc/self");ae.mkdir("/proc/self/fd"),ae.mount({mount(){var r=ae.createNode(e,"fd",16895,73);return r.node_ops={lookup(e,r){var t=+r,n=ae.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},r}},{},"/proc/self/fd")},createStandardStreams(){o.stdin?ae.createDevice("/dev","stdin",o.stdin):ae.symlink("/dev/tty","/dev/stdin"),o.stdout?ae.createDevice("/dev","stdout",null,o.stdout):ae.symlink("/dev/tty","/dev/stdout"),o.stderr?ae.createDevice("/dev","stderr",null,o.stderr):ae.symlink("/dev/tty1","/dev/stderr"),ae.open("/dev/stdin",0),ae.open("/dev/stdout",1),ae.open("/dev/stderr",1)},ensureErrnoError(){ae.ErrnoError||(ae.ErrnoError=function(e,r){this.name="ErrnoError",this.node=r,this.setErrno=function(e){this.errno=e},this.setErrno(e),this.message="FS error"},ae.ErrnoError.prototype=new Error,ae.ErrnoError.prototype.constructor=ae.ErrnoError,[44].forEach(e=>{ae.genericErrors[e]=new ae.ErrnoError(e),ae.genericErrors[e].stack="<generic error, no stack>"}))},staticInit(){ae.ensureErrnoError(),ae.nameTable=new Array(4096),ae.mount(re,{},"/"),ae.createDefaultDirectories(),ae.createDefaultDevices(),ae.createSpecialDirectories(),ae.filesystems={MEMFS:re}},init(e,r,t){ae.init.initialized=!0,ae.ensureErrnoError(),o.stdin=e||o.stdin,o.stdout=r||o.stdout,o.stderr=t||o.stderr,ae.createStandardStreams()},quit(){ae.init.initialized=!1;for(var e=0;e<ae.streams.length;e++){var r=ae.streams[e];r&&ae.close(r)}},findObject(e,r){var t=ae.analyzePath(e,r);return t.exists?t.object:null},analyzePath(e,r){try{e=(n=ae.lookupPath(e,{follow:!r})).path}catch(e){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=ae.lookupPath(e,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=I.basename(e),n=ae.lookupPath(e,{follow:!r}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(e){t.error=e.errno}return t},createPath(e,r,t,n){e="string"==typeof e?e:ae.getPath(e);for(var o=r.split("/").reverse();o.length;){var a=o.pop();if(a){var i=I.join2(e,a);try{ae.mkdir(i)}catch(e){}e=i}}return i},createFile(e,r,t,n,o){var a=I.join2("string"==typeof e?e:ae.getPath(e),r),i=oe(n,o);return ae.create(a,i)},createDataFile(e,r,t,n,o,a){var i=r;e&&(e="string"==typeof e?e:ae.getPath(e),i=r?I.join2(e,r):e);var s=oe(n,o),u=ae.create(i,s);if(t){if("string"==typeof t){for(var l=new Array(t.length),d=0,c=t.length;d<c;++d)l[d]=t.charCodeAt(d);t=l}ae.chmod(u,146|s);var h=ae.open(u,577);ae.write(h,t,0,t.length,0,a),ae.close(h),ae.chmod(u,s)}return u},createDevice(e,r,t,n){var o=I.join2("string"==typeof e?e:ae.getPath(e),r),a=oe(!!t,!!n);ae.createDevice.major||(ae.createDevice.major=64);var i=ae.makedev(ae.createDevice.major++,0);return ae.registerDevice(i,{open(e){e.seekable=!1},close(e){n&&n.buffer&&n.buffer.length&&n(10)},read(e,r,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(e){throw new ae.ErrnoError(29)}if(void 0===u&&0===i)throw new ae.ErrnoError(6);if(null==u)break;i++,r[n+s]=u}return i&&(e.node.timestamp=Date.now()),i},write(e,r,t,o,a){for(var i=0;i<o;i++)try{n(r[t+i])}catch(e){throw new ae.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),i}}),ae.mkdev(o,a,i)},forceLoadFile(e){if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!a)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=Z(a(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new ae.ErrnoError(29)}},createLazyFile(e,r,t,n,o){function a(){this.lengthKnown=!1,this.chunks=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var r=e%this.chunkSize,t=e/this.chunkSize|0;return this.getter(t)[r]}},a.prototype.setDataGetter=function(e){this.getter=e},a.prototype.cacheLength=function(){var e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+t+". Status: "+e.status);var r,n=Number(e.getResponseHeader("Content-length")),o=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,a=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,i=1048576;o||(i=n);var s=(e,r)=>{if(e>r)throw new Error("invalid range ("+e+", "+r+") or no bytes requested!");if(r>n-1)throw new Error("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;if(o.open("GET",t,!1),n!==i&&o.setRequestHeader("Range","bytes="+e+"-"+r),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error("Couldn't load "+t+". Status: "+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):Z(o.responseText||"",!0)},u=this;u.setDataGetter(e=>{var r=e*i,t=(e+1)*i-1;if(t=Math.min(t,n-1),void 0===u.chunks[e]&&(u.chunks[e]=s(r,t)),void 0===u.chunks[e])throw new Error("doXHR failed!");return u.chunks[e]}),!a&&n||(i=n=1,n=this.getter(0).length,i=n,p("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0},"undefined"!=typeof XMLHttpRequest){var i=new a;Object.defineProperties(i,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var s={isDevice:!1,contents:i}}else s={isDevice:!1,url:t};var u=ae.createFile(e,r,s,n,o);s.contents?u.contents=s.contents:s.url&&(u.contents=null,u.url=s.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var l={};function d(e,r,t,n,o){var a=e.node.contents;if(o>=a.length)return 0;var i=Math.min(a.length-o,n);if(a.slice)for(var s=0;s<i;s++)r[t+s]=a[o+s];else for(s=0;s<i;s++)r[t+s]=a.get(o+s);return i}return Object.keys(u.stream_ops).forEach(e=>{var r=u.stream_ops[e];l[e]=function(){return ae.forceLoadFile(u),r.apply(null,arguments)}}),l.read=(e,r,t,n,o)=>(ae.forceLoadFile(u),d(e,r,t,n,o)),l.mmap=(e,r,t,n,o)=>{ae.forceLoadFile(u);var a=ee(r);if(!a)throw new ae.ErrnoError(48);return d(e,m,a,r,t),{ptr:a,allocated:!0}},u.stream_ops=l,u}},ie=(e,r)=>e?X(v,e,r):"",se={DEFAULT_POLLMASK:5,calculateAt(e,r,t){if(I.isAbs(r))return r;var n;if(n=-100===e?ae.cwd():se.getStreamFromFD(e).path,0==r.length){if(!t)throw new ae.ErrnoError(44);return n}return I.join2(n,r)},doStat(e,r,t){try{var n=e(r)}catch(e){if(e&&e.node&&I.normalize(r)!==I.normalize(ae.getPath(e.node)))return-54;throw e}w[t>>2]=n.dev,w[t+4>>2]=n.mode,E[t+8>>2]=n.nlink,w[t+12>>2]=n.uid,w[t+16>>2]=n.gid,w[t+20>>2]=n.rdev,z=[n.size>>>0,(W=n.size,+Math.abs(W)>=1?W>0?+Math.floor(W/4294967296)>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],w[t+24>>2]=z[0],w[t+28>>2]=z[1],w[t+32>>2]=4096,w[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return z=[Math.floor(o/1e3)>>>0,(W=Math.floor(o/1e3),+Math.abs(W)>=1?W>0?+Math.floor(W/4294967296)>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],w[t+40>>2]=z[0],w[t+44>>2]=z[1],E[t+48>>2]=o%1e3*1e3,z=[Math.floor(a/1e3)>>>0,(W=Math.floor(a/1e3),+Math.abs(W)>=1?W>0?+Math.floor(W/4294967296)>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],w[t+56>>2]=z[0],w[t+60>>2]=z[1],E[t+64>>2]=a%1e3*1e3,z=[Math.floor(i/1e3)>>>0,(W=Math.floor(i/1e3),+Math.abs(W)>=1?W>0?+Math.floor(W/4294967296)>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],w[t+72>>2]=z[0],w[t+76>>2]=z[1],E[t+80>>2]=i%1e3*1e3,z=[n.ino>>>0,(W=n.ino,+Math.abs(W)>=1?W>0?+Math.floor(W/4294967296)>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],w[t+88>>2]=z[0],w[t+92>>2]=z[1],0},doMsync(e,r,t,n,o){if(!ae.isFile(r.node.mode))throw new ae.ErrnoError(43);if(2&n)return 0;var a=v.slice(e,e+t);ae.msync(r,a,o,t,n)},varargs:void 0,get(){var e=w[+se.varargs>>2];return se.varargs+=4,e},getp:()=>se.get(),getStr:e=>ie(e),getStreamFromFD:e=>ae.getStreamChecked(e)},ue={},le=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function de(e){return this.fromWireType(w[e>>2])}var ce,he,pe,fe={},me={},ve={},ye=e=>{throw new ce(e)},ge=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&ye("Mismatched type converter count");for(var o=0;o<e.length;++o)_e(e[o],n[o])}e.forEach(function(e){ve[e]=r});var o=new Array(r.length),a=[],i=0;r.forEach((e,r)=>{me.hasOwnProperty(e)?o[r]=me[e]:(a.push(e),fe.hasOwnProperty(e)||(fe[e]=[]),fe[e].push(()=>{o[r]=me[e],++i===a.length&&n(o)}))}),0===a.length&&n(o)},we=e=>{for(var r="",t=e;v[t];)r+=he[v[t++]];return r},Ee=e=>{throw new pe(e)};function _e(e,r,t={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,r,t={}){var n=r.name;if(e||Ee(`type "${n}" must have a positive integer typeid pointer`),me.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;Ee(`Cannot register type '${n}' twice`)}if(me[e]=r,delete ve[e],fe.hasOwnProperty(e)){var o=fe[e];delete fe[e],o.forEach(e=>e())}}(e,r,t)}var be,ke=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),$e=e=>{Ee(function(e){return e.$$.ptrType.registeredClass.name}(e)+" instance already deleted")},Pe=!1,Te=e=>{},Ce=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},Fe=(e,r,t)=>{if(r===t)return e;if(void 0===t.baseClass)return null;var n=Fe(e,r,t.baseClass);return null===n?null:t.downcast(n)},De={},Se=[],Ae=()=>{for(;Se.length;){var e=Se.pop();e.$$.deleteScheduled=!1,e.delete()}},Me={},je=(e,r)=>(r.ptrType&&r.ptr||ye("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!=!!r.smartPtr&&ye("Both smartPtrType and smartPtr must be specified"),r.count={value:1},Oe(Object.create(e,{$$:{value:r}})));var Oe=e=>"undefined"==typeof FinalizationRegistry?(Oe=e=>e,e):(Pe=new FinalizationRegistry(e=>{Ce(e.$$)}),Oe=e=>{var r=e.$$;if(r.smartPtr){var t={$$:r};Pe.register(e,t,e)}return e},Te=e=>Pe.unregister(e),Oe(e));function Re(){}var xe=e=>{if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=48&&r<=57?`_${e}`:e};function We(e,r){return e=xe(e),{[e]:function(){return r.apply(this,arguments)}}[e]}var ze=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(){return e[r].overloadTable.hasOwnProperty(arguments.length)||Ee(`Function '${t}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[arguments.length].apply(this,arguments)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},Ne=(e,r,t)=>{o.hasOwnProperty(e)?((void 0===t||void 0!==o[e].overloadTable&&void 0!==o[e].overloadTable[t])&&Ee(`Cannot register public name '${e}' twice`),ze(o,e,e),o.hasOwnProperty(t)&&Ee(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),o[e].overloadTable[t]=r):(o[e]=r,void 0!==t&&(o[e].numArguments=t))};function He(e,r,t,n,o,a,i,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=o,this.getActualType=a,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var Be=(e,r,t)=>{for(;r!==t;)r.upcast||Ee(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Le(e,r){if(null===r)return this.isReference&&Ee(`null is not a valid ${this.name}`),0;r.$$||Ee(`Cannot pass "${cr(r)}" as a ${this.name}`),r.$$.ptr||Ee(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass;return Be(r.$$.ptr,t,this.registeredClass)}function Ue(e,r){var t;if(null===r)return this.isReference&&Ee(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;r.$$||Ee(`Cannot pass "${cr(r)}" as a ${this.name}`),r.$$.ptr||Ee(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&Ee(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=Be(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&Ee("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:Ee(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var o=r.clone();t=this.rawShare(t,ur.toHandle(()=>o.delete())),null!==e&&e.push(this.rawDestructor,t)}break;default:Ee("Unsupporting sharing policy")}return t}function Ie(e,r){if(null===r)return this.isReference&&Ee(`null is not a valid ${this.name}`),0;r.$$||Ee(`Cannot pass "${cr(r)}" as a ${this.name}`),r.$$.ptr||Ee(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&Ee(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass;return Be(r.$$.ptr,t,this.registeredClass)}function Ve(e){return this.fromWireType(E[e>>2])}function qe(e,r,t,n,o,a,i,s,u,l,d){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=o,this.pointeeType=a,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=l,this.rawDestructor=d,o||void 0!==r.baseClass?this.toWireType=Ue:n?(this.toWireType=Le,this.destructorFunction=null):(this.toWireType=Ie,this.destructorFunction=null)}var Ye,Xe,Ge=(e,r,t)=>{o.hasOwnProperty(e)||ye("Replacing nonexistant public symbol"),void 0!==o[e].overloadTable&&void 0!==t?o[e].overloadTable[t]=r:(o[e]=r,o[e].argCount=t)},Ke=[],Je=e=>{var r=Ke[e];return r||(e>=Ke.length&&(Ke.length=e+1),Ke[e]=r=Ye.get(e)),r},Ze=(e,r)=>{var t=(e=we(e)).includes("j")?((e,r)=>{var t=[];return function(){return t.length=0,Object.assign(t,arguments),((e,r,t)=>e.includes("j")?((e,r,t)=>{var n=o["dynCall_"+e];return t&&t.length?n.apply(null,[r].concat(t)):n.call(null,r)})(e,r,t):Je(r).apply(null,t))(e,r,t)}})(e,r):Je(r);return"function"!=typeof t&&Ee(`unknown function pointer with signature ${e}: ${r}`),t},Qe=e=>{var r=Lr(e),t=we(r);return Hr(r),t},er=(e,r)=>{var t=[],n={};throw r.forEach(function e(r){n[r]||me[r]||(ve[r]?ve[r].forEach(e):(t.push(r),n[r]=!0))}),new Xe(`${e}: `+t.map(Qe).join([", "]))},rr=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(E[r+4*n>>2]);return t};function tr(e,r){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var t=We(e.name||"unknownFunctionName",function(){});t.prototype=e.prototype;var n=new t,o=e.apply(n,r);return o instanceof Object?o:n}function nr(e,r,t,n,o,a){var i=r.length;i<2&&Ee("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==t,u=!1,l=1;l<r.length;++l)if(null!==r[l]&&void 0===r[l].destructorFunction){u=!0;break}var d="void"!==r[0].name,c="",h="";for(l=0;l<i-2;++l)c+=(0!==l?", ":"")+"arg"+l,h+=(0!==l?", ":"")+"arg"+l+"Wired";var p=`\n return function ${xe(e)}(${c}) {\n if (arguments.length !== ${i-2}) {\n throwBindingError('function ${e} called with ' + arguments.length + ' arguments, expected ${i-2}');\n }`;u&&(p+="var destructors = [];\n");var f=u?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[Ee,n,o,le,r[0],r[1]];for(s&&(p+="var thisWired = classParam.toWireType("+f+", this);\n"),l=0;l<i-2;++l)p+="var arg"+l+"Wired = argType"+l+".toWireType("+f+", arg"+l+"); // "+r[l+2].name+"\n",m.push("argType"+l),v.push(r[l+2]);if(s&&(h="thisWired"+(h.length>0?", ":"")+h),p+=(d||a?"var rv = ":"")+"invoker(fn"+(h.length>0?", ":"")+h+");\n",u)p+="runDestructors(destructors);\n";else for(l=s?1:2;l<r.length;++l){var y=1===l?"thisWired":"arg"+(l-2)+"Wired";null!==r[l].destructorFunction&&(p+=y+"_dtor("+y+"); // "+r[l].name+"\n",m.push(y+"_dtor"),v.push(r[l].destructorFunction))}return d&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",m.push(p),tr(Function,m).apply(null,v)}var or=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?($(")"==e[e.length-1],"Parentheses for argument names should match."),e.substr(0,r)):e};function ar(){this.allocated=[void 0],this.freelist=[]}var ir=new ar,sr=e=>{e>=ir.reserved&&0===--ir.get(e).refcount&&ir.free(e)},ur={toValue:e=>(e||Ee("Cannot use deleted val. handle = "+e),ir.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return ir.allocate({refcount:1,value:e})}}},lr=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(m[0|e])}:function(e){return this.fromWireType(v[0|e])};case 2:return t?function(e){return this.fromWireType(y[e>>1])}:function(e){return this.fromWireType(g[e>>1])};case 4:return t?function(e){return this.fromWireType(w[e>>2])}:function(e){return this.fromWireType(E[e>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},dr=(e,r)=>{var t=me[e];return void 0===t&&Ee(r+" has unknown type "+Qe(e)),t},cr=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},hr=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(_[e>>2])};case 8:return function(e){return this.fromWireType(b[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},pr=(e,r,t)=>{switch(r){case 1:return t?e=>m[0|e]:e=>v[0|e];case 2:return t?e=>y[e>>1]:e=>g[e>>1];case 4:return t?e=>w[e>>2]:e=>E[e>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},fr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,mr=(e,r)=>{for(var t=e,n=t>>1,o=n+r/2;!(n>=o)&&g[n];)++n;if((t=n<<1)-e>32&&fr)return fr.decode(v.subarray(e,t));for(var a="",i=0;!(i>=r/2);++i){var s=y[e+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},vr=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<2)return 0;for(var n=r,o=(t-=2)<2*e.length?t/2:e.length,a=0;a<o;++a){var i=e.charCodeAt(a);y[r>>1]=i,r+=2}return y[r>>1]=0,r-n},yr=e=>2*e.length,gr=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var o=w[e+4*t>>2];if(0==o)break;if(++t,o>=65536){var a=o-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(o)}return n},wr=(e,r,t)=>{if(void 0===t&&(t=2147483647),t<4)return 0;for(var n=r,o=n+t-4,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a)),w[r>>2]=i,(r+=4)+4>o)break}return w[r>>2]=0,r-n},Er=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},_r={},br=e=>{var r=_r[e];return void 0===r?we(e):r},kr=[],$r=()=>"object"==typeof globalThis?globalThis:Function("return this")(),Pr=e=>{for(var r="",t=0;t<e;++t)r+=(0!==t?", ":"")+"arg"+t;var n="return function emval_allocator_"+e+"(constructor, argTypes, args) {\n var HEAPU32 = getMemory();\n";for(t=0;t<e;++t)n+="var argType"+t+" = requireRegisteredType(HEAPU32[((argTypes)>>2)], 'parameter "+t+"');\nvar arg"+t+" = argType"+t+".readValueFromPointer(args);\nargs += argType"+t+"['argPackAdvance'];\nargTypes += 4;\n";return n+="var obj = new constructor("+r+");\nreturn valueToHandle(obj);\n}\n",new Function("requireRegisteredType","Module","valueToHandle","getMemory",n)(dr,o,ur.toHandle,()=>E)},Tr={},Cr=(e,r)=>r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN,Fr=e=>{var r=(e-h.buffer.byteLength+65535)/65536;try{return h.grow(r),P(),1}catch(e){}},Dr={},Sr=()=>{if(!Sr.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:l||"./this.program"};for(var r in Dr)void 0===Dr[r]?delete e[r]:e[r]=Dr[r];var t=[];for(var r in e)t.push(`${r}=${e[r]}`);Sr.strings=t}return Sr.strings},Ar=e=>e%4==0&&(e%100!=0||e%400==0),Mr=[31,29,31,30,31,30,31,31,30,31,30,31],jr=[31,28,31,30,31,30,31,31,30,31,30,31],Or=(e,r)=>{m.set(e,r)},Rr=function(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=ae.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},xr=365,Wr=146;Object.defineProperties(Rr.prototype,{read:{get:function(){return(this.mode&xr)===xr},set:function(e){e?this.mode|=xr:this.mode&=~xr}},write:{get:function(){return(this.mode&Wr)===Wr},set:function(e){e?this.mode|=Wr:this.mode&=~Wr}},isFolder:{get:function(){return ae.isDir(this.mode)}},isDevice:{get:function(){return ae.isChrdev(this.mode)}}}),ae.FSNode=Rr,ae.createPreloadedFile=(e,r,t,n,o,a,i,s,u,l)=>{var d=r?q.resolve(I.join2(e,r)):e;function c(t){function c(t){l&&l(),s||((e,r,t,n,o,a)=>{ae.createDataFile(e,r,t,n,o,a)})(e,r,t,n,o,u),a&&a(),O()}((e,r,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return ne.forEach(a=>{o||a.canHandle(r)&&(a.handle(e,r,t,n),o=!0)}),o})(t,d,c,()=>{i&&i(),O()})||c(t)}j(),"string"==typeof t?te(t,e=>c(e),i):c(t)},ae.staticInit(),ce=o.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},(()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);he=e})(),pe=o.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(Re.prototype,{isAliasOf(e){if(!(this instanceof Re))return!1;if(!(e instanceof Re))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,o=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return r===n&&t===o},clone(){if(this.$$.ptr||$e(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Oe(Object.create(Object.getPrototypeOf(this),{$$:{value:ke(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||$e(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ee("Object already scheduled for deletion"),Te(this),Ce(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||$e(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ee("Object already scheduled for deletion"),Se.push(this),1===Se.length&&be&&be(Ae),this.$$.deleteScheduled=!0,this}}),o.getInheritedInstanceCount=()=>Object.keys(Me).length,o.getLiveInheritedInstances=()=>{var e=[];for(var r in Me)Me.hasOwnProperty(r)&&e.push(Me[r]);return e},o.flushPendingDeletes=Ae,o.setDelayFunction=e=>{be=e,Se.length&&be&&be(Ae)},Object.assign(qe.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor&&this.rawDestructor(e)},argPackAdvance:8,readValueFromPointer:Ve,deleteObject(e){null!==e&&e.delete()},fromWireType:function(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=((e,r)=>(r=((e,r)=>{for(void 0===r&&Ee("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r})(e,r),Me[r]))(this.registeredClass,r);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?je(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):je(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,i=this.registeredClass.getActualType(r),s=De[i];if(!s)return o.call(this);a=this.isConst?s.constPointerType:s.pointerType;var u=Fe(r,this.registeredClass,a.registeredClass);return null===u?o.call(this):this.isSmartPointer?je(a.registeredClass.instancePrototype,{ptrType:a,ptr:u,smartPtrType:this,smartPtr:e}):je(a.registeredClass.instancePrototype,{ptrType:a,ptr:u})}}),Xe=o.UnboundTypeError=((e,r)=>{var t=We(r,function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t})(Error,"UnboundTypeError"),Object.assign(ar.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),ir.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),ir.reserved=ir.allocated.length,o.count_emval_handles=()=>{for(var e=0,r=ir.reserved;r<ir.allocated.length;++r)void 0!==ir.allocated[r]&&++e;return e};var zr={w:(e,r,t)=>{throw new U(e).init(r,t),e},D:function(e,r,t){se.varargs=t;try{var n=se.getStreamFromFD(e);switch(r){case 0:if((o=se.get())<0)return-28;for(;ae.streams[o];)o++;return ae.createStream(n,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=se.get();return n.flags|=o,0;case 5:return o=se.getp(),y[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return w[Ir()>>2]=28,-1}}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},T:function(e,r){try{var t=se.getStreamFromFD(e);return se.doStat(ae.stat,t.path,r)}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},V:function(e,r,t){se.varargs=t;try{var n=se.getStreamFromFD(e);switch(r){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),a=se.getp();w[a>>2]=o.c_iflag||0,w[a+4>>2]=o.c_oflag||0,w[a+8>>2]=o.c_cflag||0,w[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)m[a+i+17|0]=o.c_cc[i]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){a=se.getp();var s=w[a>>2],u=w[a+4>>2],l=w[a+8>>2],d=w[a+12>>2],c=[];for(i=0;i<32;i++)c.push(m[a+i+17|0]);return n.tty.ops.ioctl_tcsets(n.tty,r,{c_iflag:s,c_oflag:u,c_cflag:l,c_lflag:d,c_cc:c})}return 0;case 21519:return n.tty?(a=se.getp(),w[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=se.getp(),ae.ioctl(n,r,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var h=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=se.getp(),y[a>>1]=h[0],y[a+2>>1]=h[1]}return 0;default:return-28}}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},R:function(e,r,t,n){try{r=se.getStr(r);var o=256&n,a=4096&n;return n&=-6401,r=se.calculateAt(e,r,a),se.doStat(o?ae.lstat:ae.stat,r,t)}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},E:function(e,r,t,n){se.varargs=n;try{r=se.getStr(r),r=se.calculateAt(e,r);var o=n?se.get():0;return ae.open(r,t,o).fd}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},S:function(e,r){try{return e=se.getStr(e),se.doStat(ae.stat,e,r)}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},u:e=>{var r=ue[e];delete ue[e];var t=r.rawConstructor,n=r.rawDestructor,o=r.fields,a=o.map(e=>e.getterReturnType).concat(o.map(e=>e.setterArgumentType));ge([e],a,e=>{var a={};return o.forEach((r,t)=>{var n=r.fieldName,i=e[t],s=r.getter,u=r.getterContext,l=e[t+o.length],d=r.setter,c=r.setterContext;a[n]={read:e=>i.fromWireType(s(u,e)),write:(e,r)=>{var t=[];d(c,e,l.toWireType(t,r)),le(t)}}}),[{name:r.name,fromWireType:e=>{var r={};for(var t in a)r[t]=a[t].read(e);return n(e),r},toWireType:(e,r)=>{for(var o in a)if(!(o in r))throw new TypeError(`Missing field: "${o}"`);var i=t();for(o in a)a[o].write(i,r[o]);return null!==e&&e.push(n,i),i},argPackAdvance:8,readValueFromPointer:de,destructorFunction:n}]})},K:(e,r,t,n,o)=>{},Z:(e,r,t,n)=>{_e(e,{name:r=we(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(v[e])},destructorFunction:null})},y:(e,r,t,n,o,a,i,s,u,l,d,c,h)=>{d=we(d),a=Ze(o,a),s&&(s=Ze(i,s)),l&&(l=Ze(u,l)),h=Ze(c,h);var p=xe(d);Ne(p,function(){er(`Cannot construct ${d} due to unbound types`,[n])}),ge([e,r,t],n?[n]:[],function(r){var t,o;r=r[0],o=n?(t=r.registeredClass).instancePrototype:Re.prototype;var i=We(p,function(){if(Object.getPrototypeOf(this)!==u)throw new pe("Use 'new' to construct "+d);if(void 0===c.constructor_body)throw new pe(d+" has no accessible constructor");var e=c.constructor_body[arguments.length];if(void 0===e)throw new pe(`Tried to invoke ctor of ${d} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(c.constructor_body).toString()}) parameters instead!`);return e.apply(this,arguments)}),u=Object.create(o,{constructor:{value:i}});i.prototype=u;var c=new He(d,i,u,h,t,a,s,l);c.baseClass&&(void 0===c.baseClass.__derivedClasses&&(c.baseClass.__derivedClasses=[]),c.baseClass.__derivedClasses.push(c));var f=new qe(d,c,!0,!1,!1),m=new qe(d+"*",c,!1,!1,!1),v=new qe(d+" const*",c,!1,!0,!1);return De[e]={pointerType:m,constPointerType:v},Ge(p,i),[f,m,v]})},x:(e,r,t,n,o,a)=>{var i=rr(r,t);o=Ze(n,o),ge([],[e],function(e){var t=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[r-1])throw new pe(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[r-1]=()=>{er(`Cannot construct ${e.name} due to unbound types`,i)},ge([],i,n=>(n.splice(1,0,null),e.registeredClass.constructor_body[r-1]=nr(t,n,null,o,a),[])),[]})},a:(e,r,t,n,o,a,i,s,u)=>{var l=rr(t,n);r=we(r),r=or(r),a=Ze(o,a),ge([],[e],function(e){var n=`${(e=e[0]).name}.${r}`;function o(){er(`Cannot call ${n} due to unbound types`,l)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(r);var d=e.registeredClass.instancePrototype,c=d[r];return void 0===c||void 0===c.overloadTable&&c.className!==e.name&&c.argCount===t-2?(o.argCount=t-2,o.className=e.name,d[r]=o):(ze(d,r,n),d[r].overloadTable[t-2]=o),ge([],l,function(o){var s=nr(n,o,e,a,i,u);return void 0===d[r].overloadTable?(s.argCount=t-2,d[r]=s):d[r].overloadTable[t-2]=s,[]}),[]})},e:(e,r,t)=>{e=we(e),ge([],[r],function(r){return r=r[0],o[e]=r.fromWireType(t),[]})},Y:(e,r)=>{_e(e,{name:r=we(r),fromWireType:e=>{var r=ur.toValue(e);return sr(e),r},toWireType:(e,r)=>ur.toHandle(r),argPackAdvance:8,readValueFromPointer:de,destructorFunction:null})},n:(e,r,t,n)=>{function o(){}r=we(r),o.values={},_e(e,{name:r,constructor:o,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,argPackAdvance:8,readValueFromPointer:lr(r,t,n),destructorFunction:null}),Ne(r,o)},b:(e,r,t)=>{var n=dr(e,"enum");r=we(r);var o=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:We(`${n.name}_${r}`,function(){})}});o.values[t]=a,o[r]=a},G:(e,r,t)=>{_e(e,{name:r=we(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:8,readValueFromPointer:hr(r,t),destructorFunction:null})},j:(e,r,t,n,o,a,i)=>{var s=rr(r,t);e=we(e),e=or(e),o=Ze(n,o),Ne(e,function(){er(`Cannot call ${e} due to unbound types`,s)},r-1),ge([],s,function(t){var n=[t[0],null].concat(t.slice(1));return Ge(e,nr(e,n,null,o,a,i),r-1),[]})},m:(e,r,t,n,o)=>{r=we(r);var a=e=>e;if(0===n){var i=32-8*t;a=e=>e<<i>>>i}var s=r.includes("unsigned");_e(e,{name:r,fromWireType:a,toWireType:s?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:8,readValueFromPointer:pr(r,t,0!==n),destructorFunction:null})},g:(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function o(e){var r=E[e>>2],t=E[e+4>>2];return new n(m.buffer,t,r)}_e(e,{name:t=we(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},F:(e,r)=>{var t="std::string"===(r=we(r));_e(e,{name:r,fromWireType(e){var r,n=E[e>>2],o=e+4;if(t)for(var a=o,i=0;i<=n;++i){var s=o+i;if(i==n||0==v[s]){var u=ie(a,s-a);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),a=s+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(v[o+i]);r=l.join("")}return Hr(e),r},toWireType(e,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var o="string"==typeof r;o||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||Ee("Cannot pass non-string to std::string"),n=t&&o?K(r):r.length;var a=Br(4+n+1),i=a+4;if(E[a>>2]=n,t&&o)((e,r,t)=>{J(e,v,r,t)})(r,i,n+1);else if(o)for(var s=0;s<n;++s){var u=r.charCodeAt(s);u>255&&(Hr(i),Ee("String has UTF-16 code units that do not fit in 8 bits")),v[i+s]=u}else for(s=0;s<n;++s)v[i+s]=r[s];return null!==e&&e.push(Hr,a),a},argPackAdvance:8,readValueFromPointer:Ve,destructorFunction(e){Hr(e)}})},A:(e,r,t)=>{var n,o,a,i,s;t=we(t),2===r?(n=mr,o=vr,i=yr,a=()=>g,s=1):4===r&&(n=gr,o=wr,i=Er,a=()=>E,s=2),_e(e,{name:t,fromWireType:e=>{for(var t,o=E[e>>2],i=a(),u=e+4,l=0;l<=o;++l){var d=e+4+l*r;if(l==o||0==i[d>>s]){var c=n(u,d-u);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),u=d+r}}return Hr(e),t},toWireType:(e,n)=>{"string"!=typeof n&&Ee(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),u=Br(4+a+r);return E[u>>2]=a>>s,o(n,u+4,a+r),null!==e&&e.push(Hr,u),u},argPackAdvance:8,readValueFromPointer:de,destructorFunction(e){Hr(e)}})},v:(e,r,t,n,o,a)=>{ue[e]={name:we(r),rawConstructor:Ze(t,n),rawDestructor:Ze(o,a),fields:[]}},d:(e,r,t,n,o,a,i,s,u,l)=>{ue[e].fields.push({fieldName:we(r),getterReturnType:t,getter:Ze(n,o),getterContext:a,setterArgumentType:i,setter:Ze(s,u),setterContext:l})},_:(e,r)=>{_e(e,{isVoid:!0,name:r=we(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},O:()=>{throw 1/0},o:(e,r,t)=>{e=ur.toValue(e),r=dr(r,"emval::as");var n=[],o=ur.toHandle(n);return E[t>>2]=o,r.toWireType(n,e)},p:(e,r,t,n,o)=>{var a=[],i=(e=kr[e])(r=ur.toValue(r),t=br(t),a,o);return a.length&&(E[n>>2]=ur.toHandle(a)),i},c:sr,B:e=>0===e?ur.toHandle($r()):(e=br(e),ur.toHandle($r()[e])),q:(e,r)=>{var t=((e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=dr(E[r+4*n>>2],"parameter "+n);return t})(e,r),n=t.shift();e--;for(var o=["retType"],a=[n],i="",s=0;s<e;++s)i+=(0!==s?", ":"")+"arg"+s,o.push("argType"+s),a.push(t[s]);var u=n.name+"_$"+t.map(e=>e.name).join("_")+"$",l="return function "+xe("methodCaller_"+u)+"(handle, name, destructors, args) {\n",d=0;for(s=0;s<e;++s)l+=" var arg"+s+" = argType"+s+".readValueFromPointer(args"+(d?"+"+d:"")+");\n",d+=t[s].argPackAdvance;for(l+=" var rv = handle[name]("+i+");\n",s=0;s<e;++s)t[s].deleteObject&&(l+=" argType"+s+".deleteObject(arg"+s+");\n");return n.isVoid||(l+=" return retType.toWireType(destructors, rv);\n"),l+="};\n",o.push(l),(e=>{var r=kr.length;return kr.push(e),r})(tr(Function,o).apply(null,a))},s:e=>(e=br(e),ur.toHandle(o[e])),h:(e,r)=>(e=ur.toValue(e),r=ur.toValue(r),ur.toHandle(e[r])),l:e=>{e>4&&(ir.get(e).refcount+=1)},r:(e,r,t,n)=>{e=ur.toValue(e);var o=Tr[r];return o||(o=Pr(r),Tr[r]=o),o(e,t,n)},i:e=>ur.toHandle(br(e)),k:e=>{var r=ur.toValue(e);le(r),sr(e)},H:function(e,r,t,n,o,a,i,s){var u=Cr(o,a);try{if(isNaN(u))return 61;var l=se.getStreamFromFD(n),d=ae.mmap(l,e,u,r,t),c=d.ptr;return w[i>>2]=d.allocated,E[s>>2]=c,0}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},I:function(e,r,t,n,o,a,i){var s=Cr(a,i);try{if(isNaN(s))return 61;var u=se.getStreamFromFD(o);2&t&&se.doMsync(e,u,r,n,s),ae.munmap(u)}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return-e.errno}},f:()=>{R("")},W:()=>Date.now(),P:()=>2147483648,X:(e,r,t)=>v.copyWithin(e,r,r+t),Q:e=>{var r=v.length,t=2147483648;if((e>>>=0)>t)return!1;for(var n=(e,r)=>e+(r-e%r)%r,o=1;o<=4;o*=2){var a=r*(1+.2/o);a=Math.min(a,e+100663296);var i=Math.min(t,n(Math.max(e,a),65536));if(Fr(i))return!0}return!1},M:(e,r)=>{var t=0;return Sr().forEach((n,o)=>{var a=r+t;E[e+4*o>>2]=a,((e,r)=>{for(var t=0;t<e.length;++t)m[0|r++]=e.charCodeAt(t);m[0|r]=0})(n,a),t+=n.length+1}),0},N:(e,r)=>{var t=Sr();E[e>>2]=t.length;var n=0;return t.forEach(e=>n+=e.length+1),E[r>>2]=n,0},z:function(e){try{var r=se.getStreamFromFD(e);return ae.close(r),0}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return e.errno}},U:function(e,r,t,n){try{var o=((e,r,t)=>{for(var n=0,o=0;o<t;o++){var a=E[r>>2],i=E[r+4>>2];r+=8;var s=ae.read(e,m,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(se.getStreamFromFD(e),r,t);return E[n>>2]=o,0}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return e.errno}},J:function(e,r,t,n,o){var a=Cr(r,t);try{if(isNaN(a))return 61;var i=se.getStreamFromFD(e);return ae.llseek(i,a,n),z=[i.position>>>0,(W=i.position,+Math.abs(W)>=1?W>0?+Math.floor(W/4294967296)>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],w[o>>2]=z[0],w[o+4>>2]=z[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return e.errno}},C:function(e,r,t,n){try{var o=((e,r,t)=>{for(var n=0,o=0;o<t;o++){var a=E[r>>2],i=E[r+4>>2];r+=8;var s=ae.write(e,m,a,i,undefined);if(s<0)return-1;n+=s}return n})(se.getStreamFromFD(e),r,t);return E[n>>2]=o,0}catch(e){if(void 0===ae||"ErrnoError"!==e.name)throw e;return e.errno}},aa:function(e,r){var t=Yr();try{return Je(e)(r)}catch(e){if(Xr(t),e!==e+0)throw e;qr(1,0)}},t:function(e,r){var t=Yr();try{Je(e)(r)}catch(e){if(Xr(t),e!==e+0)throw e;qr(1,0)}},$:function(e,r,t){var n=Yr();try{Je(e)(r,t)}catch(e){if(Xr(n),e!==e+0)throw e;qr(1,0)}},ba:function(e,r,t,n){var o=Yr();try{Je(e)(r,t,n)}catch(e){if(Xr(o),e!==e+0)throw e;qr(1,0)}},L:(e,r,t,n,o)=>((e,r,t,n)=>{var o=E[n+40>>2],a={tm_sec:w[n>>2],tm_min:w[n+4>>2],tm_hour:w[n+8>>2],tm_mday:w[n+12>>2],tm_mon:w[n+16>>2],tm_year:w[n+20>>2],tm_wday:w[n+24>>2],tm_yday:w[n+28>>2],tm_isdst:w[n+32>>2],tm_gmtoff:w[n+36>>2],tm_zone:o?ie(o):""},i=ie(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)i=i.replace(new RegExp(u,"g"),s[u]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"];function c(e,r,t){for(var n="number"==typeof e?e.toString():e||"";n.length<r;)n=t[0]+n;return n}function h(e,r){return c(e,r,"0")}function p(e,r){function t(e){return e<0?-1:e>0?1:0}var n;return 0===(n=t(e.getFullYear()-r.getFullYear()))&&0===(n=t(e.getMonth()-r.getMonth()))&&(n=t(e.getDate()-r.getDate())),n}function f(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function m(e){var r=((e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=Ar(t.getFullYear()),o=t.getMonth(),a=(n?Mr:jr)[o];if(!(r>a-t.getDate()))return t.setDate(t.getDate()+r),t;r-=a-t.getDate()+1,t.setDate(1),o<11?t.setMonth(o+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t})(new Date(e.tm_year+1900,0,1),e.tm_yday),t=new Date(r.getFullYear(),0,4),n=new Date(r.getFullYear()+1,0,4),o=f(t),a=f(n);return p(o,r)<=0?p(a,r)<=0?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var v={"%a":e=>l[e.tm_wday].substring(0,3),"%A":e=>l[e.tm_wday],"%b":e=>d[e.tm_mon].substring(0,3),"%B":e=>d[e.tm_mon],"%C":e=>h((e.tm_year+1900)/100|0,2),"%d":e=>h(e.tm_mday,2),"%e":e=>c(e.tm_mday,2," "),"%g":e=>m(e).toString().substring(2),"%G":e=>m(e),"%H":e=>h(e.tm_hour,2),"%I":e=>{var r=e.tm_hour;return 0==r?r=12:r>12&&(r-=12),h(r,2)},"%j":e=>h(e.tm_mday+((e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t})(Ar(e.tm_year+1900)?Mr:jr,e.tm_mon-1),3),"%m":e=>h(e.tm_mon+1,2),"%M":e=>h(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>h(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var r=e.tm_yday+7-e.tm_wday;return h(Math.floor(r/7),2)},"%V":e=>{var r=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&r++,r){if(53==r){var t=(e.tm_wday+371-e.tm_yday)%7;4==t||3==t&&Ar(e.tm_year)||(r=1)}}else{r=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&Ar(e.tm_year%400-1))&&r++}return h(r,2)},"%w":e=>e.tm_wday,"%W":e=>{var r=e.tm_yday+7-(e.tm_wday+6)%7;return h(Math.floor(r/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var r=e.tm_gmtoff,t=r>=0;return r=(r=Math.abs(r)/60)/60*100+r%60,(t?"+":"-")+String("0000"+r).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var u in i=i.replace(/%%/g,"\0\0"),v)i.includes(u)&&(i=i.replace(new RegExp(u,"g"),v[u](a)));var y=Z(i=i.replace(/\0\0/g,"%"),!1);return y.length>r?0:(Or(y,e),y.length-1)})(e,r,t,n)},Nr=function(){var e={a:zr};function r(e,r){return Nr=e.exports,h=Nr.ca,P(),Ye=Nr.ga,function(e){C.unshift(e)}(Nr.da),O(),Nr}if(j(),o.instantiateWasm)try{return o.instantiateWasm(e,r)}catch(e){f(`Module.instantiateWasm callback failed with error: ${e}`),t(e)}return function(e,r,t,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||N(r)||"function"!=typeof fetch?B(r,t,n):fetch(r,{credentials:"same-origin"}).then(e=>WebAssembly.instantiateStreaming(e,t).then(n,function(e){return f(`wasm streaming compile failed: ${e}`),f("falling back to ArrayBuffer instantiation"),B(r,t,n)}))}(c,x,e,function(e){r(e.instance)}).catch(t),{}}(),Hr=e=>(Hr=Nr.ea)(e),Br=e=>(Br=Nr.fa)(e),Lr=e=>(Lr=Nr.ha)(e);o.__embind_initialize_bindings=()=>(o.__embind_initialize_bindings=Nr.ia)();var Ur,Ir=()=>(Ir=Nr.ja)(),Vr=(e,r)=>(Vr=Nr.ka)(e,r),qr=(e,r)=>(qr=Nr.la)(e,r),Yr=()=>(Yr=Nr.ma)(),Xr=e=>(Xr=Nr.na)(e),Gr=e=>(Gr=Nr.oa)(e);function Kr(){function e(){Ur||(Ur=!0,o.calledRun=!0,k||(o.noFSInit||ae.init.initialized||ae.init(),ae.ignorePermissions=!1,L(C),r(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)S(o.postRun.shift());L(F)}()))}A>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)D(o.preRun.shift());L(T)}(),A>0||(o.setStatus?(o.setStatus("Running..."),setTimeout(function(){setTimeout(function(){o.setStatus("")},1),e()},1)):e()))}if(o.dynCall_ji=(e,r)=>(o.dynCall_ji=Nr.pa)(e,r),o.dynCall_iij=(e,r,t,n)=>(o.dynCall_iij=Nr.qa)(e,r,t,n),o.dynCall_jiiii=(e,r,t,n,a)=>(o.dynCall_jiiii=Nr.ra)(e,r,t,n,a),o.dynCall_jiji=(e,r,t,n,a)=>(o.dynCall_jiji=Nr.sa)(e,r,t,n,a),o.dynCall_viijii=(e,r,t,n,a,i,s)=>(o.dynCall_viijii=Nr.ta)(e,r,t,n,a,i,s),o.dynCall_iiiiij=(e,r,t,n,a,i,s)=>(o.dynCall_iiiiij=Nr.ua)(e,r,t,n,a,i,s),o.dynCall_iiiiijj=(e,r,t,n,a,i,s,u,l)=>(o.dynCall_iiiiijj=Nr.va)(e,r,t,n,a,i,s,u,l),o.dynCall_iiiiiijj=(e,r,t,n,a,i,s,u,l,d)=>(o.dynCall_iiiiiijj=Nr.wa)(e,r,t,n,a,i,s,u,l,d),M=function e(){Ur||Kr(),Ur||(M=e)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return Kr(),e.ready})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9321],{49321:(e,r,t)=>{t.r(r),t.d(r,{default:()=>a});var n,a=(n="undefined"!=typeof document?document.currentScript?.src:void 0,function(e={}){var r,t,a=Object.assign({},e),o=new Promise((e,n)=>{r=e,t=n}),i=Object.assign({},a),s="";"undefined"!=typeof document&&document.currentScript&&(s=document.currentScript.src),n&&(s=n),s=s.startsWith("blob:")?"":s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1);var u,c,l=a.print||console.log.bind(console),p=a.printErr||console.error.bind(console);Object.assign(a,i),i=null,a.arguments&&a.arguments,a.thisProgram&&a.thisProgram,a.quit&&a.quit,a.wasmBinary&&(u=a.wasmBinary);var h,d,f,v,y,m,g,$,w=!1;function T(){var e=c.buffer;a.HEAP8=h=new Int8Array(e),a.HEAP16=f=new Int16Array(e),a.HEAPU8=d=new Uint8Array(e),a.HEAPU16=v=new Uint16Array(e),a.HEAP32=y=new Int32Array(e),a.HEAPU32=m=new Uint32Array(e),a.HEAPF32=g=new Float32Array(e),a.HEAPF64=$=new Float64Array(e)}var b=[],C=[],P=[];function A(e){b.unshift(e)}function W(e){P.unshift(e)}var _=0,F=null;function k(e){a.onAbort?.(e),p(e="Aborted("+e+")"),w=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw t(r),r}var S,O=e=>e.startsWith("data:application/octet-stream;base64,");function j(e){if(e==S&&u)return new Uint8Array(u);throw"both async and sync fetching of the wasm failed"}function E(e,r,t){return function(e){return u||"function"!=typeof fetch?Promise.resolve().then(()=>j(e)):fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw`failed to load wasm binary file at '${e}'`;return r.arrayBuffer()}).catch(()=>j(e))}(e).then(e=>WebAssembly.instantiate(e,r)).then(t,e=>{p(`failed to asynchronously prepare wasm: ${e}`),k(e)})}var R=e=>{for(;e.length>0;)e.shift()(a)};a.noExitRuntime;class D{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){m[this.ptr+4>>2]=e}get_type(){return m[this.ptr+4>>2]}set_destructor(e){m[this.ptr+8>>2]=e}get_destructor(){return m[this.ptr+8>>2]}set_caught(e){e=e?1:0,h[this.ptr+12]=e}get_caught(){return 0!=h[this.ptr+12]}set_rethrown(e){e=e?1:0,h[this.ptr+13]=e}get_rethrown(){return 0!=h[this.ptr+13]}init(e,r){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(r)}set_adjusted_ptr(e){m[this.ptr+16>>2]=e}get_adjusted_ptr(){return m[this.ptr+16>>2]}get_exception_ptr(){if(hr(this.get_type()))return m[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var x={},I=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function V(e){return this.fromWireType(m[e>>2])}var H,U,B,N={},M={},z={},q=e=>{throw new H(e)},G=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&q("Mismatched type converter count");for(var a=0;a<e.length;++a)K(e[a],n[a])}e.forEach(function(e){z[e]=r});var a=new Array(r.length),o=[],i=0;r.forEach((e,r)=>{M.hasOwnProperty(e)?a[r]=M[e]:(o.push(e),N.hasOwnProperty(e)||(N[e]=[]),N[e].push(()=>{a[r]=M[e],++i===o.length&&n(a)}))}),0===o.length&&n(a)},L=e=>{for(var r="",t=e;d[t];)r+=U[d[t++]];return r},J=e=>{throw new B(e)};function K(e,r,t={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,r,t={}){var n=r.name;if(e||J(`type "${n}" must have a positive integer typeid pointer`),M.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;J(`Cannot register type '${n}' twice`)}if(M[e]=r,delete z[e],N.hasOwnProperty(e)){var a=N[e];delete N[e],a.forEach(e=>e())}}(e,r,t)}var Q,Z=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),X=e=>{J(function(e){return e.$$.ptrType.registeredClass.name}(e)+" instance already deleted")},Y=!1,ee=e=>{},re=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},te=(e,r,t)=>{if(r===t)return e;if(void 0===t.baseClass)return null;var n=te(e,r,t.baseClass);return null===n?null:t.downcast(n)},ne={},ae=[],oe=()=>{for(;ae.length;){var e=ae.pop();e.$$.deleteScheduled=!1,e.delete()}},ie={},se=(e,r)=>(r.ptrType&&r.ptr||q("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!=!!r.smartPtr&&q("Both smartPtrType and smartPtr must be specified"),r.count={value:1},ue(Object.create(e,{$$:{value:r,writable:!0}})));var ue=e=>"undefined"==typeof FinalizationRegistry?(ue=e=>e,e):(Y=new FinalizationRegistry(e=>{re(e.$$)}),ue=e=>{var r=e.$$;if(r.smartPtr){var t={$$:r};Y.register(e,t,e)}return e},ee=e=>Y.unregister(e),ue(e));function ce(){}var le=(e,r)=>Object.defineProperty(r,"name",{value:e}),pe=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(...n){return e[r].overloadTable.hasOwnProperty(n.length)||J(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[n.length].apply(this,n)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},he=(e,r,t)=>{a.hasOwnProperty(e)?((void 0===t||void 0!==a[e].overloadTable&&void 0!==a[e].overloadTable[t])&&J(`Cannot register public name '${e}' twice`),pe(a,e,e),a.hasOwnProperty(t)&&J(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),a[e].overloadTable[t]=r):(a[e]=r,void 0!==t&&(a[e].numArguments=t))};function de(e,r,t,n,a,o,i,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=o,this.upcast=i,this.downcast=s,this.pureVirtualFunctions=[]}var fe=(e,r,t)=>{for(;r!==t;)r.upcast||J(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function ve(e,r){if(null===r)return this.isReference&&J(`null is not a valid ${this.name}`),0;r.$$||J(`Cannot pass "${He(r)}" as a ${this.name}`),r.$$.ptr||J(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass;return fe(r.$$.ptr,t,this.registeredClass)}function ye(e,r){var t;if(null===r)return this.isReference&&J(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;r&&r.$$||J(`Cannot pass "${He(r)}" as a ${this.name}`),r.$$.ptr||J(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&J(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=fe(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&J("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:J(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var a=r.clone();t=this.rawShare(t,De.toHandle(()=>a.delete())),null!==e&&e.push(this.rawDestructor,t)}break;default:J("Unsupporting sharing policy")}return t}function me(e,r){if(null===r)return this.isReference&&J(`null is not a valid ${this.name}`),0;r.$$||J(`Cannot pass "${He(r)}" as a ${this.name}`),r.$$.ptr||J(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&J(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass;return fe(r.$$.ptr,t,this.registeredClass)}function ge(e,r,t,n,a,o,i,s,u,c,l){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=o,this.sharingPolicy=i,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=l,a||void 0!==r.baseClass?this.toWireType=ye:n?(this.toWireType=ve,this.destructorFunction=null):(this.toWireType=me,this.destructorFunction=null)}var $e,we,Te=(e,r,t)=>{a.hasOwnProperty(e)||q("Replacing nonexistent public symbol"),void 0!==a[e].overloadTable&&void 0!==t?a[e].overloadTable[t]=r:(a[e]=r,a[e].argCount=t)},be=[],Ce=e=>{var r=be[e];return r||(e>=be.length&&(be.length=e+1),be[e]=r=$e.get(e)),r},Pe=(e,r)=>{var t=(e=L(e)).includes("j")?((e,r)=>(...t)=>((e,r,t=[])=>e.includes("j")?((e,r,t)=>(e=e.replace(/p/g,"i"),(0,a["dynCall_"+e])(r,...t)))(e,r,t):Ce(r)(...t))(e,r,t))(e,r):Ce(r);return"function"!=typeof t&&J(`unknown function pointer with signature ${e}: ${r}`),t},Ae=e=>{var r=cr(e),t=L(r);return pr(r),t},We=(e,r)=>{var t=[],n={};throw r.forEach(function e(r){n[r]||M[r]||(z[r]?z[r].forEach(e):(t.push(r),n[r]=!0))}),new we(`${e}: `+t.map(Ae).join([", "]))},_e=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(m[r+4*n>>2]);return t};function Fe(e){for(var r=1;r<e.length;++r)if(null!==e[r]&&void 0===e[r].destructorFunction)return!0;return!1}function ke(e,r){if(!(e instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof e} which is not a function`);var t=le(e.name||"unknownFunctionName",function(){});t.prototype=e.prototype;var n=new t,a=e.apply(n,r);return a instanceof Object?a:n}function Se(e,r,t,n,a,o){var i=r.length;i<2&&J("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==t,u=Fe(r),c="void"!==r[0].name,l=[e,J,n,a,I,r[0],r[1]],p=0;p<i-2;++p)l.push(r[p+2]);if(!u)for(p=s?1:2;p<r.length;++p)null!==r[p].destructorFunction&&l.push(r[p].destructorFunction);let[h,d]=function(e,r,t,n){for(var a=Fe(e),o=e.length,i="",s="",u=0;u<o-2;++u)i+=(0!==u?", ":"")+"arg"+u,s+=(0!==u?", ":"")+"arg"+u+"Wired";var c=`\n return function (${i}) {\n if (arguments.length !== ${o-2}) {\n throwBindingError('function ' + humanName + ' called with ' + arguments.length + ' arguments, expected ${o-2}');\n }`;a&&(c+="var destructors = [];\n");var l=a?"destructors":"null",p=["humanName","throwBindingError","invoker","fn","runDestructors","retType","classParam"];for(r&&(c+="var thisWired = classParam['toWireType']("+l+", this);\n"),u=0;u<o-2;++u)c+="var arg"+u+"Wired = argType"+u+"['toWireType']("+l+", arg"+u+");\n",p.push("argType"+u);if(r&&(s="thisWired"+(s.length>0?", ":"")+s),c+=(t||n?"var rv = ":"")+"invoker(fn"+(s.length>0?", ":"")+s+");\n",a)c+="runDestructors(destructors);\n";else for(u=r?1:2;u<e.length;++u){var h=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==e[u].destructorFunction&&(c+=`${h}_dtor(${h});\n`,p.push(`${h}_dtor`))}return t&&(c+="var ret = retType['fromWireType'](rv);\nreturn ret;\n"),[p,c+="}\n"]}(r,s,c,o);h.push(d);var f=ke(Function,h)(...l);return le(e,f)}var Oe=e=>{const r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},je=[],Ee=[],Re=e=>{e>9&&0===--Ee[e+1]&&(Ee[e]=void 0,je.push(e))},De={toValue:e=>(e||J("Cannot use deleted val. handle = "+e),Ee[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const r=je.pop()||Ee.length;return Ee[r]=e,Ee[r+1]=1,r}}}},xe={name:"emscripten::val",fromWireType:e=>{var r=De.toValue(e);return Re(e),r},toWireType:(e,r)=>De.toHandle(r),argPackAdvance:8,readValueFromPointer:V,destructorFunction:null},Ie=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(h[e])}:function(e){return this.fromWireType(d[e])};case 2:return t?function(e){return this.fromWireType(f[e>>1])}:function(e){return this.fromWireType(v[e>>1])};case 4:return t?function(e){return this.fromWireType(y[e>>2])}:function(e){return this.fromWireType(m[e>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Ve=(e,r)=>{var t=M[e];return void 0===t&&J(`${r} has unknown type ${Ae(e)}`),t},He=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},Ue=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(g[e>>2])};case 8:return function(e){return this.fromWireType($[e>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},Be=(e,r,t)=>{switch(r){case 1:return t?e=>h[e]:e=>d[e];case 2:return t?e=>f[e>>1]:e=>v[e>>1];case 4:return t?e=>y[e>>2]:e=>m[e>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Ne="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,Me=(e,r,t)=>{for(var n=r+t,a=r;e[a]&&!(a>=n);)++a;if(a-r>16&&e.buffer&&Ne)return Ne.decode(e.subarray(r,a));for(var o="";r<a;){var i=e[r++];if(128&i){var s=63&e[r++];if(192!=(224&i)){var u=63&e[r++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&e[r++])<65536)o+=String.fromCharCode(i);else{var c=i-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&i)<<6|s)}else o+=String.fromCharCode(i)}return o},ze=(e,r)=>e?Me(d,e,r):"",qe="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Ge=(e,r)=>{for(var t=e,n=t>>1,a=n+r/2;!(n>=a)&&v[n];)++n;if((t=n<<1)-e>32&&qe)return qe.decode(d.subarray(e,t));for(var o="",i=0;!(i>=r/2);++i){var s=f[e+2*i>>1];if(0==s)break;o+=String.fromCharCode(s)}return o},Le=(e,r,t)=>{if(t??=2147483647,t<2)return 0;for(var n=r,a=(t-=2)<2*e.length?t/2:e.length,o=0;o<a;++o){var i=e.charCodeAt(o);f[r>>1]=i,r+=2}return f[r>>1]=0,r-n},Je=e=>2*e.length,Ke=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var a=y[e+4*t>>2];if(0==a)break;if(++t,a>=65536){var o=a-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(a)}return n},Qe=(e,r,t)=>{if(t??=2147483647,t<4)return 0;for(var n=r,a=n+t-4,o=0;o<e.length;++o){var i=e.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++o)),y[r>>2]=i,(r+=4)+4>a)break}return y[r>>2]=0,r-n},Ze=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},Xe=(e,r,t)=>{var n=[],a=e.toWireType(n,t);return n.length&&(m[r>>2]=De.toHandle(n)),a},Ye=[],er={},rr=e=>{var r=er[e];return void 0===r?L(e):r},tr=()=>"object"==typeof globalThis?globalThis:Function("return this")(),nr=e=>{var r=(e-c.buffer.byteLength+65535)/65536;try{return c.grow(r),T(),1}catch(e){}},ar=[null,[],[]],or=(e,r)=>{var t=ar[e];0===r||10===r?((1===e?l:p)(Me(t,0)),t.length=0):t.push(r)};H=a.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},(()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);U=e})(),B=a.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(ce.prototype,{isAliasOf(e){if(!(this instanceof ce))return!1;if(!(e instanceof ce))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&t===a},clone(){if(this.$$.ptr||X(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=ue(Object.create(Object.getPrototypeOf(this),{$$:{value:Z(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||X(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&J("Object already scheduled for deletion"),ee(this),re(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||X(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&J("Object already scheduled for deletion"),ae.push(this),1===ae.length&&Q&&Q(oe),this.$$.deleteScheduled=!0,this}}),a.getInheritedInstanceCount=()=>Object.keys(ie).length,a.getLiveInheritedInstances=()=>{var e=[];for(var r in ie)ie.hasOwnProperty(r)&&e.push(ie[r]);return e},a.flushPendingDeletes=oe,a.setDelayFunction=e=>{Q=e,ae.length&&Q&&Q(oe)},Object.assign(ge.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){this.rawDestructor?.(e)},argPackAdvance:8,readValueFromPointer:V,fromWireType:function(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=((e,r)=>(r=((e,r)=>{for(void 0===r&&J("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r})(e,r),ie[r]))(this.registeredClass,r);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?se(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):se(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o,i=this.registeredClass.getActualType(r),s=ne[i];if(!s)return a.call(this);o=this.isConst?s.constPointerType:s.pointerType;var u=te(r,this.registeredClass,o.registeredClass);return null===u?a.call(this):this.isSmartPointer?se(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:e}):se(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}}),we=a.UnboundTypeError=((e,r)=>{var t=le(r,function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t})(Error,"UnboundTypeError"),Ee.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>Ee.length/2-5-je.length;var ir,sr={K:(e,r,t)=>{throw new D(e).init(r,t),e},G:()=>{k("")},s:e=>{var r=x[e];delete x[e];var t=r.rawConstructor,n=r.rawDestructor,a=r.fields,o=a.map(e=>e.getterReturnType).concat(a.map(e=>e.setterArgumentType));G([e],o,e=>{var o={};return a.forEach((r,t)=>{var n=r.fieldName,i=e[t],s=r.getter,u=r.getterContext,c=e[t+a.length],l=r.setter,p=r.setterContext;o[n]={read:e=>i.fromWireType(s(u,e)),write:(e,r)=>{var t=[];l(p,e,c.toWireType(t,r)),I(t)}}}),[{name:r.name,fromWireType:e=>{var r={};for(var t in o)r[t]=o[t].read(e);return n(e),r},toWireType:(e,r)=>{for(var a in o)if(!(a in r))throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,r[a]);return null!==e&&e.push(n,i),i},argPackAdvance:8,readValueFromPointer:V,destructorFunction:n}]})},C:(e,r,t,n,a)=>{},I:(e,r,t,n)=>{K(e,{name:r=L(r),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:8,readValueFromPointer:function(e){return this.fromWireType(d[e])},destructorFunction:null})},w:(e,r,t,n,a,o,i,s,u,c,l,p,h)=>{l=L(l),o=Pe(a,o),s&&=Pe(i,s),c&&=Pe(u,c),h=Pe(p,h);var d=(e=>{if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=48&&r<=57?`_${e}`:e})(l);he(d,function(){We(`Cannot construct ${l} due to unbound types`,[n])}),G([e,r,t],n?[n]:[],r=>{var t,a;r=r[0],a=n?(t=r.registeredClass).instancePrototype:ce.prototype;var i=le(l,function(...e){if(Object.getPrototypeOf(this)!==u)throw new B("Use 'new' to construct "+l);if(void 0===p.constructor_body)throw new B(l+" has no accessible constructor");var r=p.constructor_body[e.length];if(void 0===r)throw new B(`Tried to invoke ctor of ${l} with invalid number of parameters (${e.length}) - expected (${Object.keys(p.constructor_body).toString()}) parameters instead!`);return r.apply(this,e)}),u=Object.create(a,{constructor:{value:i}});i.prototype=u;var p=new de(l,i,u,h,t,o,s,c);p.baseClass&&(p.baseClass.__derivedClasses??=[],p.baseClass.__derivedClasses.push(p));var f=new ge(l,p,!0,!1,!1),v=new ge(l+"*",p,!1,!1,!1),y=new ge(l+" const*",p,!1,!0,!1);return ne[e]={pointerType:v,constPointerType:y},Te(d,i),[f,v,y]})},v:(e,r,t,n,a,o)=>{var i=_e(r,t);a=Pe(n,a),G([],[e],e=>{var t=`constructor ${(e=e[0]).name}`;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[r-1])throw new B(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[r-1]=()=>{We(`Cannot construct ${e.name} due to unbound types`,i)},G([],i,n=>(n.splice(1,0,null),e.registeredClass.constructor_body[r-1]=Se(t,n,null,a,o),[])),[]})},d:(e,r,t,n,a,o,i,s,u)=>{var c=_e(t,n);r=L(r),r=Oe(r),o=Pe(a,o),G([],[e],e=>{var n=`${(e=e[0]).name}.${r}`;function a(){We(`Cannot call ${n} due to unbound types`,c)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(r);var l=e.registeredClass.instancePrototype,p=l[r];return void 0===p||void 0===p.overloadTable&&p.className!==e.name&&p.argCount===t-2?(a.argCount=t-2,a.className=e.name,l[r]=a):(pe(l,r,n),l[r].overloadTable[t-2]=a),G([],c,a=>{var s=Se(n,a,e,o,i,u);return void 0===l[r].overloadTable?(s.argCount=t-2,l[r]=s):l[r].overloadTable[t-2]=s,[]}),[]})},m:(e,r,t)=>{e=L(e),G([],[r],r=>(r=r[0],a[e]=r.fromWireType(t),[]))},H:e=>K(e,xe),o:(e,r,t,n)=>{function a(){}r=L(r),a.values={},K(e,{name:r,constructor:a,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,argPackAdvance:8,readValueFromPointer:Ie(r,t,n),destructorFunction:null}),he(r,a)},a:(e,r,t)=>{var n=Ve(e,"enum");r=L(r);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:le(`${n.name}_${r}`,function(){})}});a.values[t]=o,a[r]=o},A:(e,r,t)=>{K(e,{name:r=L(r),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:8,readValueFromPointer:Ue(r,t),destructorFunction:null})},k:(e,r,t,n,a,o,i)=>{var s=_e(r,t);e=L(e),e=Oe(e),a=Pe(n,a),he(e,function(){We(`Cannot call ${e} due to unbound types`,s)},r-1),G([],s,t=>{var n=[t[0],null].concat(t.slice(1));return Te(e,Se(e,n,null,a,o,i),r-1),[]})},l:(e,r,t,n,a)=>{r=L(r);var o=e=>e;if(0===n){var i=32-8*t;o=e=>e<<i>>>i}var s=r.includes("unsigned");K(e,{name:r,fromWireType:o,toWireType:s?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:8,readValueFromPointer:Be(r,t,0!==n),destructorFunction:null})},f:(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function a(e){var r=m[e>>2],t=m[e+4>>2];return new n(h.buffer,t,r)}K(e,{name:t=L(t),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},z:(e,r)=>{var t="std::string"===(r=L(r));K(e,{name:r,fromWireType(e){var r,n=m[e>>2],a=e+4;if(t)for(var o=a,i=0;i<=n;++i){var s=a+i;if(i==n||0==d[s]){var u=ze(o,s-o);void 0===r?r=u:(r+=String.fromCharCode(0),r+=u),o=s+1}}else{var c=new Array(n);for(i=0;i<n;++i)c[i]=String.fromCharCode(d[a+i]);r=c.join("")}return pr(e),r},toWireType(e,r){var n;r instanceof ArrayBuffer&&(r=new Uint8Array(r));var a="string"==typeof r;a||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||J("Cannot pass non-string to std::string"),n=t&&a?(e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r})(r):r.length;var o=lr(4+n+1),i=o+4;if(m[o>>2]=n,t&&a)((e,r,t)=>{((e,r,t,n)=>{if(!(n>0))return 0;for(var a=t+n-1,o=0;o<e.length;++o){var i=e.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&e.charCodeAt(++o)),i<=127){if(t>=a)break;r[t++]=i}else if(i<=2047){if(t+1>=a)break;r[t++]=192|i>>6,r[t++]=128|63&i}else if(i<=65535){if(t+2>=a)break;r[t++]=224|i>>12,r[t++]=128|i>>6&63,r[t++]=128|63&i}else{if(t+3>=a)break;r[t++]=240|i>>18,r[t++]=128|i>>12&63,r[t++]=128|i>>6&63,r[t++]=128|63&i}}r[t]=0})(e,d,r,t)})(r,i,n+1);else if(a)for(var s=0;s<n;++s){var u=r.charCodeAt(s);u>255&&(pr(i),J("String has UTF-16 code units that do not fit in 8 bits")),d[i+s]=u}else for(s=0;s<n;++s)d[i+s]=r[s];return null!==e&&e.push(pr,o),o},argPackAdvance:8,readValueFromPointer:V,destructorFunction(e){pr(e)}})},u:(e,r,t)=>{var n,a,o,i;t=L(t),2===r?(n=Ge,a=Le,i=Je,o=e=>v[e>>1]):4===r&&(n=Ke,a=Qe,i=Ze,o=e=>m[e>>2]),K(e,{name:t,fromWireType:e=>{for(var t,a=m[e>>2],i=e+4,s=0;s<=a;++s){var u=e+4+s*r;if(s==a||0==o(u)){var c=n(i,u-i);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),i=u+r}}return pr(e),t},toWireType:(e,n)=>{"string"!=typeof n&&J(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),s=lr(4+o+r);return m[s>>2]=o/r,a(n,s+4,o+r),null!==e&&e.push(pr,s),s},argPackAdvance:8,readValueFromPointer:V,destructorFunction(e){pr(e)}})},t:(e,r,t,n,a,o)=>{x[e]={name:L(r),rawConstructor:Pe(t,n),rawDestructor:Pe(a,o),fields:[]}},c:(e,r,t,n,a,o,i,s,u,c)=>{x[e].fields.push({fieldName:L(r),getterReturnType:t,getter:Pe(n,a),getterContext:o,setterArgumentType:i,setter:Pe(s,u),setterContext:c})},J:(e,r)=>{K(e,{isVoid:!0,name:r=L(r),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})},F:(e,r,t)=>d.copyWithin(e,r,r+t),n:(e,r,t)=>(e=De.toValue(e),r=Ve(r,"emval::as"),Xe(r,t,e)),q:(e,r,t,n)=>(e=Ye[e])(null,r=De.toValue(r),t,n),p:(e,r,t,n,a)=>(e=Ye[e])(r=De.toValue(r),r[t=rr(t)],n,a),b:Re,x:e=>0===e?De.toHandle(tr()):(e=rr(e),De.toHandle(tr()[e])),i:(e,r,t)=>{var n=((e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=Ve(m[r+4*n>>2],"parameter "+n);return t})(e,r),a=n.shift();e--;var o="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===t&&s.push("obj");for(var u=["retType"],c=[a],l=0;l<e;++l)s.push("arg"+l),u.push("argType"+l),c.push(n[l]),o+=` var arg${l} = argType${l}.readValueFromPointer(args${i?"+"+i:""});\n`,i+=n[l].argPackAdvance;o+=` var rv = ${1===t?"new func":"func.call"}(${s.join(", ")});\n`,a.isVoid||(u.push("emval_returnValue"),c.push(Xe),o+=" return emval_returnValue(retType, destructorsRef, rv);\n"),o+="};\n",u.push(o);var p=ke(Function,u)(...c),h=`methodCaller<(${n.map(e=>e.name).join(", ")}) => ${a.name}>`;return(e=>{var r=Ye.length;return Ye.push(e),r})(le(h,p))},r:e=>(e=rr(e),De.toHandle(a[e])),g:(e,r)=>(e=De.toValue(e),r=De.toValue(r),De.toHandle(e[r])),j:e=>{e>9&&(Ee[e+1]+=1)},h:e=>De.toHandle(rr(e)),e:e=>{var r=De.toValue(e);I(r),Re(e)},D:e=>{var r=d.length,t=2147483648;if((e>>>=0)>t)return!1;for(var n=(e,r)=>e+(r-e%r)%r,a=1;a<=4;a*=2){var o=r*(1+.2/a);o=Math.min(o,e+100663296);var i=Math.min(t,n(Math.max(e,o),65536));if(nr(i))return!0}return!1},E:e=>52,B:function(e,r,t,n,a){return 70},y:(e,r,t,n)=>{for(var a=0,o=0;o<t;o++){var i=m[r>>2],s=m[r+4>>2];r+=8;for(var u=0;u<s;u++)or(e,d[i+u]);a+=s}return m[n>>2]=a,0}},ur=function(){var e={a:sr};function r(e,r){return ur=e.exports,c=ur.L,T(),$e=ur.Q,function(e){C.unshift(e)}(ur.M),function(){if(_--,a.monitorRunDependencies?.(_),0==_&&F){var e=F;F=null,e()}}(),ur}if(_++,a.monitorRunDependencies?.(_),a.instantiateWasm)try{return a.instantiateWasm(e,r)}catch(e){p(`Module.instantiateWasm callback failed with error: ${e}`),t(e)}return S||(S=function(){var e="basis_transcoder.wasm";return O(e)?e:function(e){return a.locateFile?a.locateFile(e,s):s+e}(e)}()),function(e,r,t,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||O(r)||"function"!=typeof fetch?E(r,t,n):fetch(r,{credentials:"same-origin"}).then(e=>WebAssembly.instantiateStreaming(e,t).then(n,function(e){return p(`wasm streaming compile failed: ${e}`),p("falling back to ArrayBuffer instantiation"),E(r,t,n)}))}(u,S,e,function(e){r(e.instance)}).catch(t),{}}(),cr=e=>(cr=ur.N)(e),lr=e=>(lr=ur.O)(e),pr=e=>(pr=ur.P)(e),hr=e=>(hr=ur.R)(e);function dr(){function e(){ir||(ir=!0,a.calledRun=!0,w||(R(C),r(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)W(a.postRun.shift());R(P)}()))}_>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)A(a.preRun.shift());R(b)}(),_>0||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1),e()},1)):e()))}if(a.dynCall_jiji=(e,r,t,n,o)=>(a.dynCall_jiji=ur.S)(e,r,t,n,o),F=function e(){ir||dr(),ir||(F=e)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return dr(),o})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[427],{5808:(e,t,n)=>{n.d(t,{O:()=>r});const r={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}},35223:(e,t,n)=>{n.d(t,{Hh:()=>s,fz:()=>u,g7:()=>l,s1:()=>i});var r=n(83290);let o;function i(){return!!o&&(0,r.i)()}async function s(){if(!i()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(4167)]).then(n.bind(n,28879)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(8344)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,r.l)()]);o=new e.OperatorGeodeticLength,t(r.p)}}function l(e,t,n){return o.execute(e,t,n,null)}function u(){return o.supportsCurves()}},40427:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>r.e,isLoaded:()=>r.i,load:()=>r.l,supportsCurves:()=>r.s}),n(86211),n(35223),n(5808);var r=n(62044)},62044:(e,t,n)=>{n.d(t,{e:()=>f,g:()=>p,i:()=>a,l:()=>d,s:()=>c});var r=n(86211),o=n(35223),i=n(5808);let s,l,u,c;function a(){return!!s&&(0,o.s1)()}async function d(){if(!a()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299),n.e(3169)]).then(n.bind(n,78125)),(0,o.Hh)()]);s=e.fromGeometry,l=e.fromSpatialReference,u=e.getSpatialReference,c=(0,o.fz)()}}function f(e,t={}){const{curveType:n="geodesic",unit:c}=t,a=u(e);let d=(0,o.g7)(s(e),l(a),i.O[n]);return d&&c&&(d=(0,r.oU)(d,"meters",c)),d}const p=Object.freeze(Object.defineProperty({__proto__:null,execute:f,isLoaded:a,load:d,get supportsCurves(){return c}},Symbol.toStringTag,{value:"Module"}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3054,3169,8125],{49074:(e,t,n)=>{n.d(t,{fz:()=>i,g7:()=>s,zo:()=>u});var r=n(76061),o=(n(55537),n(39117));n(83661),n(88885),n(79187),n(95213);const a=new o.K;function s(e,t,n){return a.execute(e,t,n,null)}function u(e,t,n){const o=a.executeMany(new r.S(e),new r.S([t]),n,null);return Array.from(o)}function i(){return a.supportsCurves()}},70722:(e,t,n)=>{n.d(t,{a:()=>s,d:()=>i,e:()=>a,s:()=>u});var r=n(49074),o=n(78125);function a(e,t){const n=(0,o.getSpatialReference)(e);return(0,o.toGeometry)((0,r.g7)((0,o.fromGeometry)(e),(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(n)),n)}function s(e,t){const n=e.map(o.fromGeometry),a=(0,o.getSpatialReference)(e);return(0,r.zo)(n,(0,o.fromGeometry)(t),(0,o.fromSpatialReference)(a)).map(e=>(0,o.toGeometry)(e,a))}const u=(0,r.fz)(),i=Object.freeze(Object.defineProperty({__proto__:null,execute:a,executeMany:s,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>o});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class o extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>C,fromGeometry:()=>G,fromMultipoint:()=>M,fromPoint:()=>w,fromPolygon:()=>V,fromPolyline:()=>v,fromSpatialReference:()=>d,getSpatialReference:()=>x,toExtent:()=>R,toGeometry:()=>P,toMultipoint:()=>Z,toPoint:()=>S,toPolygon:()=>_,toPolyline:()=>z});var r=n(83661),o=(n(79187),n(55537)),a=n(95213),s=n(88885),u=n(39117),i=n(5443),c=n(48526),l=n(86738),m=n(39829),f=n(82799),h=(n(90293),n(83299));const p="_gxVersion",y=2,g=1;function x(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function G(e){switch(e.type){case"point":return w(e);case"multipoint":return M(e);case"polyline":return v(e);case"polygon":return V(e);case"extent":return C(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function C(e){if(!e.getCacheValue(p)){const t=new a.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(y,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(g,0,e.zmin,e.zmax),e.setCacheValue(p,t)}return e.getCacheValue(p)}function M(e){if(!e.getCacheValue(p)){const t=new s.M,n=new a.P,r=e.points,o=e.hasM,u=e.hasZ,i=u?3:2;for(let e=0,a=r.length;e<a;e++){const a=r[e];n.setXYCoords(a[0],a[1]),u&&n.setZ(a[2]??0),o&&n.setM(a[i]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){const t=new a.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(p,t)}return e.getCacheValue(p)}function V(e){if(!e.getCacheValue(p)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,a=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(p,a)}return e.getCacheValue(p)}function v(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,a=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(p,a)}return e.getCacheValue(p)}function d(e){if(e.wkid)return(0,u.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,u.b)(t):null}function P(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return S(e,t);case o.G.enumEnvelope:return R(e,t);case o.G.enumMultiPoint:return Z(e,t);case o.G.enumPolyline:return z(e,t);case o.G.enumPolygon:return _(e,t)}return null}function R(e,t){if(e.isEmpty())return null;const n=new i.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(y,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(g,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(p,e),n}function Z(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),o=n.hasZ(),s=[],u=new a.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,u);const n=[u.getX(),u.getY()];o&&n.push(u.getZ()),r&&n.push(u.getM()),s.push(n)}const i=new c.A({hasM:r,hasZ:o,points:s,spatialReference:t});return i.setCacheValue(p,e),i}function S(e,t){if(e instanceof r.P)return new l.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new l.A({x:e.getX(),y:e.getY(),spatialReference:t}),o=e.getDescription();return o.hasM()&&(n.m=e.getM()),o.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function _(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}function z(e,t){if(e.isEmpty())return null;const n=f.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(p,e),n}},93054:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>r.e,executeMany:()=>r.a,supportsCurves:()=>r.s}),n(49074),n(78125);var r=n(70722)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3169,6468,8125],{36633:(e,t,n)=>{n.d(t,{O:()=>g});var r=n(55537),s=n(79187),o=n(83661),i=n(39117);function a(){return u(new o.P,-1,Number.NaN)}function u(e,t,n){return{m_coordinate:e.clone(),m_vertexIndex:t,m_geometryIndex:0,m_distance:n,m_bRightSide:!1,isEmpty:c}}function c(){return Number.isNaN(this.m_distance)}function m(e,t,n=-1,a=-1){if(e.isEmpty())return 3;const u=e.getGeometryType();if((0,r.f)(u))return function(e,t,n,s){if(n>=0||s>=0)return(0,r.a)("");if(e.isDegenerate(0))return e.getStartXY().equals(t)?2:3;if(!e.isCurve()){const n=o.P.orientationRobust(t,e.getStartXY(),e.getEndXY());return n<0?1:n>0?0:2}const i=e.getClosestCoordinate(t,!1),a=e.getTangent(i),u=e.getCoord2D(i),c=o.P.orientationRobust(t,u,u.add(a));return c<0?1:c>0?0:2}(e,t,n,a);if(u===r.G.enumPolygon)return function(e,t,n,o){(n>=0||o>=0)&&(0,r.a)("");const a=new s.Envelope2D;e.queryEnvelope(a);const u=(0,i.H)(e,t,0);return 0===u?0:1===u?1:2}(e,t,n,a);if(u===r.G.enumPolyline)return function(e,t,n,s){(n<0&&s>=0||n>=0&&s<0)&&(0,r.a)("");const i=e.querySegmentIterator();if(n<0){let e=Number.MAX_VALUE,r=0;for(;i.nextPath();)for(;i.hasNextSegment();){const a=i.nextSegment(),u=a.getClosestCoordinate(t,!1),c=a.getCoord2D(u),m=o.P.sqrDistance(c,t);m<e?(r=1,n=i.getStartPointIndex(),s=i.getPathIndex(),e=m):m===e&&r++}if(0===r)return 3;if(1===r)return i.resetToVertex(n,s),m(i.nextSegment(),t)}const a=function(e,t,n,r){const s={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(s.i1=function(e,t,n){for(e.resetToVertex(t,n);e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();for(e.resetToVertex(t,n);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,n,r),-1!==s.i1){t.resetToVertex(s.i1,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r),a=o.P.sqrDistance(i,e);{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),s.bRight1=t.crossProduct(r)<0}if(s.i2=function(e,t){for(e.resetToVertex(t,-1),e.nextSegment();e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2){t.resetToVertex(s.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(o.P.sqrDistance(i,e)>a)s.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),s.bRight2=t.crossProduct(r)<0}}if(-1===s.i2&&(s.i2=function(e,t){for(e.resetToVertex(t,-1);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,s.i1),-1!==s.i2)){t.resetToVertex(s.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(o.P.sqrDistance(i,e)>a)s.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),s.bRight2=t.crossProduct(r)<0;const o=s.i1;s.i1=s.i2,s.i2=o;const a=s.bRight1;s.bRight1=s.bRight2,s.bRight2=a}}}return s}(t,i,n,s);if(-1!==a.i1&&-1===a.i2)return a.bRight1?1:0;if(-1!==a.i1&&-1!==a.i2){if(a.bRight1===a.bRight2)return a.bRight1?1:0;{i.resetToVertex(a.i1,-1);const e=i.nextSegment().getTangent(1);i.resetToVertex(a.i2,-1);const t=i.nextSegment().getTangent(0);return e.crossProduct(t)>=0?1:0}}return i.resetToVertex(n,s),m(i.nextSegment(),t)}(e,t,n,a);if(u===r.G.enumEnvelope){const n=new s.Envelope2D;return e.queryEnvelope(n),n.contains(t)?n.containsExclusive(t)?1:2:0}return 3}var l=n(95213);class g{getOperatorType(){return 10500}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}getNearestCoordinate(e,t,n,s){if(t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:return this.multiVertexGetNearestVertex(e,t);case r.G.enumPolyline:case r.G.enumPolygon:return this.multiPathGetNearestCoordinate(e,t,n,s);default:(0,r.t)("")}}getNearestVertex(e,t){if(t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return a();switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertex(e,t);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertex(e,t);default:(0,r.t)("")}}getNearestVertices(e,t,n,s){if(0===s&&(0,r.a)(""),t.isNAN()&&(0,r.a)("NAN xy coordinates are not allowed"),e.isEmpty())return[];switch(e.getGeometryType()){case r.G.enumPoint:return this.pointGetNearestVertices(e,t,n,s);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertices(e,t,n,s);default:(0,r.t)("")}}multiPathGetNearestCoordinate(e,t,n,a){if(e.getGeometryType()===r.G.enumPolygon&&n){const n=new s.Envelope2D;e.queryEnvelope(n);const r=(0,l.a)(null,n,!1);let o;if(o=(0,i.H)(e,t,a?0:r),0!==o){const e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}const c=e.querySegmentIterator(),g=new o.P;let f=-1,h=-1,x=Number.MAX_VALUE,d=0;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment(),n=e.getClosestCoordinate(t,!1),r=e.getCoord2D(n),s=o.P.sqrDistance(r,t);s<x?(d=1,g.assign(r),f=c.getStartPointIndex(),h=c.getPathIndex(),x=s):s===x&&d++}-1===f&&(0,r.a)("");const y=u(g,f,Math.sqrt(x));if(a)if(e.getGeometryType()!==r.G.enumPolygon){let n=!1;if(d>1){const r=m(e,t,f,h);n=0!==r&&3!==r}else c.resetToVertex(f,h),n=0!==m(c.nextSegment(),t);y.m_bRightSide=n}else n||0!==(0,i.H)(e,t,0)&&(y.m_bRightSide=!0);return y}pointGetNearestVertex(e,t){const n=e.getXY();return u(n,0,o.P.distance(n,t))}multiVertexGetNearestVertex(e,t){const n=e.getAttributeStreamRef(0),r=e.getPointCount();let s=-1;const i=new o.P;let a=Number.MAX_VALUE;const c=new o.P;for(let e=0;e<r;e++){n.queryPoint2D(2*e,c);const r=o.P.sqrDistance(c,t);r<a&&(i.assign(c),s=e,a=r)}return u(i,s,Math.sqrt(a))}pointGetNearestVertices(e,t,n,r){const s=[];if(0!==r){const r=n*n,i=e.getXY(),a=o.P.sqrDistance(i,t);a<=r&&s.push(u(i,0,Math.sqrt(a)))}return s}multiVertexGetNearestVertices(e,t,n,r){const s=[];if(0!==r){const i=e.getAttributeStreamRef(0),a=e.getPointCount();s.length=r+1;const c=n*n;for(let e=0;e<a;e++){const n=i.read(2*e),r=i.read(2*e+1),a=t.x-n,m=t.y-r,l=a*a+m*m;l<=c&&s.push(u(o.P.construct(n,r),e,Math.sqrt(l)))}s.sort((e,t)=>e.m_distance-t.m_distance)}return s.slice(0,r)}}},48032:(e,t,n)=>{n.r(t),n.d(t,{getNearestCoordinate:()=>r.g,getNearestVertex:()=>r.a,getNearestVertices:()=>r.b,supportsCurves:()=>r.s}),n(36633),n(86211),n(78125),n(79533);var r=n(59260)},59260:(e,t,n)=>{n.d(t,{a:()=>c,b:()=>m,g:()=>u,p:()=>g,s:()=>l});var r=n(36633),s=n(86211),o=n(78125),i=n(79533);const a=new r.O;function u(e,t,n={}){const{calculateLeftRightSide:r=!1,testPolygonInterior:u=!0,unit:c}=n,m=a.getNearestCoordinate((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY(),u,r);if(c&&m.m_distance){const t=(0,o.getSpatialReference)(e);m.m_distance=(0,s.PQ)(m.m_distance,t,c)}return(0,i.C)(m,e,r)}function c(e,t,n={}){const{unit:r}=n,u=a.getNearestVertex((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY());if(r&&u.m_distance){const t=(0,o.getSpatialReference)(e);u.m_distance=(0,s.PQ)(u.m_distance,t,r)}return(0,i.C)(u,e)}function m(e,t,n,r,u={}){const{unit:c}=u,m=(0,o.getSpatialReference)(e);return c&&n&&(n=(0,s.UW)(n,c,m)),a.getNearestVertices((0,o.fromGeometry)(e),(0,o.fromPoint)(t).getXY(),n,r).map(t=>(c&&t.m_distance&&(t.m_distance=(0,s.PQ)(t.m_distance,m,c)),(0,i.C)(t,e)))}const l=a.supportsCurves(),g=Object.freeze(Object.defineProperty({__proto__:null,getNearestCoordinate:u,getNearestVertex:c,getNearestVertices:m,supportsCurves:l},Symbol.toStringTag,{value:"Module"}))},76061:(e,t,n)=>{n.d(t,{G:()=>r,S:()=>s});class r{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class s extends r{constructor(e){super(),this.m_iGeom=-1,this.m_aGeoms=e?e.slice():[]}next(){if(this.m_iGeom<this.m_aGeoms.length-1){const e=this.m_aGeoms[++this.m_iGeom];return this.m_aGeoms[this.m_iGeom]=null,e}return null}tock(){return!1}getGeometryID(){return this.m_iGeom}getRank(){return 1}}},78125:(e,t,n)=>{n.r(t),n.d(t,{fromExtent:()=>P,fromGeometry:()=>p,fromMultipoint:()=>G,fromPoint:()=>C,fromPolygon:()=>V,fromPolyline:()=>S,fromSpatialReference:()=>N,getSpatialReference:()=>y,toExtent:()=>b,toGeometry:()=>R,toMultipoint:()=>_,toPoint:()=>v,toPolygon:()=>M,toPolyline:()=>w});var r=n(83661),s=(n(79187),n(55537)),o=n(95213),i=n(88885),a=n(39117),u=n(5443),c=n(48526),m=n(86738),l=n(39829),g=n(82799),f=(n(90293),n(83299));const h="_gxVersion",x=2,d=1;function y(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function p(e){switch(e.type){case"point":return C(e);case"multipoint":return G(e);case"polyline":return S(e);case"polygon":return V(e);case"extent":return P(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function P(e){if(!e.getCacheValue(h)){const t=new o.E;t.setCoords(e.xmin,e.ymin,e.xmax,e.ymax),e.hasM&&t.setInterval(x,0,e.mmin,e.mmax),e.hasZ&&t.setInterval(d,0,e.zmin,e.zmax),e.setCacheValue(h,t)}return e.getCacheValue(h)}function G(e){if(!e.getCacheValue(h)){const t=new i.M,n=new o.P,r=e.points,s=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,o=r.length;e<o;e++){const o=r[e];n.setXYCoords(o[0],o[1]),a&&n.setZ(o[2]??0),s&&n.setM(o[u]??NaN),t.add(n)}e.setCacheValue(h,t)}return e.getCacheValue(h)}function C(e){if(!e.getCacheValue(h)){const t=new o.P;t.setXYCoords(e.x,e.y),e.hasM&&t.setM(e.m),e.hasZ&&t.setZ(e.z),e.setCacheValue(h,t)}return e.getCacheValue(h)}function V(e){if(!e.getCacheValue(h)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,o=(0,f.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(h,o)}return e.getCacheValue(h)}function S(e){if(!e.getCacheValue(h)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,f.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(h,o)}return e.getCacheValue(h)}function N(e){if(e.wkid)return(0,a.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,a.b)(t):null}function R(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return v(e,t);case s.G.enumEnvelope:return b(e,t);case s.G.enumMultiPoint:return _(e,t);case s.G.enumPolyline:return w(e,t);case s.G.enumPolygon:return M(e,t)}return null}function b(e,t){if(e.isEmpty())return null;const n=new u.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),r=e.getDescription();if(r.hasM()){const t=e.queryInterval(x,0);n.mmin=t.vmin,n.mmax=t.vmax}if(r.hasZ()){const t=e.queryInterval(d,0);n.zmin=t.vmin,n.zmax=t.vmax}return n.setCacheValue(h,e),n}function _(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),i=[],a=new o.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];s&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const u=new c.A({hasM:r,hasZ:s,points:i,spatialReference:t});return u.setCacheValue(h,e),u}function v(e,t){if(e instanceof r.P)return new m.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const n=new m.A({x:e.getX(),y:e.getY(),spatialReference:t}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(h,e),n}function M(e,t){if(e.isEmpty())return null;const n=l.A.fromJSON({spatialReference:t,...(0,f.toGeometry)(e,null)});return n.setCacheValue(h,e),n}function w(e,t){if(e.isEmpty())return null;const n=g.A.fromJSON({spatialReference:t,...(0,f.toGeometry)(e,null)});return n.setCacheValue(h,e),n}},79533:(e,t,n)=>{n.d(t,{C:()=>s});var r=n(78125);function s(e,t,n=!1){const s=(0,r.toPoint)(e.m_coordinate,(0,r.getSpatialReference)(t)),o=e.m_distance,i=e.isEmpty(),a=e.m_bRightSide;return{coordinate:s,distance:o,isEmpty:i,...n&&{isRightSide:a},vertexIndex:e.m_vertexIndex}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6187],{46187:(t,e,o)=>{o.r(e),o.d(e,{default:()=>r});var r=async function(t={}){var e,o,r,_=t,p=new Promise((t,r)=>{e=t,o=r}),n="";try{n=new URL(".","").href}catch{}r=async t=>{var e=await fetch(t,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var i,c,a,y,s,P,g,u,f,b=console.log.bind(console),E=console.error.bind(console),d=!1;function T(t,e){t||N(e)}function O(){var t=i.buffer;c=new Int8Array(t),y=new Int16Array(t),a=new Uint8Array(t),s=new Int32Array(t),P=new Uint32Array(t),g=new Float32Array(t),f=new Float64Array(t),u=new BigInt64Array(t),new BigUint64Array(t)}var m,h=0,S=null;function N(t){E(t="Aborted("+t+")"),d=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw o(e),e}async function l(t,e){try{var o=await async function(t){try{var e=await r(t);return new Uint8Array(e)}catch{}return function(){throw"both async and sync fetching of the wasm failed"}()}(t);return await WebAssembly.instantiate(o,e)}catch(t){E(`failed to asynchronously prepare wasm: ${t}`),N(t)}}var v="undefined"!=typeof TextDecoder?new TextDecoder:void 0,M=(t,e=0,o=NaN)=>{for(var r=e+o,_=e;t[_]&&!(_>=r);)++_;if(_-e>16&&t.buffer&&v)return v.decode(t.subarray(e,_));for(var p="";e<_;){var n=t[e++];if(128&n){var i=63&t[e++];if(192!=(224&n)){var c=63&t[e++];if((n=224==(240&n)?(15&n)<<12|i<<6|c:(7&n)<<18|i<<12|c<<6|63&t[e++])<65536)p+=String.fromCharCode(n);else{var a=n-65536;p+=String.fromCharCode(55296|a>>10,56320|1023&a)}}else p+=String.fromCharCode((31&n)<<6|i)}else p+=String.fromCharCode(n)}return p},j=(t,e)=>t?M(a,t,e):"",D=[0,31,60,91,121,152,182,213,244,274,305,335],A=[0,31,59,90,120,151,181,212,243,273,304,334],R=(t,e,o,r)=>{if(!(r>0))return 0;for(var _=o,p=o+r-1,n=0;n<t.length;++n){var i=t.charCodeAt(n);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&t.charCodeAt(++n)),i<=127){if(o>=p)break;e[o++]=i}else if(i<=2047){if(o+1>=p)break;e[o++]=192|i>>6,e[o++]=128|63&i}else if(i<=65535){if(o+2>=p)break;e[o++]=224|i>>12,e[o++]=128|i>>6&63,e[o++]=128|63&i}else{if(o+3>=p)break;e[o++]=240|i>>18,e[o++]=128|i>>12&63,e[o++]=128|i>>6&63,e[o++]=128|63&i}}return e[o]=0,o-_},C=(t,e,o)=>R(t,a,e,o),G=(t,e)=>Math.ceil(t/e)*e,I=t=>{var e=(t-i.buffer.byteLength+65535)/65536|0;try{return i.grow(e),O(),1}catch(t){}},L={},U=()=>{if(!U.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:"./this.program"};for(var e in L)void 0===L[e]?delete t[e]:t[e]=L[e];var o=[];for(var e in t)o.push(`${e}=${t[e]}`);U.strings=o}return U.strings},w=t=>{for(var e=0,o=0;o<t.length;++o){var r=t.charCodeAt(o);r<=127?e++:r<=2047?e+=2:r>=55296&&r<=57343?(e+=4,++o):e+=3}return e},F=[null,[],[]],Y=(t,e)=>{var o=F[t];0===e||10===e?((1===t?b:E)(M(o)),o.length=0):o.push(e)},X=[];_.getValue=function(t,e="i8"){switch(e.endsWith("*")&&(e="*"),e){case"i1":case"i8":return c[t];case"i16":return y[t>>1];case"i32":return s[t>>2];case"i64":return u[t>>3];case"float":return g[t>>2];case"double":return f[t>>3];case"*":return P[t>>2];default:N(`invalid type for getValue: ${e}`)}},_.UTF8ToString=j;var x={c:function(t,e,o){return 0},o:(t,e,o)=>{},i:function(t,e,o){return 0},d:function(t,e,o,r){},m:t=>{},l:(t,e)=>{},n:(t,e,o)=>{},j:()=>N(""),p:function(t,e){t=(t=>t<-9007199254740992||t>9007199254740992?NaN:Number(t))(t);var o=new Date(1e3*t);s[e>>2]=o.getSeconds(),s[e+4>>2]=o.getMinutes(),s[e+8>>2]=o.getHours(),s[e+12>>2]=o.getDate(),s[e+16>>2]=o.getMonth(),s[e+20>>2]=o.getFullYear()-1900,s[e+24>>2]=o.getDay();var r=0|(t=>((t=>t%4==0&&(t%100!=0||t%400==0))(t.getFullYear())?D:A)[t.getMonth()]+t.getDate()-1)(o);s[e+28>>2]=r,s[e+36>>2]=-60*o.getTimezoneOffset();var _=new Date(o.getFullYear(),0,1),p=new Date(o.getFullYear(),6,1).getTimezoneOffset(),n=_.getTimezoneOffset(),i=0|(p!=n&&o.getTimezoneOffset()==Math.min(n,p));s[e+32>>2]=i},q:(t,e,o,r)=>{var _=(new Date).getFullYear(),p=new Date(_,0,1),n=new Date(_,6,1),i=p.getTimezoneOffset(),c=n.getTimezoneOffset(),a=Math.max(i,c);P[t>>2]=60*a,s[e>>2]=Number(i!=c);var y=t=>{var e=t>=0?"-":"+",o=Math.abs(t);return`UTC${e}${String(Math.floor(o/60)).padStart(2,"0")}${String(o%60).padStart(2,"0")}`},g=y(i),u=y(c);c<i?(C(g,o,17),C(u,r,17)):(C(g,r,17),C(u,o,17))},r:()=>Date.now(),k:t=>{var e=a.length,o=2147483648;if((t>>>=0)>o)return!1;for(var r=1;r<=4;r*=2){var _=e*(1+.2/r);_=Math.min(_,t+100663296);var p=Math.min(o,G(Math.max(t,_),65536));if(I(p))return!0}return!1},f:(t,e)=>{var o=0,r=0;for(var _ of U()){var p=e+o;P[t+r>>2]=p,o+=C(_,p,1/0)+1,r+=4}return 0},g:(t,e)=>{var o=U();P[t>>2]=o.length;var r=0;for(var _ of o)r+=w(_)+1;return P[e>>2]=r,0},a:t=>52,h:(t,e,o,r)=>52,e:function(t,e,o,r){return 70},b:(t,e,o,r)=>{for(var _=0,p=0;p<o;p++){var n=P[e>>2],i=P[e+4>>2];e+=8;for(var c=0;c<i;c++)Y(t,a[n+c]);_+=i}return P[r>>2]=_,0}},H=await async function(){h++;var t={a:x};m??=_.locateFile?function(t){return _.locateFile?_.locateFile(t,n):n+t}("pe-wasm.wasm"):new URL("pe-wasm.wasm","").href;try{return function(t){return function(t){return H=t.exports,i=H.s,O(),function(){if(0==--h&&S){var t=S;S=null,t()}}(),H}(t.instance)}(await async function(t,e,o){if("function"==typeof WebAssembly.instantiateStreaming)try{var r=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(r,o)}catch(t){E(`wasm streaming compile failed: ${t}`),E("falling back to ArrayBuffer instantiation")}return l(e,o)}(0,m,t))}catch(t){return o(t),Promise.reject(t)}}();H.t,_._webidl_free=H.u,_._webidl_malloc=H.v;var z=_._emscripten_bind_PeObject_getCode_0=H.w,Z=_._emscripten_bind_PeObject_getName_1=H.x,W=_._emscripten_bind_PeObject_getType_0=H.y,B=_._emscripten_bind_PeCoordsys_isEqual_1=H.z,q=_._emscripten_bind_PeCoordsys_getCode_0=H.A,K=_._emscripten_bind_PeCoordsys_getName_1=H.B,k=_._emscripten_bind_PeCoordsys_getType_0=H.C,V=_._emscripten_bind_PeUnit_getUnitFactor_0=H.D,$=_._emscripten_bind_PeUnit_getCode_0=H.E,J=_._emscripten_bind_PeUnit_getName_1=H.F,Q=_._emscripten_bind_PeUnit_getType_0=H.G,tt=_._emscripten_bind_VoidPtr___destroy___0=H.H,et=_._emscripten_bind_PeAngunit_getCode_0=H.I,ot=_._emscripten_bind_PeAngunit_getName_1=H.J,rt=_._emscripten_bind_PeAngunit_getType_0=H.K,_t=_._emscripten_bind_PeAngunit_getUnitFactor_0=H.L,pt=_._emscripten_bind_PeDatum_getSpheroid_0=H.M,nt=_._emscripten_bind_PeDatum_getCode_0=H.N,it=_._emscripten_bind_PeDatum_getName_1=H.O,ct=_._emscripten_bind_PeDatum_getType_0=H.P,at=_._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=H.Q,yt=_._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=H.R,st=_._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=H.S,Pt=_._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=H.T,gt=_._emscripten_bind_PeDefs_get_PE_DD_MAX_0=H.U,ut=_._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=H.V,ft=_._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=H.W,bt=_._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=H.X,Et=_._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=H.Y,dt=_._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=H.Z,Tt=_._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=H._,Ot=_._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=H.$,mt=_._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=H.aa,ht=_._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=H.ba,St=_._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=H.ca,Nt=_._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=H.da,lt=_._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=H.ea,vt=_._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=H.fa,Mt=_._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=H.ga,jt=_._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=H.ha,Dt=_._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=H.ia,At=_._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=H.ja,Rt=_._emscripten_bind_PeDefs_get_PE_PARM_X0_0=H.ka,Ct=_._emscripten_bind_PeDefs_get_PE_PARM_ND_0=H.la,Gt=_._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=H.ma,It=_._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=H.na,Lt=_._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=H.oa,Ut=_._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=H.pa,wt=_._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=H.qa,Ft=_._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=H.ra,Yt=_._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=H.sa,Xt=_._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=H.ta,xt=_._emscripten_bind_PeDouble_PeDouble_1=H.ua,Ht=_._emscripten_bind_PeDouble_get_val_0=H.va,zt=_._emscripten_bind_PeDouble_set_val_1=H.wa,Zt=_._emscripten_bind_PeDouble___destroy___0=H.xa,Wt=_._emscripten_bind_PeFactory_initialize_1=H.ya,Bt=_._emscripten_bind_PeFactory_factoryByType_2=H.za,qt=_._emscripten_bind_PeFactory_fromString_2=H.Aa,Kt=_._emscripten_bind_PeFactory_getCode_1=H.Ba,kt=_._emscripten_bind_PeGCSExtent_PeGCSExtent_6=H.Ca,Vt=_._emscripten_bind_PeGCSExtent_getLLon_0=H.Da,$t=_._emscripten_bind_PeGCSExtent_getSLat_0=H.Ea,Jt=_._emscripten_bind_PeGCSExtent_getRLon_0=H.Fa,Qt=_._emscripten_bind_PeGCSExtent_getNLat_0=H.Ga,te=_._emscripten_bind_PeGCSExtent___destroy___0=H.Ha,ee=_._emscripten_bind_PeGeogcs_Delete_0=H.Ia,oe=_._emscripten_bind_PeGeogcs_cloneAlterUnits_1=H.Ja,re=_._emscripten_bind_PeGeogcs_getDatum_0=H.Ka,_e=_._emscripten_bind_PeGeogcs_getPrimem_0=H.La,pe=_._emscripten_bind_PeGeogcs_getUnit_0=H.Ma,ne=_._emscripten_bind_PeGeogcs_isEqual_1=H.Na,ie=_._emscripten_bind_PeGeogcs_getCode_0=H.Oa,ce=_._emscripten_bind_PeGeogcs_getName_1=H.Pa,ae=_._emscripten_bind_PeGeogcs_getType_0=H.Qa,ye=_._emscripten_bind_PeGeogtran_isEqual_1=H.Ra,se=_._emscripten_bind_PeGeogtran_getGeogcs1_0=H.Sa,Pe=_._emscripten_bind_PeGeogtran_getGeogcs2_0=H.Ta,ge=_._emscripten_bind_PeGeogtran_getParameters_0=H.Ua,ue=_._emscripten_bind_PeGeogtran_loadConstants_0=H.Va,fe=_._emscripten_bind_PeGeogtran_getCode_0=H.Wa,be=_._emscripten_bind_PeGeogtran_getName_1=H.Xa,Ee=_._emscripten_bind_PeGeogtran_getType_0=H.Ya,de=_._emscripten_bind_PeGTlistExtended_getGTlist_6=H.Za,Te=_._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=H._a,Oe=_._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=H.$a,me=_._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=H.ab,he=_._emscripten_bind_PeGTlistExtendedEntry_Delete_1=H.bb,Se=_._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=H.cb,Ne=_._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=H.db,le=_._emscripten_bind_PeHorizon_getNump_0=H.eb,ve=_._emscripten_bind_PeHorizon_getKind_0=H.fb,Me=_._emscripten_bind_PeHorizon_getInclusive_0=H.gb,je=_._emscripten_bind_PeHorizon_getSize_0=H.hb,De=_._emscripten_bind_PeHorizon_getCoord_0=H.ib,Ae=_._emscripten_bind_PeInteger_PeInteger_1=H.jb,Re=_._emscripten_bind_PeInteger_get_val_0=H.kb,Ce=_._emscripten_bind_PeInteger_set_val_1=H.lb,Ge=_._emscripten_bind_PeInteger___destroy___0=H.mb,Ie=_._emscripten_bind_PeLineType_geodetic_distance_10=H.nb,Le=_._emscripten_bind_PeLineType_geodetic_coordinate_9=H.ob,Ue=_._emscripten_bind_PeLineType_geodesic_coordinate_8=H.pb,we=_._emscripten_bind_PeLineType_great_elliptic_distance_9=H.qb,Fe=_._emscripten_bind_PeMath_phi_to_eta_2=H.rb,Ye=_._emscripten_bind_PeMath_eta_to_phi_2=H.sb,Xe=_._emscripten_bind_PeMath_phi_to_phig_2=H.tb,xe=_._emscripten_bind_PeMath_q_3=H.ub,He=_._emscripten_bind_PeMath_q90_2=H.vb,ze=_._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=H.wb,Ze=_._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=H.xb,We=_._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=H.yb,Be=_._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=H.zb,qe=_._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=H.Ab,Ke=_._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=H.Bb,ke=_._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=H.Cb,Ve=_._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=H.Db,$e=_._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=H.Eb,Je=_._emscripten_bind_PeParameter_getValue_0=H.Fb,Qe=_._emscripten_bind_PeParameter_getCode_0=H.Gb,to=_._emscripten_bind_PeParameter_getName_1=H.Hb,eo=_._emscripten_bind_PeParameter_getType_0=H.Ib,oo=_._emscripten_bind_PePCSInfo_getCentralMeridian_0=H.Jb,ro=_._emscripten_bind_PePCSInfo_getDomainMinx_0=H.Kb,_o=_._emscripten_bind_PePCSInfo_getDomainMiny_0=H.Lb,po=_._emscripten_bind_PePCSInfo_getDomainMaxx_0=H.Mb,no=_._emscripten_bind_PePCSInfo_getDomainMaxy_0=H.Nb,io=_._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=H.Ob,co=_._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=H.Pb,ao=_._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=H.Qb,yo=_._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=H.Rb,so=_._emscripten_bind_PePCSInfo_isDensificationNeeded_0=H.Sb,Po=_._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=H.Tb,go=_._emscripten_bind_PePCSInfo_isPannableRectangle_0=H.Ub,uo=_._emscripten_bind_PePCSInfo_generate_2=H.Vb,fo=_._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=H.Wb,bo=_._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=H.Xb,Eo=_._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=H.Yb,To=_._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=H.Zb,Oo=_._emscripten_bind_PePrimem_getLongitude_0=H._b,mo=_._emscripten_bind_PePrimem_getCode_0=H.$b,ho=_._emscripten_bind_PePrimem_getName_1=H.ac,So=_._emscripten_bind_PePrimem_getType_0=H.bc,No=_._emscripten_bind_PeProjcs_Delete_0=H.cc,lo=_._emscripten_bind_PeProjcs_getGeogcs_0=H.dc,vo=_._emscripten_bind_PeProjcs_getProjection_0=H.ec,Mo=_._emscripten_bind_PeProjcs_getParameters_0=H.fc,jo=_._emscripten_bind_PeProjcs_getUnit_0=H.gc,Do=_._emscripten_bind_PeProjcs_loadConstants_0=H.hc,Ao=_._emscripten_bind_PeProjcs_horizonGcsGenerate_0=H.ic,Ro=_._emscripten_bind_PeProjcs_horizonPcsGenerate_0=H.jc,Co=_._emscripten_bind_PeProjcs_isEqual_1=H.kc,Go=_._emscripten_bind_PeProjcs_getCode_0=H.lc,Io=_._emscripten_bind_PeProjcs_getName_1=H.mc,Lo=_._emscripten_bind_PeProjcs_getType_0=H.nc,Uo=_._emscripten_bind_PeSpheroid_getAxis_0=H.oc,wo=_._emscripten_bind_PeSpheroid_getFlattening_0=H.pc,Fo=_._emscripten_bind_PeSpheroid_getCode_0=H.qc,Yo=_._emscripten_bind_PeSpheroid_getName_1=H.rc,Xo=_._emscripten_bind_PeSpheroid_getType_0=H.sc,xo=_._emscripten_bind_PeVersion_version_string_0=H.tc;function Ho(){}function zo(t){return(t||Ho).__cache__}function Zo(t,e){var o=zo(e),r=o[t];return r||((r=Object.create((e||Ho).prototype)).ptr=t,o[t]=r)}_._pe_getPeGTlistExtendedEntrySize=H.uc,_._pe_getPeGTlistExtendedGTsSize=H.vc,_._pe_getPeHorizonSize=H.wc,_._pe_geog_to_geog=H.xc,_._pe_geog_to_proj=H.yc,_._pe_geog_to_dd=H.zc,_._pe_dd_to_geog=H.Ac,_._pe_geog_to_ddm=H.Bc,_._pe_ddm_to_geog=H.Cc,_._pe_geog_to_dms=H.Dc,_._pe_dms_to_geog=H.Ec,_._pe_geog_to_mgrs_extended=H.Fc,_._pe_mgrs_to_geog_extended=H.Gc,_._pe_geog_to_usng=H.Hc,_._pe_usng_to_geog=H.Ic,_._pe_geog_to_utm=H.Jc,_._pe_utm_to_geog=H.Kc,_._pe_object_to_string_ext=H.Lc,_._pe_proj_to_geog_center=H.Mc,function t(){h>0||h>0?S=t:(_.calledRun=!0,d||((t=>{for(;t.length>0;)t.shift()(_)})(X),H.t(),e(_)))}(),Ho.prototype=Object.create(Ho.prototype),Ho.prototype.constructor=Ho,Ho.prototype.__class__=Ho,Ho.__cache__={},_.WrapperObject=Ho,_.getCache=zo,_.wrapPointer=Zo,_.castObject=function(t,e){return Zo(t.ptr,e)},_.NULL=Zo(0),_.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete zo(t.__class__)[t.ptr]},_.compare=function(t,e){return t.ptr===e.ptr},_.getPointer=function(t){return t.ptr},_.getClass=function(t){return t.__class__};var Wo={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(Wo.needed){for(var t=0;t<Wo.temps.length;t++)_._webidl_free(Wo.temps[t]);Wo.temps.length=0,_._webidl_free(Wo.buffer),Wo.buffer=0,Wo.size+=Wo.needed,Wo.needed=0}Wo.buffer||(Wo.size+=128,Wo.buffer=_._webidl_malloc(Wo.size),T(Wo.buffer)),Wo.pos=0},alloc(t,e){T(Wo.buffer);var o,r=e.BYTES_PER_ELEMENT,p=t.length*r;return p=G(p,8),Wo.pos+p>=Wo.size?(T(p>0),Wo.needed+=p,o=_._webidl_malloc(p),Wo.temps.push(o)):(o=Wo.buffer+Wo.pos,Wo.pos+=p),o},copy(t,e,o){o/=e.BYTES_PER_ELEMENT;for(var r=0;r<t.length;r++)e[o+r]=t[r]}};function Bo(t){if("string"==typeof t){var e=(t=>{var e=w(t)+1,o=new Array(e);return R(t,o,0,o.length),o})(t),o=Wo.alloc(e,c);return Wo.copy(e,c,o),o}return t}function qo(t){if("object"==typeof t){var e=Wo.alloc(t,c);return Wo.copy(t,c,e),e}return t}function Ko(){throw"cannot construct a PeObject, no constructor in IDL"}function ko(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function Vo(){throw"cannot construct a PeUnit, no constructor in IDL"}function $o(){throw"cannot construct a VoidPtr, no constructor in IDL"}function Jo(){throw"cannot construct a PeAngunit, no constructor in IDL"}function Qo(){throw"cannot construct a PeDatum, no constructor in IDL"}function tr(){throw"cannot construct a PeDefs, no constructor in IDL"}function er(t){t&&"object"==typeof t&&(t=t.ptr),this.ptr=xt(t),zo(er)[this.ptr]=this}function or(){throw"cannot construct a PeFactory, no constructor in IDL"}function rr(t,e,o,r,_,p){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),this.ptr=kt(t,e,o,r,_,p),zo(rr)[this.ptr]=this}function _r(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function pr(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function nr(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function ir(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function cr(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function ar(){throw"cannot construct a PeHorizon, no constructor in IDL"}function yr(t){t&&"object"==typeof t&&(t=t.ptr),this.ptr=Ae(t),zo(yr)[this.ptr]=this}function sr(){throw"cannot construct a PeLineType, no constructor in IDL"}function Pr(){throw"cannot construct a PeMath, no constructor in IDL"}function gr(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function ur(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function fr(){throw"cannot construct a PeParameter, no constructor in IDL"}function br(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function Er(){throw"cannot construct a PePrimem, no constructor in IDL"}function dr(){throw"cannot construct a PeProjcs, no constructor in IDL"}function Tr(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function Or(){throw"cannot construct a PeVersion, no constructor in IDL"}return Ko.prototype=Object.create(Ho.prototype),Ko.prototype.constructor=Ko,Ko.prototype.__class__=Ko,Ko.__cache__={},_.PeObject=Ko,Ko.prototype.getCode=Ko.prototype.getCode=function(){var t=this.ptr;return z(t)},Ko.prototype.getName=Ko.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(Z(e,t))},Ko.prototype.getType=Ko.prototype.getType=function(){var t=this.ptr;return W(t)},ko.prototype=Object.create(Ko.prototype),ko.prototype.constructor=ko,ko.prototype.__class__=ko,ko.__cache__={},_.PeCoordsys=ko,ko.prototype.isEqual=ko.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!B(e,t)},ko.prototype.getCode=ko.prototype.getCode=function(){var t=this.ptr;return q(t)},ko.prototype.getName=ko.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(K(e,t))},ko.prototype.getType=ko.prototype.getType=function(){var t=this.ptr;return k(t)},Vo.prototype=Object.create(Ko.prototype),Vo.prototype.constructor=Vo,Vo.prototype.__class__=Vo,Vo.__cache__={},_.PeUnit=Vo,Vo.prototype.getUnitFactor=Vo.prototype.getUnitFactor=function(){var t=this.ptr;return V(t)},Vo.prototype.getCode=Vo.prototype.getCode=function(){var t=this.ptr;return $(t)},Vo.prototype.getName=Vo.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(J(e,t))},Vo.prototype.getType=Vo.prototype.getType=function(){var t=this.ptr;return Q(t)},$o.prototype=Object.create(Ho.prototype),$o.prototype.constructor=$o,$o.prototype.__class__=$o,$o.__cache__={},_.VoidPtr=$o,$o.prototype.__destroy__=$o.prototype.__destroy__=function(){var t=this.ptr;tt(t)},Jo.prototype=Object.create(Vo.prototype),Jo.prototype.constructor=Jo,Jo.prototype.__class__=Jo,Jo.__cache__={},_.PeAngunit=Jo,Jo.prototype.getCode=Jo.prototype.getCode=function(){var t=this.ptr;return et(t)},Jo.prototype.getName=Jo.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(ot(e,t))},Jo.prototype.getType=Jo.prototype.getType=function(){var t=this.ptr;return rt(t)},Jo.prototype.getUnitFactor=Jo.prototype.getUnitFactor=function(){var t=this.ptr;return _t(t)},Qo.prototype=Object.create(Ko.prototype),Qo.prototype.constructor=Qo,Qo.prototype.__class__=Qo,Qo.__cache__={},_.PeDatum=Qo,Qo.prototype.getSpheroid=Qo.prototype.getSpheroid=function(){var t=this.ptr;return Zo(pt(t),Tr)},Qo.prototype.getCode=Qo.prototype.getCode=function(){var t=this.ptr;return nt(t)},Qo.prototype.getName=Qo.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(it(e,t))},Qo.prototype.getType=Qo.prototype.getType=function(){var t=this.ptr;return ct(t)},tr.prototype=Object.create(Ho.prototype),tr.prototype.constructor=tr,tr.prototype.__class__=tr,tr.__cache__={},_.PeDefs=tr,tr.prototype.get_PE_BUFFER_MAX=tr.prototype.get_PE_BUFFER_MAX=function(){var t=this.ptr;return at(t)},Object.defineProperty(tr.prototype,"PE_BUFFER_MAX",{get:tr.prototype.get_PE_BUFFER_MAX}),tr.prototype.get_PE_NAME_MAX=tr.prototype.get_PE_NAME_MAX=function(){var t=this.ptr;return yt(t)},Object.defineProperty(tr.prototype,"PE_NAME_MAX",{get:tr.prototype.get_PE_NAME_MAX}),tr.prototype.get_PE_MGRS_MAX=tr.prototype.get_PE_MGRS_MAX=function(){var t=this.ptr;return st(t)},Object.defineProperty(tr.prototype,"PE_MGRS_MAX",{get:tr.prototype.get_PE_MGRS_MAX}),tr.prototype.get_PE_USNG_MAX=tr.prototype.get_PE_USNG_MAX=function(){var t=this.ptr;return Pt(t)},Object.defineProperty(tr.prototype,"PE_USNG_MAX",{get:tr.prototype.get_PE_USNG_MAX}),tr.prototype.get_PE_DD_MAX=tr.prototype.get_PE_DD_MAX=function(){var t=this.ptr;return gt(t)},Object.defineProperty(tr.prototype,"PE_DD_MAX",{get:tr.prototype.get_PE_DD_MAX}),tr.prototype.get_PE_DMS_MAX=tr.prototype.get_PE_DMS_MAX=function(){var t=this.ptr;return ut(t)},Object.defineProperty(tr.prototype,"PE_DMS_MAX",{get:tr.prototype.get_PE_DMS_MAX}),tr.prototype.get_PE_DDM_MAX=tr.prototype.get_PE_DDM_MAX=function(){var t=this.ptr;return ft(t)},Object.defineProperty(tr.prototype,"PE_DDM_MAX",{get:tr.prototype.get_PE_DDM_MAX}),tr.prototype.get_PE_UTM_MAX=tr.prototype.get_PE_UTM_MAX=function(){var t=this.ptr;return bt(t)},Object.defineProperty(tr.prototype,"PE_UTM_MAX",{get:tr.prototype.get_PE_UTM_MAX}),tr.prototype.get_PE_PARM_MAX=tr.prototype.get_PE_PARM_MAX=function(){var t=this.ptr;return Et(t)},Object.defineProperty(tr.prototype,"PE_PARM_MAX",{get:tr.prototype.get_PE_PARM_MAX}),tr.prototype.get_PE_TYPE_NONE=tr.prototype.get_PE_TYPE_NONE=function(){var t=this.ptr;return dt(t)},Object.defineProperty(tr.prototype,"PE_TYPE_NONE",{get:tr.prototype.get_PE_TYPE_NONE}),tr.prototype.get_PE_TYPE_GEOGCS=tr.prototype.get_PE_TYPE_GEOGCS=function(){var t=this.ptr;return Tt(t)},Object.defineProperty(tr.prototype,"PE_TYPE_GEOGCS",{get:tr.prototype.get_PE_TYPE_GEOGCS}),tr.prototype.get_PE_TYPE_PROJCS=tr.prototype.get_PE_TYPE_PROJCS=function(){var t=this.ptr;return Ot(t)},Object.defineProperty(tr.prototype,"PE_TYPE_PROJCS",{get:tr.prototype.get_PE_TYPE_PROJCS}),tr.prototype.get_PE_TYPE_GEOGTRAN=tr.prototype.get_PE_TYPE_GEOGTRAN=function(){var t=this.ptr;return mt(t)},Object.defineProperty(tr.prototype,"PE_TYPE_GEOGTRAN",{get:tr.prototype.get_PE_TYPE_GEOGTRAN}),tr.prototype.get_PE_TYPE_COORDSYS=tr.prototype.get_PE_TYPE_COORDSYS=function(){var t=this.ptr;return ht(t)},Object.defineProperty(tr.prototype,"PE_TYPE_COORDSYS",{get:tr.prototype.get_PE_TYPE_COORDSYS}),tr.prototype.get_PE_TYPE_UNIT=tr.prototype.get_PE_TYPE_UNIT=function(){var t=this.ptr;return St(t)},Object.defineProperty(tr.prototype,"PE_TYPE_UNIT",{get:tr.prototype.get_PE_TYPE_UNIT}),tr.prototype.get_PE_TYPE_LINUNIT=tr.prototype.get_PE_TYPE_LINUNIT=function(){var t=this.ptr;return Nt(t)},Object.defineProperty(tr.prototype,"PE_TYPE_LINUNIT",{get:tr.prototype.get_PE_TYPE_LINUNIT}),tr.prototype.get_PE_STR_OPTS_NONE=tr.prototype.get_PE_STR_OPTS_NONE=function(){var t=this.ptr;return lt(t)},Object.defineProperty(tr.prototype,"PE_STR_OPTS_NONE",{get:tr.prototype.get_PE_STR_OPTS_NONE}),tr.prototype.get_PE_STR_AUTH_NONE=tr.prototype.get_PE_STR_AUTH_NONE=function(){var t=this.ptr;return vt(t)},Object.defineProperty(tr.prototype,"PE_STR_AUTH_NONE",{get:tr.prototype.get_PE_STR_AUTH_NONE}),tr.prototype.get_PE_STR_AUTH_TOP=tr.prototype.get_PE_STR_AUTH_TOP=function(){var t=this.ptr;return Mt(t)},Object.defineProperty(tr.prototype,"PE_STR_AUTH_TOP",{get:tr.prototype.get_PE_STR_AUTH_TOP}),tr.prototype.get_PE_STR_NAME_CANON=tr.prototype.get_PE_STR_NAME_CANON=function(){var t=this.ptr;return jt(t)},Object.defineProperty(tr.prototype,"PE_STR_NAME_CANON",{get:tr.prototype.get_PE_STR_NAME_CANON}),tr.prototype.get_PE_STR_FMT_WKT=tr.prototype.get_PE_STR_FMT_WKT=function(){var t=this.ptr;return Dt(t)},Object.defineProperty(tr.prototype,"PE_STR_FMT_WKT",{get:tr.prototype.get_PE_STR_FMT_WKT}),tr.prototype.get_PE_STR_FMT_WKT2=tr.prototype.get_PE_STR_FMT_WKT2=function(){var t=this.ptr;return At(t)},Object.defineProperty(tr.prototype,"PE_STR_FMT_WKT2",{get:tr.prototype.get_PE_STR_FMT_WKT2}),tr.prototype.get_PE_PARM_X0=tr.prototype.get_PE_PARM_X0=function(){var t=this.ptr;return Rt(t)},Object.defineProperty(tr.prototype,"PE_PARM_X0",{get:tr.prototype.get_PE_PARM_X0}),tr.prototype.get_PE_PARM_ND=tr.prototype.get_PE_PARM_ND=function(){var t=this.ptr;return Ct(t)},Object.defineProperty(tr.prototype,"PE_PARM_ND",{get:tr.prototype.get_PE_PARM_ND}),tr.prototype.get_PE_TRANSFORM_1_TO_2=tr.prototype.get_PE_TRANSFORM_1_TO_2=function(){var t=this.ptr;return Gt(t)},Object.defineProperty(tr.prototype,"PE_TRANSFORM_1_TO_2",{get:tr.prototype.get_PE_TRANSFORM_1_TO_2}),tr.prototype.get_PE_TRANSFORM_2_TO_1=tr.prototype.get_PE_TRANSFORM_2_TO_1=function(){var t=this.ptr;return It(t)},Object.defineProperty(tr.prototype,"PE_TRANSFORM_2_TO_1",{get:tr.prototype.get_PE_TRANSFORM_2_TO_1}),tr.prototype.get_PE_TRANSFORM_P_TO_G=tr.prototype.get_PE_TRANSFORM_P_TO_G=function(){var t=this.ptr;return Lt(t)},Object.defineProperty(tr.prototype,"PE_TRANSFORM_P_TO_G",{get:tr.prototype.get_PE_TRANSFORM_P_TO_G}),tr.prototype.get_PE_TRANSFORM_G_TO_P=tr.prototype.get_PE_TRANSFORM_G_TO_P=function(){var t=this.ptr;return Ut(t)},Object.defineProperty(tr.prototype,"PE_TRANSFORM_G_TO_P",{get:tr.prototype.get_PE_TRANSFORM_G_TO_P}),tr.prototype.get_PE_HORIZON_RECT=tr.prototype.get_PE_HORIZON_RECT=function(){var t=this.ptr;return wt(t)},Object.defineProperty(tr.prototype,"PE_HORIZON_RECT",{get:tr.prototype.get_PE_HORIZON_RECT}),tr.prototype.get_PE_HORIZON_POLY=tr.prototype.get_PE_HORIZON_POLY=function(){var t=this.ptr;return Ft(t)},Object.defineProperty(tr.prototype,"PE_HORIZON_POLY",{get:tr.prototype.get_PE_HORIZON_POLY}),tr.prototype.get_PE_HORIZON_LINE=tr.prototype.get_PE_HORIZON_LINE=function(){var t=this.ptr;return Yt(t)},Object.defineProperty(tr.prototype,"PE_HORIZON_LINE",{get:tr.prototype.get_PE_HORIZON_LINE}),tr.prototype.get_PE_HORIZON_DELTA=tr.prototype.get_PE_HORIZON_DELTA=function(){var t=this.ptr;return Xt(t)},Object.defineProperty(tr.prototype,"PE_HORIZON_DELTA",{get:tr.prototype.get_PE_HORIZON_DELTA}),er.prototype=Object.create(Ho.prototype),er.prototype.constructor=er,er.prototype.__class__=er,er.__cache__={},_.PeDouble=er,er.prototype.get_val=er.prototype.get_val=function(){var t=this.ptr;return Ht(t)},er.prototype.set_val=er.prototype.set_val=function(t){var e=this.ptr;t&&"object"==typeof t&&(t=t.ptr),zt(e,t)},Object.defineProperty(er.prototype,"val",{get:er.prototype.get_val,set:er.prototype.set_val}),er.prototype.__destroy__=er.prototype.__destroy__=function(){var t=this.ptr;Zt(t)},or.prototype=Object.create(Ho.prototype),or.prototype.constructor=or,or.prototype.__class__=or,or.__cache__={},_.PeFactory=or,or.prototype.initialize=or.prototype.initialize=function(t){Wo.prepare(),t=t&&"object"==typeof t?t.ptr:Bo(t),Wt(t)},or.prototype.factoryByType=or.prototype.factoryByType=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Zo(Bt(t,e),Ko)},or.prototype.fromString=or.prototype.fromString=function(t,e){return Wo.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:Bo(e),Zo(qt(t,e),Ko)},or.prototype.getCode=or.prototype.getCode=function(t){return t&&"object"==typeof t&&(t=t.ptr),Kt(t)},rr.prototype=Object.create(Ho.prototype),rr.prototype.constructor=rr,rr.prototype.__class__=rr,rr.__cache__={},_.PeGCSExtent=rr,rr.prototype.getLLon=rr.prototype.getLLon=function(){var t=this.ptr;return Vt(t)},rr.prototype.getSLat=rr.prototype.getSLat=function(){var t=this.ptr;return $t(t)},rr.prototype.getRLon=rr.prototype.getRLon=function(){var t=this.ptr;return Jt(t)},rr.prototype.getNLat=rr.prototype.getNLat=function(){var t=this.ptr;return Qt(t)},rr.prototype.__destroy__=rr.prototype.__destroy__=function(){var t=this.ptr;te(t)},_r.prototype=Object.create(ko.prototype),_r.prototype.constructor=_r,_r.prototype.__class__=_r,_r.__cache__={},_.PeGeogcs=_r,_r.prototype.Delete=_r.prototype.Delete=function(){var t=this.ptr;ee(t)},_r.prototype.cloneAlterUnits=_r.prototype.cloneAlterUnits=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Zo(oe(e,t),_r)},_r.prototype.getDatum=_r.prototype.getDatum=function(){var t=this.ptr;return Zo(re(t),Qo)},_r.prototype.getPrimem=_r.prototype.getPrimem=function(){var t=this.ptr;return Zo(_e(t),Er)},_r.prototype.getUnit=_r.prototype.getUnit=function(){var t=this.ptr;return Zo(pe(t),Jo)},_r.prototype.isEqual=_r.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!ne(e,t)},_r.prototype.getCode=_r.prototype.getCode=function(){var t=this.ptr;return ie(t)},_r.prototype.getName=_r.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(ce(e,t))},_r.prototype.getType=_r.prototype.getType=function(){var t=this.ptr;return ae(t)},pr.prototype=Object.create(Ko.prototype),pr.prototype.constructor=pr,pr.prototype.__class__=pr,pr.__cache__={},_.PeGeogtran=pr,pr.prototype.isEqual=pr.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!ye(e,t)},pr.prototype.getGeogcs1=pr.prototype.getGeogcs1=function(){var t=this.ptr;return Zo(se(t),_r)},pr.prototype.getGeogcs2=pr.prototype.getGeogcs2=function(){var t=this.ptr;return Zo(Pe(t),_r)},pr.prototype.getParameters=pr.prototype.getParameters=function(){var t=this.ptr;return ge(t)},pr.prototype.loadConstants=pr.prototype.loadConstants=function(){var t=this.ptr;return!!ue(t)},pr.prototype.getCode=pr.prototype.getCode=function(){var t=this.ptr;return fe(t)},pr.prototype.getName=pr.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(be(e,t))},pr.prototype.getType=pr.prototype.getType=function(){var t=this.ptr;return Ee(t)},nr.prototype=Object.create(Ho.prototype),nr.prototype.constructor=nr,nr.prototype.__class__=nr,nr.__cache__={},_.PeGTlistExtended=nr,nr.prototype.getGTlist=nr.prototype.getGTlist=function(t,e,o,r,_,p){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),Zo(de(t,e,o,r,_,p),ir)},nr.prototype.get_PE_GTLIST_OPTS_COMMON=nr.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var t=this.ptr;return Te(t)},Object.defineProperty(nr.prototype,"PE_GTLIST_OPTS_COMMON",{get:nr.prototype.get_PE_GTLIST_OPTS_COMMON}),ir.prototype=Object.create(Ho.prototype),ir.prototype.constructor=ir,ir.prototype.__class__=ir,ir.__cache__={},_.PeGTlistExtendedEntry=ir,ir.prototype.getEntries=ir.prototype.getEntries=function(){var t=this.ptr;return Zo(Oe(t),cr)},ir.prototype.getSteps=ir.prototype.getSteps=function(){var t=this.ptr;return me(t)},ir.prototype.Delete=ir.prototype.Delete=function(t){t&&"object"==typeof t&&(t=t.ptr),he(t)},cr.prototype=Object.create(Ho.prototype),cr.prototype.constructor=cr,cr.prototype.__class__=cr,cr.__cache__={},_.PeGTlistExtendedGTs=cr,cr.prototype.getDirection=cr.prototype.getDirection=function(){var t=this.ptr;return Se(t)},cr.prototype.getGeogtran=cr.prototype.getGeogtran=function(){var t=this.ptr;return Zo(Ne(t),pr)},ar.prototype=Object.create(Ho.prototype),ar.prototype.constructor=ar,ar.prototype.__class__=ar,ar.__cache__={},_.PeHorizon=ar,ar.prototype.getNump=ar.prototype.getNump=function(){var t=this.ptr;return le(t)},ar.prototype.getKind=ar.prototype.getKind=function(){var t=this.ptr;return ve(t)},ar.prototype.getInclusive=ar.prototype.getInclusive=function(){var t=this.ptr;return Me(t)},ar.prototype.getSize=ar.prototype.getSize=function(){var t=this.ptr;return je(t)},ar.prototype.getCoord=ar.prototype.getCoord=function(){var t=this.ptr;return De(t)},yr.prototype=Object.create(Ho.prototype),yr.prototype.constructor=yr,yr.prototype.__class__=yr,yr.__cache__={},_.PeInteger=yr,yr.prototype.get_val=yr.prototype.get_val=function(){var t=this.ptr;return Re(t)},yr.prototype.set_val=yr.prototype.set_val=function(t){var e=this.ptr;t&&"object"==typeof t&&(t=t.ptr),Ce(e,t)},Object.defineProperty(yr.prototype,"val",{get:yr.prototype.get_val,set:yr.prototype.set_val}),yr.prototype.__destroy__=yr.prototype.__destroy__=function(){var t=this.ptr;Ge(t)},sr.prototype=Object.create(Ho.prototype),sr.prototype.constructor=sr,sr.prototype.__class__=sr,sr.__cache__={},_.PeLineType=sr,sr.prototype.geodetic_distance=sr.prototype.geodetic_distance=function(t,e,o,r,_,p,n,i,c,a){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),a&&"object"==typeof a&&(a=a.ptr),Ie(t,e,o,r,_,p,n,i,c,a)},sr.prototype.geodetic_coordinate=sr.prototype.geodetic_coordinate=function(t,e,o,r,_,p,n,i,c){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),Le(t,e,o,r,_,p,n,i,c)},sr.prototype.geodesic_coordinate=sr.prototype.geodesic_coordinate=function(t,e,o,r,_,p,n,i){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),Ue(t,e,o,r,_,p,n,i)},sr.prototype.great_elliptic_distance=sr.prototype.great_elliptic_distance=function(t,e,o,r,_,p,n,i,c){t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),r&&"object"==typeof r&&(r=r.ptr),_&&"object"==typeof _&&(_=_.ptr),p&&"object"==typeof p&&(p=p.ptr),n&&"object"==typeof n&&(n=n.ptr),i&&"object"==typeof i&&(i=i.ptr),c&&"object"==typeof c&&(c=c.ptr),we(t,e,o,r,_,p,n,i,c)},Pr.prototype=Object.create(Ho.prototype),Pr.prototype.constructor=Pr,Pr.prototype.__class__=Pr,Pr.__cache__={},_.PeMath=Pr,Pr.prototype.phi_to_eta=Pr.prototype.phi_to_eta=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Fe(t,e)},Pr.prototype.eta_to_phi=Pr.prototype.eta_to_phi=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Ye(t,e)},Pr.prototype.phi_to_phig=Pr.prototype.phi_to_phig=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Xe(t,e)},Pr.prototype.q=Pr.prototype.q=function(t,e,o){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),o&&"object"==typeof o&&(o=o.ptr),xe(t,e,o)},Pr.prototype.q90=Pr.prototype.q90=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),He(t,e)},gr.prototype=Object.create(Ho.prototype),gr.prototype.constructor=gr,gr.prototype.__class__=gr,gr.__cache__={},_.PeNotationMgrs=gr,gr.prototype.get_PE_MGRS_STYLE_NEW=gr.prototype.get_PE_MGRS_STYLE_NEW=function(){var t=this.ptr;return ze(t)},Object.defineProperty(gr.prototype,"PE_MGRS_STYLE_NEW",{get:gr.prototype.get_PE_MGRS_STYLE_NEW}),gr.prototype.get_PE_MGRS_STYLE_OLD=gr.prototype.get_PE_MGRS_STYLE_OLD=function(){var t=this.ptr;return Ze(t)},Object.defineProperty(gr.prototype,"PE_MGRS_STYLE_OLD",{get:gr.prototype.get_PE_MGRS_STYLE_OLD}),gr.prototype.get_PE_MGRS_STYLE_AUTO=gr.prototype.get_PE_MGRS_STYLE_AUTO=function(){var t=this.ptr;return We(t)},Object.defineProperty(gr.prototype,"PE_MGRS_STYLE_AUTO",{get:gr.prototype.get_PE_MGRS_STYLE_AUTO}),gr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=gr.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var t=this.ptr;return Be(t)},Object.defineProperty(gr.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:gr.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),gr.prototype.get_PE_MGRS_ADD_SPACES=gr.prototype.get_PE_MGRS_ADD_SPACES=function(){var t=this.ptr;return qe(t)},Object.defineProperty(gr.prototype,"PE_MGRS_ADD_SPACES",{get:gr.prototype.get_PE_MGRS_ADD_SPACES}),ur.prototype=Object.create(Ho.prototype),ur.prototype.constructor=ur,ur.prototype.__class__=ur,ur.__cache__={},_.PeNotationUtm=ur,ur.prototype.get_PE_UTM_OPTS_NONE=ur.prototype.get_PE_UTM_OPTS_NONE=function(){var t=this.ptr;return Ke(t)},Object.defineProperty(ur.prototype,"PE_UTM_OPTS_NONE",{get:ur.prototype.get_PE_UTM_OPTS_NONE}),ur.prototype.get_PE_UTM_OPTS_NS=ur.prototype.get_PE_UTM_OPTS_NS=function(){var t=this.ptr;return ke(t)},Object.defineProperty(ur.prototype,"PE_UTM_OPTS_NS",{get:ur.prototype.get_PE_UTM_OPTS_NS}),ur.prototype.get_PE_UTM_OPTS_NS_STRICT=ur.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var t=this.ptr;return Ve(t)},Object.defineProperty(ur.prototype,"PE_UTM_OPTS_NS_STRICT",{get:ur.prototype.get_PE_UTM_OPTS_NS_STRICT}),ur.prototype.get_PE_UTM_OPTS_ADD_SPACES=ur.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var t=this.ptr;return $e(t)},Object.defineProperty(ur.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:ur.prototype.get_PE_UTM_OPTS_ADD_SPACES}),fr.prototype=Object.create(Ko.prototype),fr.prototype.constructor=fr,fr.prototype.__class__=fr,fr.__cache__={},_.PeParameter=fr,fr.prototype.getValue=fr.prototype.getValue=function(){var t=this.ptr;return Je(t)},fr.prototype.getCode=fr.prototype.getCode=function(){var t=this.ptr;return Qe(t)},fr.prototype.getName=fr.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(to(e,t))},fr.prototype.getType=fr.prototype.getType=function(){var t=this.ptr;return eo(t)},br.prototype=Object.create(Ho.prototype),br.prototype.constructor=br,br.prototype.__class__=br,br.__cache__={},_.PePCSInfo=br,br.prototype.getCentralMeridian=br.prototype.getCentralMeridian=function(){var t=this.ptr;return oo(t)},br.prototype.getDomainMinx=br.prototype.getDomainMinx=function(){var t=this.ptr;return ro(t)},br.prototype.getDomainMiny=br.prototype.getDomainMiny=function(){var t=this.ptr;return _o(t)},br.prototype.getDomainMaxx=br.prototype.getDomainMaxx=function(){var t=this.ptr;return po(t)},br.prototype.getDomainMaxy=br.prototype.getDomainMaxy=function(){var t=this.ptr;return no(t)},br.prototype.getNorthPoleLocation=br.prototype.getNorthPoleLocation=function(){var t=this.ptr;return io(t)},br.prototype.getNorthPoleGeometry=br.prototype.getNorthPoleGeometry=function(){var t=this.ptr;return co(t)},br.prototype.getSouthPoleLocation=br.prototype.getSouthPoleLocation=function(){var t=this.ptr;return ao(t)},br.prototype.getSouthPoleGeometry=br.prototype.getSouthPoleGeometry=function(){var t=this.ptr;return yo(t)},br.prototype.isDensificationNeeded=br.prototype.isDensificationNeeded=function(){var t=this.ptr;return!!so(t)},br.prototype.isGcsHorizonMultiOverlap=br.prototype.isGcsHorizonMultiOverlap=function(){var t=this.ptr;return!!Po(t)},br.prototype.isPannableRectangle=br.prototype.isPannableRectangle=function(){var t=this.ptr;return!!go(t)},br.prototype.generate=br.prototype.generate=function(t,e){return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),Zo(uo(t,e),br)},br.prototype.get_PE_PCSINFO_OPTION_NONE=br.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var t=this.ptr;return fo(t)},Object.defineProperty(br.prototype,"PE_PCSINFO_OPTION_NONE",{get:br.prototype.get_PE_PCSINFO_OPTION_NONE}),br.prototype.get_PE_PCSINFO_OPTION_DOMAIN=br.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var t=this.ptr;return bo(t)},Object.defineProperty(br.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:br.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),br.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=br.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var t=this.ptr;return Eo(t)},Object.defineProperty(br.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:br.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),br.prototype.get_PE_POLE_POINT=br.prototype.get_PE_POLE_POINT=function(){var t=this.ptr;return To(t)},Object.defineProperty(br.prototype,"PE_POLE_POINT",{get:br.prototype.get_PE_POLE_POINT}),Er.prototype=Object.create(Ko.prototype),Er.prototype.constructor=Er,Er.prototype.__class__=Er,Er.__cache__={},_.PePrimem=Er,Er.prototype.getLongitude=Er.prototype.getLongitude=function(){var t=this.ptr;return Oo(t)},Er.prototype.getCode=Er.prototype.getCode=function(){var t=this.ptr;return mo(t)},Er.prototype.getName=Er.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(ho(e,t))},Er.prototype.getType=Er.prototype.getType=function(){var t=this.ptr;return So(t)},dr.prototype=Object.create(ko.prototype),dr.prototype.constructor=dr,dr.prototype.__class__=dr,dr.__cache__={},_.PeProjcs=dr,dr.prototype.Delete=dr.prototype.Delete=function(){var t=this.ptr;No(t)},dr.prototype.getGeogcs=dr.prototype.getGeogcs=function(){var t=this.ptr;return Zo(lo(t),_r)},dr.prototype.getProjection=dr.prototype.getProjection=function(){var t=this.ptr;return Zo(vo(t),Ko)},dr.prototype.getParameters=dr.prototype.getParameters=function(){var t=this.ptr;return Mo(t)},dr.prototype.getUnit=dr.prototype.getUnit=function(){var t=this.ptr;return Zo(jo(t),Vo)},dr.prototype.loadConstants=dr.prototype.loadConstants=function(){var t=this.ptr;return!!Do(t)},dr.prototype.horizonGcsGenerate=dr.prototype.horizonGcsGenerate=function(){var t=this.ptr;return Zo(Ao(t),ar)},dr.prototype.horizonPcsGenerate=dr.prototype.horizonPcsGenerate=function(){var t=this.ptr;return Zo(Ro(t),ar)},dr.prototype.isEqual=dr.prototype.isEqual=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!Co(e,t)},dr.prototype.getCode=dr.prototype.getCode=function(){var t=this.ptr;return Go(t)},dr.prototype.getName=dr.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(Io(e,t))},dr.prototype.getType=dr.prototype.getType=function(){var t=this.ptr;return Lo(t)},Tr.prototype=Object.create(Ko.prototype),Tr.prototype.constructor=Tr,Tr.prototype.__class__=Tr,Tr.__cache__={},_.PeSpheroid=Tr,Tr.prototype.getAxis=Tr.prototype.getAxis=function(){var t=this.ptr;return Uo(t)},Tr.prototype.getFlattening=Tr.prototype.getFlattening=function(){var t=this.ptr;return wo(t)},Tr.prototype.getCode=Tr.prototype.getCode=function(){var t=this.ptr;return Fo(t)},Tr.prototype.getName=Tr.prototype.getName=function(t){var e=this.ptr;return Wo.prepare(),"object"==typeof t&&(t=qo(t)),j(Yo(e,t))},Tr.prototype.getType=Tr.prototype.getType=function(){var t=this.ptr;return Xo(t)},Or.prototype=Object.create(Ho.prototype),Or.prototype.constructor=Or,Or.prototype.__class__=Or,Or.__cache__={},_.PeVersion=Or,Or.prototype.version_string=Or.prototype.version_string=function(){var t=this.ptr;return j(xo(t))},_.ensureCache=Wo,_.ensureString=Bo,_.ensureInt8=qo,_.ensureInt16=function(t){if("object"==typeof t){var e=Wo.alloc(t,y);return Wo.copy(t,y,e),e}return t},_.ensureInt32=function(t){if("object"==typeof t){var e=Wo.alloc(t,s);return Wo.copy(t,s,e),e}return t},_.ensureFloat32=function(t){if("object"==typeof t){var e=Wo.alloc(t,g);return Wo.copy(t,g,e),e}return t},_.ensureFloat64=function(t){if("object"==typeof t){var e=Wo.alloc(t,f);return Wo.copy(t,f,e),e}return t},p}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 3a457e718a901a45902e.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1436],{4643:(t,e,n)=>{n.d(e,{c:()=>o,u:()=>i});var s=n(46337);function o(t,e,n){if(s.S$)return;const o=function(t){class e extends window.MutationObserver{constructor(t){super(t),this.observedEntry=[],this.callback=t}observe(t,e){return this.observedEntry.push({target:t,options:e}),super.observe(t,e)}unobserve(t){const e=this.observedEntry.filter(e=>e.target!==t);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),e.forEach(t=>this.observe(t.target,t.options))}}return"intersection"===t?window.IntersectionObserver:"mutation"===t?e:window.ResizeObserver}(t);return new o(e,n)}function i(t,e,n,s){t&&(e&&t.unobserve(e),n&&(t instanceof MutationObserver?t.observe(n,s):t.observe(n)))}},20307:(t,e,n)=>{n.d(e,{u:()=>r});var s=n(50941),o=n(83623),i=n(79e3);const r=()=>(0,s.aK)((t,e)=>{let n;function s(){n?.abort()}return e.onLoad(()=>{t.listen("focus",()=>{n=new AbortController,t.el.addEventListener("focusout",s,{signal:n.signal})})}),e.onDisconnected(()=>{t.el.removeEventListener("focusout",s)}),async(e,r)=>{if(t.disabled)return;const a=function(t){if(t)return function(t){return"target"in t&&("includeContainer"in t||"strategy"in t)}(t)?t:{target:t}}(e());if(!a)return;const{target:c,includeContainer:l,strategy:h}=a,u=(0,i.k)(t.el),p=u.activeElement;return await(0,o.c)(t),p!==u.activeElement||n&&!n?.signal.aborted?void 0:(t.el.removeEventListener("focus",s),(0,i.b)(c,l,h,t.el,r))}})},32239:(t,e,n)=>{var s=n(34088),o=n(46337),i=n(41557),r=n(79e3),a=n(4643),c=n(84137);const l="flip-rtl",h="svg",u={},p={},d={s:16,m:24,l:32};function b({icon:t,scale:e}){const n=d[e],s=function(t){const e=!isNaN(Number(t.charAt(0))),n=t.split("-");if(n.length>0){const e=/[a-z]/i;t=n.map((t,n)=>t.replace(e,function(t,e){return 0===n&&0===e?t:t.toUpperCase()})).join("")}return e?`i${t}`:t}(t),o="F"===s.charAt(s.length-1);return`${o?s.substring(0,s.length-1):s}${n}${o?"F":""}`}function v(t){return u[t]}const f=o.AH`:host{--calcite-internal-color-focus: var( --calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)) )}:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`;class g extends i.WF{constructor(){super(...arguments),this.visible=!1,this.flipRtl=!1,this.icon=null,this.preload=!1,this.scale="m"}static{this.properties={pathData:[16,{},{state:!0}],visible:[16,{},{state:!0}],flipRtl:[7,{},{reflect:!0,type:Boolean}],icon:[3,{},{reflect:!0}],preload:[7,{},{reflect:!0,type:Boolean}],scale:[3,{},{reflect:!0}],textLabel:1}}static{this.styles=f}connectedCallback(){if(super.connectedCallback(),this.preload)return this.visible=!0,void this.loadIconPathData();this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(t){(t.has("icon")&&(this.hasUpdated||null!==this.icon)||t.has("scale")&&(this.hasUpdated||"m"!==this.scale))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async loadIconPathData(){const{icon:t,scale:e,visible:n}=this;if(o.S$||!t||!n)return;const i={icon:t,scale:e},r=v(b(i))||await async function(t){const e=b(t),n=v(e);if(n)return n;p[e]||(p[e]=fetch((0,s.g)(`./assets/icon/${e}.json`)).then(t=>t.json()).catch(()=>(c.l.error(`${t.icon} (${t.scale}) icon failed to load`),"")));const o=await p[e];return u[e]=o,o}(i);t===this.icon&&(this.pathData=r)}waitUntilVisible(t){this.intersectionObserver=(0,a.c)("intersection",e=>{e.forEach(e=>{e.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())})},{rootMargin:"50px"}),this.intersectionObserver?this.intersectionObserver.observe(this.el):t()}render(){const{el:t,flipRtl:e,pathData:n,scale:s,textLabel:a}=this,c=(0,r.g)(t),u=d[s],p=!!a,b=[].concat(n||"");return this.el.ariaHidden=(0,r.t)(!p),this.el.ariaLabel=p?a:null,this.el.role=p?"img":null,o.qy`<svg aria-hidden=true class=${(0,i.CP)({[l]:"rtl"===c&&e,[h]:!0})} fill=currentColor height=100% viewBox=${`0 0 ${u} ${u}`} width=100% xmlns=http://www.w3.org/2000/svg>${b.map(t=>"string"==typeof t?o.JW`<path d=${t??o.s6} />`:o.JW`<path d=${t.d??o.s6} opacity=${("opacity"in t?t.opacity:1)??o.s6} />`)}</svg>`}}(0,s.c)("calcite-icon",g)},50941:(t,e,n)=>{n.d(e,{aK:()=>v,yr:()=>y,oW:()=>w});var s=n(55333),o=n(94667);var i=n(46337),r=n(20150);const a="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),c=new Set(a),l="en",h={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},u={},p=async(t,e)=>{const n=`${e}${t}.json`;try{const t=await fetch(n);if(t.ok)return await t.json()}catch(t){return console.error(t),{}}return t===l?{}:await p(l,e)},d=t=>{const e=(0,r.Zj)(t,"lang",globalThis.navigator?.language||l);return{lang:e,t9nLocale:b(e)}},b=t=>{const[e,n]=t.split("-"),s=e.toLowerCase();let o=s;return n&&(o=`${s}-${n.toUpperCase()}`),o=h[o]??o,c.has(o)?o:n?b(s):l},v=t=>e=>g(e,t);class f extends s.C{constructor(t,e){super(t);const n=this.exports;try{(0,o.s)(this.component);const t=e(this.component,this),s=this.exports!==n;if((0,o.i)(t)){s||this.setProvisionalExports(t);const e=t.then(t=>{this.exports=t,super.catchUpLifecycle()}).catch(t=>{this.P.reject(t),console.error(t)});this.onLoad(async()=>await e)}else s&&void 0===t||(this.exports=t),queueMicrotask(()=>super.catchUpLifecycle())}catch(t){this.P.reject(t),console.error(t)}}catchUpLifecycle(){}}const g=(m=f,(...t)=>{const e=(0,o.d)(),n=new m(...t),i=n.exports;(0,o.b)(e.at(-1));const r=n.component.manager;r.W(n,i),n.watchExports(r.W.bind(r,n)),(0,o.j)(n);const a=[n.component,...e].reverse();return(0,s.t)(a,t=>void 0===t?void 0:((t,{host:e,key:n,isReactive:s},i)=>{const r=e,a=r[n]!==t.exports,c=r[n]!==i,l=i!==t.exports;if(a&&!c&&l&&(r[n]=t.exports),e===t.component){if(s){const e=t.component.manager;c&&e.W(t,r[n]),t.onUpdate(s=>{if(s.has(n)){const s=r[n];s!==t.exports&&e.W(t,s)}})}t.O=s?void 0:n}const h=t.component.constructor.elementProperties.get(n)?.readOnly;t.watchExports(()=>{r[n]!==t.exports&&(h?(0,o.f)(()=>{r[n]=t.exports}):r[n]=t.exports)})})(n,t,i),i)});var m;const w=(t,e)=>new x(t,e);class x extends s.C{#t;#e;#n;constructor(t,e){super(),i.S$||(this.#e=t,this.#n=e,this.#t=new MutationObserver(n=>{n.forEach(n=>{t.includes(n.attributeName)&&e.call(this.component,this.component.el.getAttribute(n.attributeName),n.oldValue,n.attributeName)})}))}hostConnected(){this.#e.forEach(t=>{this.component.el.hasAttribute(t)&&this.#n.call(this.component,null,this.component.el.getAttribute(t),t)}),this.#t.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this.#e})}hostDisconnected(){this.#t.disconnect()}}const y=t=>(e={})=>g(void 0,(n,s)=>{const o=d(n.el),i={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},a=n;s.onLifecycle(()=>((e,o,i,l)=>{let h;const b=()=>(async(t,e,n=t.localName.split("-").slice(1).join("-"))=>{const{lang:s,t9nLocale:o}=d(t),i=`${e}/${n}/t9n`,r=null===n?{}:await(async(t,e,n="")=>{const s=`${e}/${n}`,o=`${s}${t}.json`;return u[o]??(u[o]=p(t,s)),await u[o]})(o,i,"messages.");return{lang:s,t9nLocale:o,t9nStrings:r}})(e,t("./assets"),l).then(t=>{h?.lang===t.lang&&h.t9nLocale===t.t9nLocale&&h.t9nStrings===t.t9nStrings||(({t9nLocale:t,t9nStrings:e,lang:o})=>{const i={...e,_lang:o,_t9nLocale:t,_loading:!1};s.exports=i;const r=e.componentLabel;"string"==typeof r&&"label"in n&&null==n.label&&(n.label??=r),c(a.messageOverrides)})(t),h=t}).catch(console.error);return queueMicrotask(b),(0,r.Yt)(e,["lang"],b)})(n.el,0,0,e.name));const c=t=>{const e=s.exports,n=e._original??e,o=$(n,t);t&&(o._original=n),s.exports=o};return"messageOverrides"in a&&s.onUpdate(t=>{t.has("messageOverrides")&&c(a.messageOverrides)}),e.blocking?(s.setProvisionalExports(i,!1),s.ready):i}),$=(t,e)=>{if(!e)return t;const n={...t};return Object.entries(e).forEach(([e,s])=>{n[e]="object"==typeof s?$(t[e],s):s??t[e]}),n}},75572:(t,e,n)=>{n.d(e,{u:()=>i});var s=n(50941),o=n(34088);const i=(0,s.yr)(o.g)},83623:(t,e,n)=>{function s(t){return"l"===t?"m":"s"}async function o(t){await t.componentOnReady(),await t.updateComplete}n.d(e,{c:()=>o,g:()=>s}),n(84137)},84137:(t,e,n)=>{n.d(e,{l:()=>c});var s=n(34088);const o=new Set,i={trace:0,debug:1,info:2,warn:4,error:8,off:10};function r(t,...e){(function(t){return i[t]>=i[s.l]})(t)&&console[t].call(this,"%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}let a;const c={debug:t=>r("debug",t),info:t=>r("info",t),warn:t=>r("warn",t),error:t=>r("error",t),trace:t=>r("trace",t),deprecated:function(t,{component:e,name:n,suggested:s,removalVersion:i}){const c=`${t}:${"component"===t?"":e}${n}`;if(o.has(c))return;o.add(c);const l=Array.isArray(s);l&&!a&&(a=new Intl.ListFormat("en",{style:"long",type:"disjunction"})),r("warn",`[${n}] ${t} is deprecated and will be removed in ${"future"===i?"a future version":`v${i}`}.${s?` Use ${l?a.format(s.map(t=>`"${t}"`)):`"${s}"`} instead.`:""}`)}}}}]);
|