@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.
Files changed (178) hide show
  1. package/analysis/DistanceMeasurementAnalysis.d.ts +4 -0
  2. package/applications/SceneViewer/sceneViewerUtils.d.ts +1 -0
  3. package/applications/SceneViewer/sceneViewerUtils.js +1 -1
  4. package/assets/esri/core/workers/RemoteClient.js +1 -1
  5. package/assets/esri/core/workers/chunks/024104997daea0d74b38.js +1 -0
  6. package/assets/esri/core/workers/chunks/052ded41dc06c93ec0a7.js +1 -0
  7. package/assets/esri/core/workers/chunks/05b7720ab6bf0874f27c.js +1 -0
  8. package/assets/esri/core/workers/chunks/06d52a570d5d44f8c86e.js +1 -0
  9. package/assets/esri/core/workers/chunks/13b47c217d1e9b61bcbf.js +1 -0
  10. package/assets/esri/core/workers/chunks/174972870db79189200b.js +1 -0
  11. package/assets/esri/core/workers/chunks/219876879bc543568bcd.js +1 -0
  12. package/assets/esri/core/workers/chunks/221691ad0b2912827e14.js +1 -0
  13. package/assets/esri/core/workers/chunks/231c0b583fa97f2ca675.js +1 -0
  14. package/assets/esri/core/workers/chunks/274f2b5e6dbc58505142.js +1 -0
  15. package/assets/esri/core/workers/chunks/2a41283bba2361afa1fd.js +1 -0
  16. package/assets/esri/core/workers/chunks/2c4218306747f5d15575.js +1 -0
  17. package/assets/esri/core/workers/chunks/2c7038a7ffaf75344b02.js +1 -0
  18. package/assets/esri/core/workers/chunks/2de32649f8b0c6404d7c.js +1 -0
  19. package/assets/esri/core/workers/chunks/{f651c05604eab83aef5f.js → 3266c3392c24ce6cdd83.js} +2 -2
  20. package/assets/esri/core/workers/chunks/42747a028fc404ac55f4.js +1 -0
  21. package/assets/esri/core/workers/chunks/443931ac4b4ee5ccb932.js +1 -0
  22. package/assets/esri/core/workers/chunks/4ab89c990a82c745c0fd.js +1 -0
  23. package/assets/esri/core/workers/chunks/4b14ee37b5ac50a734f9.js +1 -0
  24. package/assets/esri/core/workers/chunks/4cda42b94e9cb58dd372.js +1 -0
  25. package/assets/esri/core/workers/chunks/4ce28c936eaffe57c448.js +1 -0
  26. package/assets/esri/core/workers/chunks/538ddb267aa328814865.js +1 -0
  27. package/assets/esri/core/workers/chunks/5b290d18de61789417f9.js +1 -0
  28. package/assets/esri/core/workers/chunks/5b73c77587772120b209.js +1 -0
  29. package/assets/esri/core/workers/chunks/60eeeea671a523bb6b15.js +1 -0
  30. package/assets/esri/core/workers/chunks/6428e2f4fc0a6739cc9e.js +1 -0
  31. package/assets/esri/core/workers/chunks/69278d08a7d64917f826.js +2 -0
  32. package/assets/esri/core/workers/chunks/{c1e4e9ab4a543e8b350d.js → 6b8a923fe5f800f703e3.js} +1 -1
  33. package/assets/esri/core/workers/chunks/6e5d41f51572e3e7cf92.js +1 -0
  34. package/assets/esri/core/workers/chunks/{7565b382f6b3d2cb46a3.js → 6f3ffc04086bca30e55d.js} +2 -2
  35. package/assets/esri/core/workers/chunks/70e2804d3710c6af468e.js +2 -0
  36. package/assets/esri/core/workers/chunks/7749801f30a99b60753e.js +1 -0
  37. package/assets/esri/core/workers/chunks/{aa78b69219d9a0ef1c54.js → 78fc9a55e620602db1ff.js} +2 -2
  38. package/assets/esri/core/workers/chunks/800c282a7335b2e6c7cd.js +1 -0
  39. package/assets/esri/core/workers/chunks/{867a181969eeeb5f1856.js → 838b3ec88785ac7aa31b.js} +1 -1
  40. package/assets/esri/core/workers/chunks/88aa71f02f43bb069345.js +1 -0
  41. package/assets/esri/core/workers/chunks/8a8192e6a9fd7a6d8060.js +1 -0
  42. package/assets/esri/core/workers/chunks/{74a251e7f5be72ca2a5a.js → 8b336a63737e917e50e2.js} +1 -1
  43. package/assets/esri/core/workers/chunks/8d4cc5f1d07b4aa3aea0.js +1 -0
  44. package/assets/esri/core/workers/chunks/8f0c53feead87457b7eb.js +1 -0
  45. package/assets/esri/core/workers/chunks/{4f7b7587d7902355f2a1.js → 93fe46be3c7fe34b5361.js} +1 -1
  46. package/assets/esri/core/workers/chunks/9461cc37ab3397265270.js +1 -0
  47. package/assets/esri/core/workers/chunks/9527f1a611557a7af237.js +1 -0
  48. package/assets/esri/core/workers/chunks/97b01803d0c38541aa08.js +1 -0
  49. package/assets/esri/core/workers/chunks/9921c8d4487a0f580b93.js +1 -0
  50. package/assets/esri/core/workers/chunks/9d0f0d055ec25af037e0.js +1 -0
  51. package/assets/esri/core/workers/chunks/9f0172b83f25ef5f8d40.js +1 -0
  52. package/assets/esri/core/workers/chunks/9f6d82ce8f680abb79bb.js +1 -0
  53. package/assets/esri/core/workers/chunks/a4f492aa5444e6381063.js +1 -0
  54. package/assets/esri/core/workers/chunks/{d6e0528eacee7ea4c1ce.js → a67c3958d76d10c04fa6.js} +2 -2
  55. package/assets/esri/core/workers/chunks/a7dc1928d46dd6b69868.js +1 -0
  56. package/assets/esri/core/workers/chunks/b6d21a2b5c1be8bee57c.js +1 -0
  57. package/assets/esri/core/workers/chunks/{ce16489cf7eb0d78c741.js → be631029691d9a320cb5.js} +2 -2
  58. package/assets/esri/core/workers/chunks/c35a22becf5c470ff6a2.js +1 -0
  59. package/assets/esri/core/workers/chunks/c5d6b416baf24e74b9ba.js +1 -0
  60. package/assets/esri/core/workers/chunks/cade149fa19b4d06dd24.js +1 -0
  61. package/assets/esri/core/workers/chunks/cd1d9f638af5b63a1292.js +1 -0
  62. package/assets/esri/core/workers/chunks/d21ae4980741be98f948.js +1 -0
  63. package/assets/esri/core/workers/chunks/d32aad968798948946e4.js +1 -0
  64. package/assets/esri/core/workers/chunks/{0f735b0dec173142f3b6.js → d9251c3c85c3ddd242c8.js} +2 -2
  65. package/assets/esri/core/workers/chunks/e0369ce0d729c9656488.js +1 -0
  66. package/assets/esri/core/workers/chunks/e2d2a55aedd3ce9cb47b.js +1 -0
  67. package/assets/esri/core/workers/chunks/e3c8fac5fe638d548e34.js +1 -0
  68. package/assets/esri/core/workers/chunks/e45940d342b18983a5ef.js +1 -0
  69. package/assets/esri/core/workers/chunks/{16f841f12b32d8a500a9.js → fa4f788abfbfd3dee882.js} +1 -1
  70. package/assets/esri/core/workers/chunks/fbbf25629e0dab486887.js +1 -0
  71. package/config.js +1 -1
  72. package/interfaces.d.ts +355 -73
  73. package/kernel.js +1 -1
  74. package/layers/VideoLayer.js +1 -1
  75. package/layers/mixins/ArcGISImageService.js +1 -1
  76. package/layers/support/SubtypeSublayer.js +1 -1
  77. package/package.json +6 -6
  78. package/support/revision.js +1 -1
  79. package/unionTypes.d.ts +0 -1
  80. package/views/2d/analysis/AreaMeasurement/AreaMeasurementAreaVisualization.js +1 -1
  81. package/views/2d/analysis/AreaMeasurement/AreaMeasurementController.js +1 -1
  82. package/views/2d/analysis/AreaMeasurement/utils.js +5 -0
  83. package/views/2d/analysis/AreaMeasurementAnalysisView2D.d.ts +4 -0
  84. package/views/2d/analysis/AreaMeasurementAnalysisView2D.js +1 -1
  85. package/views/2d/analysis/DistanceMeasurementAnalysisView2D.d.ts +4 -0
  86. package/views/2d/layers/features/layerAdapters/OGCFeatureLayerAdapter.js +1 -1
  87. package/views/3d/analysis/AreaMeasurementAnalysisView3D.js +1 -1
  88. package/views/3d/analysis/Dimension/types.d.ts +3 -0
  89. package/views/3d/analysis/Dimension/types.js +5 -0
  90. package/views/3d/analysis/DirectLineMeasurement/types.d.ts +4 -0
  91. package/views/3d/analysis/DirectLineMeasurement/types.js +5 -0
  92. package/views/3d/analysis/LineOfSight/types.d.ts +3 -0
  93. package/views/3d/analysis/LineOfSight/types.js +5 -0
  94. package/views/3d/analysis/Slice/types.d.ts +3 -0
  95. package/views/3d/analysis/Slice/types.js +5 -0
  96. package/views/3d/analysis/Viewshed/types.d.ts +3 -0
  97. package/views/3d/analysis/Viewshed/types.js +5 -0
  98. package/views/3d/analysis/VolumeMeasurement/types.d.ts +3 -0
  99. package/views/3d/analysis/VolumeMeasurement/types.js +5 -0
  100. package/views/3d/support/popupHitTest.js +1 -1
  101. package/views/3d/terrain/TerrainSurface.js +1 -1
  102. package/views/3d/terrain/Tile.js +1 -1
  103. package/views/VideoView.js +1 -1
  104. package/views/analysis/AreaMeasurement/types.d.ts +4 -0
  105. package/views/analysis/AreaMeasurement/types.js +5 -0
  106. package/views/analysis/DistanceMeasurement/types.d.ts +4 -0
  107. package/views/analysis/DistanceMeasurement/types.js +5 -0
  108. package/views/analysis/types.d.ts +3 -0
  109. package/views/analysis/types.js +5 -0
  110. package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
  111. package/widgets/Editor/workflowUtils.js +1 -1
  112. package/widgets/FeatureTable/FieldColumn.js +1 -1
  113. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  114. package/widgets/VideoPlayer/VideoPlayerViewModel.js +1 -1
  115. package/assets/esri/core/workers/chunks/03ed15ba64f1679b3d48.js +0 -1
  116. package/assets/esri/core/workers/chunks/04bac7bb3f794b33e2e4.js +0 -1
  117. package/assets/esri/core/workers/chunks/092d72caf3269e696d1c.js +0 -1
  118. package/assets/esri/core/workers/chunks/1466ab7bd500ba7a4025.js +0 -1
  119. package/assets/esri/core/workers/chunks/1beee2932154db83f79d.js +0 -1
  120. package/assets/esri/core/workers/chunks/1cae81089b50b7e43d70.js +0 -1
  121. package/assets/esri/core/workers/chunks/1fcd4d90a99e85d35dd2.js +0 -1
  122. package/assets/esri/core/workers/chunks/21d7f42c2033de987b97.js +0 -1
  123. package/assets/esri/core/workers/chunks/24ff9dad3fb64ab54970.js +0 -1
  124. package/assets/esri/core/workers/chunks/26282c67d2b066a76881.js +0 -1
  125. package/assets/esri/core/workers/chunks/2d3e7b41b225d905c7f4.js +0 -1
  126. package/assets/esri/core/workers/chunks/30a631c39c9372797b92.js +0 -1
  127. package/assets/esri/core/workers/chunks/388873be1dca91ccbc9d.js +0 -1
  128. package/assets/esri/core/workers/chunks/3a457e718a901a45902e.js +0 -2
  129. package/assets/esri/core/workers/chunks/44e08b49898a8fcbe031.js +0 -1
  130. package/assets/esri/core/workers/chunks/4731f507149940dde534.js +0 -1
  131. package/assets/esri/core/workers/chunks/4d0e099f34639cda3a9b.js +0 -1
  132. package/assets/esri/core/workers/chunks/5a6b487b70ca85a45f57.js +0 -1
  133. package/assets/esri/core/workers/chunks/5b5f1f22de985dc6bbc0.js +0 -1
  134. package/assets/esri/core/workers/chunks/5c82b17f9990e6cd7d0b.js +0 -1
  135. package/assets/esri/core/workers/chunks/61bb39597ccf89f99a72.js +0 -1
  136. package/assets/esri/core/workers/chunks/67bc5b87fd61095689d4.js +0 -1
  137. package/assets/esri/core/workers/chunks/6bf5b3c7129aa14b4fc6.js +0 -1
  138. package/assets/esri/core/workers/chunks/755e2ecd20b6bd1909be.js +0 -1
  139. package/assets/esri/core/workers/chunks/768e1ad2f06fdc9d5ef8.js +0 -1
  140. package/assets/esri/core/workers/chunks/7a957f2bca1438732338.js +0 -1
  141. package/assets/esri/core/workers/chunks/809a9055da28c8fa58b0.js +0 -1
  142. package/assets/esri/core/workers/chunks/8bbae8ac586e5c0819d2.js +0 -1
  143. package/assets/esri/core/workers/chunks/8cd03b54b2859b52fb81.js +0 -1
  144. package/assets/esri/core/workers/chunks/8f85039d76f03fbdd27a.js +0 -1
  145. package/assets/esri/core/workers/chunks/93f706acaa812bb3ac70.js +0 -1
  146. package/assets/esri/core/workers/chunks/976dd80e318266ab4c2c.js +0 -1
  147. package/assets/esri/core/workers/chunks/9a20be3b02c9d6349b8d.js +0 -1
  148. package/assets/esri/core/workers/chunks/9dae3e4e34096b3d82d7.js +0 -1
  149. package/assets/esri/core/workers/chunks/9e5e05d6430712b0b1bc.js +0 -1
  150. package/assets/esri/core/workers/chunks/a0b0fe0d99df20fa9076.js +0 -1
  151. package/assets/esri/core/workers/chunks/a987731d1b5449d8fb0c.js +0 -1
  152. package/assets/esri/core/workers/chunks/ad9606164c694af0c61f.js +0 -1
  153. package/assets/esri/core/workers/chunks/b0e52c3775f05aaf7ff6.js +0 -1
  154. package/assets/esri/core/workers/chunks/bfd3d81e8e148be99686.js +0 -1
  155. package/assets/esri/core/workers/chunks/cbc5131723cbe29cb88f.js +0 -1
  156. package/assets/esri/core/workers/chunks/ce00509970e7e6eacbdf.js +0 -1
  157. package/assets/esri/core/workers/chunks/cec95ed69c86758d95ec.js +0 -1
  158. package/assets/esri/core/workers/chunks/d391bfbaf0e790cd10d6.js +0 -2
  159. package/assets/esri/core/workers/chunks/d622fb553babd515a21f.js +0 -1
  160. package/assets/esri/core/workers/chunks/ddb55435adeda1e2a1bf.js +0 -1
  161. package/assets/esri/core/workers/chunks/e5a9c37de44508e9733b.js +0 -1
  162. package/assets/esri/core/workers/chunks/e5b42ddec8e424602e03.js +0 -1
  163. package/assets/esri/core/workers/chunks/eaabb5b010b7bb850b0a.js +0 -1
  164. package/assets/esri/core/workers/chunks/eafc4da265469e9e5e0b.js +0 -1
  165. package/assets/esri/core/workers/chunks/eb1b582a73111c8556c1.js +0 -1
  166. package/assets/esri/core/workers/chunks/f594df2f5ce6ca41a254.js +0 -1
  167. package/assets/esri/core/workers/chunks/f64037a88ab03662dc2a.js +0 -1
  168. package/assets/esri/core/workers/chunks/f888849b0236cc0d6f50.js +0 -1
  169. package/assets/esri/core/workers/chunks/fbcc4cbb221c0fbb90d4.js +0 -1
  170. package/views/2d/analysis/AreaMeasurement/AreaMeasurementLabelVisualization.js +0 -5
  171. /package/assets/esri/core/workers/chunks/{0f735b0dec173142f3b6.js.LICENSE.txt → 3266c3392c24ce6cdd83.js.LICENSE.txt} +0 -0
  172. /package/assets/esri/core/workers/chunks/{d391bfbaf0e790cd10d6.js.LICENSE.txt → 69278d08a7d64917f826.js.LICENSE.txt} +0 -0
  173. /package/assets/esri/core/workers/chunks/{7565b382f6b3d2cb46a3.js.LICENSE.txt → 6f3ffc04086bca30e55d.js.LICENSE.txt} +0 -0
  174. /package/assets/esri/core/workers/chunks/{3a457e718a901a45902e.js.LICENSE.txt → 70e2804d3710c6af468e.js.LICENSE.txt} +0 -0
  175. /package/assets/esri/core/workers/chunks/{aa78b69219d9a0ef1c54.js.LICENSE.txt → 78fc9a55e620602db1ff.js.LICENSE.txt} +0 -0
  176. /package/assets/esri/core/workers/chunks/{d6e0528eacee7ea4c1ce.js.LICENSE.txt → a67c3958d76d10c04fa6.js.LICENSE.txt} +0 -0
  177. /package/assets/esri/core/workers/chunks/{ce16489cf7eb0d78c741.js.LICENSE.txt → be631029691d9a320cb5.js.LICENSE.txt} +0 -0
  178. /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([[4575,6956],{5834:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(31635),r=n(93637),s=n(91429),o=n(56507),a=n(41266),l=n(41366),u=n(93223);function p(e,t,n){(0,r.sM)(n,e instanceof Date?e.getTime():e,t)}let c=class extends((0,l.K)(a.A)){constructor(e){super(e),this.numBins=null,this.end=null,this.start=null,this.type="auto-interval"}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.numberOfBins",write:!0}})],c.prototype,"numBins",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],c.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],c.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({autoIntervalBin:"auto-interval"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,s.$K)("esri.rest.support.AutoIntervalBinParameters")],c),c.from=(0,o.dp)(c)},11440:(e,t,n)=>{n.d(t,{A:()=>u});var i=n(31635),r=n(93637),s=n(91429),o=n(56507),a=n(41266),l=n(93223);let u=class extends a.A{constructor(e){super(e),this.boundaries=[],this.type="fixed-boundaries"}};(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.boundaries",write:{writer:function(e,t,n){(0,r.sM)(n,e&&function(e){return e[0]instanceof Date}(e)?e.map(e=>e.getTime()):e,t)}}}})],u.prototype,"boundaries",void 0),(0,i.Cg)([(0,l.e)({fixedBoundariesBin:"fixed-boundaries"},{readOnly:!0})],u.prototype,"type",void 0),u=(0,i.Cg)([(0,s.$K)("esri.rest.support.FixedBoundariesBinParameters")],u),u.from=(0,o.dp)(u)},14575:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var i=n(31635),r=n(69540),s=n(66552),o=n(25482),a=n(53966),l=n(91429),u=n(56507),p=n(16930),c=n(65864),y=n(50498),m=n(58727),d=n(5834),f=n(41266),h=n(59977),g=n(11440),v=n(60909),w=n(77696),x=n(58174),M=n(7562),S=n(79677),A=n(56400),C=n(93223);const B=new s.J({asc:"ascending",desc:"descending"}),j={base:f.A,key:"type",typeMap:{"auto-interval":d.A,date:h.A,"fixed-boundaries":g.A,"fixed-interval":v.A}};let b=class extends((0,w.y)((0,r.OU)(o.o))){constructor(e){super(e),this.binParameters=null,this.binOrder="ascending",this.cacheHint=void 0,this.datumTransformation=null,this.defaultSpatialReference=null,this.distance=void 0,this.geometry=null,this.lowerBoundaryAlias=null,this.outSpatialReference=null,this.outStatistics=null,this.returnDistinctValues=null,this.spatialRelationship="intersects",this.timeExtent=null,this.upperBoundaryAlias=null,this.units=null,this.where="1=1"}set outTimeZone(e){this._set("outTimeZone",e),e&&!(0,A.wr)(e)&&a.A.getLogger(this).warn("#outTimeZone",`the parsed value '${e}' may not be a valid IANA time zone`)}};(0,i.Cg)([(0,l.MZ)({types:j,json:{name:"bin",write:!0}})],b.prototype,"binParameters",void 0),(0,i.Cg)([(0,C.e)(B)],b.prototype,"binOrder",void 0),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],b.prototype,"cacheHint",void 0),(0,i.Cg)([(0,l.MZ)({json:{write:!0}})],b.prototype,"datumTransformation",void 0),(0,i.Cg)([(0,l.MZ)({type:p.A,json:{name:"defaultSR",write:!0}})],b.prototype,"defaultSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:Number,json:{write:{overridePolicy:e=>({enabled:e>0})}}})],b.prototype,"distance",void 0),(0,i.Cg)([(0,l.MZ)({types:y.yR,json:{read:c.rS,write:!0}})],b.prototype,"geometry",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],b.prototype,"lowerBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:p.A,json:{name:"outSR",write:!0}})],b.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,l.MZ)({type:[M.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],b.prototype,"outStatistics",void 0),(0,i.Cg)([(0,l.MZ)({value:null,json:{name:"outTimeReference",read:{reader:e=>e.ianaTimeZone},write:{writer:(e,t,n)=>{e&&(t[n]={ianaTimeZone:e})}}}})],b.prototype,"outTimeZone",null),(0,i.Cg)([(0,l.MZ)({type:Boolean,json:{write:!0}})],b.prototype,"returnDistinctValues",void 0),(0,i.Cg)([(0,C.e)(x.x,{name:"spatialRel"})],b.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,l.MZ)({type:S.A,json:{write:!0}})],b.prototype,"timeExtent",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],b.prototype,"upperBoundaryAlias",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{read:m.VY.read,write:{writer:m.VY.write,overridePolicy(e){return{enabled:null!=e&&null!=this.distance}}}}})],b.prototype,"units",void 0),(0,i.Cg)([(0,l.MZ)({type:String,json:{write:!0}})],b.prototype,"where",void 0),b=(0,i.Cg)([(0,l.$K)("esri.rest.support.AttributeBinsQuery")],b),b.from=(0,u.dp)(b)},17136:(e,t,n)=>{n.d(t,{Y_:()=>b,O7:()=>B,el:()=>C});var i=n(92602),r=n(69052),s=n(49186),o=n(53966),a=n(39829),l=n(82799),u=n(16930),p=n(80754),c=n(21325),y=n(28735),m=n(11254),d=n(65864),f=n(2272),h=n(84952),g=n(92300);const v=()=>o.A.getLogger("esri.geometry.support.normalizeUtils");function w(e){return"polygon"===e[0].type}function x(e){return"polyline"===e[0].type}function M(e,t,n){if(t){const t=function(e,t){if(!(e instanceof l.A||e instanceof a.A)){const e="straightLineDensify: the input geometry is neither polyline nor polygon";throw v().error(e),new s.A("internal:geometry",e)}const n=(0,p.r8)(e),i=[];for(const e of n){const n=[];i.push(n),n.push([e[0][0],e[0][1]]);for(let i=0;i<e.length-1;i++){const r=e[i][0],s=e[i][1],o=e[i+1][0],a=e[i+1][1],l=Math.sqrt((o-r)*(o-r)+(a-s)*(a-s)),u=(a-s)/l,p=(o-r)/l,c=l/t;if(c>1){for(let e=1;e<=c-1;e++){const i=e*t,o=p*i+r,a=u*i+s;n.push([o,a])}const e=(l+Math.floor(c-1)*t)/2,i=p*e+r,o=u*e+s;n.push([i,o])}n.push([o,a])}}return function(e){return"polygon"===e.type}(e)?new a.A({rings:i,spatialReference:e.spatialReference}):new l.A({paths:i,spatialReference:e.spatialReference})}(e,1e6);e=(0,y.ci)(t,!0)}return n&&(e=(0,p.kS)(e,n)),e}function S(e,t,n){if(Array.isArray(e)){const i=e[0];if(i>t){const n=(0,p.kd)(i,t);e[0]=i+n*(-2*t)}else if(i<n){const t=(0,p.kd)(i,n);e[0]=i+t*(-2*n)}}else{const i=e.x;if(i>t){const n=(0,p.kd)(i,t);e=e.clone().offset(n*(-2*t),0)}else if(i<n){const t=(0,p.kd)(i,n);e=e.clone().offset(t*(-2*n),0)}}return e}function A(e,t){let n=-1;for(let i=0;i<t.cutIndexes.length;i++){const r=t.cutIndexes[i],s=t.geometries[i],o=(0,p.r8)(s);for(let e=0;e<o.length;e++){const t=o[e];t.some(n=>{if(n[0]<180)return!0;{let n=0;for(let e=0;e<t.length;e++){const i=t[e][0];n=i>n?i:n}n=Number(n.toFixed(9));const i=-360*(0,p.kd)(n,180);for(let n=0;n<t.length;n++){const t=s.getPoint(e,n);s.setPoint(e,n,t.clone().offset(i,0))}return!0}})}if(r===n){if(w(e))for(const t of(0,p.r8)(s))e[r]=e[r].addRing(t);else if(x(e))for(const t of(0,p.r8)(s))e[r]=e[r].addPath(t)}else n=r,e[r]=s}return e}async function C(e,t,n){if(!Array.isArray(e))return C([e],t);t&&"string"!=typeof t&&v().warn("normalizeCentralMeridian()","The url object is deprecated, use the url string instead");const r="string"==typeof t?t:t?.url??i.A.geometryServiceUrl;let s,o,u,w,x,B,j,b,R=0;const Z=[],T=[];for(const t of e)if(null!=t)if(s||(s=t.spatialReference,o=(0,c.Vp)(s),u=s.isWebMercator,B=u?102100:4326,w=p.j7[B].maxX,x=p.j7[B].minX,j=p.j7[B].plus180Line,b=p.j7[B].minus180Line),o)if("mesh"===t.type)T.push(t);else if("point"===t.type)T.push(S(t.clone(),w,x));else if("multipoint"===t.type){const e=t.clone();e.points=e.points.map(e=>S(e,w,x)),T.push(e)}else if("extent"===t.type){const e=t.clone()._normalize(!1,!1,o);T.push(e.rings?new a.A(e):e)}else if(t.extent){const e=t.extent,n=(0,p.kd)(e.xmin,x)*(2*w);let i=0===n?t.clone():(0,p.kS)(t.clone(),n);e.offset(n,0);let{xmin:r,xmax:s}=e;r=Number(r.toFixed(9)),s=Number(s.toFixed(9)),e.intersects(j)&&s!==w?(R=s>R?s:R,i=M(i,u),Z.push(i),T.push("cut")):e.intersects(b)&&r!==x?(R=s*(2*w)>R?s*(2*w):R,i=M(i,u,360),Z.push(i),T.push("cut")):T.push(i)}else T.push(t.clone());else T.push(t);else T.push(t);let k=(0,p.kd)(R,w),F=-90;const O=k,D=new l.A;for(;k>0;){const e=360*k-180;D.addPath([[e,F],[e,-1*F]]),F*=-1,k--}if(Z.length>0&&O>0){const t=A(Z,await async function(e,t,n,i){const r=(0,f.Dl)(e),s=t[0].spatialReference,o={...i,responseType:"json",query:{...r.query,f:"json",sr:(0,c.YX)(s),target:JSON.stringify({geometryType:(0,d.$B)(t[0]),geometries:t}),cutter:JSON.stringify(n)}},a=await(0,m.A)(r.path+"/cut",o),{cutIndexes:l,geometries:u=[]}=a.data;return{cutIndexes:l,geometries:u.map(e=>{const t=(0,d.rS)(e);return t.spatialReference=s,t})}}(r,Z,D,n)),i=[],s=[];for(let n=0;n<T.length;n++){const r=T[n];if("cut"!==r)s.push(r);else{const r=t.shift(),o=e[n];null!=o&&"polygon"===o.type&&o.rings&&o.rings.length>1&&r.rings.length>=o.rings.length?(i.push(r),s.push("simplify")):s.push(u?(0,y.Gh)(r):r)}}if(!i.length)return s;const o=await async function(e,t,n){const i="string"==typeof e?(0,h.An)(e):e,r=t[0].spatialReference,s=(0,d.$B)(t[0]),o={...n,query:{...i.query,f:"json",sr:(0,c.YX)(r),geometries:JSON.stringify((0,g.X)(t))}},{data:a}=await(0,m.A)(i.path+"/simplify",o);return(0,g.V)(a.geometries,s,r)}(r,i,n),a=[];for(let e=0;e<s.length;e++){const t=s[e];"simplify"!==t?a.push(t):a.push(u?(0,y.Gh)(o.shift()):o.shift())}return a}const I=[];for(let e=0;e<T.length;e++){const t=T[e];if("cut"!==t)I.push(t);else{const e=Z.shift();I.push(!0===u?(0,y.Gh)(e):e)}}return I}function B(e,t,n){const i=(0,c.Vp)(n);if(null==i)return e;const[r,s]=i.valid,o=2*s;let a=0,l=0;t>s?a=Math.ceil(Math.abs(t-s)/o):t<r&&(a=-Math.ceil(Math.abs(t-r)/o)),e>s?l=Math.ceil(Math.abs(e-s)/o):e<r&&(l=-Math.ceil(Math.abs(e-r)/o));let u=e+(a-l)*o;const p=u-t;return p>s?u-=o:p<r&&(u+=o),u}function j(e){const t=(0,c.Vp)(e);if(null==t)return null;const[n,i]=t.valid;return new r.hr(n,i)}const b=j(u.A.WGS84);j(u.A.WebMercator)},31464:(e,t,n)=>{n.d(t,{Cv:()=>f,Nk:()=>y,lK:()=>g});var i=n(4576),r=n(74887),s=n(91218),o=n(21325),a=n(28735);const l=[0,0];function u(e,t){if(!t)return null;if("x"in t){const n={x:0,y:0};return[n.x,n.y]=e(t.x,t.y,l),null!=t.z&&(n.z=t.z),null!=t.m&&(n.m=t.m),n}if("xmin"in t){const n={xmin:0,ymin:0,xmax:0,ymax:0};return[n.xmin,n.ymin]=e(t.xmin,t.ymin,l),[n.xmax,n.ymax]=e(t.xmax,t.ymax,l),t.hasZ&&(n.zmin=t.zmin,n.zmax=t.zmax,n.hasZ=!0),t.hasM&&(n.mmin=t.mmin,n.mmax=t.mmax,n.hasM=!0),n}return"rings"in t?{rings:p(t.rings,e),hasM:t.hasM,hasZ:t.hasZ}:"paths"in t?{paths:p(t.paths,e),hasM:t.hasM,hasZ:t.hasZ}:"points"in t?{points:c(t.points,e),hasM:t.hasM,hasZ:t.hasZ}:null}function p(e,t){const n=[];for(const i of e)n.push(c(i,t));return n}function c(e,t){const n=[];for(const i of e){const e=t(i[0],i[1],[0,0]);n.push(e),i.length>2&&e.push(i[2]),i.length>3&&e.push(i[3])}return n}async function y(e,t){if(!e||!t)return;const n=Array.isArray(e)?e.map(e=>null!=e.geometry?e.geometry.spatialReference:null).filter(i.Ru):[e];await(0,s.initializeProjection)(n.map(e=>({source:e,dest:t})))}const m=u.bind(null,a.je),d=u.bind(null,a.tD);function f(e,t,n,i){if(!e)return null;if(n||(n=t,t=e.spatialReference),!(0,o.fn)(t)||!(0,o.fn)(n)||(0,o.aI)(t,n))return e;if((0,a.y7)(t,n)){const t=(0,o.K8)(n)?m(e):d(e);return t.spatialReference=n,t}return(0,s.projectMany)([e],t,n,i)[0]}const h=new class{constructor(){this._jobs=[],this._timer=null,this._process=this._process.bind(this)}async push(e,t,n,i){if(!e?.length||!t||!n||(0,o.aI)(t,n))return e;const s={geometries:e,inSpatialReference:t,outSpatialReference:n,options:i,resolve:(0,r.Tw)()};return this._jobs.push(s),this._timer??=setTimeout(this._process,10),s.resolve.promise}_process(){this._timer=null;const e=this._jobs.shift();if(!e)return;const{geometries:t,inSpatialReference:n,outSpatialReference:i,resolve:r,options:l}=e;(0,a.y7)(n,i)&&null==l?.extendedParams?(0,o.K8)(i)?r(t.map(m)):r(t.map(d)):r((0,s.projectMany)(t,n,i,l)),this._jobs.length>0&&(this._timer=setTimeout(this._process,10))}};function g(e,t,n,i){return h.push(e,t,n,i)}},41266:(e,t,n)=>{n.d(t,{A:()=>f});var i=n(31635),r=n(69540),s=n(66552),o=n(25482),a=n(91429),l=n(56507),u=n(93223);const p=new s.J({esriFieldTypeInteger:"integer",esriFieldTypeString:"string"});let c=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.alias=null,this.responseType=null,this.type=null,this.value=null,this.valueType=null}};(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"outAlias",write:!0}})],c.prototype,"alias",void 0),(0,i.Cg)([(0,a.MZ)({type:String})],c.prototype,"responseType",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"type",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],c.prototype,"value",void 0),(0,i.Cg)([(0,u.e)(p)],c.prototype,"valueType",void 0),c=(0,i.Cg)([(0,a.$K)("esri.rest.support.AttributeBinsGrouping")],c);const y=c;c.from=(0,l.dp)(c);const m=new s.J({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeDate:"date",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"}),d=new s.J({naturalLog:"natural-log",squareRoot:"square-root"});let f=class extends((0,r.OU)(o.o)){constructor(e){super(e),this.expression=null,this.expressionValueType=null,this.field=null,this.firstDayOfWeek=null,this.hideUpperBound=null,this.splitBy=null,this.stackBy=null,this.transformation=null}};(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"onExpression.value",write:!0}})],f.prototype,"expression",void 0),(0,i.Cg)([(0,u.e)(m,{name:"onExpression.valueType"})],f.prototype,"expressionValueType",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{name:"onField",write:!0}})],f.prototype,"field",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"firstDayOfWeek",void 0),(0,i.Cg)([(0,a.MZ)({type:String,json:{write:!0}})],f.prototype,"hideUpperBound",void 0),(0,i.Cg)([(0,a.MZ)({type:y,json:{write:{overridePolicy(){return{enabled:null!=this.splitBy?.value||null!=this.splitBy?.type}}}}})],f.prototype,"splitBy",void 0),(0,i.Cg)([(0,a.MZ)({type:y,json:{write:{target:{stackBy:{type:y},jsonStyle:{type:String}},writer:(e,t)=>{e&&(t.stackBy=e.toJSON(),null!=e.responseType&&(t.jsonStyle=e.responseType))},overridePolicy(){return{enabled:null!=this.stackBy?.value||null!=this.stackBy?.type}}},read:{source:["stackBy","jsonStyle"],reader:(e,t)=>y.fromJSON({...t.stackBy,responseType:t.jsonStyle})}}})],f.prototype,"stackBy",void 0),(0,i.Cg)([(0,u.e)(d)],f.prototype,"transformation",void 0),f=(0,i.Cg)([(0,a.$K)("esri.rest.support.BinParametersBase")],f)},57231:(e,t,n)=>{n.d(t,{g:()=>i});const i=(0,n(66552).O)()({year:"years",quarter:"quarters",month:"months",week:"weeks",day:"days",hour:"hours",minute:"minutes",second:"seconds"})},58727:(e,t,n)=>{n.d(t,{GC:()=>h,T2:()=>g,VY:()=>y,dO:()=>w,iJ:()=>f,v8:()=>m});var i=n(49186),r=n(66552),s=n(86211),o=n(91218),a=n(90634),l=n(65864),u=n(17136),p=n(21325),c=n(31464);const y=new r.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),m=Object.freeze({}),d="frequency";async function f(e,t,n){const i=e.bin;return i.onField&&(i.onField=i.onField.trim()),i.onExpression?.value&&(i.onExpression.value=i.onExpression.value.trim()),i.splitBy&&(i.splitBy.value&&(i.splitBy.value=i.splitBy.value.trim()),i.splitBy.outAlias&&(i.splitBy.outAlias=i.splitBy.outAlias.trim())),i.stackBy&&(i.stackBy.value&&(i.stackBy.value=i.stackBy.value.trim()),i.stackBy.outAlias&&(i.stackBy.outAlias=i.stackBy.outAlias.trim())),"normalizationField"in i.parameters&&i.parameters.normalizationField&&(i.parameters.normalizationField=i.parameters.normalizationField.trim()),e.outStatistics?.length||(e.outStatistics=[{statisticType:"count",onStatisticField:"1",outStatisticFieldName:d}]),h(e,t,n)}async function h(e,t,n){const{outFields:i,orderByFields:r,groupByFieldsForStatistics:s,outStatistics:o}=e;if(i)for(let e=0;e<i.length;e++)i[e]=i[e].trim();if(r)for(let e=0;e<r.length;e++)r[e]=r[e].trim();if(s)for(let e=0;e<s.length;e++)s[e]=s[e].trim();if(o)for(let e=0;e<o.length;e++)o[e].onStatisticField&&(o[e].onStatisticField=o[e].onStatisticField.trim());return e.geometry&&!e.outSR&&(e.outSR=e.geometry.spatialReference),g(e,t,n)}async function g(e,t,r){if(!e)return null;let{where:o}=e;if(e.where=o=o?.trim(),(!o||/^1 *= *1$/.test(o)||t&&t===o)&&(e.where=null),!e.geometry)return e;let d=await async function(e){const{distance:t,units:r}=e,o=e.geometry;if(null==t||"vertexAttributes"in o)return o;const a=o.spatialReference,u=r?y.fromJSON(r):(0,s.Ij)(a),m=a&&((0,p.EA)(a)||(0,p.K8)(a))?o:await(0,c.Nk)(a,p.KK).then(()=>(0,c.Cv)(o,p.KK)),d=await n.e(9159).then(n.bind(n,49159));await d.load();const f=d.execute(m,t||1,{unit:u})??void 0;if(!f||!(0,l.Bi)(f)||0===f.rings.length)throw new i.A("unsupported-query:invalid-parameters","Invalid parameters for query by distance");return f}(e);if(e.distance=0,e.units=null,"esriSpatialRelEnvelopeIntersects"===e.spatialRel){const{spatialReference:t}=e.geometry;d=(0,a.HA)(d),d.spatialReference=t}if(d){await(0,c.Nk)(d.spatialReference,r),d=function(e,t){const n=e.spatialReference;return v(e,t)&&(0,l.ZC)(e)?{spatialReference:n,rings:[[[e.xmin,e.ymin],[e.xmin,e.ymax],[e.xmax,e.ymax],[e.xmax,e.ymin],[e.xmin,e.ymin]]]}:e}(d,r);const t=(await(0,u.el)((0,l.rS)(d)))[0];if(null==t)throw m;const n="quantizationParameters"in e&&e.quantizationParameters?.tolerance||"maxAllowableOffset"in e&&e.maxAllowableOffset||0,i=n&&v(d,r)?{extendedParams:{densificationStep:8*n}}:void 0,s=t.toJSON(),o=(0,c.Cv)(s,s.spatialReference,r,i);if(!o)throw m;o.spatialReference=r,e.geometry=o}return e}function v(e,t){if(!e)return!1;const n=e.spatialReference;return((0,l.ZC)(e)||(0,l.Bi)(e)||(0,l.Rg)(e))&&!(0,p.aI)(n,t)&&!(0,o.canProjectWithoutEngine)(n,t)}function w(e,t){return null==e?null:"string"==typeof e?t?new Date(`1970-01-01T${e}Z`).getTime():new Date(e).getTime():e instanceof Date?e.getTime():e}},59977:(e,t,n)=>{n.d(t,{A:()=>h});var i=n(31635),r=n(93637),s=n(91429),o=n(56507),a=n(41266),l=n(69540),u=n(25482),p=n(57231),c=n(93223);let y=class extends((0,l.OU)(u.o)){constructor(e){super(e),this.value=null,this.unit=null}};(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"number",write:!0}})],y.prototype,"value",void 0),(0,i.Cg)([(0,c.e)(p.g)],y.prototype,"unit",void 0),y=(0,i.Cg)([(0,s.$K)("esri.rest.support.DateBinTimeInterval")],y);const m=y;function d(e,t,n){(0,r.sM)(n,"string"==typeof e?e:e?.getTime(),t)}function f(e,t){const n=e.parameters[t];return n?"string"==typeof n?n:new Date(n):null}y.from=(0,o.dp)(y);let h=class extends a.A{constructor(e){super(e),this.end=null,this.interval=null,this.offset=null,this.returnFullIntervalBin=!1,this.start=null,this.snapToData=null,this.type="date"}};(0,i.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.end",read:{reader:(e,t)=>f(t,"end")},write:{writer:d}}})],h.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({type:m,json:{name:"parameters",write:!0}})],h.prototype,"interval",void 0),(0,i.Cg)([(0,s.MZ)({type:m,json:{name:"parameters.offset",write:!0}})],h.prototype,"offset",void 0),(0,i.Cg)([(0,s.MZ)({type:Boolean,json:{name:"parameters.returnFullIntervalBin",write:!0}})],h.prototype,"returnFullIntervalBin",void 0),(0,i.Cg)([(0,s.MZ)({cast:e=>null!=e?"string"==typeof e?e:new Date(e):null,json:{name:"parameters.start",read:{reader:(e,t)=>f(t,"start")},write:{writer:d}}})],h.prototype,"start",void 0),(0,i.Cg)([(0,s.MZ)({type:String,json:{name:"parameters.snapToData",write:!0}})],h.prototype,"snapToData",void 0),(0,i.Cg)([(0,c.e)({dateBin:"date"},{readOnly:!0})],h.prototype,"type",void 0),h=(0,i.Cg)([(0,s.$K)("esri.rest.support.DateBinParameters")],h),h.from=(0,o.dp)(h)},60909:(e,t,n)=>{n.d(t,{A:()=>c});var i=n(31635),r=n(93637),s=n(91429),o=n(56507),a=n(41266),l=n(41366),u=n(93223);function p(e,t,n){(0,r.sM)(n,e instanceof Date?e.getTime():e,t)}let c=class extends((0,l.K)(a.A)){constructor(e){super(e),this.end=null,this.interval=null,this.start=null,this.type="fixed-interval"}};(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.end",write:{writer:p}}})],c.prototype,"end",void 0),(0,i.Cg)([(0,s.MZ)({type:Number,json:{name:"parameters.interval",write:!0}})],c.prototype,"interval",void 0),(0,i.Cg)([(0,s.MZ)({json:{name:"parameters.start",write:{writer:p}}})],c.prototype,"start",void 0),(0,i.Cg)([(0,u.e)({fixedIntervalBin:"fixed-interval"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,i.Cg)([(0,s.$K)("esri.rest.support.FixedIntervalBinParameters")],c),c.from=(0,o.dp)(c)},69052:(e,t,n)=>{n.d(t,{hr:()=>r,ie:()=>l,uC:()=>a});var i=n(34727);class r{constructor(e,t){this.min=e,this.max=t,this.range=t-e}normalize(e,t=0,n=!1){return s(this.range,this.min,this.max,e,t,n)}clamp(e,t=0){return(0,i.qE)(e-t,this.min,this.max)+t}monotonic(e,t,n){return e<t?t:t+o(this.range,e-t,n)}minimalMonotonic(e,t,n){return s(this.range,e,e+this.range,t,n)}center(e,t,n){return t=this.monotonic(e,t,n),this.normalize((e+t)/2,n)}diff(e,t,n){return this.monotonic(e,t,n)-e}shortestSignedDiff(e,t){e=this.normalize(e);const n=(t=this.normalize(t))-e,i=t<e?this.minimalMonotonic(e,t)-e:t-this.minimalMonotonic(t,e);return Math.abs(n)<Math.abs(i)?n:i}contains(e,t,n){return t=this.minimalMonotonic(e,t),(n=this.minimalMonotonic(e,n))>e&&n<t}}function s(e,t,n,i,r=0,s=!1){return(i-=r)<t?i+=o(e,t-i):i>n&&(i-=o(e,i-n)),s&&i===n&&(i=t),i+r}function o(e,t,n=0){return Math.ceil((t-n)/e)*e+n}const a=new r(0,2*Math.PI),l=(new r(-Math.PI,Math.PI),new r(0,360))},80754:(e,t,n)=>{n.d(t,{j7:()=>o,kS:()=>l,kd:()=>a,r8:()=>u});var i=n(82799),r=n(16930),s=n(65864);const o={102100:{maxX:20037508.342788905,minX:-20037508.342788905,plus180Line:new i.A({paths:[[[20037508.342788905,-20037508.342788905],[20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator}),minus180Line:new i.A({paths:[[[-20037508.342788905,-20037508.342788905],[-20037508.342788905,20037508.342788905]]],spatialReference:r.A.WebMercator})},4326:{maxX:180,minX:-180,plus180Line:new i.A({paths:[[[180,-180],[180,180]]],spatialReference:r.A.WGS84}),minus180Line:new i.A({paths:[[[-180,-180],[-180,180]]],spatialReference:r.A.WGS84})}};function a(e,t){return Math.ceil((e-t)/(2*t))}function l(e,t){const n=u(e);for(const e of n)for(const n of e)n[0]+=t;return e}function u(e){return(0,s.Bi)(e)?e.rings:e.paths}},92300:(e,t,n)=>{n.d(t,{V:()=>s,X:()=>r});var i=n(65864);function r(e){return{geometryType:(0,i.$B)(e[0]),geometries:e.map(e=>e.toJSON())}}function s(e,t,n){const r=(0,i.xD)(t);return e.map(e=>{const t=r.fromJSON(e);return t.spatialReference=n,t})}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3169,5913,8125],{5913:(e,t,n)=>{n.d(t,{a:()=>i,e:()=>s,l:()=>u,s:()=>a});var r=n(54945),o=n(78125);function s(e){return(0,o.toPoint)((0,r.g7)((0,o.fromGeometry)(e)),(0,o.getSpatialReference)(e))}function i(e){const t=e.map(o.fromGeometry),n=(0,o.getSpatialReference)(e);return(0,r.zo)(t).map(e=>(0,o.toPoint)(e,n))}const a=(0,r.fz)(),u=Object.freeze(Object.defineProperty({__proto__:null,execute:s,executeMany:i,supportsCurves:a},Symbol.toStringTag,{value:"Module"}))},15546:(e,t,n)=>{n.d(t,{a:()=>i,c:()=>s});var r=n(55537),o=n(83661);function s(e,t){if(!e.isEmpty())switch(e.getGeometryType()){case r.G.enumPolygon:return a(e);case r.G.enumPolyline:return m(e.getImpl());case r.G.enumLine:case r.G.enumBezier:case r.G.enumEllipticArc:return function(e){const t=e.calculateLength2D();return 0===t?e.getStartXY():e.calculateWeightedCentroid2D().mul(1/t)}(e);case r.G.enumMultiPoint:return function(e){const t=new o.K(0),n=new o.K(0),r=e.getImpl(),s=r.getAttributeStreamRef(0),i=r.getPointCount(),a=new o.P;for(let e=0;e<i;e++)s.queryPoint2D(2*e,a),t.add(a.x),n.add(a.y);const u=new o.P;return u.setCoords(t.getResult(),n.getResult()),u.divThis(i)}(e);case r.G.enumEnvelope:return e.getCenterXY();case r.G.enumPoint:return e.getXY();default:return o.P.construct(Number.NaN,Number.NaN)}return o.P.construct(Number.NaN,Number.NaN)}function i(e,t){return a(e,t)}function a(e,t=-1){const n=new o.K(0),r=new o.K(0),s=e.getImpl();let i;const a=s.hasNonLinearSegments();let m;const g=s.getXY(0);if(-1===t){if(m=s.calculateArea2D(),0===m)return l(e);a&&(i=s.querySegmentIterator());for(let e=0,t=s.getPathCount();e<t;e++)u(g,s,e,n,r),a&&c(g,i,n,r)}else{if(m=s.calculateRingArea2D(t),0===m)return l(e,t);a&&(i=s.querySegmentIterator(),i.resetToPath(t)),u(g,s,t,n,r),a&&c(g,i,n,r)}const h=new o.P,f=new o.P;return h.setCoords(n.getResult(),r.getResult()),f.assign(h.mul(1/m).add(g)),f}function u(e,t,n,r,s){const i=t.getPathStart(n),a=t.getPathEnd(n);if(a-i<3)return;const u=t.getAttributeStreamRef(0),c=u.readPoint2D(2*i),l=u.readPoint2D(2*(i+1));l.subThis(c);const m=new o.K(0),g=t.hasNonLinearSegments(),h=1/3,f=new o.P;for(let e=i+2;e<a;e++){u.queryPoint2D(2*e,f),f.subThis(c);const t=.5*f.crossProduct(l);g&&m.add(t);const n=h*t;r.add((l.x+f.x)*n),s.add((l.y+f.y)*n),l.setCoordsPoint2D(f)}const P=g?m.getResult():t.calculateRingArea2D(n),d=c.sub(e).mul(P);r.add(d.x),s.add(d.y)}function c(e,t,n,o){let s;for(t.nextPath()||(0,r.d)("centroid");null!==(s=t.nextCurve());){const t=s.calculateWeightedAreaCentroid2D(e);n.add(t.x),o.add(t.y)}}function l(e,t=-1){return m(e.getImpl(),t)}function m(e,t=-1){const n=-1===t?e.calculateLength2D():e.calculatePathLength2D(t);if(0===n)return function(e,t=-1){if(-1!==t)return e.getXY(e.getPathStart(t));const n=new o.K(0),r=new o.K(0);for(let t=0;t<e.getPathCount();++t){const o=e.getXY(e.getPathStart(t));n.add(o.x),r.add(o.y)}return o.P.construct(n.getResult(),r.getResult()).mul(1/e.getPathCount())}(e,t);const r=new o.K(0),s=new o.K(0),i=e.querySegmentIterator();for(-1!==t&&i.resetToPath(t);i.nextPath();){const n=i.getPathIndex(),o=e.getXY(e.getPathStart(n));for(;i.hasNextSegment();){const e=i.nextSegment(),t=e.calculateLength2D();if(0===t)continue;const n=e.calculateWeightedCentroid2D().sub(o.mul(t));r.add(n.x),s.add(n.y)}const a=o.mul(e.calculatePathLength2D(n));if(r.add(a.x),s.add(a.y),-1!==t)break}const a=new o.P;return a.setCoords(r.getResult(),s.getResult()),a.mul(1/n)}},36633:(e,t,n)=>{n.d(t,{O:()=>g});var r=n(55537),o=n(79187),s=n(83661),i=n(39117);function a(){return u(new s.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 l(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,o){if(n>=0||o>=0)return(0,r.a)("");if(e.isDegenerate(0))return e.getStartXY().equals(t)?2:3;if(!e.isCurve()){const n=s.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=s.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,s){(n>=0||s>=0)&&(0,r.a)("");const a=new o.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,o){(n<0&&o>=0||n>=0&&o<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),l=s.P.sqrDistance(c,t);l<e?(r=1,n=i.getStartPointIndex(),o=i.getPathIndex(),e=l):l===e&&r++}if(0===r)return 3;if(1===r)return i.resetToVertex(n,o),l(i.nextSegment(),t)}const a=function(e,t,n,r){const o={i1:-1,i2:-1,bRight1:!1,bRight2:!1};if(o.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!==o.i1){t.resetToVertex(o.i1,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r),a=s.P.sqrDistance(i,e);{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight1=t.crossProduct(r)<0}if(o.i2=function(e,t){for(e.resetToVertex(t,-1),e.nextSegment();e.hasNextSegment();)if(!e.nextSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,o.i1),-1!==o.i2){t.resetToVertex(o.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(s.P.sqrDistance(i,e)>a)o.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight2=t.crossProduct(r)<0}}if(-1===o.i2&&(o.i2=function(e,t){for(e.resetToVertex(t,-1);e.hasPreviousSegment();)if(!e.previousSegment().isDegenerate(0))return e.getStartPointIndex();return-1}(t,o.i1),-1!==o.i2)){t.resetToVertex(o.i2,-1);const n=t.nextSegment(),r=n.getClosestCoordinate(e,!1),i=n.getCoord2D(r);if(s.P.sqrDistance(i,e)>a)o.i2=-1;else{const t=i.clone();t.subThis(n.getStartXY());const r=e.clone();r.subThis(n.getStartXY()),o.bRight2=t.crossProduct(r)<0;const s=o.i1;o.i1=o.i2,o.i2=s;const a=o.bRight1;o.bRight1=o.bRight2,o.bRight2=a}}}return o}(t,i,n,o);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,o),l(i.nextSegment(),t)}(e,t,n,a);if(u===r.G.enumEnvelope){const n=new o.Envelope2D;return e.queryEnvelope(n),n.contains(t)?n.containsExclusive(t)?1:2:0}return 3}var m=n(95213);class g{getOperatorType(){return 10500}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}getNearestCoordinate(e,t,n,o){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,o);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,o){if(0===o&&(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,o);case r.G.enumMultiPoint:case r.G.enumPolyline:case r.G.enumPolygon:return this.multiVertexGetNearestVertices(e,t,n,o);default:(0,r.t)("")}}multiPathGetNearestCoordinate(e,t,n,a){if(e.getGeometryType()===r.G.enumPolygon&&n){const n=new o.Envelope2D;e.queryEnvelope(n);const r=(0,m.a)(null,n,!1);let s;if(s=(0,i.H)(e,t,a?0:r),0!==s){const e=u(t,-1,0);return a&&(e.m_bRightSide=!0),e}}const c=e.querySegmentIterator(),g=new s.P;let h=-1,f=-1,P=Number.MAX_VALUE,d=0;for(;c.nextPath();)for(;c.hasNextSegment();){const e=c.nextSegment(),n=e.getClosestCoordinate(t,!1),r=e.getCoord2D(n),o=s.P.sqrDistance(r,t);o<P?(d=1,g.assign(r),h=c.getStartPointIndex(),f=c.getPathIndex(),P=o):o===P&&d++}-1===h&&(0,r.a)("");const y=u(g,h,Math.sqrt(P));if(a)if(e.getGeometryType()!==r.G.enumPolygon){let n=!1;if(d>1){const r=l(e,t,h,f);n=0!==r&&3!==r}else c.resetToVertex(h,f),n=0!==l(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,s.P.distance(n,t))}multiVertexGetNearestVertex(e,t){const n=e.getAttributeStreamRef(0),r=e.getPointCount();let o=-1;const i=new s.P;let a=Number.MAX_VALUE;const c=new s.P;for(let e=0;e<r;e++){n.queryPoint2D(2*e,c);const r=s.P.sqrDistance(c,t);r<a&&(i.assign(c),o=e,a=r)}return u(i,o,Math.sqrt(a))}pointGetNearestVertices(e,t,n,r){const o=[];if(0!==r){const r=n*n,i=e.getXY(),a=s.P.sqrDistance(i,t);a<=r&&o.push(u(i,0,Math.sqrt(a)))}return o}multiVertexGetNearestVertices(e,t,n,r){const o=[];if(0!==r){const i=e.getAttributeStreamRef(0),a=e.getPointCount();o.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,l=t.y-r,m=a*a+l*l;m<=c&&o.push(u(s.P.construct(n,r),e,Math.sqrt(m)))}o.sort((e,t)=>e.m_distance-t.m_distance)}return o.slice(0,r)}}},54945:(e,t,n)=>{n.d(t,{fz:()=>d,g7:()=>f,zo:()=>P});var r=n(76061),o=n(55537),s=n(95213),i=n(88885),a=n(79187),u=n(83661),c=n(39117),l=n(15546),m=n(36633);class g extends r.G{progress_(){}tock(){return!0}getRank(){return 1}constructor(e,t){super(),this.m_index=-1,this.m_progressCounter=0,this.m_progressTracker=t,this.m_inputGeoms=e}next(){const e=this.m_inputGeoms.next();return e?((0,o.c)(e),this.m_index=this.m_inputGeoms.getGeometryID(),this.labelPoint(e)):null}getGeometryID(){return this.m_index}labelPoint(e){if(null===e&&(0,o.a)("null pointer is not allowed"),e.getGeometryType()===o.G.enumPoint)return e;if(e.isEmpty())return new s.P({vd:e.getDescription()});switch(e.getGeometryType()){case o.G.enumPolygon:return this.labelPointPolygon(e);case o.G.enumPolyline:return this.labelPointPolyline(e);case o.G.enumMultiPoint:return this.labelPointMultiPoint(e);case o.G.enumEnvelope:return this.labelPointEnvelope(e);default:(0,o.a)("geometry is not supported")}}labelPointPolygon(e){const t=new a.Envelope2D;e.queryEnvelope(t);const n=(0,s.c)(null,t,!0).total();let r=null,g=e;if(e.hasNonLinearSegments()){const t=new i.a({copy:e}),s=(0,c.aJ)(t,.25*n,n);(0,o.g)(s!==e),r=s,g=r}let h=0,f=0;for(let e=0,t=g.getPathCount();e<t;++e){const t=Math.abs(g.calculateRingArea2D(e));t>f&&(f=t,h=e)}const P=new u.P;if(Math.abs(f)<=2*n*n?P.setNAN():P.assign((0,l.a)(g,h)),Number.isNaN(P.x)){const e=new a.Envelope2D;return g.queryPathEnvelope(h,e),new s.P({pt:e.getCenter()})}if(g.getPointCount()<4)return new s.P({x:P.x,y:P.y});const d=u.P.getNAN(),y=[d.clone(),d.clone(),d.clone(),d.clone()],x=[Number.NaN,Number.NaN,Number.NaN,Number.NaN],p=[Number.NaN,Number.NaN,Number.NaN,Number.NaN];let N=!1,C=(new m.O).getNearestCoordinate(g,P,!0,!1);if(0===C.m_distance&&(N=!0,y[0]=P,C=(new m.O).getNearestCoordinate(g,P,!1,!1),C.m_distance>.25*t.minDimension()*1.66666666))return new s.P({x:P.x,y:P.y});x[0]=C.m_distance,p[0]=0;const G=new u.P;let w=!1,b=.25,S=-1;const D=new a.Envelope2D;g.queryPathEnvelope(h,D);do{let e=Number.NaN;if(y[1]=this.calculateParacentroid_(g,(0,u.q)(D.xmin,D.xmax,b),n),y[1].isNAN()||(C=(new m.O).getNearestCoordinate(g,y[1],!1,!1),e=C.m_distance),e>n&&1===(0,c.H)(g,y[1],n))w=!0,x[1]=e,p[1]=u.P.sqrDistance(y[1],P);else if(e>S&&(S=e,G.setCoordsPoint2D(y[1])),b-=.01,b<.1){if(!(S>=0))break;w=!0,x[1]=S,y[1]=G,p[1]=u.P.sqrDistance(y[1],P)}}while(!w);w=!1,b=.5,S=-1;let V=.01,v=1;do{let e=Number.NaN;if(y[2]=this.calculateParacentroid_(g,(0,u.q)(D.xmin,D.xmax,b),n),y[2].isNAN()||(C=(new m.O).getNearestCoordinate(g,y[2],!1,!1),e=C.m_distance),e>n&&1===(0,c.H)(g,y[2],n))w=!0,x[2]=e,p[2]=u.P.sqrDistance(y[2],P);else if(e>S&&(S=e,G.setCoordsPoint2D(y[2])),b=.5+V*v,V+=.01,v*=-1,b<.3||b>.7){if(!(S>=0))break;w=!0,x[2]=S,y[2]=G,p[2]=u.P.sqrDistance(y[2],P)}}while(!w);w=!1,b=.75,S=-1;do{let e=Number.NaN;if(y[3]=this.calculateParacentroid_(g,(0,u.q)(D.xmin,D.xmax,b),n),y[3].isNAN()||(C=(new m.O).getNearestCoordinate(g,y[3],!1,!1),e=C.m_distance),e>n&&1===(0,c.H)(g,y[3],n))w=!0,x[3]=e,p[3]=u.P.sqrDistance(y[3],P);else if(e>S&&(S=e,G.setCoordsPoint2D(y[3])),b+=.01,b>.9){if(!(S>=0))break;w=!0,x[3]=S,y[3]=G,p[3]=u.P.sqrDistance(y[3],P)}}while(!w);const E=[0,1,2,3],R=N?0:1;for(let e=R;e<4;e++)for(let e=R;e<3;e++){const t=p[e],n=p[e+1];if((0,u.r)(t,n)>0){const r=E[e];E[e]=E[e+1],E[e+1]=r,p[e]=n,p[e+1]=t}}let _=R,A=0,M=0;for(let e=R;e<4;e++){switch(e){case 0:M=2*x[E[e]];break;case 1:M=1.66666666*x[E[e]];break;case 2:M=1.33333333*x[E[e]];break;case 3:M=x[E[e]]}M>A&&(A=M,_=E[e])}return(0,o.g)(!y[_].isNAN()),new s.P({x:y[_].x,y:y[_].y})}labelPointPolyline(e){const t=new u.P;if(e.getPointCount()>2*e.getPathCount()){let n=-1,r=-Number.MAX_VALUE;for(let t=0,o=e.getPathCount();t<o;t++)if(e.getPathSize(t)>2){const o=e.calculatePathLength2D(t);o>r&&(r=o,n=t)}const o=e.getPathStart(n),s=e.getPathEnd(n),i=Math.trunc((o+s)/2);t.assign(e.getXY(i))}else{let n=-Number.MAX_VALUE;const r=e.querySegmentIterator();for(;r.nextPath();)if(r.hasNextSegment()){const e=r.nextSegment(),o=e.calculateLength2D();o>n&&(n=o,t.assign(e.getCoord2D(e.lengthToT(.5*o))))}}return new s.P({x:t.x,y:t.y})}labelPointMultiPoint(e){const t=new a.Envelope2D;e.queryEnvelope(t);const n=t.getCenter(),r=(new m.O).getNearestCoordinate(e,n,!1,!1).m_coordinate;return new s.P({x:r.x,y:r.y})}labelPointEnvelope(e){const t=e.getCenterXY();return new s.P({x:t.x,y:t.y})}calculateParacentroid_(e,t,n){const r=new a.Envelope2D;e.queryEnvelope(r);const s=new u.P(t,0);let c=Number.MAX_VALUE,l=Number.MAX_VALUE,m=!1,g=!1;const h=new i.L;h.setStartXYCoords(s.x,r.ymin-1),h.setEndXYCoords(s.x,r.ymax+1);const f=new a.Envelope2D,P=new u.P,d=new u.P,y=(0,u.m)(u.P,2),x=e.querySegmentIterator();for(;x.nextPath();)for(;x.hasNextSegment();){const e=x.nextSegment();if(e.queryEnvelope(f),(0,o.g)(e.isMonotoneQuickAndDirty()),P.setCoordsPoint2D(h.getStartXY()),d.setCoordsPoint2D(h.getEndXY()),0===f.clipLine(P,d))continue;if(1!==h.intersect(e,y,null,null,n))continue;const t=y[0].y;c>l?t<c&&(c=t,m=!0):t<l&&(l=t,g=!0)}return m&&g?s.y=(c+l)/2:s.setNAN(),s}}const h=new class{getOperatorType(){return 10203}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}executeMany(e,t){return new g(e,t)}execute(e,t){return new g(null,t).labelPoint(e)}};function f(e){return h.execute(e,null)}function P(e){const t=h.executeMany(new r.S(e),null);return Array.from(t)}function d(){return h.supportsCurves()}},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:()=>p,fromGeometry:()=>x,fromMultipoint:()=>N,fromPoint:()=>C,fromPolygon:()=>G,fromPolyline:()=>w,fromSpatialReference:()=>b,getSpatialReference:()=>y,toExtent:()=>D,toGeometry:()=>S,toMultipoint:()=>V,toPoint:()=>v,toPolygon:()=>E,toPolyline:()=>R});var r=n(83661),o=(n(79187),n(55537)),s=n(95213),i=n(88885),a=n(39117),u=n(5443),c=n(48526),l=n(86738),m=n(39829),g=n(82799),h=(n(90293),n(83299));const f="_gxVersion",P=2,d=1;function y(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function x(e){switch(e.type){case"point":return C(e);case"multipoint":return N(e);case"polyline":return w(e);case"polygon":return G(e);case"extent":return p(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function p(e){if(!e.getCacheValue(f)){const t=new s.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(d,0,e.zmin,e.zmax),e.setCacheValue(f,t)}return e.getCacheValue(f)}function N(e){if(!e.getCacheValue(f)){const t=new i.M,n=new s.P,r=e.points,o=e.hasM,a=e.hasZ,u=a?3:2;for(let e=0,s=r.length;e<s;e++){const s=r[e];n.setXYCoords(s[0],s[1]),a&&n.setZ(s[2]??0),o&&n.setM(s[u]??NaN),t.add(n)}e.setCacheValue(f,t)}return e.getCacheValue(f)}function C(e){if(!e.getCacheValue(f)){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(f,t)}return e.getCacheValue(f)}function G(e){if(!e.getCacheValue(f)){const{curveRings:t,hasM:n,hasZ:r,rings:o}=e,s=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:o});e.setCacheValue(f,s)}return e.getCacheValue(f)}function w(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:n,hasZ:r,paths:o}=e,s=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:o});e.setCacheValue(f,s)}return e.getCacheValue(f)}function b(e){if(e.wkid)return(0,a.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,a.b)(t):null}function S(e,t){if(e)switch(e.getGeometryType()){case o.G.enumPoint:return v(e,t);case o.G.enumEnvelope:return D(e,t);case o.G.enumMultiPoint:return V(e,t);case o.G.enumPolyline:return R(e,t);case o.G.enumPolygon:return E(e,t)}return null}function D(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(P,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(f,e),n}function V(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),o=n.hasZ(),i=[],a=new s.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,a);const n=[a.getX(),a.getY()];o&&n.push(a.getZ()),r&&n.push(a.getM()),i.push(n)}const u=new c.A({hasM:r,hasZ:o,points:i,spatialReference:t});return u.setCacheValue(f,e),u}function v(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(f,e),n}function E(e,t){if(e.isEmpty())return null;const n=m.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(f,e),n}function R(e,t){if(e.isEmpty())return null;const n=g.A.fromJSON({spatialReference:t,...(0,h.toGeometry)(e,null)});return n.setCacheValue(f,e),n}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6339],{28298:(e,t,n)=>{n.d(t,{fz:()=>i,g7:()=>m,zo:()=>u});var r=n(76061),o=(n(55537),n(83661),n(88885),n(79187),n(39117));n(95213);const s=new o.L;function m(e,t,n){return s.execute(e,t,n,null)}function u(e,t){return s.executeMany(new r.S(e),t,null).next()}function i(){return s.supportsCurves()}},56339:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>s,executeMany:()=>m});var r=n(28298),o=n(83299);function s(e,t){const n=(0,o.fromGeometry)(e),s=n.getSpatialReference();return(0,o.toGeometry)((0,r.g7)(n.getGeometry(),(0,o.fromGeometryToGXGeometry)(t),s),s)}function m(e){const[t,n]=(0,o.fromGeometries)(e);return(0,o.toGeometry)((0,r.zo)(t,n),n)}},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}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4123],{44123:(t,e,i)=>{i.r(e),i.d(e,{WhereClauseCache:()=>r});var s=i(66344),h=i(88368);class r{constructor(t,e){this._cache=new s.q(t),this._invalidCache=new s.q(e)}get(t,e){const i=`${e?.uid}:${t}`,s=this._cache.get(i);if(s)return s;if(null!=this._invalidCache.get(i))return null;try{const s=h.A.create(t,{fieldsIndex:e});return this._cache.put(i,s),s}catch(t){return this._invalidCache.put(i,t),null}}getError(t,e){const i=`${e?.uid}:${t}`;return this._invalidCache.get(i)??null}}},66344:(t,e,i)=>{i.d(e,{q:()=>o});const s=!!(0,i(44208).A)("esri-tests-disable-gpu-memory-measurements");Symbol.iterator;class h{get size(){return this._size}constructor(t=10485760){this._maxSize=t,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear(),this._db=null}register(t){this._users.set(t.id.slice(0,-1),t)}deregister(t){this.clear(t),this._sizeLimits.delete(t),this._users.delete(t.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(t){this._maxSize=Math.max(t,-1),this._checkSize()}getSize(t,e){const i=this._db.get(t.id+e);return i?.size??0}put(t,e,i,h,n){e=t.id+e;const o=this._db.get(e);if(o&&(this._size-=o.size,t.size-=o.size,this._db.delete(e),o.entry!==i&&this._notifyRemove(e,o.entry,o.size,0)),h>this._maxSize)return void this._notifyRemove(e,i,h,0);if(void 0===i)return void console.warn("Refusing to cache undefined entry ");if(!h||h<0)return s||console.warn(`Refusing to cache entry with size ${h} for key ${e}`),void this._notifyRemove(e,i,0,0);const _=1+Math.max(n,-4)- -3;this._db.set(e,new r(i,h,_)),this._size+=h,t.size+=h,this._checkSize()}updateSize(t,e){e=t.id+e;const i=this._db.get(e);if(!i)return;this._size-=i.size,t.size-=i.size;let s=i.entry.usedMemory;for(;s>this._maxSize;){const t=this._notifyRemove(e,i.entry,s,1);if(!(null!=t&&t>0))return void this._db.delete(e);s=t}i.size=s,this._size+=s,t.size+=s,this._checkSize()}pop(t,e){e=t.id+e;const i=this._db.get(e);if(i)return this._size-=i.size,t.size-=i.size,this._db.delete(e),++this._hit,i.entry;++this._miss}get(t,e){e=t.id+e;const i=this._db.get(e);if(void 0!==i)return this._db.delete(e),i.lives=i.lifetime,this._db.set(e,i),++this._hit,i.entry;++this._miss}peek(t,e){const i=this._db.get(t.id+e);return i?++this._hit:++this._miss,i?.entry}get performanceInfo(){const t={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},e={},i=new Array;this._db.forEach((t,s)=>{const h=t.lifetime;i[h]=(i[h]||0)+t.size,this._users.forEach(i=>{const{id:h,name:r}=i;if(s.startsWith(h)){const i=e[r]||0;e[r]=i+t.size}})});const s={};this._users.forEach(t=>{const i=t.name;if("hitRate"in t&&"number"==typeof t.hitRate&&!isNaN(t.hitRate)&&t.hitRate>0){const h=e[i]||0;e[i]=h,s[i]=Math.round(100*t.hitRate)+"%"}else s[i]="0%"});const h=Object.keys(e);h.sort((t,i)=>e[i]-e[t]),h.forEach(i=>t[i]=Math.round(e[i]/2**20)+"MB / "+s[i]);for(let e=i.length-1;e>=0;--e){const s=i[e];s&&(t["Priority "+(e+-3-1)]=Math.round(s/this._size*100)+"%")}return t}resetStats(){this._hit=this._miss=0,this._users.forEach(t=>t.resetHitRate())}clear(t){const e=t.id;this._db.forEach((t,i)=>{i.startsWith(e)&&(this._size-=t.size,this._db.delete(i),this._notifyRemove(i,t.entry,t.size,0))}),t.size=0}clearAll(){this._db.forEach((t,e)=>this._notifyRemove(e,t.entry,t.size,0)),this._users.forEach(t=>t.size=0),this._size=0,this._db.clear()}*values(t){for(const[e,i]of this._db)e.startsWith(t.id)&&(yield i.entry)}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(t,e,i,s){const h=this._users.get(t.split(n)[0])?.removeFunc,r=h?.(e,s,i);return"number"==typeof r?r:null}_checkSize(){this._sizeLimits.forEach((t,e)=>this._checkSizeLimits(t,e)),this._checkSizeLimits(this.maxSize)}setMaxSize(t,e){null==e||e<=0?this._sizeLimits.delete(t):this._sizeLimits.set(t,e)}_checkSizeLimits(t,e){const i=e??this;if(i.size<=t)return;const s=e?.id;let h=!0;for(;h;){h=!1;for(const[r,o]of this._db)if(0===o.lifetime&&(!s||r.startsWith(s))){const s=e??this._users.get(r.split(n)[0]);if(this._purgeItem(r,o,s),i.size<=.9*t)return;h||=this._db.has(r)}}for(const[h,r]of this._db)if(!s||h.startsWith(s)){const s=e??this._users.get(h.split(n)[0]);if(this._purgeItem(h,r,s),i.size<=.9*t)return}}_purgeItem(t,e,i){if(this._db.delete(t),e.lives<=1){this._size-=e.size,i&&(i.size-=e.size);const s=this._notifyRemove(t,e.entry,e.size,1);null!=s&&s>0&&(this._size+=s,i&&(i.size+=s),e.lives=e.lifetime,e.size=s,this._db.set(t,e))}else--e.lives,this._db.set(t,e)}}new h(0);class r{constructor(t,e,i){this.entry=t,this.size=e,this.lifetime=i,this.lives=i}}const n=":";class o{constructor(t,e){this.removeFunc=e,this._storage=new h,this.id="",this.name="",this.size=0,this._storage.maxSize=t,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy(),this._storage=null}put(t,e,i=1){this._storage.put(this,t,e,i,1)}pop(t){return this._storage.pop(this,t)}get(t){return this._storage.get(this,t)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(t){this._storage.maxSize=t}resetHitRate(){}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9159],{5808:(e,t,n)=>{n.d(t,{O:()=>o});const o={geodesic:0,loxodrome:1,"great-elliptic":2,"normal-section":3,"shape-preserving":4}},24988:(e,t,n)=>{n.d(t,{Hh:()=>m,fz:()=>c,g7:()=>u,s1:()=>s,zo:()=>a});var o=n(76061),r=n(83290);let i;function s(){return!!i&&(0,r.i)()}async function m(){if(!s()){const[e,t]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(7444)]).then(n.bind(n,37444)),Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(5756)]).then(n.bind(n,15756)).then(({injectPe:e})=>e),(0,r.l)()]);i=new e.OperatorGeodesicBuffer,t(r.p)}}function u(e,t,n,o,r){return i.execute(e,t,n,o,r,!1,null)}function a(e,t,n,r,s,m){const u=i.executeMany(new o.S(e),t,n,r,s,!1,m,null);return Array.from(u)}function c(){return i.supportsCurves()}},49159:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>f,executeMany:()=>h,isLoaded:()=>c,load:()=>l});var o=n(4576),r=n(86211),i=n(24988),s=n(5808);let m,u,a;function c(){return!!m&&(0,i.s1)()}async function l(){if(!c()){const[e]=await Promise.all([Promise.all([n.e(3661),n.e(1878),n.e(9117),n.e(3299)]).then(n.bind(n,83299)),(0,i.Hh)()]);m=e.fromGeometries,u=e.fromGeometry,a=e.toGeometry}}function f(e,t,n={}){let{curveType:o="geodesic",maxDeviation:m=NaN,unit:c}=n;c&&(t=(0,r.oU)(t,c,"meters"),m&&(m=(0,r.oU)(m,c,"meters")));const l=u(e),f=l.getSpatialReference();return a((0,i.g7)(l.getGeometry(),f,s.O[o],t,m),f)}function h(e,t,n={}){let{curveType:u="geodesic",maxDeviation:c=NaN,union:l=!1,unit:f}=n;f&&(t=t.map(e=>(0,r.oU)(e,f,"meters")),c&&(c=(0,r.oU)(c,f,"meters")));const[h,d]=m(e);return(0,i.zo)(h,d,s.O[u],t,c,l).map(e=>a(e,d)).filter(o.Ru)}},76061:(e,t,n)=>{n.d(t,{G:()=>o,S:()=>r});class o{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class r extends o{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}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,591,3169,8125],{60591:(e,t,s)=>{s.r(t),s.d(t,{execute:()=>n.e,executeMany:()=>n.a,supportsCurves:()=>n.s}),s(4576),s(86211),s(70787),s(78125);var n=s(92523)},64523:(e,t,s)=>{s.d(t,{O:()=>c});var n=s(31635),r=s(76061),i=s(55537),a=s(88885),o=s(95213),l=s(83661),u=s(5247);class c{getOperatorType(){return 10204}supportsCurves(){return!0}accelerateGeometry(e,t,s){return!1}canAccelerateGeometry(e){return!1}executeMany(e,t,s,n){return new m(e,t,s,n)}execute(e,t,s,n){return e||(0,i.a)("null param is not allowed."),new m(null,t,s,n).generalize(e)}}class m extends r.G{constructor(e,t,s,n){super(),this.m_pline=null,this.m_point=new o.P,this.m_stack=[],this.m_resultstack=[],this.m_callCount=0,this.m_progressTracker=n,this.m_geoms=e,this.m_maxDeviation=t,this.m_bRemoveDegenerateParts=s}tock(){return!0}getRank(){return 1}next(){const e=this.m_geoms.next();return null===e?null:((0,i.c)(e),this.generalize(e))}getGeometryID(){return this.m_geoms.getGeometryID()}generalize(e){const t=e.getGeometryType();if((0,i.e)(t))return e;if(t===i.G.enumEnvelope){const t=new a.a({vd:e.getDescription()});return t.addEnvelope(e,!1),this.generalize(t)}if((0,i.f)(t)){const t=new a.P({vd:e.getDescription()});return t.addSegment(e,!0),this.generalize(t)}if((0,i.h)(t)||(0,i.t)(""),e.isEmpty()||this.m_maxDeviation<=0)return e;const s=(new u.O).execute(e,0,.05*this.m_maxDeviation,0,this.m_progressTracker);e.hasNonLinearSegments()&&(this.m_maxDeviation*=.95);const r=s,o=e.createInstance();o.getGeometryType()===i.G.enumPolygon&&o.setFillRule(e.getFillRule()),this.m_xy=r.getAttributeStreamRef(0);{const e={stack:[],error:void 0,hasError:!1};try{const t=new a.L;this.m_pline=t,(0,n.mS)(e,(0,l.h)(()=>{this.m_pline=null},!1),!1);for(let e=0,t=r.getPathCount();e<t;e++)this.generalizePath(r.getImpl(),e,o.getImpl())}catch(t){e.error=t,e.hasError=!0}finally{(0,n.hk)(e)}}return this.m_resultstack.length=0,this.m_stack.length=0,o}generalizePath(e,t,s){if(e.getPathSize(t)<2)return;this.m_resultstack.length=0,this.m_stack.length=0;const n=e.getPathStart(t),r=e.getPathEnd(t)-1,i=e.isClosedPath(t),a=e.isClosedPathInXYPlane(t);let o=0,u=-1;this.m_stack.push(i?n:r),this.m_stack.push(n);let c=!1,m=!1;for(!this.m_bRemoveDegenerateParts&&a&&(c=!0,m=!0);this.m_stack.length>1;){const t=this.m_stack.at(-1);this.m_stack.pop();const s=this.m_stack.at(-1);let n=e.getXY(t);this.m_pline.setStartXY(n),n=e.getXY(s),this.m_pline.setEndXY(n);const i=[Number.NaN];let a=this.findGreatestDistance(t,s,r,i);a>=0&&(c?c=!1:(m&&i[0]>o&&(o=i[0],u=a),i[0]<=this.m_maxDeviation&&(a=-1))),a>=0?(this.m_stack.push(a),this.m_stack.push(t)):this.m_resultstack.push(t)}i||this.m_resultstack.push(this.m_stack[0]);const h=this.m_resultstack.length;if(h===e.getPathSize(t)&&h===this.m_stack.length)s.addPath(e,t,!0);else if(this.m_resultstack.length>0){if(this.m_bRemoveDegenerateParts&&this.m_resultstack.length<=2){if(i||1===this.m_resultstack.length)return;if(l.P.distance(e.getXY(this.m_resultstack[0]),e.getXY(this.m_resultstack[1]))<=this.m_maxDeviation)return}if(m&&u>=0&&o<=this.m_maxDeviation){const e=this.m_resultstack.at(-1)>u;this.m_resultstack.push(u),e&&(this.m_resultstack[this.m_resultstack.length-2]=(0,l.c)(this.m_resultstack[this.m_resultstack.length-1],this.m_resultstack[this.m_resultstack.length-1]=this.m_resultstack[this.m_resultstack.length-2]))}for(let t=0,n=this.m_resultstack.length;t<n;t++)e.getPointByVal(this.m_resultstack[t],this.m_point),0===t?s.startPathPoint(this.m_point):s.lineToPoint(this.m_point);if(i){for(let e=this.m_resultstack.length;e<3;e++)s.lineToPoint(this.m_point);s.closePathWithLine()}}}findGreatestDistance(e,t,s,n){let r=t-1;t<=e&&(r=s);let i=-1,a=0;const o=new l.P;for(let t=e+1;t<=r;t++){this.m_xy.queryPoint2D(2*t,o);const e=o.x,s=o.y,n=this.m_pline.getClosestCoordinate(o,!1);o.assign(this.m_pline.getCoord2D(n)),o.x-=e,o.y-=s;const r=o.length();r>a&&(i=t,a=r),this.m_callCount++}return n[0]=a,i}}},70787:(e,t,s)=>{s.d(t,{fz:()=>o,g7:()=>i,zo:()=>a});var n=s(76061);const r=new(s(64523).O);function i(e,t,s){return r.execute(e,t,s,null)}function a(e,t,s){const i=r.executeMany(new n.S(e),t,s,null);return Array.from(i)}function o(){return r.supportsCurves()}},76061:(e,t,s)=>{s.d(t,{G:()=>n,S:()=>r});class n{*[Symbol.iterator](){let e=this.next();for(;e;)yield e,e=this.next()}}class r extends n{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,s)=>{s.r(t),s.d(t,{fromExtent:()=>x,fromGeometry:()=>k,fromMultipoint:()=>P,fromPoint:()=>G,fromPolygon:()=>v,fromPolyline:()=>C,fromSpatialReference:()=>d,getSpatialReference:()=>y,toExtent:()=>M,toGeometry:()=>w,toMultipoint:()=>R,toPoint:()=>D,toPolygon:()=>V,toPolyline:()=>z});var n=s(83661),r=(s(79187),s(55537)),i=s(95213),a=s(88885),o=s(39117),l=s(5443),u=s(48526),c=s(86738),m=s(39829),h=s(82799),g=(s(90293),s(83299));const f="_gxVersion",p=2,_=1;function y(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function k(e){switch(e.type){case"point":return G(e);case"multipoint":return P(e);case"polyline":return C(e);case"polygon":return v(e);case"extent":return x(e);default:throw new Error(`Unsupported geometry type: ${e.type}`)}}function x(e){if(!e.getCacheValue(f)){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(_,0,e.zmin,e.zmax),e.setCacheValue(f,t)}return e.getCacheValue(f)}function P(e){if(!e.getCacheValue(f)){const t=new a.M,s=new i.P,n=e.points,r=e.hasM,o=e.hasZ,l=o?3:2;for(let e=0,i=n.length;e<i;e++){const i=n[e];s.setXYCoords(i[0],i[1]),o&&s.setZ(i[2]??0),r&&s.setM(i[l]??NaN),t.add(s)}e.setCacheValue(f,t)}return e.getCacheValue(f)}function G(e){if(!e.getCacheValue(f)){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(f,t)}return e.getCacheValue(f)}function v(e){if(!e.getCacheValue(f)){const{curveRings:t,hasM:s,hasZ:n,rings:r}=e,i=(0,g.fromGeometryToGXGeometry)({curveRings:t,hasM:s,hasZ:n,rings:r});e.setCacheValue(f,i)}return e.getCacheValue(f)}function C(e){if(!e.getCacheValue(f)){const{curvePaths:t,hasM:s,hasZ:n,paths:r}=e,i=(0,g.fromGeometryToGXGeometry)({curvePaths:t,hasM:s,hasZ:n,paths:r});e.setCacheValue(f,i)}return e.getCacheValue(f)}function d(e){if(e.wkid)return(0,o.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,o.b)(t):null}function w(e,t){if(e)switch(e.getGeometryType()){case r.G.enumPoint:return D(e,t);case r.G.enumEnvelope:return M(e,t);case r.G.enumMultiPoint:return R(e,t);case r.G.enumPolyline:return z(e,t);case r.G.enumPolygon:return V(e,t)}return null}function M(e,t){if(e.isEmpty())return null;const s=new l.A({xmin:e.getXMin(),ymin:e.getYMin(),xmax:e.getXMax(),ymax:e.getYMax(),spatialReference:t}),n=e.getDescription();if(n.hasM()){const t=e.queryInterval(p,0);s.mmin=t.vmin,s.mmax=t.vmax}if(n.hasZ()){const t=e.queryInterval(_,0);s.zmin=t.vmin,s.zmax=t.vmax}return s.setCacheValue(f,e),s}function R(e,t){if(e.isEmpty())return null;const s=e.getDescription(),n=s.hasM(),r=s.hasZ(),a=[],o=new i.P;for(let t=0,s=e.getPointCount();t<s;t++){e.getPointByVal(t,o);const s=[o.getX(),o.getY()];r&&s.push(o.getZ()),n&&s.push(o.getM()),a.push(s)}const l=new u.A({hasM:n,hasZ:r,points:a,spatialReference:t});return l.setCacheValue(f,e),l}function D(e,t){if(e instanceof n.P)return new c.A({x:e.x,y:e.y,spatialReference:t});if(e.isEmpty())return null;const s=new c.A({x:e.getX(),y:e.getY(),spatialReference:t}),r=e.getDescription();return r.hasM()&&(s.m=e.getM()),r.hasZ()&&(s.z=e.getZ()),s.setCacheValue(f,e),s}function V(e,t){if(e.isEmpty())return null;const s=m.A.fromJSON({spatialReference:t,...(0,g.toGeometry)(e,null)});return s.setCacheValue(f,e),s}function z(e,t){if(e.isEmpty())return null;const s=h.A.fromJSON({spatialReference:t,...(0,g.toGeometry)(e,null)});return s.setCacheValue(f,e),s}},92523:(e,t,s)=>{s.d(t,{a:()=>l,e:()=>o,g:()=>c,s:()=>u});var n=s(4576),r=s(86211),i=s(70787),a=s(78125);function o(e,t,s={}){const{removeDegenerateParts:n=!1,unit:o}=s,l=(0,a.getSpatialReference)(e);return o&&(t=(0,r.UW)(t,o,l)),(0,a.toGeometry)((0,i.g7)((0,a.fromGeometry)(e),t,n),l)}function l(e,t,s={}){const{removeDegenerateParts:o=!1,unit:l}=s,u=e.map(a.fromGeometry),c=(0,a.getSpatialReference)(e);return l&&(t=(0,r.UW)(t,l,c)),(0,i.zo)(u,t,o).map(e=>(0,a.toGeometry)(e,c)).filter(n.Ru)}const u=(0,i.fz)(),c=Object.freeze(Object.defineProperty({__proto__:null,execute:o,executeMany:l,supportsCurves:u},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2343],{2343:(r,e,t)=>{t.r(e),t.d(e,{l:()=>s});var n,o=t(11053),a={exports:{}};const i=(0,o.g)(function(){return n||(n=1,r=a,e="undefined"!=typeof document?document.currentScript?.src:void 0,t=async function(r={}){var t,n=r,o="./this.program",a="";try{a=new URL(".",e).href}catch{}t=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)};var i,s,u,l,d,c,f,m,h,p,v,w,y,g,E=console.log.bind(console),k=console.error.bind(console),_=!1,b=!1;function F(){var r=l.buffer;d=new Int8Array(r),f=new Int16Array(r),n.HEAPU8=c=new Uint8Array(r),m=new Uint16Array(r),h=new Int32Array(r),n.HEAPU32=p=new Uint32Array(r),v=new Float32Array(r),n.HEAPF64=w=new Float64Array(r),y=new BigInt64Array(r),g=new BigUint64Array(r)}var A,P=0,S=null;function D(r){P++,n.monitorRunDependencies?.(P)}function T(r){if(P--,n.monitorRunDependencies?.(P),0==P&&S){var e=S;S=null,e()}}function C(r){n.onAbort?.(r),k(r="Aborted("+r+")"),_=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw u?.(e),e}async function x(r){if(!i)try{var e=await t(r);return new Uint8Array(e)}catch{}return function(r){if(r==A&&i)return new Uint8Array(i);throw"both async and sync fetching of the wasm failed"}(r)}class M{name="ExitStatus";constructor(r){this.message=`Program terminated with exit(${r})`,this.status=r}}var N=r=>{for(;r.length>0;)r.shift()(n)},R=[],B=r=>R.push(r),O=[],j=r=>O.push(r),W=!0,z=r=>Hr(r),$=()=>qr();class I{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){p[this.ptr+4>>2]=r}get_type(){return p[this.ptr+4>>2]}set_destructor(r){p[this.ptr+8>>2]=r}get_destructor(){return p[this.ptr+8>>2]}set_caught(r){r=r?1:0,d[this.ptr+12]=r}get_caught(){return 0!=d[this.ptr+12]}set_rethrown(r){r=r?1:0,d[this.ptr+13]=r}get_rethrown(){return 0!=d[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){p[this.ptr+16>>2]=r}get_adjusted_ptr(){return p[this.ptr+16>>2]}}var U=()=>{var r=h[+lr.varargs>>2];return lr.varargs+=4,r},L=U,V={isAbs:r=>"/"===r.charAt(0),splitPath:r=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(r).slice(1),normalizeArray:(r,e)=>{for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];"."===o?r.splice(n,1):".."===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift("..");return r},normalize:r=>{var e=V.isAbs(r),t="/"===r.slice(-1);return(r=V.normalizeArray(r.split("/").filter(r=>!!r),!e).join("/"))||e||(r="."),r&&t&&(r+="/"),(e?"/":"")+r},dirname:r=>{var e=V.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.slice(0,-1)),t+n):"."},basename:r=>r&&r.match(/([^\/]+|\/)\/*$/)[1],join:(...r)=>V.normalize(r.join("/")),join2:(r,e)=>V.normalize(r+"/"+e)},H=r=>{(H=r=>crypto.getRandomValues(r))(r)},q={resolve:(...r)=>{for(var e="",t=!1,n=r.length-1;n>=-1&&!t;n--){var o=n>=0?r[n]:sr.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";e=o+"/"+e,t=V.isAbs(o)}return(t?"/":"")+(e=V.normalizeArray(e.split("/").filter(r=>!!r),!t).join("/"))||"."},relative:(r,e)=>{function t(r){for(var e=0;e<r.length&&""===r[e];e++);for(var t=r.length-1;t>=0&&""===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=q.resolve(r).slice(1),e=q.resolve(e).slice(1);for(var n=t(r.split("/")),o=t(e.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("/")}},X="undefined"!=typeof TextDecoder?new TextDecoder:void 0,G=(r,e=0,t=NaN)=>{for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.buffer&&X)return X.decode(r.subarray(e,o));for(var a="";e<o;){var i=r[e++];if(128&i){var s=63&r[e++];if(192!=(224&i)){var u=63&r[e++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&r[e++])<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},Y=[],K=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},J=(r,e,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<r.length;++i){var s=r.codePointAt(i);if(s<=127){if(t>=a)break;e[t++]=s}else if(s<=2047){if(t+1>=a)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=a)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s,i++}}return e[t]=0,t-o},Q=(r,e,t)=>{var n=K(r)+1,o=new Array(n),a=J(r,o,0,o.length);return o.length=a,o},Z={ttys:[],init(){},shutdown(){},register(r,e){Z.ttys[r]={input:[],output:[],ops:e},sr.registerDevice(r,Z.stream_ops)},stream_ops:{open(r){var e=Z.ttys[r.node.rdev];if(!e)throw new sr.ErrnoError(43);r.tty=e,r.seekable=!1},close(r){r.tty.ops.fsync(r.tty)},fsync(r){r.tty.ops.fsync(r.tty)},read(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new sr.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new sr.ErrnoError(29)}if(void 0===s&&0===a)throw new sr.ErrnoError(6);if(null==s)break;a++,e[t+i]=s}return a&&(r.node.atime=Date.now()),a},write(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new sr.ErrnoError(60);try{for(var a=0;a<n;a++)r.tty.ops.put_char(r.tty,e[t+a])}catch(r){throw new sr.ErrnoError(29)}return n&&(r.node.mtime=r.node.ctime=Date.now()),a}},default_tty_ops:{get_char:r=>(()=>{if(!Y.length){var r=null;if("undefined"!=typeof window&&"function"==typeof window.prompt&&null!==(r=window.prompt("Input: "))&&(r+="\n"),!r)return null;Y=Q(r)}return Y.shift()})(),put_char(r,e){null===e||10===e?(E(G(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output?.length>0&&(E(G(r.output)),r.output=[])},ioctl_tcgets:r=>({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:(r,e,t)=>0,ioctl_tiocgwinsz:r=>[24,80]},default_tty1_ops:{put_char(r,e){null===e||10===e?(k(G(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output?.length>0&&(k(G(r.output)),r.output=[])}}},rr=r=>{C()},er={ops_table:null,mount:r=>er.createNode(null,"/",16895,0),createNode(r,e,t,n){if(sr.isBlkdev(t)||sr.isFIFO(t))throw new sr.ErrnoError(63);er.ops_table||={dir:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr,lookup:er.node_ops.lookup,mknod:er.node_ops.mknod,rename:er.node_ops.rename,unlink:er.node_ops.unlink,rmdir:er.node_ops.rmdir,readdir:er.node_ops.readdir,symlink:er.node_ops.symlink},stream:{llseek:er.stream_ops.llseek}},file:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr},stream:{llseek:er.stream_ops.llseek,read:er.stream_ops.read,write:er.stream_ops.write,mmap:er.stream_ops.mmap,msync:er.stream_ops.msync}},link:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr,readlink:er.node_ops.readlink},stream:{}},chrdev:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr},stream:sr.chrdev_stream_ops}};var o=sr.createNode(r,e,t,n);return sr.isDir(o.mode)?(o.node_ops=er.ops_table.dir.node,o.stream_ops=er.ops_table.dir.stream,o.contents={}):sr.isFile(o.mode)?(o.node_ops=er.ops_table.file.node,o.stream_ops=er.ops_table.file.stream,o.usedBytes=0,o.contents=null):sr.isLink(o.mode)?(o.node_ops=er.ops_table.link.node,o.stream_ops=er.ops_table.link.stream):sr.isChrdev(o.mode)&&(o.node_ops=er.ops_table.chrdev.node,o.stream_ops=er.ops_table.chrdev.stream),o.atime=o.mtime=o.ctime=Date.now(),r&&(r.contents[e]=o,r.atime=r.mtime=r.ctime=o.atime),o},getFileDataAsTypedArray:r=>r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0),expandFileStorage(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr(r){var e={};return e.dev=sr.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,sr.isDir(r.mode)?e.size=4096:sr.isFile(r.mode)?e.size=r.usedBytes:sr.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.atime),e.mtime=new Date(r.mtime),e.ctime=new Date(r.ctime),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr(r,e){for(const t of["mode","atime","mtime","ctime"])null!=e[t]&&(r[t]=e[t]);void 0!==e.size&&er.resizeFileStorage(r,e.size)},lookup(r,e){throw er.doesNotExistError},mknod:(r,e,t,n)=>er.createNode(r,e,t,n),rename(r,e,t){var n;try{n=sr.lookupNode(e,t)}catch(r){}if(n){if(sr.isDir(r.mode))for(var o in n.contents)throw new sr.ErrnoError(55);sr.hashRemoveNode(n)}delete r.parent.contents[r.name],e.contents[t]=r,r.name=t,e.ctime=e.mtime=r.parent.ctime=r.parent.mtime=Date.now()},unlink(r,e){delete r.contents[e],r.ctime=r.mtime=Date.now()},rmdir(r,e){var t=sr.lookupNode(r,e);for(var n in t.contents)throw new sr.ErrnoError(55);delete r.contents[e],r.ctime=r.mtime=Date.now()},readdir:r=>[".","..",...Object.keys(r.contents)],symlink(r,e,t){var n=er.createNode(r,e,41471,0);return n.link=t,n},readlink(r){if(!sr.isLink(r.mode))throw new sr.ErrnoError(28);return r.link}},stream_ops:{read(r,e,t,n,o){var a=r.node.contents;if(o>=r.node.usedBytes)return 0;var i=Math.min(r.node.usedBytes-o,n);if(i>8&&a.subarray)e.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)e[t+s]=a[o+s];return i},write(r,e,t,n,o,a){if(e.buffer===d.buffer&&(a=!1),!n)return 0;var i=r.node;if(i.mtime=i.ctime=Date.now(),e.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=e.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=e.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(e.subarray(t,t+n),o),n}if(er.expandFileStorage(i,o+n),i.contents.subarray&&e.subarray)i.contents.set(e.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=e[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&sr.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new sr.ErrnoError(28);return n},mmap(r,e,t,n,o){if(!sr.isFile(r.node.mode))throw new sr.ErrnoError(43);var a,i,s=r.node.contents;if(2&o||!s||s.buffer!==d.buffer){if(i=!0,!(a=rr()))throw new sr.ErrnoError(48);s&&((t>0||t+e<s.length)&&(s=s.subarray?s.subarray(t,t+e):Array.prototype.slice.call(s,t,t+e)),d.set(s,a))}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(r,e,t,n,o)=>(er.stream_ops.write(r,e,0,n,t,!1),0)}},tr=async r=>{var e=await t(r);return new Uint8Array(e)},nr=(...r)=>sr.createDataFile(...r),or=[],ar=(r,e,t,n,o,a,i,s,u,l)=>{var d=e?q.resolve(V.join2(r,e)):r;function c(t){function c(t){l?.(),s||nr(r,e,t,n,o,u),a?.(),T()}((r,e,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return or.forEach(a=>{o||a.canHandle(e)&&(a.handle(r,e,t,n),o=!0)}),o})(t,d,c,()=>{i?.(),T()})||c(t)}D(),"string"==typeof t?tr(t).then(c,i):c(t)},ir=(r,e)=>{var t=0;return r&&(t|=365),e&&(t|=146),t},sr={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,filesystems:null,syncFSRequests:0,readFiles:{},ErrnoError:class{name="ErrnoError";constructor(r){this.errno=r}},FSStream:class{shared={};get object(){return this.node}set object(r){this.node=r}get isRead(){return 1!=(2097155&this.flags)}get isWrite(){return!!(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(r){this.shared.flags=r}get position(){return this.shared.position}set position(r){this.shared.position=r}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.id=sr.nextInode++,this.name=e,this.mode=t,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(r){r?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(r){r?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return sr.isDir(this.mode)}get isDevice(){return sr.isChrdev(this.mode)}},lookupPath(r,e={}){if(!r)throw new sr.ErrnoError(44);e.follow_mount??=!0,V.isAbs(r)||(r=sr.cwd()+"/"+r);r:for(var t=0;t<40;t++){for(var n=r.split("/").filter(r=>!!r),o=sr.root,a="/",i=0;i<n.length;i++){var s=i===n.length-1;if(s&&e.parent)break;if("."!==n[i])if(".."!==n[i]){a=V.join2(a,n[i]);try{o=sr.lookupNode(o,n[i])}catch(r){if(44===r?.errno&&s&&e.noent_okay)return{path:a};throw r}if(!sr.isMountpoint(o)||s&&!e.follow_mount||(o=o.mounted.root),sr.isLink(o.mode)&&(!s||e.follow)){if(!o.node_ops.readlink)throw new sr.ErrnoError(52);var u=o.node_ops.readlink(o);V.isAbs(u)||(u=V.dirname(a)+"/"+u),r=u+"/"+n.slice(i+1).join("/");continue r}}else{if(a=V.dirname(a),sr.isRoot(o)){r=a+"/"+n.slice(i+1).join("/");continue r}o=o.parent}}return{path:a,node:o}}throw new sr.ErrnoError(32)},getPath(r){for(var e;;){if(sr.isRoot(r)){var t=r.mount.mountpoint;return e?"/"!==t[t.length-1]?`${t}/${e}`:t+e:t}e=e?`${r.name}/${e}`:r.name,r=r.parent}},hashName(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%sr.nameTable.length},hashAddNode(r){var e=sr.hashName(r.parent.id,r.name);r.name_next=sr.nameTable[e],sr.nameTable[e]=r},hashRemoveNode(r){var e=sr.hashName(r.parent.id,r.name);if(sr.nameTable[e]===r)sr.nameTable[e]=r.name_next;else for(var t=sr.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode(r,e){var t=sr.mayLookup(r);if(t)throw new sr.ErrnoError(t);for(var n=sr.hashName(r.id,e),o=sr.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===r.id&&a===e)return o}return sr.lookup(r,e)},createNode(r,e,t,n){var o=new sr.FSNode(r,e,t,n);return sr.hashAddNode(o),o},destroyNode(r){sr.hashRemoveNode(r)},isRoot:r=>r===r.parent,isMountpoint:r=>!!r.mounted,isFile:r=>32768==(61440&r),isDir:r=>16384==(61440&r),isLink:r=>40960==(61440&r),isChrdev:r=>8192==(61440&r),isBlkdev:r=>24576==(61440&r),isFIFO:r=>4096==(61440&r),isSocket:r=>!(49152&~r),flagsToPermissionString(r){var e=["r","w","rw"][3&r];return 512&r&&(e+="w"),e},nodePermissions:(r,e)=>sr.ignorePermissions||(!e.includes("r")||292&r.mode)&&(!e.includes("w")||146&r.mode)&&(!e.includes("x")||73&r.mode)?0:2,mayLookup:r=>sr.isDir(r.mode)?sr.nodePermissions(r,"x")||(r.node_ops.lookup?0:2):54,mayCreate(r,e){if(!sr.isDir(r.mode))return 54;try{return sr.lookupNode(r,e),20}catch(r){}return sr.nodePermissions(r,"wx")},mayDelete(r,e,t){var n;try{n=sr.lookupNode(r,e)}catch(r){return r.errno}var o=sr.nodePermissions(r,"wx");if(o)return o;if(t){if(!sr.isDir(n.mode))return 54;if(sr.isRoot(n)||sr.getPath(n)===sr.cwd())return 10}else if(sr.isDir(n.mode))return 31;return 0},mayOpen:(r,e)=>r?sr.isLink(r.mode)?32:sr.isDir(r.mode)&&("r"!==sr.flagsToPermissionString(e)||576&e)?31:sr.nodePermissions(r,sr.flagsToPermissionString(e)):44,checkOpExists(r,e){if(!r)throw new sr.ErrnoError(e);return r},MAX_OPEN_FDS:4096,nextfd(){for(var r=0;r<=sr.MAX_OPEN_FDS;r++)if(!sr.streams[r])return r;throw new sr.ErrnoError(33)},getStreamChecked(r){var e=sr.getStream(r);if(!e)throw new sr.ErrnoError(8);return e},getStream:r=>sr.streams[r],createStream:(r,e=-1)=>(r=Object.assign(new sr.FSStream,r),-1==e&&(e=sr.nextfd()),r.fd=e,sr.streams[e]=r,r),closeStream(r){sr.streams[r]=null},dupStream(r,e=-1){var t=sr.createStream(r,e);return t.stream_ops?.dup?.(t),t},doSetAttr(r,e,t){var n=r?.stream_ops.setattr,o=n?r:e;n??=e.node_ops.setattr,sr.checkOpExists(n,63),n(o,t)},chrdev_stream_ops:{open(r){var e=sr.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open?.(r)},llseek(){throw new sr.ErrnoError(70)}},major:r=>r>>8,minor:r=>255&r,makedev:(r,e)=>r<<8|e,registerDevice(r,e){sr.devices[r]={stream_ops:e}},getDevice:r=>sr.devices[r],getMounts(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push(...n.mounts)}return e},syncfs(r,e){"function"==typeof r&&(e=r,r=!1),sr.syncFSRequests++,sr.syncFSRequests>1&&k(`warning: ${sr.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=sr.getMounts(sr.root.mount),n=0;function o(r){return sr.syncFSRequests--,e(r)}function a(r){if(r)return a.errored?void 0:(a.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach(e=>{if(!e.type.syncfs)return a(null);e.type.syncfs(e,r,a)})},mount(r,e,t){var n,o="/"===t,a=!t;if(o&&sr.root)throw new sr.ErrnoError(10);if(!o&&!a){var i=sr.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,sr.isMountpoint(n))throw new sr.ErrnoError(10);if(!sr.isDir(n.mode))throw new sr.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?sr.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(r){var e=sr.lookupPath(r,{follow_mount:!1});if(!sr.isMountpoint(e.node))throw new sr.ErrnoError(28);var t=e.node,n=t.mounted,o=sr.getMounts(n);Object.keys(sr.nameTable).forEach(r=>{for(var e=sr.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&sr.destroyNode(e),e=t}}),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(r,e)=>r.node_ops.lookup(r,e),mknod(r,e,t){var n=sr.lookupPath(r,{parent:!0}).node,o=V.basename(r);if(!o)throw new sr.ErrnoError(28);if("."===o||".."===o)throw new sr.ErrnoError(20);var a=sr.mayCreate(n,o);if(a)throw new sr.ErrnoError(a);if(!n.node_ops.mknod)throw new sr.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},statfs:r=>sr.statfsNode(sr.lookupPath(r,{follow:!0}).node),statfsStream:r=>sr.statfsNode(r.node),statfsNode(r){var e={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:sr.nextInode,ffree:sr.nextInode-1,fsid:42,flags:2,namelen:255};return r.node_ops.statfs&&Object.assign(e,r.node_ops.statfs(r.mount.opts.root)),e},create:(r,e=438)=>(e&=4095,e|=32768,sr.mknod(r,e,0)),mkdir:(r,e=511)=>(e&=1023,e|=16384,sr.mknod(r,e,0)),mkdirTree(r,e){var t=r.split("/"),n="";for(var o of t)if(o){(n||V.isAbs(r))&&(n+="/"),n+=o;try{sr.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:(r,e,t)=>(void 0===t&&(t=e,e=438),e|=8192,sr.mknod(r,e,t)),symlink(r,e){if(!q.resolve(r))throw new sr.ErrnoError(44);var t=sr.lookupPath(e,{parent:!0}).node;if(!t)throw new sr.ErrnoError(44);var n=V.basename(e),o=sr.mayCreate(t,n);if(o)throw new sr.ErrnoError(o);if(!t.node_ops.symlink)throw new sr.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename(r,e){var t,n,o=V.dirname(r),a=V.dirname(e),i=V.basename(r),s=V.basename(e);if(t=sr.lookupPath(r,{parent:!0}).node,n=sr.lookupPath(e,{parent:!0}).node,!t||!n)throw new sr.ErrnoError(44);if(t.mount!==n.mount)throw new sr.ErrnoError(75);var u,l=sr.lookupNode(t,i),d=q.relative(r,a);if("."!==d.charAt(0))throw new sr.ErrnoError(28);if("."!==(d=q.relative(e,o)).charAt(0))throw new sr.ErrnoError(55);try{u=sr.lookupNode(n,s)}catch(r){}if(l!==u){var c=sr.isDir(l.mode),f=sr.mayDelete(t,i,c);if(f)throw new sr.ErrnoError(f);if(f=u?sr.mayDelete(n,s,c):sr.mayCreate(n,s))throw new sr.ErrnoError(f);if(!t.node_ops.rename)throw new sr.ErrnoError(63);if(sr.isMountpoint(l)||u&&sr.isMountpoint(u))throw new sr.ErrnoError(10);if(n!==t&&(f=sr.nodePermissions(t,"w")))throw new sr.ErrnoError(f);sr.hashRemoveNode(l);try{t.node_ops.rename(l,n,s),l.parent=n}catch(r){throw r}finally{sr.hashAddNode(l)}}},rmdir(r){var e=sr.lookupPath(r,{parent:!0}).node,t=V.basename(r),n=sr.lookupNode(e,t),o=sr.mayDelete(e,t,!0);if(o)throw new sr.ErrnoError(o);if(!e.node_ops.rmdir)throw new sr.ErrnoError(63);if(sr.isMountpoint(n))throw new sr.ErrnoError(10);e.node_ops.rmdir(e,t),sr.destroyNode(n)},readdir(r){var e=sr.lookupPath(r,{follow:!0}).node;return sr.checkOpExists(e.node_ops.readdir,54)(e)},unlink(r){var e=sr.lookupPath(r,{parent:!0}).node;if(!e)throw new sr.ErrnoError(44);var t=V.basename(r),n=sr.lookupNode(e,t),o=sr.mayDelete(e,t,!1);if(o)throw new sr.ErrnoError(o);if(!e.node_ops.unlink)throw new sr.ErrnoError(63);if(sr.isMountpoint(n))throw new sr.ErrnoError(10);e.node_ops.unlink(e,t),sr.destroyNode(n)},readlink(r){var e=sr.lookupPath(r).node;if(!e)throw new sr.ErrnoError(44);if(!e.node_ops.readlink)throw new sr.ErrnoError(28);return e.node_ops.readlink(e)},stat(r,e){var t=sr.lookupPath(r,{follow:!e}).node;return sr.checkOpExists(t.node_ops.getattr,63)(t)},fstat(r){var e=sr.getStreamChecked(r),t=e.node,n=e.stream_ops.getattr,o=n?e:t;return n??=t.node_ops.getattr,sr.checkOpExists(n,63),n(o)},lstat:r=>sr.stat(r,!0),doChmod(r,e,t,n){sr.doSetAttr(r,e,{mode:4095&t|-4096&e.mode,ctime:Date.now(),dontFollow:n})},chmod(r,e,t){var n;n="string"==typeof r?sr.lookupPath(r,{follow:!t}).node:r,sr.doChmod(null,n,e,t)},lchmod(r,e){sr.chmod(r,e,!0)},fchmod(r,e){var t=sr.getStreamChecked(r);sr.doChmod(t,t.node,e,!1)},doChown(r,e,t){sr.doSetAttr(r,e,{timestamp:Date.now(),dontFollow:t})},chown(r,e,t,n){var o;o="string"==typeof r?sr.lookupPath(r,{follow:!n}).node:r,sr.doChown(null,o,n)},lchown(r,e,t){sr.chown(r,e,t,!0)},fchown(r,e,t){var n=sr.getStreamChecked(r);sr.doChown(n,n.node,!1)},doTruncate(r,e,t){if(sr.isDir(e.mode))throw new sr.ErrnoError(31);if(!sr.isFile(e.mode))throw new sr.ErrnoError(28);var n=sr.nodePermissions(e,"w");if(n)throw new sr.ErrnoError(n);sr.doSetAttr(r,e,{size:t,timestamp:Date.now()})},truncate(r,e){if(e<0)throw new sr.ErrnoError(28);var t;t="string"==typeof r?sr.lookupPath(r,{follow:!0}).node:r,sr.doTruncate(null,t,e)},ftruncate(r,e){var t=sr.getStreamChecked(r);if(e<0||!(2097155&t.flags))throw new sr.ErrnoError(28);sr.doTruncate(t,t.node,e)},utime(r,e,t){var n=sr.lookupPath(r,{follow:!0}).node;sr.checkOpExists(n.node_ops.setattr,63)(n,{atime:e,mtime:t})},open(r,e,t=438){if(""===r)throw new sr.ErrnoError(44);var o,a;if(t=64&(e="string"==typeof e?(r=>{var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===e)throw new Error(`Unknown file open mode: ${r}`);return e})(e):e)?4095&t|32768:0,"object"==typeof r)o=r;else{a=r.endsWith("/");var i=sr.lookupPath(r,{follow:!(131072&e),noent_okay:!0});o=i.node,r=i.path}var s=!1;if(64&e)if(o){if(128&e)throw new sr.ErrnoError(20)}else{if(a)throw new sr.ErrnoError(31);o=sr.mknod(r,511|t,0),s=!0}if(!o)throw new sr.ErrnoError(44);if(sr.isChrdev(o.mode)&&(e&=-513),65536&e&&!sr.isDir(o.mode))throw new sr.ErrnoError(54);if(!s){var u=sr.mayOpen(o,e);if(u)throw new sr.ErrnoError(u)}512&e&&!s&&sr.truncate(o,0),e&=-131713;var l=sr.createStream({node:o,path:sr.getPath(o),flags:e,seekable:!0,position:0,stream_ops:o.stream_ops,ungotten:[],error:!1});return l.stream_ops.open&&l.stream_ops.open(l),s&&sr.chmod(o,511&t),!n.logReadFiles||1&e||r in sr.readFiles||(sr.readFiles[r]=1),l},close(r){if(sr.isClosed(r))throw new sr.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{sr.closeStream(r.fd)}r.fd=null},isClosed:r=>null===r.fd,llseek(r,e,t){if(sr.isClosed(r))throw new sr.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new sr.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new sr.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read(r,e,t,n,o){if(n<0||o<0)throw new sr.ErrnoError(28);if(sr.isClosed(r))throw new sr.ErrnoError(8);if(1==(2097155&r.flags))throw new sr.ErrnoError(8);if(sr.isDir(r.node.mode))throw new sr.ErrnoError(31);if(!r.stream_ops.read)throw new sr.ErrnoError(28);var a=void 0!==o;if(a){if(!r.seekable)throw new sr.ErrnoError(70)}else o=r.position;var i=r.stream_ops.read(r,e,t,n,o);return a||(r.position+=i),i},write(r,e,t,n,o,a){if(n<0||o<0)throw new sr.ErrnoError(28);if(sr.isClosed(r))throw new sr.ErrnoError(8);if(!(2097155&r.flags))throw new sr.ErrnoError(8);if(sr.isDir(r.node.mode))throw new sr.ErrnoError(31);if(!r.stream_ops.write)throw new sr.ErrnoError(28);r.seekable&&1024&r.flags&&sr.llseek(r,0,2);var i=void 0!==o;if(i){if(!r.seekable)throw new sr.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,a);return i||(r.position+=s),s},mmap(r,e,t,n,o){if(2&n&&!(2&o)&&2!=(2097155&r.flags))throw new sr.ErrnoError(2);if(1==(2097155&r.flags))throw new sr.ErrnoError(2);if(!r.stream_ops.mmap)throw new sr.ErrnoError(43);if(!e)throw new sr.ErrnoError(28);return r.stream_ops.mmap(r,e,t,n,o)},msync:(r,e,t,n,o)=>r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0,ioctl(r,e,t){if(!r.stream_ops.ioctl)throw new sr.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile(r,e={}){if(e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw new Error(`Invalid encoding type "${e.encoding}"`);var t=sr.open(r,e.flags),n=sr.stat(r).size,o=new Uint8Array(n);return sr.read(t,o,0,n,0),"utf8"===e.encoding&&(o=G(o)),sr.close(t),o},writeFile(r,e,t={}){t.flags=t.flags||577;var n=sr.open(r,t.flags,t.mode);if("string"==typeof e&&(e=new Uint8Array(Q(e))),!ArrayBuffer.isView(e))throw new Error("Unsupported data type");sr.write(n,e,0,e.byteLength,void 0,t.canOwn),sr.close(n)},cwd:()=>sr.currentPath,chdir(r){var e=sr.lookupPath(r,{follow:!0});if(null===e.node)throw new sr.ErrnoError(44);if(!sr.isDir(e.node.mode))throw new sr.ErrnoError(54);var t=sr.nodePermissions(e.node,"x");if(t)throw new sr.ErrnoError(t);sr.currentPath=e.path},createDefaultDirectories(){sr.mkdir("/tmp"),sr.mkdir("/home"),sr.mkdir("/home/web_user")},createDefaultDevices(){sr.mkdir("/dev"),sr.registerDevice(sr.makedev(1,3),{read:()=>0,write:(r,e,t,n,o)=>n,llseek:()=>0}),sr.mkdev("/dev/null",sr.makedev(1,3)),Z.register(sr.makedev(5,0),Z.default_tty_ops),Z.register(sr.makedev(6,0),Z.default_tty1_ops),sr.mkdev("/dev/tty",sr.makedev(5,0)),sr.mkdev("/dev/tty1",sr.makedev(6,0));var r=new Uint8Array(1024),e=0,t=()=>(0===e&&(H(r),e=r.byteLength),r[--e]);sr.createDevice("/dev","random",t),sr.createDevice("/dev","urandom",t),sr.mkdir("/dev/shm"),sr.mkdir("/dev/shm/tmp")},createSpecialDirectories(){sr.mkdir("/proc");var r=sr.mkdir("/proc/self");sr.mkdir("/proc/self/fd"),sr.mount({mount(){var e=sr.createNode(r,"fd",16895,73);return e.stream_ops={llseek:er.stream_ops.llseek},e.node_ops={lookup(r,e){var t=+e,n=sr.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path},id:t+1};return o.parent=o,o},readdir:()=>Array.from(sr.streams.entries()).filter(([r,e])=>e).map(([r,e])=>r.toString())},e}},{},"/proc/self/fd")},createStandardStreams(r,e,t){r?sr.createDevice("/dev","stdin",r):sr.symlink("/dev/tty","/dev/stdin"),e?sr.createDevice("/dev","stdout",null,e):sr.symlink("/dev/tty","/dev/stdout"),t?sr.createDevice("/dev","stderr",null,t):sr.symlink("/dev/tty1","/dev/stderr"),sr.open("/dev/stdin",0),sr.open("/dev/stdout",1),sr.open("/dev/stderr",1)},staticInit(){sr.nameTable=new Array(4096),sr.mount(er,{},"/"),sr.createDefaultDirectories(),sr.createDefaultDevices(),sr.createSpecialDirectories(),sr.filesystems={MEMFS:er}},init(r,e,t){sr.initialized=!0,r??=n.stdin,e??=n.stdout,t??=n.stderr,sr.createStandardStreams(r,e,t)},quit(){for(var r of(sr.initialized=!1,sr.streams))r&&sr.close(r)},findObject(r,e){var t=sr.analyzePath(r,e);return t.exists?t.object:null},analyzePath(r,e){try{r=(n=sr.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=sr.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=V.basename(r),n=sr.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(r){t.error=r.errno}return t},createPath(r,e,t,n){r="string"==typeof r?r:sr.getPath(r);for(var o=e.split("/").reverse();o.length;){var a=o.pop();if(a){var i=V.join2(r,a);try{sr.mkdir(i)}catch(r){if(20!=r.errno)throw r}r=i}}return i},createFile(r,e,t,n,o){var a=V.join2("string"==typeof r?r:sr.getPath(r),e),i=ir(n,o);return sr.create(a,i)},createDataFile(r,e,t,n,o,a){var i=e;r&&(r="string"==typeof r?r:sr.getPath(r),i=e?V.join2(r,e):r);var s=ir(n,o),u=sr.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}sr.chmod(u,146|s);var f=sr.open(u,577);sr.write(f,t,0,t.length,0,a),sr.close(f),sr.chmod(u,s)}},createDevice(r,e,t,n){var o=V.join2("string"==typeof r?r:sr.getPath(r),e),a=ir(!!t,!!n);sr.createDevice.major??=64;var i=sr.makedev(sr.createDevice.major++,0);return sr.registerDevice(i,{open(r){r.seekable=!1},close(r){n?.buffer?.length&&n(10)},read(r,e,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new sr.ErrnoError(29)}if(void 0===u&&0===i)throw new sr.ErrnoError(6);if(null==u)break;i++,e[n+s]=u}return i&&(r.node.atime=Date.now()),i},write(r,e,t,o,a){for(var i=0;i<o;i++)try{n(e[t+i])}catch(r){throw new sr.ErrnoError(29)}return o&&(r.node.mtime=r.node.ctime=Date.now()),i}}),sr.mkdev(o,a,i)},forceLoadFile(r){if(r.isDevice||r.isFolder||r.link||r.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.");try{r.contents=(void 0)(r.url),r.usedBytes=r.contents.length}catch(r){throw new sr.ErrnoError(29)}},createLazyFile(r,e,t,n,o){if("undefined"!=typeof XMLHttpRequest)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a={isDevice:!1,url:t},i=sr.createFile(r,e,a,n,o);a.contents?i.contents=a.contents:a.url&&(i.contents=null,i.url=a.url),Object.defineProperties(i,{usedBytes:{get:function(){return this.contents.length}}});var s={};function u(r,e,t,n,o){var a=r.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++)e[t+s]=a[o+s];else for(s=0;s<i;s++)e[t+s]=a.get(o+s);return i}return Object.keys(i.stream_ops).forEach(r=>{var e=i.stream_ops[r];s[r]=(...r)=>(sr.forceLoadFile(i),e(...r))}),s.read=(r,e,t,n,o)=>(sr.forceLoadFile(i),u(r,e,t,n,o)),s.mmap=(r,e,t,n,o)=>{sr.forceLoadFile(i);var a=rr();if(!a)throw new sr.ErrnoError(48);return u(r,d,a,e,t),{ptr:a,allocated:!0}},i.stream_ops=s,i}},ur=(r,e)=>r?G(c,r,e):"",lr={DEFAULT_POLLMASK:5,calculateAt(r,e,t){if(V.isAbs(e))return e;var n;if(n=-100===r?sr.cwd():lr.getStreamFromFD(r).path,0==e.length){if(!t)throw new sr.ErrnoError(44);return n}return n+"/"+e},writeStat(r,e){h[r>>2]=e.dev,h[r+4>>2]=e.mode,p[r+8>>2]=e.nlink,h[r+12>>2]=e.uid,h[r+16>>2]=e.gid,h[r+20>>2]=e.rdev,y[r+24>>3]=BigInt(e.size),h[r+32>>2]=4096,h[r+36>>2]=e.blocks;var t=e.atime.getTime(),n=e.mtime.getTime(),o=e.ctime.getTime();return y[r+40>>3]=BigInt(Math.floor(t/1e3)),p[r+48>>2]=t%1e3*1e3*1e3,y[r+56>>3]=BigInt(Math.floor(n/1e3)),p[r+64>>2]=n%1e3*1e3*1e3,y[r+72>>3]=BigInt(Math.floor(o/1e3)),p[r+80>>2]=o%1e3*1e3*1e3,y[r+88>>3]=BigInt(e.ino),0},writeStatFs(r,e){h[r+4>>2]=e.bsize,h[r+40>>2]=e.bsize,h[r+8>>2]=e.blocks,h[r+12>>2]=e.bfree,h[r+16>>2]=e.bavail,h[r+20>>2]=e.files,h[r+24>>2]=e.ffree,h[r+28>>2]=e.fsid,h[r+44>>2]=e.flags,h[r+36>>2]=e.namelen},doMsync(r,e,t,n,o){if(!sr.isFile(e.node.mode))throw new sr.ErrnoError(43);if(2&n)return 0;var a=c.slice(r,r+t);sr.msync(e,a,o,t,n)},getStreamFromFD:r=>sr.getStreamChecked(r),varargs:void 0,getStr:r=>ur(r)},dr={},cr=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function fr(r){return this.fromWireType(p[r>>2])}var mr={},hr={},pr={},vr=class extends Error{constructor(r){super(r),this.name="InternalError"}},wr=r=>{throw new vr(r)},yr=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&wr("Mismatched type converter count");for(var o=0;o<r.length;++o)_r(r[o],n[o])}r.forEach(r=>pr[r]=e);var o=new Array(e.length),a=[],i=0;e.forEach((r,e)=>{hr.hasOwnProperty(r)?o[e]=hr[r]:(a.push(r),mr.hasOwnProperty(r)||(mr[r]=[]),mr[r].push(()=>{o[e]=hr[r],++i===a.length&&n(o)}))}),0===a.length&&n(o)},gr=r=>{for(var e="";;){var t=c[r++];if(!t)return e;e+=String.fromCharCode(t)}},Er=class extends Error{constructor(r){super(r),this.name="BindingError"}},kr=r=>{throw new Er(r)};function _r(r,e,t={}){return function(r,e,t={}){var n=e.name;if(r||kr(`type "${n}" must have a positive integer typeid pointer`),hr.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;kr(`Cannot register type '${n}' twice`)}if(hr[r]=e,delete pr[r],mr.hasOwnProperty(r)){var o=mr[r];delete mr[r],o.forEach(r=>r())}}(r,e,t)}var br,Fr=(r,e,t)=>{switch(e){case 1:return t?r=>d[r]:r=>c[r];case 2:return t?r=>f[r>>1]:r=>m[r>>1];case 4:return t?r=>h[r>>2]:r=>p[r>>2];case 8:return t?r=>y[r>>3]:r=>g[r>>3];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Ar=[],Pr=[0,1,,1,null,1,!0,1,!1,1],Sr=r=>{r>9&&0===--Pr[r+1]&&(Pr[r]=void 0,Ar.push(r))},Dr=r=>(r||kr(`Cannot use deleted val. handle = ${r}`),Pr[r]),Tr=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Ar.pop()||Pr.length;return Pr[e]=r,Pr[e+1]=1,e}}},Cr={name:"emscripten::val",fromWireType:r=>{var e=Dr(r);return Sr(r),e},toWireType:(r,e)=>Tr(e),argPackAdvance:8,readValueFromPointer:fr,destructorFunction:null},xr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(v[r>>2])};case 8:return function(r){return this.fromWireType(w[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Mr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Nr=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||kr(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Rr=(r,e,t)=>{n.hasOwnProperty(r)?((void 0===t||void 0!==n[r].overloadTable&&void 0!==n[r].overloadTable[t])&&kr(`Cannot register public name '${r}' twice`),Nr(n,r,r),n[r].overloadTable.hasOwnProperty(t)&&kr(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),n[r].overloadTable[t]=e):(n[r]=e,n[r].argCount=t)},Br=(r,e,t)=>{n.hasOwnProperty(r)||wr("Replacing nonexistent public symbol"),void 0!==n[r].overloadTable&&void 0!==t?n[r].overloadTable[t]=e:(n[r]=e,n[r].argCount=t)},Or=[],jr=r=>{var e=Or[r];return e||(Or[r]=e=br.get(r)),e},Wr=(r,e,t=!1)=>{r=gr(r);var n=jr(e);return"function"!=typeof n&&kr(`unknown function pointer with signature ${r}: ${e}`),n};class zr extends Error{}var $r,Ir,Ur,Lr,Vr,Hr,qr,Xr=r=>{var e=Ir(r),t=gr(e);return Lr(e),t},Gr=(r,e,t)=>J(r,c,e,t),Yr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Kr=(r,e)=>{for(var t=r>>1,n=t+e/2,o=t;!(o>=n)&&m[o];)++o;if(o-t>16&&Yr)return Yr.decode(m.subarray(t,o));for(var a="",i=t;!(i>=n);++i){var s=m[i];if(0==s)break;a+=String.fromCharCode(s)}return a},Jr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,o=(t-=2)<2*r.length?t/2:r.length,a=0;a<o;++a){var i=r.charCodeAt(a);f[e>>1]=i,e+=2}return f[e>>1]=0,e-n},Qr=r=>2*r.length,Zr=(r,e)=>{for(var t="",n=0;!(n>=e/4);n++){var o=h[r+4*n>>2];if(!o)break;t+=String.fromCodePoint(o)}return t},re=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,o=n+t-4,a=0;a<r.length;++a){var i=r.codePointAt(a);if(i>65535&&a++,h[e>>2]=i,(e+=4)+4>o)break}return h[e>>2]=0,e-n},ee=r=>{for(var e=0,t=0;t<r.length;++t)r.codePointAt(t)>65535&&t++,e+=4;return e},te=(r,e)=>{var t=hr[r];return void 0===t&&kr(`${e} has unknown type ${Xr(r)}`),t},ne=(r,e,t)=>{var n=[],o=r.toWireType(n,t);return n.length&&(p[e>>2]=Tr(n)),o},oe={},ae=r=>{var e=oe[r];return void 0===e?gr(r):e},ie=[],se=()=>globalThis,ue=(r,e)=>Math.ceil(r/e)*e,le=r=>{var e=(r-l.buffer.byteLength+65535)/65536|0;try{return l.grow(e),F(),1}catch(r){}},de={},ce=()=>{if(!ce.strings){var r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.language||"C").replace("-","_")+".UTF-8",_:o||"./this.program"};for(var e in de)void 0===de[e]?delete r[e]:r[e]=de[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);ce.strings=t}return ce.strings},fe=(r,e)=>{r<128?e.push(r):e.push(r%128|128,r>>7)},me=[],he=(r,e)=>{br.set(r,e),Or[r]=br.get(r)};sr.createPreloadedFile=ar,sr.staticInit(),er.doesNotExistError=new sr.ErrnoError(44),er.doesNotExistError.stack="<generic error, no stack>",n.noExitRuntime&&(W=n.noExitRuntime),n.preloadPlugins&&(or=n.preloadPlugins),n.print&&(E=n.print),n.printErr&&(k=n.printErr),n.wasmBinary&&(i=n.wasmBinary),n.arguments&&n.arguments,n.thisProgram&&(o=n.thisProgram),n.addRunDependency=D,n.removeRunDependency=T,n.addFunction=(r,e)=>{var t=(r=>($r||($r=new WeakMap,((r,e)=>{if($r)for(var t=0;t<0+e;t++){var n=jr(t);n&&$r.set(n,t)}})(0,br.length)),$r.get(r)||0))(r);if(t)return t;var n=(()=>{if(me.length)return me.pop();try{br.grow(1)}catch(r){if(!(r instanceof RangeError))throw r;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return br.length-1})();try{he(n,r)}catch(t){if(!(t instanceof TypeError))throw t;var o=((r,e)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function((r=>{for(var e={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==r[0]?[]:[e[r[0]]]},n=1;n<r.length;++n)t.parameters.push(e[r[n]]);return t})(e),r);var t=[1];((r,e)=>{var t=r.slice(0,1),n=r.slice(1),o={i:127,p:127,j:126,f:125,d:124,e:111};for(var a of(e.push(96),fe(n.length,e),n))e.push(o[a]);"v"==t?e.push(0):e.push(1,o[t])})(e,t);var n=[0,97,115,109,1,0,0,0,1];fe(t.length,n),n.push(...t),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var o=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(o,{e:{f:r}}).exports.f})(r,e);he(n,o)}return $r.set(r,n),n},n.UTF8ToString=ur,n.FS_createPreloadedFile=ar,n.FS_unlink=(...r)=>sr.unlink(...r),n.FS_createPath=(...r)=>sr.createPath(...r),n.FS_createDevice=(...r)=>sr.createDevice(...r),n.FS_createDataFile=nr,n.FS_createLazyFile=(...r)=>sr.createLazyFile(...r);var pe={j:(r,e,t)=>{throw new I(r).init(e,t),r},w:function(r,e,t){lr.varargs=t;try{var n=lr.getStreamFromFD(r);switch(e){case 0:if((o=U())<0)return-28;for(;sr.streams[o];)o++;return sr.dupStream(n,o).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var o=U();return n.flags|=o,0;case 12:return o=L(),f[o+0>>1]=2,0}return-28}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},N:function(r,e,t){lr.varargs=t;try{var n=lr.getStreamFromFD(r);switch(e){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=L();h[a>>2]=o.c_iflag||0,h[a+4>>2]=o.c_oflag||0,h[a+8>>2]=o.c_cflag||0,h[a+12>>2]=o.c_lflag||0;for(var i=0;i<32;i++)d[a+i+17]=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=L();var s=h[a>>2],u=h[a+4>>2],l=h[a+8>>2],c=h[a+12>>2],m=[];for(i=0;i<32;i++)m.push(d[a+i+17]);return n.tty.ops.ioctl_tcsets(n.tty,e,{c_iflag:s,c_oflag:u,c_cflag:l,c_lflag:c,c_cc:m})}return 0;case 21519:return n.tty?(a=L(),h[a>>2]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=L(),sr.ioctl(n,e,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var p=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=L(),f[a>>1]=p[0],f[a+2>>1]=p[1]}return 0;default:return-28}}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},O:function(r,e,t,n){lr.varargs=n;try{e=lr.getStr(e),e=lr.calculateAt(r,e);var o=n?U():0;return sr.open(e,t,o).fd}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return-r.errno}},P:()=>C(""),z:r=>{var e=dr[r];delete dr[r];var t=e.rawConstructor,n=e.rawDestructor,o=e.fields,a=o.map(r=>r.getterReturnType).concat(o.map(r=>r.setterArgumentType));yr([r],a,r=>{var a={};return o.forEach((e,t)=>{var n=e.fieldName,i=r[t],s=r[t].optional,u=e.getter,l=e.getterContext,d=r[t+o.length],c=e.setter,f=e.setterContext;a[n]={read:r=>i.fromWireType(u(l,r)),write:(r,e)=>{var t=[];c(f,r,d.toWireType(t,e)),cr(t)},optional:s}}),[{name:e.name,fromWireType:r=>{var e={};for(var t in a)e[t]=a[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var o in a)if(!(o in e)&&!a[o].optional)throw new TypeError(`Missing field: "${o}"`);var i=t();for(o in a)a[o].write(i,e[o]);return null!==r&&r.push(n,i),i},argPackAdvance:8,readValueFromPointer:fr,destructorFunction:n}]})},y:(r,e,t,n,o)=>{e=gr(e);const a=0n===n;let i=r=>r;if(a){const r=8*t;i=e=>BigInt.asUintN(r,e),o=i(o)}_r(r,{name:e,fromWireType:i,toWireType:(r,e)=>("number"==typeof e&&(e=BigInt(e)),e),argPackAdvance:8,readValueFromPointer:Fr(e,t,!a),destructorFunction:null})},U:(r,e,t,n)=>{_r(r,{name:e=gr(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(c[r])},destructorFunction:null})},S:r=>_r(r,Cr),x:(r,e,t)=>{_r(r,{name:e=gr(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:xr(e,t),destructorFunction:null})},n:(r,e,t,n,o,a,i,s)=>{var u=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(p[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1===e?r:r.slice(0,e)})(r=gr(r)),o=Wr(n,o,i),Rr(r,function(){((r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||hr[e]||(pr[e]?pr[e].forEach(r):(t.push(e),n[e]=!0))}),new zr(`${r}: `+t.map(Xr).join([", "]))})(`Cannot call ${r} due to unbound types`,u)},e-1),yr([],u,t=>{var n=[t[0],null].concat(t.slice(1));return Br(r,function(r,e,t,n,o){var a=e.length;a<2&&kr("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var i=function(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}(e),s="void"!==e[0].name,u=a-2,l=new Array(u),d=[],c=[];return Mr(r,function(...r){c.length=0,d.length=1,d[0]=o;for(var t=0;t<u;++t)l[t]=e[t+2].toWireType(c,r[t]),d.push(l[t]);return function(r){if(i)cr(c);else for(var t=2;t<e.length;t++){var n=1===t?void 0:l[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(s)return e[0].fromWireType(r)}(n(...d))})}(r,n,0,o,a),e-1),[]})},d:(r,e,t,n,o)=>{e=gr(e);let a=r=>r;if(0===n){var i=32-8*t;a=r=>r<<i>>>i,o=a(o)}_r(r,{name:e,fromWireType:a,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:Fr(e,t,0!==n),destructorFunction:null})},b:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][e];function o(r){var e=p[r>>2],t=p[r+4>>2];return new n(d.buffer,t,e)}_r(r,{name:t=gr(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},T:(r,e)=>{_r(r,{name:e=gr(e),fromWireType(r){for(var e,t=p[r>>2],n=r+4,o=n,a=0;a<=t;++a){var i=n+a;if(a==t||0==c[i]){var s=ur(o,i-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=i+1}}return Lr(r),e},toWireType(r,e){var t;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||ArrayBuffer.isView(e)&&1==e.BYTES_PER_ELEMENT||kr("Cannot pass non-string to std::string"),t=n?K(e):e.length;var o=Ur(4+t+1),a=o+4;return p[o>>2]=t,n?Gr(e,a,t+1):c.set(e,a),null!==r&&r.push(Lr,o),o},argPackAdvance:8,readValueFromPointer:fr,destructorFunction(r){Lr(r)}})},r:(r,e,t)=>{var n,o,a,i;t=gr(t),2===e?(n=Kr,o=Jr,i=Qr,a=r=>m[r>>1]):4===e&&(n=Zr,o=re,i=ee,a=r=>p[r>>2]),_r(r,{name:t,fromWireType:r=>{for(var t,o=p[r>>2],i=r+4,s=0;s<=o;++s){var u=r+4+s*e;if(s==o||0==a(u)){var l=n(i,u-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=u+e}}return Lr(r),t},toWireType:(r,n)=>{"string"!=typeof n&&kr(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),s=Ur(4+a+e);return p[s>>2]=a/e,o(n,s+4,a+e),null!==r&&r.push(Lr,s),s},argPackAdvance:8,readValueFromPointer:fr,destructorFunction(r){Lr(r)}})},A:(r,e,t,n,o,a)=>{dr[r]={name:gr(e),rawConstructor:Wr(t,n),rawDestructor:Wr(o,a),fields:[]}},c:(r,e,t,n,o,a,i,s,u,l)=>{dr[r].fields.push({fieldName:gr(e),getterReturnType:t,getter:Wr(n,o),getterContext:a,setterArgumentType:i,setter:Wr(s,u),setterContext:l})},V:(r,e)=>{_r(r,{isVoid:!0,name:e=gr(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},R:r=>{do{var e=p[r>>2],t=p[(r+=4)>>2],n=p[(r+=4)>>2];r+=4;var o=ur(e);sr.createPath("/",V.dirname(o),!0,!0),sr.createDataFile(o,null,d.subarray(n,n+t),!0,!0,!0)}while(p[r>>2])},G:()=>{throw 1/0},X:(r,e,t)=>(r=Dr(r),e=te(e,"emval::as"),ne(e,t,r)),B:(r,e,t,n,o)=>(r=ie[r])(e=Dr(e),e[t=ae(t)],n,o),a:Sr,Y:r=>0===r?Tr(se()):(r=ae(r),Tr(se()[r])),C:(r,e,t)=>{var n=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=te(p[e+4*n>>2],`parameter ${n}`);return t})(r,e),o=n.shift();r--;var a=new Array(r),i=`methodCaller<(${n.map(r=>r.name).join(", ")}) => ${o.name}>`;return(r=>{var e=ie.length;return ie.push(r),e})(Mr(i,(e,i,s,u)=>{for(var l=0,d=0;d<r;++d)a[d]=n[d].readValueFromPointer(u+l),l+=n[d].argPackAdvance;var c=1===t?Reflect.construct(i,a):i.apply(e,a);return ne(o,s,c)}))},m:(r,e)=>(r=Dr(r),e=Dr(e),Tr(r[e])),h:r=>{r>9&&(Pr[r+1]+=1)},D:()=>Tr([]),i:r=>Tr(ae(r)),s:r=>{var e=Dr(r);cr(e),Sr(r)},W:(r,e,t)=>{r=Dr(r),e=Dr(e),t=Dr(t),r[e]=t},l:(r,e)=>{var t=(r=te(r,"_emval_take_value")).readValueFromPointer(e);return Tr(t)},I:(r,e,t,n)=>{var o=(new Date).getFullYear(),a=new Date(o,0,1),i=new Date(o,6,1),s=a.getTimezoneOffset(),u=i.getTimezoneOffset(),l=Math.max(s,u);p[r>>2]=60*l,h[e>>2]=Number(s!=u);var d=r=>{var e=r>=0?"-":"+",t=Math.abs(r);return`UTC${e}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`},c=d(s),f=d(u);u<s?(Gr(c,t,17),Gr(f,n,17)):(Gr(c,n,17),Gr(f,t,17))},H:r=>{var e=c.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var o=e*(1+.2/n);o=Math.min(o,r+100663296);var a=Math.min(t,ue(Math.max(r,o),65536));if(le(a))return!0}return!1},K:(r,e)=>{var t=0,n=0;for(var o of ce()){var a=e+t;p[r+n>>2]=a,t+=Gr(o,a,1/0)+1,n+=4}return 0},L:(r,e)=>{var t=ce();p[r>>2]=t.length;var n=0;for(var o of t)n+=K(o)+1;return p[e>>2]=n,0},Q:(r,e)=>{(r=>{W||(n.onExit?.(r),_=!0),((r,e)=>{throw e})(0,new M(r))})(r)},u:function(r){try{var e=lr.getStreamFromFD(r);return sr.close(e),0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},M:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=p[e>>2],i=p[e+4>>2];e+=8;var s=sr.read(r,d,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(lr.getStreamFromFD(r),e,t);return p[n>>2]=o,0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},J:function(r,e,t,n){e=(r=>r<-9007199254740992||r>9007199254740992?NaN:Number(r))(e);try{if(isNaN(e))return 61;var o=lr.getStreamFromFD(r);return sr.llseek(o,e,t),y[n>>3]=BigInt(o.position),o.getdents&&0===e&&0===t&&(o.getdents=null),0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},v:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=p[e>>2],i=p[e+4>>2];e+=8;var s=sr.write(r,d,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(lr.getStreamFromFD(r),e,t);return p[n>>2]=o,0}catch(r){if(void 0===sr||"ErrnoError"!==r.name)throw r;return r.errno}},o:function(r,e){var t=$();try{return jr(r)(e)}catch(r){if(z(t),r!==r+0)throw r;Vr(1,0)}},k:function(r,e,t){var n=$();try{return jr(r)(e,t)}catch(r){if(z(n),r!==r+0)throw r;Vr(1,0)}},p:function(r,e,t,n){var o=$();try{return jr(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}},t:function(r,e,t,n,o){var a=$();try{return jr(r)(e,t,n,o)}catch(r){if(z(a),r!==r+0)throw r;Vr(1,0)}},F:function(r,e,t,n,o,a,i,s,u,l){var d=$();try{return jr(r)(e,t,n,o,a,i,s,u,l)}catch(r){if(z(d),r!==r+0)throw r;Vr(1,0)}},q:function(r){var e=$();try{jr(r)()}catch(r){if(z(e),r!==r+0)throw r;Vr(1,0)}},e:function(r,e){var t=$();try{jr(r)(e)}catch(r){if(z(t),r!==r+0)throw r;Vr(1,0)}},E:function(r,e,t,n){var o=$();try{jr(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}},f:function(r,e,t){var n=$();try{jr(r)(e,t)}catch(r){if(z(n),r!==r+0)throw r;Vr(1,0)}},g:function(r,e,t,n){var o=$();try{jr(r)(e,t,n)}catch(r){if(z(o),r!==r+0)throw r;Vr(1,0)}}},ve=await async function(){function r(r,e){return ve=r.exports,l=ve.Z,F(),br=ve.aa,function(r){Ir=r.$,n._malloc=Ur=r.ba,n._free=Lr=r.ca,Vr=r.da,Hr=r.ea,qr=r.fa}(ve),T(),ve}D();var e={a:pe};return n.instantiateWasm?new Promise((t,o)=>{n.instantiateWasm(e,(e,n)=>{t(r(e))})}):(A??=function(r){return n.locateFile?n.locateFile(r,a):a+r}("lyr3DWorker.wasm"),function(e){return r(e.instance)}(await async function(r,e,t){if(!r&&"function"==typeof WebAssembly.instantiateStreaming)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){k(`wasm streaming compile failed: ${r}`),k("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await x(r);return await WebAssembly.instantiate(t,e)}catch(r){k(`failed to asynchronously prepare wasm: ${r}`),C(r)}}(e,t)}(i,A,e)))}();return function(){if(n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.shift()()}(),function r(){function e(){n.calledRun=!0,_||(b=!0,n.noFSInit||sr.initialized||sr.init(),ve._(),sr.ignorePermissions=!1,s?.(n),n.onRuntimeInitialized?.(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)B(n.postRun.shift());N(R)}())}P>0?S=r:(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)j(n.preRun.shift());N(O)}(),P>0?S=r:n.setStatus?(n.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>n.setStatus(""),1),e()},1)):e())}(),b?n:new Promise((r,e)=>{s=r,u=e})},r.exports=t,r.exports.default=t),a.exports;var r,e,t}()),s=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))},11053:(r,e,t)=>{t.d(e,{c:()=>n,g:()=>o});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1277,7561],{21277:(t,e,r)=>{r.r(e),r.d(e,{executeForTopIds:()=>n});var i=r(2272),o=r(24645),s=r(57561);async function n(t,e,r){const n=(0,i.Dl)(t);return(await(0,o.KW)(n,s.default.from(e),{...r})).data.objectIds}},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),p=r(58501);const a="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,p.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(a);if(e.hasOwnProperty("count"))throw new Error(a);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 p="string"==typeof t?(0,o.An)(t):t,a=e.geometry?[e.geometry]:[];return s.responseType="json",(0,n.el)(a,null,s).then(t=>{const n=t?.[0];null!=n&&((e=e.clone()).geometry=n);const a=(0,u.z)({...p.query,f:r,...l,...d(e,l)});return(0,i.A)((0,o.fj)(p.path,"queryTopFeatures"),{...s,query:{...a,...s.query}})})}},57561:(t,e,r)=>{r.r(e),r.d(e,{default:()=>S});var i,o=r(31635),s=r(66552),n=r(25482),l=r(4718),u=r(91429),p=r(56507),a=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"}),j=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 S=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}})],S.prototype,"cacheHint",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:{overridePolicy:t=>({enabled:t>0})}}})],S.prototype,"distance",void 0),(0,o.Cg)([(0,u.MZ)({types:y.yR,json:{read:d.rS,write:!0}})],S.prototype,"geometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],S.prototype,"geometryPrecision",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{write:!0}})],S.prototype,"maxAllowableOffset",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],S.prototype,"num",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],S.prototype,"objectIds",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],S.prototype,"orderByFields",void 0),(0,o.Cg)([(0,u.MZ)({type:[String],json:{write:!0}})],S.prototype,"outFields",void 0),(0,o.Cg)([(0,u.MZ)({type:a.A,json:{read:{source:"outSR"},write:{target:"outSR"}}})],S.prototype,"outSpatialReference",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"resultType",void 0),(0,o.Cg)([(0,u.MZ)({json:{write:!0}})],S.prototype,"returnGeometry",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"returnM",void 0),(0,o.Cg)([(0,u.MZ)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],S.prototype,"returnZ",void 0),(0,o.Cg)([(0,u.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],S.prototype,"start",void 0),(0,o.Cg)([(0,F.K)("start"),(0,F.K)("num")],S.prototype,"writeStart",null),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:{source:"spatialRel",reader:v.read},write:{target:"spatialRel",writer:v.write}}})],S.prototype,"spatialRelationship",void 0),(0,o.Cg)([(0,u.MZ)({type:w.A,json:{write:!0}})],S.prototype,"timeExtent",void 0),(0,o.Cg)([(0,u.MZ)({type:m,json:{write:!0}})],S.prototype,"topFilter",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{read:j.read,write:{writer:j.write,overridePolicy(t){return{enabled:null!=t&&null!=this.distance}}}}})],S.prototype,"units",void 0),(0,o.Cg)([(0,u.MZ)({type:String,json:{write:!0}})],S.prototype,"where",void 0),S=g=(0,o.Cg)([(0,u.$K)("esri.rest.support.TopFeaturesQuery")],S),S.from=(0,p.dp)(S)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9958],{29958:(t,e,o)=>{o.r(e),o.d(e,{default:()=>M});var i=o(31635),r=o(69540),s=o(25482),n=o(91429),p=o(56507),a=o(16930),l=o(65864),d=o(50498),u=o(66552),v=o(7562),y=o(93223);const c=new u.J({asc:"ascending",desc:"descending"});let g=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.fieldName=void 0,this.fieldOrder=void 0,this.outStatistic=void 0,this.type="pivot"}};(0,i.Cg)([(0,n.MZ)({type:String,json:{name:"pivotParameters.pivotFieldName",write:!0}})],g.prototype,"fieldName",void 0),(0,i.Cg)([(0,y.e)(c,{name:"pivotParameters.pivotFieldOrder"})],g.prototype,"fieldOrder",void 0),(0,i.Cg)([(0,n.MZ)({type:v.A,json:{name:"pivotParameters.outStatistic",write:!0}})],g.prototype,"outStatistic",void 0),(0,i.Cg)([(0,y.e)({Pivot:"pivot"},{name:"pivotType",readOnly:!0})],g.prototype,"type",void 0),g=(0,i.Cg)([(0,n.$K)("esri.rest.support.PivotDefinition")],g);const h=g;var m=o(27348),C=o(77696),S=o(58174);let w=class extends((0,r.OU)(s.o)){constructor(t){super(t),this.sourceFields=void 0,this.valueFieldName=void 0,this.targetFieldName=void 0,this.type="un-pivot"}};(0,i.Cg)([(0,n.MZ)({type:[String],json:{name:"unPivotParameters.sourceFields",write:!0}})],w.prototype,"sourceFields",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{name:"unPivotParameters.valueFieldName",write:!0}})],w.prototype,"valueFieldName",void 0),(0,i.Cg)([(0,n.MZ)({type:String,json:{name:"unPivotParameters.targetFieldName",write:!0}})],w.prototype,"targetFieldName",void 0),(0,i.Cg)([(0,y.e)({Unpivot:"un-pivot"},{name:"pivotType",readOnly:!0})],w.prototype,"type",void 0),w=(0,i.Cg)([(0,n.$K)("esri.rest.support.UnPivotDefinition")],w);var f=o(43937);const P={key:"type",base:null,typeMap:{pivot:h,"un-pivot":w}};let M=class extends((0,r.OU)((0,C.y)(s.o))){constructor(t){super(t),this.cacheHint=void 0,this.defaultSpatialReferenceEnabled=!1,this.geometry=null,this.groupByFieldsForStatistics=null,this.num=void 0,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.outPivots=null,this.quantizationParameters=null,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.where=void 0}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10,e.where="1=1"}};(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{write:!0}})],M.prototype,"cacheHint",void 0),(0,i.Cg)([(0,n.MZ)({type:Boolean,json:{default:!1,write:!0}})],M.prototype,"defaultSpatialReferenceEnabled",void 0),(0,i.Cg)([(0,n.MZ)({types:d.yR,json:{read:l.rS,write:!0}})],M.prototype,"geometry",void 0),(0,i.Cg)([(0,n.MZ)({type:[String],json:{write:!0}})],M.prototype,"groupByFieldsForStatistics",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],M.prototype,"num",void 0),(0,i.Cg)([(0,n.MZ)({type:[String],json:{write:!0}})],M.prototype,"orderByFields",void 0),(0,i.Cg)([(0,n.MZ)({type:[String],json:{write:!0}})],M.prototype,"outFields",void 0),(0,i.Cg)([(0,n.MZ)({type:a.A,json:{name:"outSR",write:!0}})],M.prototype,"outSpatialReference",void 0),(0,i.Cg)([(0,n.MZ)({type:[v.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],M.prototype,"outStatistics",void 0),(0,i.Cg)([(0,n.MZ)({types:[P],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outPivots&&this.outPivots.length>0}}}}})],M.prototype,"outPivots",void 0),(0,i.Cg)([(0,n.MZ)({type:m.A,json:{write:!0}})],M.prototype,"quantizationParameters",void 0),(0,i.Cg)([(0,n.MZ)({type:a.A,json:{write:!0}})],M.prototype,"sourceSpatialReference",void 0),(0,i.Cg)([(0,y.e)(S.x,{ignoreUnknown:!1,name:"spatialRel"})],M.prototype,"spatialRelationship",void 0),(0,i.Cg)([(0,n.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],M.prototype,"start",void 0),(0,i.Cg)([(0,f.K)("start"),(0,f.K)("num")],M.prototype,"writeStart",null),(0,i.Cg)([(0,n.MZ)({type:String,json:{write:!0}})],M.prototype,"where",void 0),M=(0,i.Cg)([(0,n.$K)("esri.rest.support.PivotQuery")],M),M.from=(0,p.dp)(M)}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3666],{3666:(r,e,t)=>{t.r(e),t.d(e,{l:()=>u});var n,a=t(11053),o={exports:{}};const i=(0,a.g)(function(){return n||(n=1,r=o,e="undefined"!=typeof document?document.currentScript?.src:void 0,t=function(r={}){var t,n,a=Object.assign({},r),o=new Promise((r,e)=>{t=r,n=e}),i=Object.assign({},a),u="./this.program",s="";"undefined"!=typeof document&&document.currentScript&&(s=document.currentScript.src),e&&(s=e),s=s.startsWith("blob:")?"":s.substr(0,s.replace(/[?#].*/,"").lastIndexOf("/")+1),a.print||console.log.bind(console);var l,c,f=a.printErr||console.error.bind(console);Object.assign(a,i),i=null,a.arguments&&a.arguments,a.thisProgram&&(u=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(l=a.wasmBinary);var d,h,m,p,v,y,g,w,_=!1;function b(){var r=c.buffer;a.HEAP8=d=new Int8Array(r),a.HEAP16=m=new Int16Array(r),a.HEAPU8=h=new Uint8Array(r),a.HEAPU16=p=new Uint16Array(r),a.HEAP32=v=new Int32Array(r),a.HEAPU32=y=new Uint32Array(r),a.HEAPF32=g=new Float32Array(r),a.HEAPF64=w=new Float64Array(r)}var A=[],T=[],C=[];function P(r){A.unshift(r)}function F(r){C.unshift(r)}var W=0,E=null;function S(r){a.onAbort?.(r),f(r="Aborted("+r+")"),_=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw n(e),e}var O,$=r=>r.startsWith("data:application/octet-stream;base64,");function M(r){if(r==O&&l)return new Uint8Array(l);throw"both async and sync fetching of the wasm failed"}function R(r,e,t){return function(r){return l||"function"!=typeof fetch?Promise.resolve().then(()=>M(r)):fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>M(r))}(r).then(r=>WebAssembly.instantiate(r,e)).then(t,r=>{f(`failed to asynchronously prepare wasm: ${r}`),S(r)})}$(O="lclayout.wasm")||(O=function(r){return a.locateFile?a.locateFile(r,s):s+r}(O));var j=r=>{for(;r.length>0;)r.shift()(a)};a.noExitRuntime;class k{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){y[this.ptr+4>>2]=r}get_type(){return y[this.ptr+4>>2]}set_destructor(r){y[this.ptr+8>>2]=r}get_destructor(){return y[this.ptr+8>>2]}set_caught(r){r=r?1:0,d[this.ptr+12]=r}get_caught(){return 0!=d[this.ptr+12]}set_rethrown(r){r=r?1:0,d[this.ptr+13]=r}get_rethrown(){return 0!=d[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){y[this.ptr+16>>2]=r}get_adjusted_ptr(){return y[this.ptr+16>>2]}get_exception_ptr(){if(Gr(this.get_type()))return y[this.excPtr>>2];var r=this.get_adjusted_ptr();return 0!==r?r:this.excPtr}}var D={},x=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function I(r){return this.fromWireType(y[r>>2])}var U,Y,H,V={},B={},z={},N=r=>{throw new U(r)},q=(r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&N("Mismatched type converter count");for(var a=0;a<r.length;++a)L(r[a],n[a])}r.forEach(function(r){z[r]=e});var a=new Array(e.length),o=[],i=0;e.forEach((r,e)=>{B.hasOwnProperty(r)?a[e]=B[r]:(o.push(r),V.hasOwnProperty(r)||(V[r]=[]),V[r].push(()=>{a[e]=B[r],++i===o.length&&n(a)}))}),0===o.length&&n(a)},G=r=>{for(var e="",t=r;h[t];)e+=Y[h[t++]];return e},J=r=>{throw new H(r)};function L(r,e,t={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(r,e,t={}){var n=e.name;if(r||J(`type "${n}" must have a positive integer typeid pointer`),B.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;J(`Cannot register type '${n}' twice`)}if(B[r]=e,delete z[r],V.hasOwnProperty(r)){var a=V[r];delete V[r],a.forEach(r=>r())}}(r,e,t)}var X,K,Q,Z=[],rr=[],er=r=>{r>9&&0===--rr[r+1]&&(rr[r]=void 0,Z.push(r))},tr=r=>(r||J("Cannot use deleted val. handle = "+r),rr[r]),nr=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Z.pop()||rr.length;return rr[e]=r,rr[e+1]=1,e}}},ar={name:"emscripten::val",fromWireType:r=>{var e=tr(r);return er(r),e},toWireType:(r,e)=>nr(e),argPackAdvance:8,readValueFromPointer:I,destructorFunction:null},or=r=>L(r,ar),ir=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||J(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},ur=(r,e,t)=>{a.hasOwnProperty(r)?((void 0===t||void 0!==a[r].overloadTable&&void 0!==a[r].overloadTable[t])&&J(`Cannot register public name '${r}' twice`),ir(a,r,r),a.hasOwnProperty(t)&&J(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),a[r].overloadTable[t]=e):(a[r]=e,void 0!==t&&(a[r].numArguments=t))},sr=(r,e,t)=>{switch(e){case 1:return t?function(r){return this.fromWireType(d[r])}:function(r){return this.fromWireType(h[r])};case 2:return t?function(r){return this.fromWireType(m[r>>1])}:function(r){return this.fromWireType(p[r>>1])};case 4:return t?function(r){return this.fromWireType(v[r>>2])}:function(r){return this.fromWireType(y[r>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},lr=(r,e)=>Object.defineProperty(e,"name",{value:r}),cr=r=>{var e=zr(r),t=G(e);return qr(e),t},fr=(r,e)=>{var t=B[r];return void 0===t&&J(`${e} has unknown type ${cr(r)}`),t},dr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(g[r>>2])};case 8:return function(r){return this.fromWireType(w[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},hr=(r,e,t)=>{a.hasOwnProperty(r)||N("Replacing nonexistent public symbol"),void 0!==a[r].overloadTable&&void 0!==t?a[r].overloadTable[t]=e:(a[r]=e,a[r].argCount=t)},mr=[],pr=r=>{var e=mr[r];return e||(r>=mr.length&&(mr.length=r+1),mr[r]=e=X.get(r)),e},vr=(r,e)=>{var t=(r=G(r)).includes("j")?((r,e)=>(...t)=>((r,e,t=[])=>r.includes("j")?((r,e,t)=>(r=r.replace(/p/g,"i"),(0,a["dynCall_"+r])(e,...t)))(r,e,t):pr(e)(...t))(r,e,t))(r,e):pr(e);return"function"!=typeof t&&J(`unknown function pointer with signature ${r}: ${e}`),t},yr=(r,e,t)=>{switch(e){case 1:return t?r=>d[r]:r=>h[r];case 2:return t?r=>m[r>>1]:r=>p[r>>1];case 4:return t?r=>v[r>>2]:r=>y[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},gr=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,o=t+n-1,i=0;i<r.length;++i){var u=r.charCodeAt(i);if(u>=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&r.charCodeAt(++i)),u<=127){if(t>=o)break;e[t++]=u}else if(u<=2047){if(t+1>=o)break;e[t++]=192|u>>6,e[t++]=128|63&u}else if(u<=65535){if(t+2>=o)break;e[t++]=224|u>>12,e[t++]=128|u>>6&63,e[t++]=128|63&u}else{if(t+3>=o)break;e[t++]=240|u>>18,e[t++]=128|u>>12&63,e[t++]=128|u>>6&63,e[t++]=128|63&u}}return e[t]=0,t-a},wr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},_r="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,br=(r,e)=>r?((r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&_r)return _r.decode(r.subarray(e,a));for(var o="";e<a;){var i=r[e++];if(128&i){var u=63&r[e++];if(192!=(224&i)){var s=63&r[e++];if((i=224==(240&i)?(15&i)<<12|u<<6|s:(7&i)<<18|u<<12|s<<6|63&r[e++])<65536)o+=String.fromCharCode(i);else{var l=i-65536;o+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o})(h,r,e):"",Ar="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Tr=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&p[n];)++n;if((t=n<<1)-r>32&&Ar)return Ar.decode(h.subarray(r,t));for(var o="",i=0;!(i>=e/2);++i){var u=m[r+2*i>>1];if(0==u)break;o+=String.fromCharCode(u)}return o},Cr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,a=(t-=2)<2*r.length?t/2:r.length,o=0;o<a;++o){var i=r.charCodeAt(o);m[e>>1]=i,e+=2}return m[e>>1]=0,e-n},Pr=r=>2*r.length,Fr=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=v[r+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},Wr=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,a=n+t-4,o=0;o<r.length;++o){var i=r.charCodeAt(o);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++o)),v[e>>2]=i,(e+=4)+4>a)break}return v[e>>2]=0,e-n},Er=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Sr=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(y[e>>2]=nr(n)),a},Or=[],$r={},Mr=r=>{var e=$r[r];return void 0===e?G(r):e},Rr=Reflect.construct;Q=()=>performance.now();var jr=r=>{var e=(r-c.buffer.byteLength+65535)/65536;try{return c.grow(e),b(),1}catch(r){}},kr={},Dr=()=>{if(!Dr.strings){var r={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",_:u||"./this.program"};for(var e in kr)void 0===kr[e]?delete r[e]:r[e]=kr[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Dr.strings=t}return Dr.strings},xr=r=>r%4==0&&(r%100!=0||r%400==0),Ir=[31,29,31,30,31,30,31,31,30,31,30,31],Ur=[31,28,31,30,31,30,31,31,30,31,30,31],Yr=(r,e)=>{d.set(r,e)};U=a.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},(()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Y=r})(),H=a.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},rr.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=()=>rr.length/2-5-Z.length,K=a.UnboundTypeError=((r,e)=>{var t=lr(e,function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t})(Error,"UnboundTypeError");var Hr,Vr={a:(r,e,t)=>{throw new k(r).init(e,t),r},k:r=>{var e=D[r];delete D[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,o=a.map(r=>r.getterReturnType).concat(a.map(r=>r.setterArgumentType));q([r],o,r=>{var o={};return a.forEach((e,t)=>{var n=e.fieldName,i=r[t],u=e.getter,s=e.getterContext,l=r[t+a.length],c=e.setter,f=e.setterContext;o[n]={read:r=>i.fromWireType(u(s,r)),write:(r,e)=>{var t=[];c(f,r,l.toWireType(t,e)),x(t)}}}),[{name:e.name,fromWireType:r=>{var e={};for(var t in o)e[t]=o[t].read(r);return n(r),e},toWireType:(r,e)=>{for(var a in o)if(!(a in e))throw new TypeError(`Missing field: "${a}"`);var i=t();for(a in o)o[a].write(i,e[a]);return null!==r&&r.push(n,i),i},argPackAdvance:8,readValueFromPointer:I,destructorFunction:n}]})},z:(r,e,t,n,a)=>{},w:(r,e,t,n)=>{L(r,{name:e=G(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(h[r])},destructorFunction:null})},t:(r,e,t)=>{r=G(r),q([],[e],e=>(e=e[0],a[r]=e.fromWireType(t),[]))},M:or,r:(r,e,t,n)=>{function a(){}e=G(e),a.values={},L(r,{name:e,constructor:a,fromWireType:function(r){return this.constructor.values[r]},toWireType:(r,e)=>e.value,argPackAdvance:8,readValueFromPointer:sr(e,t,n),destructorFunction:null}),ur(e,a)},j:(r,e,t)=>{var n=fr(r,"enum");e=G(e);var a=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:lr(`${n.name}_${e}`,function(){})}});a.values[t]=o,a[e]=o},v:(r,e,t)=>{L(r,{name:e=G(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:dr(e,t),destructorFunction:null})},e:(r,e,t,n,a,o,i)=>{var u=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(y[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1!==e?r.substr(0,e):r})(r=G(r)),a=vr(n,a),ur(r,function(){((r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||B[e]||(z[e]?z[e].forEach(r):(t.push(e),n[e]=!0))}),new K(`${r}: `+t.map(cr).join([", "]))})(`Cannot call ${r} due to unbound types`,u)},e-1),q([],u,t=>{var n=[t[0],null].concat(t.slice(1));return hr(r,function(r,e,t,n,a){var o=e.length;o<2&&J("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];var i=function(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}(e),u="void"!==e[0].name,s=o-2,l=new Array(s),c=[],f=[];return lr(r,function(...t){t.length!==s&&J(`function ${r} called with ${t.length} arguments, expected ${s}`),f.length=0,c.length=1,c[0]=a;for(var o=0;o<s;++o)l[o]=e[o+2].toWireType(f,t[o]),c.push(l[o]);return function(r){if(i)x(f);else for(var t=2;t<e.length;t++){var n=1===t?void 0:l[t-2];null!==e[t].destructorFunction&&e[t].destructorFunction(n)}if(u)return e[0].fromWireType(r)}(n(...c))})}(r,n,0,a,o),e-1),[]})},m:(r,e,t,n,a)=>{e=G(e);var o=r=>r;if(0===n){var i=32-8*t;o=r=>r<<i>>>i}var u=e.includes("unsigned");L(r,{name:e,fromWireType:o,toWireType:u?function(r,e){return this.name,e>>>0}:function(r,e){return this.name,e},argPackAdvance:8,readValueFromPointer:yr(e,t,0!==n),destructorFunction:null})},f:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function a(r){var e=y[r>>2],t=y[r+4>>2];return new n(d.buffer,t,e)}L(r,{name:t=G(t),fromWireType:a,argPackAdvance:8,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})},L:(r,e)=>{or(r)},u:(r,e)=>{var t="std::string"===(e=G(e));L(r,{name:e,fromWireType(r){var e,n=y[r>>2],a=r+4;if(t)for(var o=a,i=0;i<=n;++i){var u=a+i;if(i==n||0==h[u]){var s=br(o,u-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=u+1}}else{var l=new Array(n);for(i=0;i<n;++i)l[i]=String.fromCharCode(h[a+i]);e=l.join("")}return qr(r),e},toWireType(r,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var a="string"==typeof e;a||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||J("Cannot pass non-string to std::string"),n=t&&a?wr(e):e.length;var o=Nr(4+n+1),i=o+4;if(y[o>>2]=n,t&&a)((r,e,t)=>{gr(r,h,e,t)})(e,i,n+1);else if(a)for(var u=0;u<n;++u){var s=e.charCodeAt(u);s>255&&(qr(i),J("String has UTF-16 code units that do not fit in 8 bits")),h[i+u]=s}else for(u=0;u<n;++u)h[i+u]=e[u];return null!==r&&r.push(qr,o),o},argPackAdvance:8,readValueFromPointer:I,destructorFunction(r){qr(r)}})},s:(r,e,t)=>{var n,a,o,i;t=G(t),2===e?(n=Tr,a=Cr,i=Pr,o=r=>p[r>>1]):4===e&&(n=Fr,a=Wr,i=Er,o=r=>y[r>>2]),L(r,{name:t,fromWireType:r=>{for(var t,a=y[r>>2],i=r+4,u=0;u<=a;++u){var s=r+4+u*e;if(u==a||0==o(s)){var l=n(i,s-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=s+e}}return qr(r),t},toWireType:(r,n)=>{"string"!=typeof n&&J(`Cannot pass non-string to C++ string type ${t}`);var o=i(n),u=Nr(4+o+e);return y[u>>2]=o/e,a(n,u+4,o+e),null!==r&&r.push(qr,u),u},argPackAdvance:8,readValueFromPointer:I,destructorFunction(r){qr(r)}})},l:(r,e,t,n,a,o)=>{D[r]={name:G(e),rawConstructor:vr(t,n),rawDestructor:vr(a,o),fields:[]}},c:(r,e,t,n,a,o,i,u,s,l)=>{D[r].fields.push({fieldName:G(e),getterReturnType:t,getter:vr(n,a),getterContext:o,setterArgumentType:i,setter:vr(u,s),setterContext:l})},x:(r,e)=>{L(r,{isVoid:!0,name:e=G(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},F:()=>1,J:(r,e,t)=>h.copyWithin(r,e,e+t),g:(r,e,t)=>(r=tr(r),e=fr(e,"emval::as"),Sr(e,t,r)),y:(r,e,t,n)=>(r=Or[r])(null,e=tr(e),t,n),p:(r,e,t,n,a)=>(r=Or[r])(e=tr(e),e[t=Mr(t)],n,a),b:er,n:(r,e,t)=>{var n=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=fr(y[e+4*n>>2],"parameter "+n);return t})(r,e),a=n.shift();r--;var o=new Array(r),i=`methodCaller<(${n.map(r=>r.name).join(", ")}) => ${a.name}>`;return(r=>{var e=Or.length;return Or.push(r),e})(lr(i,(e,i,u,s)=>{for(var l=0,c=0;c<r;++c)o[c]=n[c].readValueFromPointer(s+l),l+=n[c].argPackAdvance;var f=1===t?Rr(i,o):i.apply(e,o);return Sr(a,u,f)}))},h:(r,e)=>(r=tr(r),e=tr(e),nr(r[e])),q:()=>nr([]),K:r=>{r=tr(r);for(var e=new Array(r.length),t=0;t<r.length;t++)e[t]=r[t];return nr(e)},o:r=>nr(Mr(r)),d:r=>{var e=tr(r);x(e),er(r)},i:(r,e)=>{var t=(r=fr(r,"_emval_take_value")).readValueFromPointer(e);return nr(t)},E:()=>{S("")},G:()=>Date.now(),A:()=>2147483648,I:Q,H:r=>{var e=h.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=(r,e)=>r+(e-r%e)%e,a=1;a<=4;a*=2){var o=e*(1+.2/a);o=Math.min(o,r+100663296);var i=Math.min(t,n(Math.max(r,o),65536));if(jr(i))return!0}return!1},C:(r,e)=>{var t=0;return Dr().forEach((n,a)=>{var o=e+t;y[r+4*a>>2]=o,((r,e)=>{for(var t=0;t<r.length;++t)d[e++]=r.charCodeAt(t);d[e]=0})(n,o),t+=n.length+1}),0},D:(r,e)=>{var t=Dr();y[r>>2]=t.length;var n=0;return t.forEach(r=>n+=r.length+1),y[e>>2]=n,0},B:(r,e,t,n,a)=>((r,e,t,n)=>{var a=y[n+40>>2],o={tm_sec:v[n>>2],tm_min:v[n+4>>2],tm_hour:v[n+8>>2],tm_mday:v[n+12>>2],tm_mon:v[n+16>>2],tm_year:v[n+20>>2],tm_wday:v[n+24>>2],tm_yday:v[n+28>>2],tm_isdst:v[n+32>>2],tm_gmtoff:v[n+36>>2],tm_zone:a?br(a):""},i=br(t),u={"%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 s in u)i=i.replace(new RegExp(s,"g"),u[s]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function f(r,e,t){for(var n="number"==typeof r?r.toString():r||"";n.length<e;)n=t[0]+n;return n}function d(r,e){return f(r,e,"0")}function h(r,e){function t(r){return r<0?-1:r>0?1:0}var n;return 0===(n=t(r.getFullYear()-e.getFullYear()))&&0===(n=t(r.getMonth()-e.getMonth()))&&(n=t(r.getDate()-e.getDate())),n}function m(r){switch(r.getDay()){case 0:return new Date(r.getFullYear()-1,11,29);case 1:return r;case 2:return new Date(r.getFullYear(),0,3);case 3:return new Date(r.getFullYear(),0,2);case 4:return new Date(r.getFullYear(),0,1);case 5:return new Date(r.getFullYear()-1,11,31);case 6:return new Date(r.getFullYear()-1,11,30)}}function p(r){var e=((r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=xr(t.getFullYear()),a=t.getMonth(),o=(n?Ir:Ur)[a];if(!(e>o-t.getDate()))return t.setDate(t.getDate()+e),t;e-=o-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t})(new Date(r.tm_year+1900,0,1),r.tm_yday),t=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),a=m(t),o=m(n);return h(a,e)<=0?h(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var g={"%a":r=>l[r.tm_wday].substring(0,3),"%A":r=>l[r.tm_wday],"%b":r=>c[r.tm_mon].substring(0,3),"%B":r=>c[r.tm_mon],"%C":r=>d((r.tm_year+1900)/100|0,2),"%d":r=>d(r.tm_mday,2),"%e":r=>f(r.tm_mday,2," "),"%g":r=>p(r).toString().substring(2),"%G":p,"%H":r=>d(r.tm_hour,2),"%I":r=>{var e=r.tm_hour;return 0==e?e=12:e>12&&(e-=12),d(e,2)},"%j":r=>d(r.tm_mday+((r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t})(xr(r.tm_year+1900)?Ir:Ur,r.tm_mon-1),3),"%m":r=>d(r.tm_mon+1,2),"%M":r=>d(r.tm_min,2),"%n":()=>"\n","%p":r=>r.tm_hour>=0&&r.tm_hour<12?"AM":"PM","%S":r=>d(r.tm_sec,2),"%t":()=>"\t","%u":r=>r.tm_wday||7,"%U":r=>{var e=r.tm_yday+7-r.tm_wday;return d(Math.floor(e/7),2)},"%V":r=>{var e=Math.floor((r.tm_yday+7-(r.tm_wday+6)%7)/7);if((r.tm_wday+371-r.tm_yday-2)%7<=2&&e++,e){if(53==e){var t=(r.tm_wday+371-r.tm_yday)%7;4==t||3==t&&xr(r.tm_year)||(e=1)}}else{e=52;var n=(r.tm_wday+7-r.tm_yday-1)%7;(4==n||5==n&&xr(r.tm_year%400-1))&&e++}return d(e,2)},"%w":r=>r.tm_wday,"%W":r=>{var e=r.tm_yday+7-(r.tm_wday+6)%7;return d(Math.floor(e/7),2)},"%y":r=>(r.tm_year+1900).toString().substring(2),"%Y":r=>r.tm_year+1900,"%z":r=>{var e=r.tm_gmtoff,t=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(t?"+":"-")+String("0000"+e).slice(-4)},"%Z":r=>r.tm_zone,"%%":()=>"%"};for(var s in i=i.replace(/%%/g,"\0\0"),g)i.includes(s)&&(i=i.replace(new RegExp(s,"g"),g[s](o)));var w=function(r){var e=wr(r)+1,t=new Array(e);return gr(r,t,0,t.length),t}(i=i.replace(/\0\0/g,"%"));return w.length>e?0:(Yr(w,r),w.length-1)})(r,e,t,n)},Br=function(){var r={a:Vr};function e(r,e){return Br=r.exports,c=Br.N,b(),X=Br.Q,function(r){T.unshift(r)}(Br.O),function(){if(W--,a.monitorRunDependencies?.(W),0==W&&E){var r=E;E=null,r()}}(),Br}if(W++,a.monitorRunDependencies?.(W),a.instantiateWasm)try{return a.instantiateWasm(r,e)}catch(r){f(`Module.instantiateWasm callback failed with error: ${r}`),n(r)}return function(r,e,t,n){return r||"function"!=typeof WebAssembly.instantiateStreaming||$(e)||"function"!=typeof fetch?R(e,t,n):fetch(e,{credentials:"same-origin"}).then(r=>WebAssembly.instantiateStreaming(r,t).then(n,function(r){return f(`wasm streaming compile failed: ${r}`),f("falling back to ArrayBuffer instantiation"),R(e,t,n)}))}(l,O,r,function(r){e(r.instance)}).catch(n),{}}(),zr=r=>(zr=Br.P)(r),Nr=a._malloc=r=>(Nr=a._malloc=Br.R)(r),qr=a._free=r=>(qr=a._free=Br.S)(r),Gr=r=>(Gr=Br.T)(r);function Jr(){function r(){Hr||(Hr=!0,a.calledRun=!0,_||(j(T),t(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)F(a.postRun.shift());j(C)}()))}W>0||(function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)P(a.preRun.shift());j(A)}(),W>0||(a.setStatus?(a.setStatus("Running..."),setTimeout(function(){setTimeout(function(){a.setStatus("")},1),r()},1)):r()))}if(a.dynCall_viijii=(r,e,t,n,o,i,u)=>(a.dynCall_viijii=Br.U)(r,e,t,n,o,i,u),a.dynCall_iiiiij=(r,e,t,n,o,i,u)=>(a.dynCall_iiiiij=Br.V)(r,e,t,n,o,i,u),a.dynCall_iiiiijj=(r,e,t,n,o,i,u,s,l)=>(a.dynCall_iiiiijj=Br.W)(r,e,t,n,o,i,u,s,l),a.dynCall_iiiiiijj=(r,e,t,n,o,i,u,s,l,c)=>(a.dynCall_iiiiiijj=Br.X)(r,e,t,n,o,i,u,s,l,c),E=function r(){Hr||Jr(),Hr||(E=r)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return Jr(),o},r.exports=t),o.exports;var r,e,t}()),u=Object.freeze(Object.defineProperty({__proto__:null,default:i},Symbol.toStringTag,{value:"Module"}))},11053:(r,e,t)=>{t.d(e,{c:()=>n,g:()=>a});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3169,5874,8125],{5874:(e,t,n)=>{n.r(t),n.d(t,{execute:()=>a,executeMany:()=>i,isSimple:()=>u,supportsCurves:()=>c});var r=n(76061);const s=new(n(98783).O);var o=n(78125);function a(e){const t=(0,o.getSpatialReference)(e);return(0,o.toGeometry)(function(e,t){return s.execute(e,t,!1,null)}((0,o.fromGeometry)(e),(0,o.fromSpatialReference)(t)),t)}function i(e){const t=e.map(o.fromGeometry),n=(0,o.getSpatialReference)(e);return function(e,t){const n=s.executeMany(new r.S(e),t,!1,null);return Array.from(n)}(t,(0,o.fromSpatialReference)(n)).map(e=>(0,o.toGeometry)(e,n))}function u(e,t){return function(e,t,n,r){return s.isSimple(e,t,n,r,null)}((0,o.fromGeometry)(e),(0,o.fromSpatialReference)((0,o.getSpatialReference)(e)),null!=t,t??null)}const c=s.supportsCurves()},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:()=>C,fromGeometry:()=>G,fromMultipoint:()=>M,fromPoint:()=>R,fromPolygon:()=>w,fromPolyline:()=>V,fromSpatialReference:()=>_,getSpatialReference:()=>x,toExtent:()=>v,toGeometry:()=>d,toMultipoint:()=>S,toPoint:()=>P,toPolygon:()=>Z,toPolyline:()=>k});var r=n(83661),s=(n(79187),n(55537)),o=n(95213),a=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 x(e){return Array.isArray(e)?e[0].spatialReference:e.spatialReference}function G(e){switch(e.type){case"point":return R(e);case"multipoint":return M(e);case"polyline":return V(e);case"polygon":return w(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 o.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 a.M,n=new o.P,r=e.points,s=e.hasM,i=e.hasZ,u=i?3:2;for(let e=0,o=r.length;e<o;e++){const o=r[e];n.setXYCoords(o[0],o[1]),i&&n.setZ(o[2]??0),s&&n.setM(o[u]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function R(e){if(!e.getCacheValue(p)){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(p,t)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){const{curveRings:t,hasM:n,hasZ:r,rings:s}=e,o=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(p,o)}return e.getCacheValue(p)}function V(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,o=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(p,o)}return e.getCacheValue(p)}function _(e){if(e.wkid)return(0,i.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,i.b)(t):null}function d(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return P(e,t);case s.G.enumEnvelope:return v(e,t);case s.G.enumMultiPoint:return S(e,t);case s.G.enumPolyline:return k(e,t);case s.G.enumPolygon:return Z(e,t)}return null}function v(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 S(e,t){if(e.isEmpty())return null;const n=e.getDescription(),r=n.hasM(),s=n.hasZ(),a=[],i=new o.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,i);const n=[i.getX(),i.getY()];s&&n.push(i.getZ()),r&&n.push(i.getM()),a.push(n)}const u=new c.A({hasM:r,hasZ:s,points:a,spatialReference:t});return u.setCacheValue(p,e),u}function P(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}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function Z(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 k(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}},98783:(e,t,n)=>{n.d(t,{O:()=>a});var r=n(76061),s=n(55537),o=n(39117);class a{getOperatorType(){return 10104}accelerateGeometry(e,t,n){return!1}canAccelerateGeometry(e){return!1}supportsCurves(){return!0}isSimple(e,t,n,r,s){return 5===(0,o.M)(e,t,n,r,s)}executeMany(e,t,n,r){return new i(e,t,n,r)}execute(e,t,n,o){const a=new r.S([e]),i=this.executeMany(a,t,n,o).next();return i||(0,s.d)("null output"),i}}class i extends r.G{constructor(e,t,n,r){super(),e||(0,s.a)(""),this.m_progressTracker=r,this.m_bForceSimplify=n,this.m_index=-1,this.m_inputGeometryCursor=e,this.m_spatialReference=t}next(){const e=this.m_inputGeometryCursor.next();return e?((0,s.c)(e),this.m_index=this.m_inputGeometryCursor.getGeometryID(),this.simplify(e)):null}getGeometryID(){return this.m_index}tock(){return!1}getRank(){return 1}simplify(e){return e||(0,s.a)(""),(0,o.N)(e,this.m_spatialReference,this.m_bForceSimplify,this.m_progressTracker)}}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[506,3169,5180,8125],{45328:(e,t,n)=>{n.r(t),n.d(t,{accelerateGeometry:()=>r.a,execute:()=>r.b,supportsCurves:()=>r.s});var r=n(90836);n(78125)},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:()=>C,fromGeometry:()=>G,fromMultipoint:()=>M,fromPoint:()=>V,fromPolygon:()=>v,fromPolyline:()=>w,fromSpatialReference:()=>P,getSpatialReference:()=>x,toExtent:()=>d,toGeometry:()=>R,toMultipoint:()=>Z,toPoint:()=>_,toPolygon:()=>S,toPolyline:()=>k});var r=n(83661),s=(n(79187),n(55537)),a=n(95213),o=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 V(e);case"multipoint":return M(e);case"polyline":return w(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 o.M,n=new a.P,r=e.points,s=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),s&&n.setM(a[i]??NaN),t.add(n)}e.setCacheValue(p,t)}return e.getCacheValue(p)}function V(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:s}=e,a=(0,h.fromGeometryToGXGeometry)({curveRings:t,hasM:n,hasZ:r,rings:s});e.setCacheValue(p,a)}return e.getCacheValue(p)}function w(e){if(!e.getCacheValue(p)){const{curvePaths:t,hasM:n,hasZ:r,paths:s}=e,a=(0,h.fromGeometryToGXGeometry)({curvePaths:t,hasM:n,hasZ:r,paths:s});e.setCacheValue(p,a)}return e.getCacheValue(p)}function P(e){if(e.wkid)return(0,u.c)(e.wkid);const t=e.wkt2||e.wkt;return t?(0,u.b)(t):null}function R(e,t){if(e)switch(e.getGeometryType()){case s.G.enumPoint:return _(e,t);case s.G.enumEnvelope:return d(e,t);case s.G.enumMultiPoint:return Z(e,t);case s.G.enumPolyline:return k(e,t);case s.G.enumPolygon:return S(e,t)}return null}function d(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(),s=n.hasZ(),o=[],u=new a.P;for(let t=0,n=e.getPointCount();t<n;t++){e.getPointByVal(t,u);const n=[u.getX(),u.getY()];s&&n.push(u.getZ()),r&&n.push(u.getM()),o.push(n)}const i=new c.A({hasM:r,hasZ:s,points:o,spatialReference:t});return i.setCacheValue(p,e),i}function _(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}),s=e.getDescription();return s.hasM()&&(n.m=e.getM()),s.hasZ()&&(n.z=e.getZ()),n.setCacheValue(p,e),n}function S(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 k(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}},90836:(e,t,n)=>{n.d(t,{a:()=>u,b:()=>i,e:()=>l,s:()=>c});var r=n(39117),s=n(78125);class a extends r.I{getOperatorType(){return 2}execute(e,t,n,s){return(0,r.J)(e,t,n,3,s)}}const o=new a;function u(e){const t=(0,s.getSpatialReference)(e);return o.accelerateGeometry((0,s.fromGeometry)(e),(0,s.fromSpatialReference)(t),1)}function i(e,t){return o.execute((0,s.fromGeometry)(e),(0,s.fromGeometry)(t),(0,s.fromSpatialReference)(e.spatialReference),null)}const c=o.supportsCurves(),l=Object.freeze(Object.defineProperty({__proto__:null,accelerateGeometry:u,execute:i,supportsCurves:c},Symbol.toStringTag,{value:"Module"}))}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8714],{98714:(r,e,t)=>{t.r(e),t.d(e,{default:()=>o});var n,o=(n="undefined"!=typeof document?document.currentScript?.src:void 0,function(r={}){var e,t,o=r,a=new Promise((r,n)=>{e=r,t=n}),i="object"==typeof window,s="undefined"!=typeof WorkerGlobalScope;"object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&process.type;var u,l,d=Object.assign({},o),c="./this.program",f="";(i||s)&&(s?f=self.location.href:"undefined"!=typeof document&&document.currentScript&&(f=document.currentScript.src),n&&(f=n),f=f.startsWith("blob:")?"":f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1),s&&(l=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),u=async r=>{var e=await fetch(r,{credentials:"same-origin"});if(e.ok)return e.arrayBuffer();throw new Error(e.status+" : "+e.url)});var h=o.print||console.log.bind(console),p=o.printErr||console.error.bind(console);Object.assign(o,d),d=null,o.arguments&&o.arguments,o.thisProgram&&(c=o.thisProgram);var m,v,w,y,g,E,k,b,_,A=o.wasmBinary,F=!1;function P(){var r=m.buffer;o.HEAP8=v=new Int8Array(r),o.HEAP16=y=new Int16Array(r),o.HEAPU8=w=new Uint8Array(r),o.HEAPU16=g=new Uint16Array(r),o.HEAP32=E=new Int32Array(r),o.HEAPU32=k=new Uint32Array(r),o.HEAPF32=b=new Float32Array(r),o.HEAPF64=_=new Float64Array(r)}var D=[],S=[],T=[];function C(r){D.unshift(r)}function M(r){T.unshift(r)}var j=0,R=null;function x(r){j++,o.monitorRunDependencies?.(j)}function $(r){if(j--,o.monitorRunDependencies?.(j),0==j&&R){var e=R;R=null,e()}}function N(r){o.onAbort?.(r),p(r="Aborted("+r+")"),F=!0,r+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(r);throw t(e),e}var z,O,W,B=r=>r.startsWith("data:application/octet-stream;base64,");async function U(r,e,t){if(!r&&"function"==typeof WebAssembly.instantiateStreaming&&!B(e)&&"function"==typeof fetch)try{var n=fetch(e,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(n,t)}catch(r){p(`wasm streaming compile failed: ${r}`),p("falling back to ArrayBuffer instantiation")}return async function(r,e){try{var t=await async function(r){if(!A)try{var e=await u(r);return new Uint8Array(e)}catch{}return function(r){if(r==z&&A)return new Uint8Array(A);if(l)return l(r);throw"both async and sync fetching of the wasm failed"}(r)}(r);return await WebAssembly.instantiate(t,e)}catch(r){p(`failed to asynchronously prepare wasm: ${r}`),N(r)}}(e,t)}var L=r=>{for(;r.length>0;)r.shift()(o)};o.noExitRuntime;class I{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){k[this.ptr+4>>2]=r}get_type(){return k[this.ptr+4>>2]}set_destructor(r){k[this.ptr+8>>2]=r}get_destructor(){return k[this.ptr+8>>2]}set_caught(r){r=r?1:0,v[this.ptr+12]=r}get_caught(){return 0!=v[this.ptr+12]}set_rethrown(r){r=r?1:0,v[this.ptr+13]=r}get_rethrown(){return 0!=v[this.ptr+13]}init(r,e){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(e)}set_adjusted_ptr(r){k[this.ptr+16>>2]=r}get_adjusted_ptr(){return k[this.ptr+16>>2]}}var H,V,q,X=r=>{for(var e="",t=r;w[t];)e+=H[w[t++]];return e},G={},K={},J={},Q=r=>{throw new V(r)},Y=r=>{throw new q(r)};function Z(r,e,t={}){return function(r,e,t={}){var n=e.name;if(r||Q(`type "${n}" must have a positive integer typeid pointer`),K.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;Q(`Cannot register type '${n}' twice`)}if(K[r]=e,delete J[r],G.hasOwnProperty(r)){var o=G[r];delete G[r],o.forEach(r=>r())}}(r,e,t)}var rr=[],er=[],tr=r=>{r>9&&0===--er[r+1]&&(er[r]=void 0,rr.push(r))},nr=r=>(r||Q("Cannot use deleted val. handle = "+r),er[r]),or=r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=rr.pop()||er.length;return er[e]=r,er[e+1]=1,e}}};function ar(r){return this.fromWireType(k[r>>2])}var ir={name:"emscripten::val",fromWireType:r=>{var e=nr(r);return tr(r),e},toWireType:(r,e)=>or(e),argPackAdvance:8,readValueFromPointer:ar,destructorFunction:null},sr=(r,e)=>{switch(e){case 4:return function(r){return this.fromWireType(b[r>>2])};case 8:return function(r){return this.fromWireType(_[r>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},ur=(r,e)=>Object.defineProperty(e,"name",{value:r}),lr=r=>{for(;r.length;){var e=r.pop();r.pop()(e)}};function dr(r){for(var e=1;e<r.length;++e)if(null!==r[e]&&void 0===r[e].destructorFunction)return!0;return!1}function cr(r,e){if(!(r instanceof Function))throw new TypeError(`new_ called with constructor type ${typeof r} which is not a function`);var t=ur(r.name||"unknownFunctionName",function(){});t.prototype=r.prototype;var n=new t,o=r.apply(n,e);return o instanceof Object?o:n}var fr,hr,pr=(r,e,t)=>{if(void 0===r[e].overloadTable){var n=r[e];r[e]=function(...n){return r[e].overloadTable.hasOwnProperty(n.length)||Q(`Function '${t}' called with an invalid number of arguments (${n.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[n.length].apply(this,n)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},mr=(r,e,t)=>{o.hasOwnProperty(r)?((void 0===t||void 0!==o[r].overloadTable&&void 0!==o[r].overloadTable[t])&&Q(`Cannot register public name '${r}' twice`),pr(o,r,r),o[r].overloadTable.hasOwnProperty(t)&&Q(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),o[r].overloadTable[t]=e):(o[r]=e,o[r].argCount=t)},vr=(r,e,t)=>{o.hasOwnProperty(r)||Y("Replacing nonexistent public symbol"),void 0!==o[r].overloadTable&&void 0!==t?o[r].overloadTable[t]=e:(o[r]=e,o[r].argCount=t)},wr=[],yr=r=>{var e=wr[r];return e||(r>=wr.length&&(wr.length=r+1),wr[r]=e=fr.get(r)),e},gr=(r,e)=>{var t=(r=X(r)).includes("j")?((r,e)=>(...t)=>((r,e,t=[])=>r.includes("j")?((r,e,t)=>(r=r.replace(/p/g,"i"),(0,o["dynCall_"+r])(e,...t)))(r,e,t):yr(e)(...t))(r,e,t))(r,e):yr(e);return"function"!=typeof t&&Q(`unknown function pointer with signature ${r}: ${e}`),t},Er=r=>{var e=se(r),t=X(e);return le(e),t},kr=(r,e,t)=>{switch(e){case 1:return t?r=>v[r]:r=>w[r];case 2:return t?r=>y[r>>1]:r=>g[r>>1];case 4:return t?r=>E[r>>2]:r=>k[r>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},br=(r,e,t,n)=>{if(!(n>0))return 0;for(var o=t,a=t+n-1,i=0;i<r.length;++i){var s=r.charCodeAt(i);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&r.charCodeAt(++i)),s<=127){if(t>=a)break;e[t++]=s}else if(s<=2047){if(t+1>=a)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=a)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=a)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s}}return e[t]=0,t-o},_r=(r,e,t)=>br(r,w,e,t),Ar=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Fr="undefined"!=typeof TextDecoder?new TextDecoder:void 0,Pr=(r,e=0,t=NaN)=>{for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.buffer&&Fr)return Fr.decode(r.subarray(e,o));for(var a="";e<o;){var i=r[e++];if(128&i){var s=63&r[e++];if(192!=(224&i)){var u=63&r[e++];if((i=224==(240&i)?(15&i)<<12|s<<6|u:(7&i)<<18|s<<12|u<<6|63&r[e++])<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},Dr=(r,e)=>r?Pr(w,r,e):"",Sr="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0,Tr=(r,e)=>{for(var t=r,n=t>>1,o=n+e/2;!(n>=o)&&g[n];)++n;if((t=n<<1)-r>32&&Sr)return Sr.decode(w.subarray(r,t));for(var a="",i=0;!(i>=e/2);++i){var s=y[r+2*i>>1];if(0==s)break;a+=String.fromCharCode(s)}return a},Cr=(r,e,t)=>{if(t??=2147483647,t<2)return 0;for(var n=e,o=(t-=2)<2*r.length?t/2:r.length,a=0;a<o;++a){var i=r.charCodeAt(a);y[e>>1]=i,e+=2}return y[e>>1]=0,e-n},Mr=r=>2*r.length,jr=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var o=E[r+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},Rr=(r,e,t)=>{if(t??=2147483647,t<4)return 0;for(var n=e,o=n+t-4,a=0;a<r.length;++a){var i=r.charCodeAt(a);if(i>=55296&&i<=57343&&(i=65536+((1023&i)<<10)|1023&r.charCodeAt(++a)),E[e>>2]=i,(e+=4)+4>o)break}return E[e>>2]=0,e-n},xr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},$r=(r,e)=>{var t=K[r];return void 0===t&&Q(`${e} has unknown type ${Er(r)}`),t},Nr=(r,e,t)=>{var n=[],o=r.toWireType(n,t);return n.length&&(k[e>>2]=or(n)),o},zr=[],Or={},Wr=r=>{var e=Or[r];return void 0===e?X(r):e},Br=()=>"object"==typeof globalThis?globalThis:Function("return this")(),Ur=(r,e)=>Math.ceil(r/e)*e,Lr=r=>{var e=(r-m.buffer.byteLength+65535)/65536|0;try{return m.grow(e),P(),1}catch(r){}},Ir={},Hr=()=>{if(!Hr.strings){var r={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",_:c||"./this.program"};for(var e in Ir)void 0===Ir[e]?delete r[e]:r[e]=Ir[e];var t=[];for(var e in r)t.push(`${e}=${r[e]}`);Hr.strings=t}return Hr.strings},Vr={isAbs:r=>"/"===r.charAt(0),splitPath:r=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(r).slice(1),normalizeArray:(r,e)=>{for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];"."===o?r.splice(n,1):".."===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift("..");return r},normalize:r=>{var e=Vr.isAbs(r),t="/"===r.substr(-1);return(r=Vr.normalizeArray(r.split("/").filter(r=>!!r),!e).join("/"))||e||(r="."),r&&t&&(r+="/"),(e?"/":"")+r},dirname:r=>{var e=Vr.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:r=>{if("/"===r)return"/";var e=(r=(r=Vr.normalize(r)).replace(/\/$/,"")).lastIndexOf("/");return-1===e?r:r.substr(e+1)},join:(...r)=>Vr.normalize(r.join("/")),join2:(r,e)=>Vr.normalize(r+"/"+e)},qr=r=>(qr=(()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return r=>crypto.getRandomValues(r);N("initRandomDevice")})())(r),Xr={resolve:(...r)=>{for(var e="",t=!1,n=r.length-1;n>=-1&&!t;n--){var o=n>=0?r[n]:te.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");if(!o)return"";e=o+"/"+e,t=Vr.isAbs(o)}return(t?"/":"")+(e=Vr.normalizeArray(e.split("/").filter(r=>!!r),!t).join("/"))||"."},relative:(r,e)=>{function t(r){for(var e=0;e<r.length&&""===r[e];e++);for(var t=r.length-1;t>=0&&""===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=Xr.resolve(r).substr(1),e=Xr.resolve(e).substr(1);for(var n=t(r.split("/")),o=t(e.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("/")}},Gr=[];function Kr(r,e,t){var n=Ar(r)+1,o=new Array(n),a=br(r,o,0,o.length);return o.length=a,o}var Jr={ttys:[],init(){},shutdown(){},register(r,e){Jr.ttys[r]={input:[],output:[],ops:e},te.registerDevice(r,Jr.stream_ops)},stream_ops:{open(r){var e=Jr.ttys[r.node.rdev];if(!e)throw new te.ErrnoError(43);r.tty=e,r.seekable=!1},close(r){r.tty.ops.fsync(r.tty)},fsync(r){r.tty.ops.fsync(r.tty)},read(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new te.ErrnoError(60);for(var a=0,i=0;i<n;i++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new te.ErrnoError(29)}if(void 0===s&&0===a)throw new te.ErrnoError(6);if(null==s)break;a++,e[t+i]=s}return a&&(r.node.atime=Date.now()),a},write(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new te.ErrnoError(60);try{for(var a=0;a<n;a++)r.tty.ops.put_char(r.tty,e[t+a])}catch(r){throw new te.ErrnoError(29)}return n&&(r.node.mtime=r.node.ctime=Date.now()),a}},default_tty_ops:{get_char:r=>(()=>{if(!Gr.length){var r=null;if("undefined"!=typeof window&&"function"==typeof window.prompt&&null!==(r=window.prompt("Input: "))&&(r+="\n"),!r)return null;Gr=Kr(r)}return Gr.shift()})(),put_char(r,e){null===e||10===e?(h(Pr(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output&&r.output.length>0&&(h(Pr(r.output)),r.output=[])},ioctl_tcgets:r=>({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:(r,e,t)=>0,ioctl_tiocgwinsz:r=>[24,80]},default_tty1_ops:{put_char(r,e){null===e||10===e?(p(Pr(r.output)),r.output=[]):0!=e&&r.output.push(e)},fsync(r){r.output&&r.output.length>0&&(p(Pr(r.output)),r.output=[])}}},Qr=r=>{N()},Yr={ops_table:null,mount:r=>Yr.createNode(null,"/",16895,0),createNode(r,e,t,n){if(te.isBlkdev(t)||te.isFIFO(t))throw new te.ErrnoError(63);Yr.ops_table||={dir:{node:{getattr:Yr.node_ops.getattr,setattr:Yr.node_ops.setattr,lookup:Yr.node_ops.lookup,mknod:Yr.node_ops.mknod,rename:Yr.node_ops.rename,unlink:Yr.node_ops.unlink,rmdir:Yr.node_ops.rmdir,readdir:Yr.node_ops.readdir,symlink:Yr.node_ops.symlink},stream:{llseek:Yr.stream_ops.llseek}},file:{node:{getattr:Yr.node_ops.getattr,setattr:Yr.node_ops.setattr},stream:{llseek:Yr.stream_ops.llseek,read:Yr.stream_ops.read,write:Yr.stream_ops.write,allocate:Yr.stream_ops.allocate,mmap:Yr.stream_ops.mmap,msync:Yr.stream_ops.msync}},link:{node:{getattr:Yr.node_ops.getattr,setattr:Yr.node_ops.setattr,readlink:Yr.node_ops.readlink},stream:{}},chrdev:{node:{getattr:Yr.node_ops.getattr,setattr:Yr.node_ops.setattr},stream:te.chrdev_stream_ops}};var o=te.createNode(r,e,t,n);return te.isDir(o.mode)?(o.node_ops=Yr.ops_table.dir.node,o.stream_ops=Yr.ops_table.dir.stream,o.contents={}):te.isFile(o.mode)?(o.node_ops=Yr.ops_table.file.node,o.stream_ops=Yr.ops_table.file.stream,o.usedBytes=0,o.contents=null):te.isLink(o.mode)?(o.node_ops=Yr.ops_table.link.node,o.stream_ops=Yr.ops_table.link.stream):te.isChrdev(o.mode)&&(o.node_ops=Yr.ops_table.chrdev.node,o.stream_ops=Yr.ops_table.chrdev.stream),o.atime=o.mtime=o.ctime=Date.now(),r&&(r.contents[e]=o,r.atime=r.mtime=r.ctime=o.atime),o},getFileDataAsTypedArray:r=>r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0),expandFileStorage(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr(r){var e={};return e.dev=te.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,te.isDir(r.mode)?e.size=4096:te.isFile(r.mode)?e.size=r.usedBytes:te.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.atime),e.mtime=new Date(r.mtime),e.ctime=new Date(r.ctime),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr(r,e){for(const t of["mode","atime","mtime","ctime"])e[t]&&(r[t]=e[t]);void 0!==e.size&&Yr.resizeFileStorage(r,e.size)},lookup(r,e){throw Yr.doesNotExistError},mknod:(r,e,t,n)=>Yr.createNode(r,e,t,n),rename(r,e,t){var n;try{n=te.lookupNode(e,t)}catch(r){}if(n){if(te.isDir(r.mode))for(var o in n.contents)throw new te.ErrnoError(55);te.hashRemoveNode(n)}delete r.parent.contents[r.name],e.contents[t]=r,r.name=t,e.ctime=e.mtime=r.parent.ctime=r.parent.mtime=Date.now()},unlink(r,e){delete r.contents[e],r.ctime=r.mtime=Date.now()},rmdir(r,e){var t=te.lookupNode(r,e);for(var n in t.contents)throw new te.ErrnoError(55);delete r.contents[e],r.ctime=r.mtime=Date.now()},readdir:r=>[".","..",...Object.keys(r.contents)],symlink(r,e,t){var n=Yr.createNode(r,e,41471,0);return n.link=t,n},readlink(r){if(!te.isLink(r.mode))throw new te.ErrnoError(28);return r.link}},stream_ops:{read(r,e,t,n,o){var a=r.node.contents;if(o>=r.node.usedBytes)return 0;var i=Math.min(r.node.usedBytes-o,n);if(i>8&&a.subarray)e.set(a.subarray(o,o+i),t);else for(var s=0;s<i;s++)e[t+s]=a[o+s];return i},write(r,e,t,n,o,a){if(e.buffer===v.buffer&&(a=!1),!n)return 0;var i=r.node;if(i.mtime=i.ctime=Date.now(),e.subarray&&(!i.contents||i.contents.subarray)){if(a)return i.contents=e.subarray(t,t+n),i.usedBytes=n,n;if(0===i.usedBytes&&0===o)return i.contents=e.slice(t,t+n),i.usedBytes=n,n;if(o+n<=i.usedBytes)return i.contents.set(e.subarray(t,t+n),o),n}if(Yr.expandFileStorage(i,o+n),i.contents.subarray&&e.subarray)i.contents.set(e.subarray(t,t+n),o);else for(var s=0;s<n;s++)i.contents[o+s]=e[t+s];return i.usedBytes=Math.max(i.usedBytes,o+n),n},llseek(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&te.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new te.ErrnoError(28);return n},allocate(r,e,t){Yr.expandFileStorage(r.node,e+t),r.node.usedBytes=Math.max(r.node.usedBytes,e+t)},mmap(r,e,t,n,o){if(!te.isFile(r.node.mode))throw new te.ErrnoError(43);var a,i,s=r.node.contents;if(2&o||!s||s.buffer!==v.buffer){if(i=!0,!(a=Qr()))throw new te.ErrnoError(48);s&&((t>0||t+e<s.length)&&(s=s.subarray?s.subarray(t,t+e):Array.prototype.slice.call(s,t,t+e)),v.set(s,a))}else i=!1,a=s.byteOffset;return{ptr:a,allocated:i}},msync:(r,e,t,n,o)=>(Yr.stream_ops.write(r,e,0,n,t,!1),0)}},Zr=async r=>{var e=await u(r);return new Uint8Array(e)},re=o.preloadPlugins||[],ee=(r,e)=>{var t=0;return r&&(t|=365),e&&(t|=146),t},te={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{name="ErrnoError";constructor(r){this.errno=r}},filesystems:null,syncFSRequests:0,readFiles:{},FSStream:class{shared={};get object(){return this.node}set object(r){this.node=r}get isRead(){return 1!=(2097155&this.flags)}get isWrite(){return!!(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(r){this.shared.flags=r}get position(){return this.shared.position}set position(r){this.shared.position=r}},FSNode:class{node_ops={};stream_ops={};readMode=365;writeMode=146;mounted=null;constructor(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.id=te.nextInode++,this.name=e,this.mode=t,this.rdev=n,this.atime=this.mtime=this.ctime=Date.now()}get read(){return(this.mode&this.readMode)===this.readMode}set read(r){r?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(r){r?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return te.isDir(this.mode)}get isDevice(){return te.isChrdev(this.mode)}},lookupPath(r,e={}){if(!r)return{path:"",node:null};e.follow_mount??=!0,Vr.isAbs(r)||(r=te.cwd()+"/"+r);r:for(var t=0;t<40;t++){for(var n=r.split("/").filter(r=>!!r&&"."!==r),o=te.root,a="/",i=0;i<n.length;i++){var s=i===n.length-1;if(s&&e.parent)break;if(".."!==n[i]){a=Vr.join2(a,n[i]);try{o=te.lookupNode(o,n[i])}catch(r){if(44===r?.errno&&s&&e.noent_okay)return{path:a};throw r}if(!te.isMountpoint(o)||s&&!e.follow_mount||(o=o.mounted.root),te.isLink(o.mode)&&(!s||e.follow)){if(!o.node_ops.readlink)throw new te.ErrnoError(52);var u=o.node_ops.readlink(o);Vr.isAbs(u)||(u=Vr.dirname(a)+"/"+u),r=u+"/"+n.slice(i+1).join("/");continue r}}else a=Vr.dirname(a),o=o.parent}return{path:a,node:o}}throw new te.ErrnoError(32)},getPath(r){for(var e;;){if(te.isRoot(r)){var t=r.mount.mountpoint;return e?"/"!==t[t.length-1]?`${t}/${e}`:t+e:t}e=e?`${r.name}/${e}`:r.name,r=r.parent}},hashName(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%te.nameTable.length},hashAddNode(r){var e=te.hashName(r.parent.id,r.name);r.name_next=te.nameTable[e],te.nameTable[e]=r},hashRemoveNode(r){var e=te.hashName(r.parent.id,r.name);if(te.nameTable[e]===r)te.nameTable[e]=r.name_next;else for(var t=te.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode(r,e){var t=te.mayLookup(r);if(t)throw new te.ErrnoError(t);for(var n=te.hashName(r.id,e),o=te.nameTable[n];o;o=o.name_next){var a=o.name;if(o.parent.id===r.id&&a===e)return o}return te.lookup(r,e)},createNode(r,e,t,n){var o=new te.FSNode(r,e,t,n);return te.hashAddNode(o),o},destroyNode(r){te.hashRemoveNode(r)},isRoot:r=>r===r.parent,isMountpoint:r=>!!r.mounted,isFile:r=>32768==(61440&r),isDir:r=>16384==(61440&r),isLink:r=>40960==(61440&r),isChrdev:r=>8192==(61440&r),isBlkdev:r=>24576==(61440&r),isFIFO:r=>4096==(61440&r),isSocket:r=>!(49152&~r),flagsToPermissionString(r){var e=["r","w","rw"][3&r];return 512&r&&(e+="w"),e},nodePermissions:(r,e)=>te.ignorePermissions||(!e.includes("r")||292&r.mode)&&(!e.includes("w")||146&r.mode)&&(!e.includes("x")||73&r.mode)?0:2,mayLookup:r=>te.isDir(r.mode)?te.nodePermissions(r,"x")||(r.node_ops.lookup?0:2):54,mayCreate(r,e){if(!te.isDir(r.mode))return 54;try{return te.lookupNode(r,e),20}catch(r){}return te.nodePermissions(r,"wx")},mayDelete(r,e,t){var n;try{n=te.lookupNode(r,e)}catch(r){return r.errno}var o=te.nodePermissions(r,"wx");if(o)return o;if(t){if(!te.isDir(n.mode))return 54;if(te.isRoot(n)||te.getPath(n)===te.cwd())return 10}else if(te.isDir(n.mode))return 31;return 0},mayOpen:(r,e)=>r?te.isLink(r.mode)?32:te.isDir(r.mode)&&("r"!==te.flagsToPermissionString(e)||512&e)?31:te.nodePermissions(r,te.flagsToPermissionString(e)):44,MAX_OPEN_FDS:4096,nextfd(){for(var r=0;r<=te.MAX_OPEN_FDS;r++)if(!te.streams[r])return r;throw new te.ErrnoError(33)},getStreamChecked(r){var e=te.getStream(r);if(!e)throw new te.ErrnoError(8);return e},getStream:r=>te.streams[r],createStream:(r,e=-1)=>(r=Object.assign(new te.FSStream,r),-1==e&&(e=te.nextfd()),r.fd=e,te.streams[e]=r,r),closeStream(r){te.streams[r]=null},dupStream(r,e=-1){var t=te.createStream(r,e);return t.stream_ops?.dup?.(t),t},chrdev_stream_ops:{open(r){var e=te.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open?.(r)},llseek(){throw new te.ErrnoError(70)}},major:r=>r>>8,minor:r=>255&r,makedev:(r,e)=>r<<8|e,registerDevice(r,e){te.devices[r]={stream_ops:e}},getDevice:r=>te.devices[r],getMounts(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push(...n.mounts)}return e},syncfs(r,e){"function"==typeof r&&(e=r,r=!1),te.syncFSRequests++,te.syncFSRequests>1&&p(`warning: ${te.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var t=te.getMounts(te.root.mount),n=0;function o(r){return te.syncFSRequests--,e(r)}function a(r){if(r)return a.errored?void 0:(a.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach(e=>{if(!e.type.syncfs)return a(null);e.type.syncfs(e,r,a)})},mount(r,e,t){var n,o="/"===t,a=!t;if(o&&te.root)throw new te.ErrnoError(10);if(!o&&!a){var i=te.lookupPath(t,{follow_mount:!1});if(t=i.path,n=i.node,te.isMountpoint(n))throw new te.ErrnoError(10);if(!te.isDir(n.mode))throw new te.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?te.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount(r){var e=te.lookupPath(r,{follow_mount:!1});if(!te.isMountpoint(e.node))throw new te.ErrnoError(28);var t=e.node,n=t.mounted,o=te.getMounts(n);Object.keys(te.nameTable).forEach(r=>{for(var e=te.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&te.destroyNode(e),e=t}}),t.mounted=null;var a=t.mount.mounts.indexOf(n);t.mount.mounts.splice(a,1)},lookup:(r,e)=>r.node_ops.lookup(r,e),mknod(r,e,t){var n=te.lookupPath(r,{parent:!0}).node,o=Vr.basename(r);if(!o||"."===o||".."===o)throw new te.ErrnoError(28);var a=te.mayCreate(n,o);if(a)throw new te.ErrnoError(a);if(!n.node_ops.mknod)throw new te.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},statfs(r){var e={bsize:4096,frsize:4096,blocks:1e6,bfree:5e5,bavail:5e5,files:te.nextInode,ffree:te.nextInode-1,fsid:42,flags:2,namelen:255},t=te.lookupPath(r,{follow:!0}).node;return t?.node_ops.statfs&&Object.assign(e,t.node_ops.statfs(t.mount.opts.root)),e},create:(r,e=438)=>(e&=4095,e|=32768,te.mknod(r,e,0)),mkdir:(r,e=511)=>(e&=1023,e|=16384,te.mknod(r,e,0)),mkdirTree(r,e){for(var t=r.split("/"),n="",o=0;o<t.length;++o)if(t[o]){n+="/"+t[o];try{te.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:(r,e,t)=>(void 0===t&&(t=e,e=438),e|=8192,te.mknod(r,e,t)),symlink(r,e){if(!Xr.resolve(r))throw new te.ErrnoError(44);var t=te.lookupPath(e,{parent:!0}).node;if(!t)throw new te.ErrnoError(44);var n=Vr.basename(e),o=te.mayCreate(t,n);if(o)throw new te.ErrnoError(o);if(!t.node_ops.symlink)throw new te.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename(r,e){var t,n,o=Vr.dirname(r),a=Vr.dirname(e),i=Vr.basename(r),s=Vr.basename(e);if(t=te.lookupPath(r,{parent:!0}).node,n=te.lookupPath(e,{parent:!0}).node,!t||!n)throw new te.ErrnoError(44);if(t.mount!==n.mount)throw new te.ErrnoError(75);var u,l=te.lookupNode(t,i),d=Xr.relative(r,a);if("."!==d.charAt(0))throw new te.ErrnoError(28);if("."!==(d=Xr.relative(e,o)).charAt(0))throw new te.ErrnoError(55);try{u=te.lookupNode(n,s)}catch(r){}if(l!==u){var c=te.isDir(l.mode),f=te.mayDelete(t,i,c);if(f)throw new te.ErrnoError(f);if(f=u?te.mayDelete(n,s,c):te.mayCreate(n,s))throw new te.ErrnoError(f);if(!t.node_ops.rename)throw new te.ErrnoError(63);if(te.isMountpoint(l)||u&&te.isMountpoint(u))throw new te.ErrnoError(10);if(n!==t&&(f=te.nodePermissions(t,"w")))throw new te.ErrnoError(f);te.hashRemoveNode(l);try{t.node_ops.rename(l,n,s),l.parent=n}catch(r){throw r}finally{te.hashAddNode(l)}}},rmdir(r){var e=te.lookupPath(r,{parent:!0}).node,t=Vr.basename(r),n=te.lookupNode(e,t),o=te.mayDelete(e,t,!0);if(o)throw new te.ErrnoError(o);if(!e.node_ops.rmdir)throw new te.ErrnoError(63);if(te.isMountpoint(n))throw new te.ErrnoError(10);e.node_ops.rmdir(e,t),te.destroyNode(n)},readdir(r){var e=te.lookupPath(r,{follow:!0}).node;if(!e.node_ops.readdir)throw new te.ErrnoError(54);return e.node_ops.readdir(e)},unlink(r){var e=te.lookupPath(r,{parent:!0}).node;if(!e)throw new te.ErrnoError(44);var t=Vr.basename(r),n=te.lookupNode(e,t),o=te.mayDelete(e,t,!1);if(o)throw new te.ErrnoError(o);if(!e.node_ops.unlink)throw new te.ErrnoError(63);if(te.isMountpoint(n))throw new te.ErrnoError(10);e.node_ops.unlink(e,t),te.destroyNode(n)},readlink(r){var e=te.lookupPath(r).node;if(!e)throw new te.ErrnoError(44);if(!e.node_ops.readlink)throw new te.ErrnoError(28);return e.node_ops.readlink(e)},stat(r,e){var t=te.lookupPath(r,{follow:!e}).node;if(!t)throw new te.ErrnoError(44);if(!t.node_ops.getattr)throw new te.ErrnoError(63);return t.node_ops.getattr(t)},lstat:r=>te.stat(r,!0),chmod(r,e,t){var n;if(!(n="string"==typeof r?te.lookupPath(r,{follow:!t}).node:r).node_ops.setattr)throw new te.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&e|-4096&n.mode,ctime:Date.now()})},lchmod(r,e){te.chmod(r,e,!0)},fchmod(r,e){var t=te.getStreamChecked(r);te.chmod(t.node,e)},chown(r,e,t,n){var o;if(!(o="string"==typeof r?te.lookupPath(r,{follow:!n}).node:r).node_ops.setattr)throw new te.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown(r,e,t){te.chown(r,e,t,!0)},fchown(r,e,t){var n=te.getStreamChecked(r);te.chown(n.node,e,t)},truncate(r,e){if(e<0)throw new te.ErrnoError(28);var t;if(!(t="string"==typeof r?te.lookupPath(r,{follow:!0}).node:r).node_ops.setattr)throw new te.ErrnoError(63);if(te.isDir(t.mode))throw new te.ErrnoError(31);if(!te.isFile(t.mode))throw new te.ErrnoError(28);var n=te.nodePermissions(t,"w");if(n)throw new te.ErrnoError(n);t.node_ops.setattr(t,{size:e,timestamp:Date.now()})},ftruncate(r,e){var t=te.getStreamChecked(r);if(!(2097155&t.flags))throw new te.ErrnoError(28);te.truncate(t.node,e)},utime(r,e,t){var n=te.lookupPath(r,{follow:!0}).node;n.node_ops.setattr(n,{atime:e,mtime:t})},open(r,e,t=438){if(""===r)throw new te.ErrnoError(44);var n;if(t=64&(e="string"==typeof e?(r=>{var e={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===e)throw new Error(`Unknown file open mode: ${r}`);return e})(e):e)?4095&t|32768:0,"object"==typeof r)n=r;else{var a=te.lookupPath(r,{follow:!(131072&e),noent_okay:!0});n=a.node,r=a.path}var i=!1;if(64&e)if(n){if(128&e)throw new te.ErrnoError(20)}else n=te.mknod(r,t,0),i=!0;if(!n)throw new te.ErrnoError(44);if(te.isChrdev(n.mode)&&(e&=-513),65536&e&&!te.isDir(n.mode))throw new te.ErrnoError(54);if(!i){var s=te.mayOpen(n,e);if(s)throw new te.ErrnoError(s)}512&e&&!i&&te.truncate(n,0),e&=-131713;var u=te.createStream({node:n,path:te.getPath(n),flags:e,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return u.stream_ops.open&&u.stream_ops.open(u),!o.logReadFiles||1&e||r in te.readFiles||(te.readFiles[r]=1),u},close(r){if(te.isClosed(r))throw new te.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{te.closeStream(r.fd)}r.fd=null},isClosed:r=>null===r.fd,llseek(r,e,t){if(te.isClosed(r))throw new te.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new te.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new te.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read(r,e,t,n,o){if(n<0||o<0)throw new te.ErrnoError(28);if(te.isClosed(r))throw new te.ErrnoError(8);if(1==(2097155&r.flags))throw new te.ErrnoError(8);if(te.isDir(r.node.mode))throw new te.ErrnoError(31);if(!r.stream_ops.read)throw new te.ErrnoError(28);var a=void 0!==o;if(a){if(!r.seekable)throw new te.ErrnoError(70)}else o=r.position;var i=r.stream_ops.read(r,e,t,n,o);return a||(r.position+=i),i},write(r,e,t,n,o,a){if(n<0||o<0)throw new te.ErrnoError(28);if(te.isClosed(r))throw new te.ErrnoError(8);if(!(2097155&r.flags))throw new te.ErrnoError(8);if(te.isDir(r.node.mode))throw new te.ErrnoError(31);if(!r.stream_ops.write)throw new te.ErrnoError(28);r.seekable&&1024&r.flags&&te.llseek(r,0,2);var i=void 0!==o;if(i){if(!r.seekable)throw new te.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,a);return i||(r.position+=s),s},allocate(r,e,t){if(te.isClosed(r))throw new te.ErrnoError(8);if(e<0||t<=0)throw new te.ErrnoError(28);if(!(2097155&r.flags))throw new te.ErrnoError(8);if(!te.isFile(r.node.mode)&&!te.isDir(r.node.mode))throw new te.ErrnoError(43);if(!r.stream_ops.allocate)throw new te.ErrnoError(138);r.stream_ops.allocate(r,e,t)},mmap(r,e,t,n,o){if(2&n&&!(2&o)&&2!=(2097155&r.flags))throw new te.ErrnoError(2);if(1==(2097155&r.flags))throw new te.ErrnoError(2);if(!r.stream_ops.mmap)throw new te.ErrnoError(43);if(!e)throw new te.ErrnoError(28);return r.stream_ops.mmap(r,e,t,n,o)},msync:(r,e,t,n,o)=>r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0,ioctl(r,e,t){if(!r.stream_ops.ioctl)throw new te.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile(r,e={}){if(e.flags=e.flags||0,e.encoding=e.encoding||"binary","utf8"!==e.encoding&&"binary"!==e.encoding)throw new Error(`Invalid encoding type "${e.encoding}"`);var t,n=te.open(r,e.flags),o=te.stat(r).size,a=new Uint8Array(o);return te.read(n,a,0,o,0),"utf8"===e.encoding?t=Pr(a):"binary"===e.encoding&&(t=a),te.close(n),t},writeFile(r,e,t={}){t.flags=t.flags||577;var n=te.open(r,t.flags,t.mode);if("string"==typeof e){var o=new Uint8Array(Ar(e)+1),a=br(e,o,0,o.length);te.write(n,o,0,a,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(e))throw new Error("Unsupported data type");te.write(n,e,0,e.byteLength,void 0,t.canOwn)}te.close(n)},cwd:()=>te.currentPath,chdir(r){var e=te.lookupPath(r,{follow:!0});if(null===e.node)throw new te.ErrnoError(44);if(!te.isDir(e.node.mode))throw new te.ErrnoError(54);var t=te.nodePermissions(e.node,"x");if(t)throw new te.ErrnoError(t);te.currentPath=e.path},createDefaultDirectories(){te.mkdir("/tmp"),te.mkdir("/home"),te.mkdir("/home/web_user")},createDefaultDevices(){te.mkdir("/dev"),te.registerDevice(te.makedev(1,3),{read:()=>0,write:(r,e,t,n,o)=>n,llseek:()=>0}),te.mkdev("/dev/null",te.makedev(1,3)),Jr.register(te.makedev(5,0),Jr.default_tty_ops),Jr.register(te.makedev(6,0),Jr.default_tty1_ops),te.mkdev("/dev/tty",te.makedev(5,0)),te.mkdev("/dev/tty1",te.makedev(6,0));var r=new Uint8Array(1024),e=0,t=()=>(0===e&&(e=qr(r).byteLength),r[--e]);te.createDevice("/dev","random",t),te.createDevice("/dev","urandom",t),te.mkdir("/dev/shm"),te.mkdir("/dev/shm/tmp")},createSpecialDirectories(){te.mkdir("/proc");var r=te.mkdir("/proc/self");te.mkdir("/proc/self/fd"),te.mount({mount(){var e=te.createNode(r,"fd",16895,73);return e.stream_ops={llseek:Yr.stream_ops.llseek},e.node_ops={lookup(r,e){var t=+e,n=te.getStreamChecked(t),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path},id:t+1};return o.parent=o,o},readdir:()=>Array.from(te.streams.entries()).filter(([r,e])=>e).map(([r,e])=>r.toString())},e}},{},"/proc/self/fd")},createStandardStreams(r,e,t){r?te.createDevice("/dev","stdin",r):te.symlink("/dev/tty","/dev/stdin"),e?te.createDevice("/dev","stdout",null,e):te.symlink("/dev/tty","/dev/stdout"),t?te.createDevice("/dev","stderr",null,t):te.symlink("/dev/tty1","/dev/stderr"),te.open("/dev/stdin",0),te.open("/dev/stdout",1),te.open("/dev/stderr",1)},staticInit(){te.nameTable=new Array(4096),te.mount(Yr,{},"/"),te.createDefaultDirectories(),te.createDefaultDevices(),te.createSpecialDirectories(),te.filesystems={MEMFS:Yr}},init(r,e,t){te.initialized=!0,r??=o.stdin,e??=o.stdout,t??=o.stderr,te.createStandardStreams(r,e,t)},quit(){te.initialized=!1;for(var r=0;r<te.streams.length;r++){var e=te.streams[r];e&&te.close(e)}},findObject(r,e){var t=te.analyzePath(r,e);return t.exists?t.object:null},analyzePath(r,e){try{r=(n=te.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=te.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=Vr.basename(r),n=te.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot="/"===n.path}catch(r){t.error=r.errno}return t},createPath(r,e,t,n){r="string"==typeof r?r:te.getPath(r);for(var o=e.split("/").reverse();o.length;){var a=o.pop();if(a){var i=Vr.join2(r,a);try{te.mkdir(i)}catch(r){}r=i}}return i},createFile(r,e,t,n,o){var a=Vr.join2("string"==typeof r?r:te.getPath(r),e),i=ee(n,o);return te.create(a,i)},createDataFile(r,e,t,n,o,a){var i=e;r&&(r="string"==typeof r?r:te.getPath(r),i=e?Vr.join2(r,e):r);var s=ee(n,o),u=te.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}te.chmod(u,146|s);var f=te.open(u,577);te.write(f,t,0,t.length,0,a),te.close(f),te.chmod(u,s)}},createDevice(r,e,t,n){var o=Vr.join2("string"==typeof r?r:te.getPath(r),e),a=ee(!!t,!!n);te.createDevice.major??=64;var i=te.makedev(te.createDevice.major++,0);return te.registerDevice(i,{open(r){r.seekable=!1},close(r){n?.buffer?.length&&n(10)},read(r,e,n,o,a){for(var i=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new te.ErrnoError(29)}if(void 0===u&&0===i)throw new te.ErrnoError(6);if(null==u)break;i++,e[n+s]=u}return i&&(r.node.atime=Date.now()),i},write(r,e,t,o,a){for(var i=0;i<o;i++)try{n(e[t+i])}catch(r){throw new te.ErrnoError(29)}return o&&(r.node.mtime=r.node.ctime=Date.now()),i}}),te.mkdev(o,a,i)},forceLoadFile(r){if(r.isDevice||r.isFolder||r.link||r.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.");try{r.contents=l(r.url),r.usedBytes=r.contents.length}catch(r){throw new te.ErrnoError(29)}},createLazyFile(r,e,t,n,o){class a{lengthKnown=!1;chunks=[];get(r){if(!(r>this.length-1||r<0)){var e=r%this.chunkSize,t=r/this.chunkSize|0;return this.getter(t)[e]}}setDataGetter(r){this.getter=r}cacheLength(){var r=new XMLHttpRequest;if(r.open("HEAD",t,!1),r.send(null),!(r.status>=200&&r.status<300||304===r.status))throw new Error("Couldn't load "+t+". Status: "+r.status);var e,n=Number(r.getResponseHeader("Content-length")),o=(e=r.getResponseHeader("Accept-Ranges"))&&"bytes"===e,a=(e=r.getResponseHeader("Content-Encoding"))&&"gzip"===e,i=1048576;o||(i=n);var s=(r,e)=>{if(r>e)throw new Error("invalid range ("+r+", "+e+") or no bytes requested!");if(e>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="+r+"-"+e),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||[]):Kr(o.responseText||"")},u=this;u.setDataGetter(r=>{var e=r*i,t=(r+1)*i-1;if(t=Math.min(t,n-1),void 0===u.chunks[r]&&(u.chunks[r]=s(e,t)),void 0===u.chunks[r])throw new Error("doXHR failed!");return u.chunks[r]}),!a&&n||(i=n=1,n=this.getter(0).length,i=n,h("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=i,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if("undefined"!=typeof XMLHttpRequest){if(!s)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var i={isDevice:!1,contents:new a}}else i={isDevice:!1,url:t};var u=te.createFile(r,e,i,n,o);i.contents?u.contents=i.contents:i.url&&(u.contents=null,u.url=i.url),Object.defineProperties(u,{usedBytes:{get:function(){return this.contents.length}}});var l={};function d(r,e,t,n,o){var a=r.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++)e[t+s]=a[o+s];else for(s=0;s<i;s++)e[t+s]=a.get(o+s);return i}return Object.keys(u.stream_ops).forEach(r=>{var e=u.stream_ops[r];l[r]=(...r)=>(te.forceLoadFile(u),e(...r))}),l.read=(r,e,t,n,o)=>(te.forceLoadFile(u),d(r,e,t,n,o)),l.mmap=(r,e,t,n,o)=>{te.forceLoadFile(u);var a=Qr();if(!a)throw new te.ErrnoError(48);return d(r,v,a,e,t),{ptr:a,allocated:!0}},u.stream_ops=l,u}},ne={DEFAULT_POLLMASK:5,calculateAt(r,e,t){if(Vr.isAbs(e))return e;var n;if(n=-100===r?te.cwd():ne.getStreamFromFD(r).path,0==e.length){if(!t)throw new te.ErrnoError(44);return n}return n+"/"+e},doStat(r,e,t){var n=r(e);E[t>>2]=n.dev,E[t+4>>2]=n.mode,k[t+8>>2]=n.nlink,E[t+12>>2]=n.uid,E[t+16>>2]=n.gid,E[t+20>>2]=n.rdev,W=[n.size>>>0,(O=n.size,+Math.abs(O)>=1?O>0?+Math.floor(O/4294967296)>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],E[t+24>>2]=W[0],E[t+28>>2]=W[1],E[t+32>>2]=4096,E[t+36>>2]=n.blocks;var o=n.atime.getTime(),a=n.mtime.getTime(),i=n.ctime.getTime();return W=[Math.floor(o/1e3)>>>0,(O=Math.floor(o/1e3),+Math.abs(O)>=1?O>0?+Math.floor(O/4294967296)>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],E[t+40>>2]=W[0],E[t+44>>2]=W[1],k[t+48>>2]=o%1e3*1e3*1e3,W=[Math.floor(a/1e3)>>>0,(O=Math.floor(a/1e3),+Math.abs(O)>=1?O>0?+Math.floor(O/4294967296)>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],E[t+56>>2]=W[0],E[t+60>>2]=W[1],k[t+64>>2]=a%1e3*1e3*1e3,W=[Math.floor(i/1e3)>>>0,(O=Math.floor(i/1e3),+Math.abs(O)>=1?O>0?+Math.floor(O/4294967296)>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],E[t+72>>2]=W[0],E[t+76>>2]=W[1],k[t+80>>2]=i%1e3*1e3*1e3,W=[n.ino>>>0,(O=n.ino,+Math.abs(O)>=1?O>0?+Math.floor(O/4294967296)>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],E[t+88>>2]=W[0],E[t+92>>2]=W[1],0},doMsync(r,e,t,n,o){if(!te.isFile(e.node.mode))throw new te.ErrnoError(43);if(2&n)return 0;var a=w.slice(r,r+t);te.msync(e,a,o,t,n)},getStreamFromFD:r=>te.getStreamChecked(r),varargs:void 0,getStr:r=>Dr(r)};(()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);H=r})(),V=o.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},q=o.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},er.push(0,1,void 0,1,null,1,!0,1,!1,1),o.count_emval_handles=()=>er.length/2-5-rr.length,hr=o.UnboundTypeError=((r,e)=>{var t=ur(e,function(r){this.name=e,this.message=r;var t=new Error(r).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},t})(Error,"UnboundTypeError"),te.createPreloadedFile=(r,e,t,n,o,a,i,s,u,l)=>{var d=e?Xr.resolve(Vr.join2(r,e)):r;function c(t){function c(t){l?.(),s||((r,e,t,n,o,a)=>{te.createDataFile(r,e,t,n,o,a)})(r,e,t,n,o,u),a?.(),$()}((r,e,t,n)=>{"undefined"!=typeof Browser&&Browser.init();var o=!1;return re.forEach(a=>{o||a.canHandle(e)&&(a.handle(r,e,t,n),o=!0)}),o})(t,d,c,()=>{i?.(),$()})||c(t)}x(),"string"==typeof t?Zr(t).then(c,i):c(t)},te.staticInit(),Yr.doesNotExistError=new te.ErrnoError(44),Yr.doesNotExistError.stack="<generic error, no stack>";var oe,ae={q:(r,e,t)=>{throw new I(r).init(e,t),r},w:()=>N(""),s:(r,e,t,n,o)=>{},D:(r,e,t,n)=>{Z(r,{name:e=X(e),fromWireType:function(r){return!!r},toWireType:function(r,e){return e?t:n},argPackAdvance:8,readValueFromPointer:function(r){return this.fromWireType(w[r])},destructorFunction:null})},B:r=>Z(r,ir),p:(r,e,t)=>{Z(r,{name:e=X(e),fromWireType:r=>r,toWireType:(r,e)=>e,argPackAdvance:8,readValueFromPointer:sr(e,t),destructorFunction:null})},i:(r,e,t,n,o,a,i,s)=>{var u=((r,e)=>{for(var t=[],n=0;n<r;n++)t.push(k[e+4*n>>2]);return t})(e,t);r=(r=>{const e=(r=r.trim()).indexOf("(");return-1!==e?r.substr(0,e):r})(r=X(r)),o=gr(n,o),mr(r,function(){((r,e)=>{var t=[],n={};throw e.forEach(function r(e){n[e]||K[e]||(J[e]?J[e].forEach(r):(t.push(e),n[e]=!0))}),new hr(`${r}: `+t.map(Er).join([", "]))})(`Cannot call ${r} due to unbound types`,u)},e-1),((r,e,t)=>{function n(e){var n=t(e);n.length!==r.length&&Y("Mismatched type converter count");for(var o=0;o<r.length;++o)Z(r[o],n[o])}r.forEach(r=>J[r]=e);var o=new Array(e.length),a=[],i=0;e.forEach((r,e)=>{K.hasOwnProperty(r)?o[e]=K[r]:(a.push(r),G.hasOwnProperty(r)||(G[r]=[]),G[r].push(()=>{o[e]=K[r],++i===a.length&&n(o)}))}),0===a.length&&n(o)})([],u,t=>{var n=[t[0],null].concat(t.slice(1));return vr(r,function(r,e,t,n,o,a){var i=e.length;i<2&&Q("argTypes array size mismatch! Must at least get return value and 'this' types!"),e[1];for(var s=dr(e),u="void"!==e[0].name,l=[r,Q,n,o,lr,e[0],e[1]],d=0;d<i-2;++d)l.push(e[d+2]);if(!s)for(d=2;d<e.length;++d)null!==e[d].destructorFunction&&l.push(e[d].destructorFunction);let[c,f]=function(r,e,t,n){for(var o=dr(r),a=r.length-2,i=[],s=["fn"],u=0;u<a;++u)i.push(`arg${u}`),s.push(`arg${u}Wired`);i=i.join(","),s=s.join(",");var l=`return function (${i}) {\n`;o&&(l+="var destructors = [];\n");var d=o?"destructors":"null",c=["humanName","throwBindingError","invoker","fn","runDestructors","retType","classParam"];for(u=0;u<a;++u)l+=`var arg${u}Wired = argType${u}['toWireType'](${d}, arg${u});\n`,c.push(`argType${u}`);if(l+=(t||n?"var rv = ":"")+`invoker(${s});\n`,o)l+="runDestructors(destructors);\n";else for(u=2;u<r.length;++u){var f=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==r[u].destructorFunction&&(l+=`${f}_dtor(${f});\n`,c.push(`${f}_dtor`))}return t&&(l+="var ret = retType['fromWireType'](rv);\nreturn ret;\n"),[c,l+="}\n"]}(e,0,u,a);c.push(f);var h=cr(Function,c)(...l);return ur(r,h)}(r,n,0,o,a,i),e-1),[]})},c:(r,e,t,n,o)=>{e=X(e);var a=r=>r;if(0===n){var i=32-8*t;a=r=>r<<i>>>i}var s=e.includes("unsigned");Z(r,{name:e,fromWireType:a,toWireType:s?function(r,e){return this.name,e>>>0}:function(r,e){return this.name,e},argPackAdvance:8,readValueFromPointer:kr(e,t,0!==n),destructorFunction:null})},a:(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(r){var e=k[r>>2],t=k[r+4>>2];return new n(v.buffer,t,e)}Z(r,{name:t=X(t),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},C:(r,e)=>{Z(r,{name:e=X(e),fromWireType(r){for(var e,t=k[r>>2],n=r+4,o=n,a=0;a<=t;++a){var i=n+a;if(a==t||0==w[i]){var s=Dr(o,i-o);void 0===e?e=s:(e+=String.fromCharCode(0),e+=s),o=i+1}}return le(r),e},toWireType(r,e){var t;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var n="string"==typeof e;n||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||Q("Cannot pass non-string to std::string"),t=n?Ar(e):e.length;var o=ue(4+t+1),a=o+4;if(k[o>>2]=t,n)_r(e,a,t+1);else if(n)for(var i=0;i<t;++i){var s=e.charCodeAt(i);s>255&&(le(a),Q("String has UTF-16 code units that do not fit in 8 bits")),w[a+i]=s}else for(i=0;i<t;++i)w[a+i]=e[i];return null!==r&&r.push(le,o),o},argPackAdvance:8,readValueFromPointer:ar,destructorFunction(r){le(r)}})},j:(r,e,t)=>{var n,o,a,i;t=X(t),2===e?(n=Tr,o=Cr,i=Mr,a=r=>g[r>>1]):4===e&&(n=jr,o=Rr,i=xr,a=r=>k[r>>2]),Z(r,{name:t,fromWireType:r=>{for(var t,o=k[r>>2],i=r+4,s=0;s<=o;++s){var u=r+4+s*e;if(s==o||0==a(u)){var l=n(i,u-i);void 0===t?t=l:(t+=String.fromCharCode(0),t+=l),i=u+e}}return le(r),t},toWireType:(r,n)=>{"string"!=typeof n&&Q(`Cannot pass non-string to C++ string type ${t}`);var a=i(n),s=ue(4+a+e);return k[s>>2]=a/e,o(n,s+4,a+e),null!==r&&r.push(le,s),s},argPackAdvance:8,readValueFromPointer:ar,destructorFunction(r){le(r)}})},E:(r,e)=>{Z(r,{isVoid:!0,name:e=X(e),argPackAdvance:0,fromWireType:()=>{},toWireType:(r,e)=>{}})},A:(r,e,t)=>w.copyWithin(r,e,e+t),n:(r,e,t)=>(r=nr(r),e=$r(e,"emval::as"),Nr(e,t,r)),l:(r,e,t,n)=>(r=zr[r])(null,e=nr(e),t,n),k:(r,e,t,n,o)=>(r=zr[r])(e=nr(e),e[t=Wr(t)],n,o),b:tr,F:r=>0===r?or(Br()):(r=Wr(r),or(Br()[r])),g:(r,e,t)=>{var n=((r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=$r(k[e+4*n>>2],"parameter "+n);return t})(r,e),o=n.shift();r--;var a="return function (obj, func, destructorsRef, args) {\n",i=0,s=[];0===t&&s.push("obj");for(var u=["retType"],l=[o],d=0;d<r;++d)s.push("arg"+d),u.push("argType"+d),l.push(n[d]),a+=` var arg${d} = argType${d}.readValueFromPointer(args${i?"+"+i:""});\n`,i+=n[d].argPackAdvance;a+=` var rv = ${1===t?"new func":"func.call"}(${s.join(", ")});\n`,o.isVoid||(u.push("emval_returnValue"),l.push(Nr),a+=" return emval_returnValue(retType, destructorsRef, rv);\n"),a+="};\n",u.push(a);var c=cr(Function,u)(...l),f=`methodCaller<(${n.map(r=>r.name).join(", ")}) => ${o.name}>`;return(r=>{var e=zr.length;return zr.push(r),e})(ur(f,c))},m:r=>(r=Wr(r),or(o[r])),e:(r,e)=>(r=nr(r),e=nr(e),or(r[e])),h:r=>{r>9&&(er[r+1]+=1)},f:r=>or(Wr(r)),d:r=>{var e=nr(r);lr(e),tr(r)},t:(r,e,t,n)=>{var o=(new Date).getFullYear(),a=new Date(o,0,1),i=new Date(o,6,1),s=a.getTimezoneOffset(),u=i.getTimezoneOffset(),l=Math.max(s,u);k[r>>2]=60*l,E[e>>2]=Number(s!=u);var d=r=>{var e=r>=0?"-":"+",t=Math.abs(r);return`UTC${e}${String(Math.floor(t/60)).padStart(2,"0")}${String(t%60).padStart(2,"0")}`},c=d(s),f=d(u);u<s?(_r(c,t,17),_r(f,n,17)):(_r(c,n,17),_r(f,t,17))},z:r=>{var e=w.length,t=2147483648;if((r>>>=0)>t)return!1;for(var n=1;n<=4;n*=2){var o=e*(1+.2/n);o=Math.min(o,r+100663296);var a=Math.min(t,Ur(Math.max(r,o),65536));if(Lr(a))return!0}return!1},u:(r,e)=>{var t=0;return Hr().forEach((n,o)=>{var a=e+t;k[r+4*o>>2]=a,((r,e)=>{for(var t=0;t<r.length;++t)v[e++]=r.charCodeAt(t);v[e]=0})(n,a),t+=n.length+1}),0},v:(r,e)=>{var t=Hr();k[r>>2]=t.length;var n=0;return t.forEach(r=>n+=r.length+1),k[e>>2]=n,0},x:function(r){try{var e=ne.getStreamFromFD(r);return te.close(e),0}catch(r){if(void 0===te||"ErrnoError"!==r.name)throw r;return r.errno}},y:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=k[e>>2],i=k[e+4>>2];e+=8;var s=te.read(r,v,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(ne.getStreamFromFD(r),e,t);return k[n>>2]=o,0}catch(r){if(void 0===te||"ErrnoError"!==r.name)throw r;return r.errno}},r:function(r,e,t,n,o){var a=((r,e)=>e+2097152>>>0<4194305-!!r?(r>>>0)+4294967296*e:NaN)(e,t);try{if(isNaN(a))return 61;var i=ne.getStreamFromFD(r);return te.llseek(i,a,n),W=[i.position>>>0,(O=i.position,+Math.abs(O)>=1?O>0?+Math.floor(O/4294967296)>>>0:~~+Math.ceil((O-+(~~O>>>0))/4294967296)>>>0:0)],E[o>>2]=W[0],E[o+4>>2]=W[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0}catch(r){if(void 0===te||"ErrnoError"!==r.name)throw r;return r.errno}},o:function(r,e,t,n){try{var o=((r,e,t)=>{for(var n=0,o=0;o<t;o++){var a=k[e>>2],i=k[e+4>>2];e+=8;var s=te.write(r,v,a,i,undefined);if(s<0)return-1;if(n+=s,s<i)break}return n})(ne.getStreamFromFD(r),e,t);return k[n>>2]=o,0}catch(r){if(void 0===te||"ErrnoError"!==r.name)throw r;return r.errno}}};!async function(){function r(r,e){return oe=r.exports,m=oe.G,P(),fr=oe.J,function(r){S.unshift(r)}(oe.H),$(),oe}x();var e={a:ae};if(o.instantiateWasm)try{return o.instantiateWasm(e,r)}catch(r){p(`Module.instantiateWasm callback failed with error: ${r}`),t(r)}z??=function(){var r="dxt_encoder.wasm";return B(r)?r:function(r){return o.locateFile?o.locateFile(r,f):f+r}(r)}();try{var n=await U(A,z,e);return function(e){r(e.instance)}(n),n}catch(r){return void t(r)}}();var ie,se=r=>(se=oe.I)(r),ue=r=>(ue=oe.K)(r),le=r=>(le=oe.L)(r);function de(){function r(){ie||(ie=!0,o.calledRun=!0,F||(o.noFSInit||te.initialized||te.init(),te.ignorePermissions=!1,L(S),e(o),o.onRuntimeInitialized?.(),function(){if(o.postRun)for("function"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)M(o.postRun.shift());L(T)}()))}j>0||(function(){if(o.preRun)for("function"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)C(o.preRun.shift());L(D)}(),j>0||(o.setStatus?(o.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>o.setStatus(""),1),r()},1)):r()))}if(o.dynCall_jiji=(r,e,t,n,a)=>(o.dynCall_jiji=oe.M)(r,e,t,n,a),o.dynCall_viijii=(r,e,t,n,a,i,s)=>(o.dynCall_viijii=oe.N)(r,e,t,n,a,i,s),o.dynCall_iiiiij=(r,e,t,n,a,i,s)=>(o.dynCall_iiiiij=oe.O)(r,e,t,n,a,i,s),o.dynCall_iiiiijj=(r,e,t,n,a,i,s,u,l)=>(o.dynCall_iiiiijj=oe.P)(r,e,t,n,a,i,s,u,l),o.dynCall_iiiiiijj=(r,e,t,n,a,i,s,u,l,d)=>(o.dynCall_iiiiiijj=oe.Q)(r,e,t,n,a,i,s,u,l,d),R=function r(){ie||de(),ie||(R=r)},o.preInit)for("function"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();return de(),a})}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5756],{15756:(e,a,t)=>{t.r(a),t.d(a,{SpatialReference:()=>i.S,SpatialReferencePrecisionDescriptor:()=>i.a,create:()=>i.c,createFromWKT:()=>i.b,createImplFromPe:()=>i.d,createLocal:()=>i.e,createWithNewPrecision:()=>i.f,createWithNewVCS:()=>i.g,getGCS:()=>i.h,getTempName:()=>i.i,hasNoPe:()=>i.j,hasPe:()=>i.k,injectNoPe:()=>i.l,injectPe:()=>i.m,isInitialized:()=>i.n,isTempName:()=>i.o,isValidWkid:()=>i.p,isValidWkt:()=>i.q,makeSpheroidData:()=>i.r,snapGeometry:()=>i.s,webMercator:()=>i.w,webMercator102100:()=>i.t,wgs84:()=>i.u}),t(79187),t(55537),t(88885),t(95213),t(83661);var i=t(39117)}}]);